Imported Upstream version 1.5.4
[platform/upstream/libpipeline.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libpipeline 1.5.4.
4 #
5 # Report bugs to <cjwatson@debian.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
187
188   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192     PATH=/empty FPATH=/empty; export PATH FPATH
193     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: cjwatson@debian.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329   return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339   case $as_dir in #(
340   -*) as_dir=./$as_dir;;
341   esac
342   test -d "$as_dir" || eval $as_mkdir_p || {
343     as_dirs=
344     while :; do
345       case $as_dir in #(
346       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347       *) as_qdir=$as_dir;;
348       esac
349       as_dirs="'$as_qdir' $as_dirs"
350       as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352          X"$as_dir" : 'X\(//\)[^/]' \| \
353          X"$as_dir" : 'X\(//\)$' \| \
354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\/\)[^/].*/{
361             s//\1/
362             q
363           }
364           /^X\(\/\/\)$/{
365             s//\1/
366             q
367           }
368           /^X\(\/\).*/{
369             s//\1/
370             q
371           }
372           s/.*/./; q'`
373       test -d "$as_dir" && break
374     done
375     test -z "$as_dirs" || eval "mkdir $as_dirs"
376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386   test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396   eval 'as_fn_append ()
397   {
398     eval $1+=\$2
399   }'
400 else $as_nop
401   as_fn_append ()
402   {
403     eval $1=\$$1\$2
404   }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414   eval 'as_fn_arith ()
415   {
416     as_val=$(( $* ))
417   }'
418 else $as_nop
419   as_fn_arith ()
420   {
421     as_val=`expr "$@" || test $? -eq 1`
422   }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430   return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441   as_status=$1; test $as_status -eq 0 && as_status=1
442   if test "$4"; then
443     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445   fi
446   printf "%s\n" "$as_me: error: $2" >&2
447   as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451    test "X`expr 00001 : '.*\(...\)'`" = X001; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458   as_basename=basename
459 else
460   as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471          X"$0" : 'X\(//\)$' \| \
472          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474     sed '/^.*\/\([^/][^/]*\)\/*$/{
475             s//\1/
476             q
477           }
478           /^X\/\(\/\/\)$/{
479             s//\1/
480             q
481           }
482           /^X\/\(\/\).*/{
483             s//\1/
484             q
485           }
486           s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496   as_lineno_1=$LINENO as_lineno_1a=$LINENO
497   as_lineno_2=$LINENO as_lineno_2a=$LINENO
498   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501   sed -n '
502     p
503     /[$]LINENO/=
504   ' <$as_myself |
505     sed '
506       s/[$]LINENO.*/&-/
507       t lineno
508       b
509       :lineno
510       N
511       :loop
512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513       t loop
514       s/-\n.*//
515     ' >$as_me.lineno &&
516   chmod +x "$as_me.lineno" ||
517     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520   # already done that, so ensure we don't try to do so again and fall
521   # in an infinite loop.  This has already happened in practice.
522   _as_can_reexec=no; export _as_can_reexec
523   # Don't try to exec as it changes $[0], causing all sort of problems
524   # (the dirname of $[0] is not the place where we might find the
525   # original and so on.  Autoconf is especially sensitive to this).
526   . "./$as_me.lineno"
527   # Exit status is that of the last command.
528   exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538   case `echo 'xy\c'` in
539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
540   xy)  ECHO_C='\c';;
541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542        ECHO_T=' ';;
543   esac;;
544 *)
545   ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n.  New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557   rm -f conf$$.dir/conf$$.file
558 else
559   rm -f conf$$.dir
560   mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563   if ln -s conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s='ln -s'
565     # ... but there are two gotchas:
566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568     # In both cases, we have to default to `cp -pR'.
569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570       as_ln_s='cp -pR'
571   elif ln conf$$.file conf$$ 2>/dev/null; then
572     as_ln_s=ln
573   else
574     as_ln_s='cp -pR'
575   fi
576 else
577   as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583   as_mkdir_p='mkdir -p "$as_dir"'
584 else
585   test -d ./-p && rmdir ./-p
586   as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='libpipeline'
623 PACKAGE_TARNAME='libpipeline'
624 PACKAGE_VERSION='1.5.4'
625 PACKAGE_STRING='libpipeline 1.5.4'
626 PACKAGE_BUGREPORT='cjwatson@debian.org'
627 PACKAGE_URL=''
628
629 ac_unique_file="lib/pipeline.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 gl_use_threads_default=
663 gl_use_winpthreads_default=
664 ac_func_c_list=
665 ac_subst_vars='gltests_LTLIBOBJS
666 gltests_LIBOBJS
667 gl_LTLIBOBJS
668 gl_LIBOBJS
669 am__EXEEXT_FALSE
670 am__EXEEXT_TRUE
671 LTLIBOBJS
672 LIBOBJS
673 gltests_WITNESS
674 HAVE_CRTDEFS_H
675 HAVE_WINT_T
676 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
677 NEXT_WCHAR_H
678 REPLACE_WCSTOK
679 REPLACE_WCSFTIME
680 REPLACE_WCSWIDTH
681 REPLACE_WCWIDTH
682 REPLACE_WCSNRTOMBS
683 REPLACE_WCSRTOMBS
684 REPLACE_WCRTOMB
685 REPLACE_MBSNRTOWCS
686 REPLACE_MBSRTOWCS
687 REPLACE_MBRLEN
688 REPLACE_MBRTOWC
689 REPLACE_MBSINIT
690 REPLACE_WCTOB
691 REPLACE_BTOWC
692 REPLACE_MBSTATE_T
693 HAVE_DECL_WCWIDTH
694 HAVE_DECL_WCTOB
695 HAVE_WCSFTIME
696 HAVE_WCSWIDTH
697 HAVE_WCSTOK
698 HAVE_WCSSTR
699 HAVE_WCSPBRK
700 HAVE_WCSSPN
701 HAVE_WCSCSPN
702 HAVE_WCSRCHR
703 HAVE_WCSCHR
704 HAVE_WCSDUP
705 HAVE_WCSXFRM
706 HAVE_WCSCOLL
707 HAVE_WCSNCASECMP
708 HAVE_WCSCASECMP
709 HAVE_WCSNCMP
710 HAVE_WCSCMP
711 HAVE_WCSNCAT
712 HAVE_WCSCAT
713 HAVE_WCPNCPY
714 HAVE_WCSNCPY
715 HAVE_WCPCPY
716 HAVE_WCSCPY
717 HAVE_WCSNLEN
718 HAVE_WCSLEN
719 HAVE_WMEMSET
720 HAVE_WMEMPCPY
721 HAVE_WMEMMOVE
722 HAVE_WMEMCPY
723 HAVE_WMEMCMP
724 HAVE_WMEMCHR
725 HAVE_WCSNRTOMBS
726 HAVE_WCSRTOMBS
727 HAVE_WCRTOMB
728 HAVE_MBSNRTOWCS
729 HAVE_MBSRTOWCS
730 HAVE_MBRLEN
731 HAVE_MBRTOWC
732 HAVE_MBSINIT
733 HAVE_BTOWC
734 GNULIB_WCSFTIME
735 GNULIB_WCSWIDTH
736 GNULIB_WCSTOK
737 GNULIB_WCSSTR
738 GNULIB_WCSPBRK
739 GNULIB_WCSSPN
740 GNULIB_WCSCSPN
741 GNULIB_WCSRCHR
742 GNULIB_WCSCHR
743 GNULIB_WCSDUP
744 GNULIB_WCSXFRM
745 GNULIB_WCSCOLL
746 GNULIB_WCSNCASECMP
747 GNULIB_WCSCASECMP
748 GNULIB_WCSNCMP
749 GNULIB_WCSCMP
750 GNULIB_WCSNCAT
751 GNULIB_WCSCAT
752 GNULIB_WCPNCPY
753 GNULIB_WCSNCPY
754 GNULIB_WCPCPY
755 GNULIB_WCSCPY
756 GNULIB_WCSNLEN
757 GNULIB_WCSLEN
758 GNULIB_WMEMSET
759 GNULIB_WMEMPCPY
760 GNULIB_WMEMMOVE
761 GNULIB_WMEMCPY
762 GNULIB_WMEMCMP
763 GNULIB_WMEMCHR
764 GNULIB_WCWIDTH
765 GNULIB_WCSNRTOMBS
766 GNULIB_WCSRTOMBS
767 GNULIB_WCRTOMB
768 GNULIB_MBSNRTOWCS
769 GNULIB_MBSRTOWCS
770 GNULIB_MBRLEN
771 GNULIB_MBRTOWC
772 GNULIB_MBSINIT
773 GNULIB_WCTOB
774 GNULIB_BTOWC
775 HAVE_FEATURES_H
776 HAVE_UNISTD_H
777 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
778 NEXT_UNISTD_H
779 UNISTD_H_DEFINES_STRUCT_TIMESPEC
780 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
781 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
782 TIME_H_DEFINES_STRUCT_TIMESPEC
783 NEXT_AS_FIRST_DIRECTIVE_TIME_H
784 NEXT_TIME_H
785 REPLACE_LOCALTIME
786 REPLACE_GMTIME
787 REPLACE_TZSET
788 REPLACE_TIMEGM
789 REPLACE_STRFTIME
790 REPLACE_NANOSLEEP
791 REPLACE_MKTIME
792 REPLACE_LOCALTIME_R
793 REPLACE_CTIME
794 HAVE_TIMEZONE_T
795 HAVE_TIMEGM
796 HAVE_STRPTIME
797 HAVE_NANOSLEEP
798 HAVE_DECL_LOCALTIME_R
799 GNULIB_TZSET
800 GNULIB_TIME_RZ
801 GNULIB_TIME_R
802 GNULIB_TIMEGM
803 GNULIB_STRPTIME
804 GNULIB_STRFTIME
805 GNULIB_NANOSLEEP
806 GNULIB_LOCALTIME
807 GNULIB_MKTIME
808 GNULIB_CTIME
809 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
810 NEXT_SYS_WAIT_H
811 GNULIB_WAITPID
812 WINDOWS_STAT_INODES
813 WINDOWS_64_BIT_OFF_T
814 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
815 NEXT_SYS_TYPES_H
816 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
817 NEXT_SYS_TIME_H
818 REPLACE_STRUCT_TIMEVAL
819 REPLACE_GETTIMEOFDAY
820 HAVE_SYS_TIME_H
821 HAVE_STRUCT_TIMEVAL
822 HAVE_GETTIMEOFDAY
823 GNULIB_GETTIMEOFDAY
824 HAVE_SYS_SELECT_H
825 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
826 NEXT_SYS_SELECT_H
827 REPLACE_SELECT
828 REPLACE_PSELECT
829 HAVE_PSELECT
830 GNULIB_SELECT
831 GNULIB_PSELECT
832 HAVE_SYS_RANDOM_H
833 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
834 NEXT_SYS_RANDOM_H
835 NEXT_AS_FIRST_DIRECTIVE_STRING_H
836 NEXT_STRING_H
837 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
838 NEXT_STDLIB_H
839 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
840 NEXT_STDIO_H
841 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
842 NEXT_STDDEF_H
843 GL_GENERATE_STDDEF_H_FALSE
844 GL_GENERATE_STDDEF_H_TRUE
845 STDDEF_H
846 HAVE_WCHAR_T
847 HAVE_MAX_ALIGN_T
848 REPLACE_NULL
849 HAVE__BOOL
850 GL_GENERATE_STDBOOL_H_FALSE
851 GL_GENERATE_STDBOOL_H_TRUE
852 STDBOOL_H
853 GL_GENERATE_STDARG_H_FALSE
854 GL_GENERATE_STDARG_H_TRUE
855 STDARG_H
856 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
857 NEXT_STDARG_H
858 GL_GENERATE_STDALIGN_H_FALSE
859 GL_GENERATE_STDALIGN_H_TRUE
860 STDALIGN_H
861 REPLACE_VSPRINTF
862 REPLACE_VSNPRINTF
863 REPLACE_VPRINTF
864 REPLACE_VFPRINTF
865 REPLACE_VDPRINTF
866 REPLACE_VASPRINTF
867 REPLACE_TMPFILE
868 REPLACE_STDIO_WRITE_FUNCS
869 REPLACE_STDIO_READ_FUNCS
870 REPLACE_SPRINTF
871 REPLACE_SNPRINTF
872 REPLACE_RENAMEAT
873 REPLACE_RENAME
874 REPLACE_REMOVE
875 REPLACE_PRINTF
876 REPLACE_POPEN
877 REPLACE_PERROR
878 REPLACE_OBSTACK_PRINTF
879 REPLACE_GETLINE
880 REPLACE_GETDELIM
881 REPLACE_FTELLO
882 REPLACE_FTELL
883 REPLACE_FSEEKO
884 REPLACE_FSEEK
885 REPLACE_FREOPEN
886 REPLACE_FPURGE
887 REPLACE_FPRINTF
888 REPLACE_FOPEN
889 REPLACE_FFLUSH
890 REPLACE_FDOPEN
891 REPLACE_FCLOSE
892 REPLACE_DPRINTF
893 HAVE_VDPRINTF
894 HAVE_VASPRINTF
895 HAVE_RENAMEAT
896 HAVE_POPEN
897 HAVE_PCLOSE
898 HAVE_FTELLO
899 HAVE_FSEEKO
900 HAVE_DPRINTF
901 HAVE_DECL_VSNPRINTF
902 HAVE_DECL_SNPRINTF
903 HAVE_DECL_OBSTACK_PRINTF
904 HAVE_DECL_GETLINE
905 HAVE_DECL_GETDELIM
906 HAVE_DECL_FTELLO
907 HAVE_DECL_FSEEKO
908 HAVE_DECL_FPURGE
909 GNULIB_VSPRINTF_POSIX
910 GNULIB_VSNPRINTF
911 GNULIB_VPRINTF_POSIX
912 GNULIB_VPRINTF
913 GNULIB_VFPRINTF_POSIX
914 GNULIB_VFPRINTF
915 GNULIB_VDPRINTF
916 GNULIB_VSCANF
917 GNULIB_VFSCANF
918 GNULIB_VASPRINTF
919 GNULIB_TMPFILE
920 GNULIB_STDIO_H_SIGPIPE
921 GNULIB_STDIO_H_NONBLOCKING
922 GNULIB_SPRINTF_POSIX
923 GNULIB_SNPRINTF
924 GNULIB_SCANF
925 GNULIB_RENAMEAT
926 GNULIB_RENAME
927 GNULIB_REMOVE
928 GNULIB_PUTS
929 GNULIB_PUTCHAR
930 GNULIB_PUTC
931 GNULIB_PRINTF_POSIX
932 GNULIB_PRINTF
933 GNULIB_POPEN
934 GNULIB_PERROR
935 GNULIB_PCLOSE
936 GNULIB_OBSTACK_PRINTF_POSIX
937 GNULIB_OBSTACK_PRINTF
938 GNULIB_GETLINE
939 GNULIB_GETDELIM
940 GNULIB_GETCHAR
941 GNULIB_GETC
942 GNULIB_FWRITE
943 GNULIB_FTELLO
944 GNULIB_FTELL
945 GNULIB_FSEEKO
946 GNULIB_FSEEK
947 GNULIB_FSCANF
948 GNULIB_FREOPEN
949 GNULIB_FREAD
950 GNULIB_FPUTS
951 GNULIB_FPUTC
952 GNULIB_FPURGE
953 GNULIB_FPRINTF_POSIX
954 GNULIB_FPRINTF
955 GNULIB_FOPEN
956 GNULIB_FGETS
957 GNULIB_FGETC
958 GNULIB_FFLUSH
959 GNULIB_FDOPEN
960 GNULIB_FCLOSE
961 GNULIB_DPRINTF
962 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
963 NEXT_SIGNAL_H
964 REPLACE_RAISE
965 REPLACE_PTHREAD_SIGMASK
966 HAVE_SIGHANDLER_T
967 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
968 HAVE_STRUCT_SIGACTION_SA_SIGACTION
969 HAVE_SIGACTION
970 HAVE_SIGINFO_T
971 HAVE_SIGSET_T
972 HAVE_RAISE
973 HAVE_PTHREAD_SIGMASK
974 HAVE_POSIX_SIGNALBLOCKING
975 GNULIB_SIGACTION
976 GNULIB_SIGPROCMASK
977 GNULIB_SIGNAL_H_SIGPIPE
978 GNULIB_RAISE
979 GNULIB_PTHREAD_SIGMASK
980 UNDEFINE_STRTOK_R
981 REPLACE_STRSIGNAL
982 REPLACE_STRERRORNAME_NP
983 REPLACE_STRERROR_R
984 REPLACE_STRERROR
985 REPLACE_STRTOK_R
986 REPLACE_STRCASESTR
987 REPLACE_STRSTR
988 REPLACE_STRNLEN
989 REPLACE_STRNDUP
990 REPLACE_STRNCAT
991 REPLACE_STRDUP
992 REPLACE_STRCHRNUL
993 REPLACE_STPNCPY
994 REPLACE_MEMMEM
995 REPLACE_MEMCHR
996 HAVE_STRVERSCMP
997 HAVE_DECL_STRSIGNAL
998 HAVE_SIGDESCR_NP
999 HAVE_SIGABBREV_NP
1000 HAVE_STRERRORNAME_NP
1001 HAVE_DECL_STRERROR_R
1002 HAVE_DECL_STRTOK_R
1003 HAVE_STRCASESTR
1004 HAVE_STRSEP
1005 HAVE_STRPBRK
1006 HAVE_DECL_STRNLEN
1007 HAVE_DECL_STRNDUP
1008 HAVE_DECL_STRDUP
1009 HAVE_STRCHRNUL
1010 HAVE_STPNCPY
1011 HAVE_STPCPY
1012 HAVE_RAWMEMCHR
1013 HAVE_DECL_MEMRCHR
1014 HAVE_MEMPCPY
1015 HAVE_DECL_MEMMEM
1016 HAVE_FFSLL
1017 HAVE_FFSL
1018 HAVE_EXPLICIT_BZERO
1019 HAVE_MBSLEN
1020 GNULIB_STRVERSCMP
1021 GNULIB_STRSIGNAL
1022 GNULIB_SIGDESCR_NP
1023 GNULIB_SIGABBREV_NP
1024 GNULIB_STRERRORNAME_NP
1025 GNULIB_STRERROR_R
1026 GNULIB_STRERROR
1027 GNULIB_MBSTOK_R
1028 GNULIB_MBSSEP
1029 GNULIB_MBSSPN
1030 GNULIB_MBSPBRK
1031 GNULIB_MBSCSPN
1032 GNULIB_MBSCASESTR
1033 GNULIB_MBSPCASECMP
1034 GNULIB_MBSNCASECMP
1035 GNULIB_MBSCASECMP
1036 GNULIB_MBSSTR
1037 GNULIB_MBSRCHR
1038 GNULIB_MBSCHR
1039 GNULIB_MBSNLEN
1040 GNULIB_MBSLEN
1041 GNULIB_STRTOK_R
1042 GNULIB_STRCASESTR
1043 GNULIB_STRSTR
1044 GNULIB_STRSEP
1045 GNULIB_STRPBRK
1046 GNULIB_STRNLEN
1047 GNULIB_STRNDUP
1048 GNULIB_STRNCAT
1049 GNULIB_STRDUP
1050 GNULIB_STRCHRNUL
1051 GNULIB_STPNCPY
1052 GNULIB_STPCPY
1053 GNULIB_RAWMEMCHR
1054 GNULIB_MEMRCHR
1055 GNULIB_MEMPCPY
1056 GNULIB_MEMMEM
1057 GNULIB_MEMCHR
1058 GNULIB_FFSLL
1059 GNULIB_FFSL
1060 GNULIB_EXPLICIT_BZERO
1061 REPLACE_WCTOMB
1062 REPLACE_UNSETENV
1063 REPLACE_STRTOLD
1064 REPLACE_STRTOD
1065 REPLACE_SETSTATE
1066 REPLACE_SETENV
1067 REPLACE_REALPATH
1068 REPLACE_REALLOC
1069 REPLACE_RANDOM_R
1070 REPLACE_RANDOM
1071 REPLACE_QSORT_R
1072 REPLACE_PUTENV
1073 REPLACE_PTSNAME_R
1074 REPLACE_PTSNAME
1075 REPLACE_POSIX_MEMALIGN
1076 REPLACE_MKSTEMP
1077 REPLACE_MBTOWC
1078 REPLACE_MALLOC
1079 REPLACE_INITSTATE
1080 REPLACE_CANONICALIZE_FILE_NAME
1081 REPLACE_CALLOC
1082 REPLACE_ALIGNED_ALLOC
1083 HAVE_DECL_UNSETENV
1084 HAVE_UNLOCKPT
1085 HAVE_SYS_LOADAVG_H
1086 HAVE_STRUCT_RANDOM_DATA
1087 HAVE_STRTOULL
1088 HAVE_STRTOLL
1089 HAVE_STRTOLD
1090 HAVE_STRTOD
1091 HAVE_DECL_SETSTATE
1092 HAVE_SETSTATE
1093 HAVE_DECL_SETENV
1094 HAVE_SETENV
1095 HAVE_SECURE_GETENV
1096 HAVE_RPMATCH
1097 HAVE_REALPATH
1098 HAVE_REALLOCARRAY
1099 HAVE_RANDOM_R
1100 HAVE_RANDOM_H
1101 HAVE_RANDOM
1102 HAVE_QSORT_R
1103 HAVE_PTSNAME_R
1104 HAVE_PTSNAME
1105 HAVE_POSIX_OPENPT
1106 HAVE_POSIX_MEMALIGN
1107 HAVE_MKSTEMPS
1108 HAVE_MKSTEMP
1109 HAVE_MKOSTEMPS
1110 HAVE_MKOSTEMP
1111 HAVE_MKDTEMP
1112 HAVE_MBTOWC
1113 HAVE_DECL_INITSTATE
1114 HAVE_INITSTATE
1115 HAVE_GRANTPT
1116 HAVE_GETSUBOPT
1117 HAVE_DECL_GETLOADAVG
1118 HAVE_CANONICALIZE_FILE_NAME
1119 HAVE_ATOLL
1120 HAVE_ALIGNED_ALLOC
1121 HAVE__EXIT
1122 GNULIB_WCTOMB
1123 GNULIB_UNSETENV
1124 GNULIB_UNLOCKPT
1125 GNULIB_SYSTEM_POSIX
1126 GNULIB_STRTOULL
1127 GNULIB_STRTOLL
1128 GNULIB_STRTOLD
1129 GNULIB_STRTOD
1130 GNULIB_SETENV
1131 GNULIB_SECURE_GETENV
1132 GNULIB_RPMATCH
1133 GNULIB_REALPATH
1134 GNULIB_REALLOC_POSIX
1135 GNULIB_REALLOCARRAY
1136 GNULIB_RANDOM_R
1137 GNULIB_RANDOM
1138 GNULIB_QSORT_R
1139 GNULIB_PUTENV
1140 GNULIB_PTSNAME_R
1141 GNULIB_PTSNAME
1142 GNULIB_POSIX_OPENPT
1143 GNULIB_POSIX_MEMALIGN
1144 GNULIB_MKSTEMPS
1145 GNULIB_MKSTEMP
1146 GNULIB_MKOSTEMPS
1147 GNULIB_MKOSTEMP
1148 GNULIB_MKDTEMP
1149 GNULIB_MBTOWC
1150 GNULIB_MALLOC_POSIX
1151 GNULIB_GRANTPT
1152 GNULIB_GETSUBOPT
1153 GNULIB_GETLOADAVG
1154 GNULIB_CANONICALIZE_FILE_NAME
1155 GNULIB_CALLOC_POSIX
1156 GNULIB_ATOLL
1157 GNULIB_ALIGNED_ALLOC
1158 GNULIB__EXIT
1159 LTLIBMULTITHREAD
1160 LIBMULTITHREAD
1161 LTLIBTHREAD
1162 LIBTHREAD
1163 LIBSTDTHREAD
1164 LIB_SCHED_YIELD
1165 LIBPMULTITHREAD
1166 LIBPTHREAD
1167 IGNORE_UNUSED_LIBRARIES_CFLAGS
1168 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1169 NEXT_INTTYPES_H
1170 UINT64_MAX_EQ_ULONG_MAX
1171 UINT32_MAX_LT_UINTMAX_MAX
1172 PRIPTR_PREFIX
1173 INT64_MAX_EQ_LONG_MAX
1174 INT32_MAX_LT_INTMAX_MAX
1175 REPLACE_STRTOUMAX
1176 REPLACE_STRTOIMAX
1177 HAVE_IMAXDIV_T
1178 HAVE_DECL_STRTOUMAX
1179 HAVE_DECL_STRTOIMAX
1180 HAVE_DECL_IMAXDIV
1181 HAVE_DECL_IMAXABS
1182 GNULIB_STRTOUMAX
1183 GNULIB_STRTOIMAX
1184 GNULIB_IMAXDIV
1185 GNULIB_IMAXABS
1186 GL_GENERATE_STDINT_H_FALSE
1187 GL_GENERATE_STDINT_H_TRUE
1188 STDINT_H
1189 HAVE_SYS_INTTYPES_H
1190 HAVE_SYS_BITYPES_H
1191 HAVE_C99_STDINT_H
1192 WINT_T_SUFFIX
1193 WCHAR_T_SUFFIX
1194 SIG_ATOMIC_T_SUFFIX
1195 SIZE_T_SUFFIX
1196 PTRDIFF_T_SUFFIX
1197 HAVE_SIGNED_WINT_T
1198 HAVE_SIGNED_WCHAR_T
1199 HAVE_SIGNED_SIG_ATOMIC_T
1200 BITSIZEOF_WINT_T
1201 BITSIZEOF_WCHAR_T
1202 BITSIZEOF_SIG_ATOMIC_T
1203 BITSIZEOF_SIZE_T
1204 BITSIZEOF_PTRDIFF_T
1205 APPLE_UNIVERSAL_BUILD
1206 HAVE_STDINT_H
1207 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1208 NEXT_STDINT_H
1209 HAVE_SYS_TYPES_H
1210 HAVE_INTTYPES_H
1211 HAVE_WCHAR_H
1212 GNULIB_OVERRIDES_WINT_T
1213 GL_GENERATE_LIMITS_H_FALSE
1214 GL_GENERATE_LIMITS_H_TRUE
1215 LIMITS_H
1216 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1217 NEXT_LIMITS_H
1218 LTLIBINTL
1219 LIBINTL
1220 LIB_GETRANDOM
1221 REPLACE_GETRANDOM
1222 HAVE_GETRANDOM
1223 GNULIB_GETRANDOM
1224 WINDOWS_64_BIT_ST_SIZE
1225 WINDOWS_STAT_TIMESPEC
1226 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1227 NEXT_SYS_STAT_H
1228 REPLACE_UTIMENSAT
1229 REPLACE_STAT
1230 REPLACE_MKNOD
1231 REPLACE_MKFIFO
1232 REPLACE_MKDIR
1233 REPLACE_LSTAT
1234 REPLACE_FUTIMENS
1235 REPLACE_FSTATAT
1236 REPLACE_FSTAT
1237 REPLACE_FCHMODAT
1238 HAVE_UTIMENSAT
1239 HAVE_MKNODAT
1240 HAVE_MKNOD
1241 HAVE_MKFIFOAT
1242 HAVE_MKFIFO
1243 HAVE_MKDIRAT
1244 HAVE_LSTAT
1245 HAVE_LCHMOD
1246 HAVE_GETUMASK
1247 HAVE_FUTIMENS
1248 HAVE_FSTATAT
1249 HAVE_FCHMODAT
1250 GNULIB_OVERRIDES_STRUCT_STAT
1251 GNULIB_UTIMENSAT
1252 GNULIB_STAT
1253 GNULIB_MKNODAT
1254 GNULIB_MKNOD
1255 GNULIB_MKFIFOAT
1256 GNULIB_MKFIFO
1257 GNULIB_MKDIRAT
1258 GNULIB_LSTAT
1259 GNULIB_LCHMOD
1260 GNULIB_GETUMASK
1261 GNULIB_FUTIMENS
1262 GNULIB_FSTATAT
1263 GNULIB_FSTAT
1264 GNULIB_FCHMODAT
1265 REPLACE_ITOLD
1266 GL_GENERATE_FLOAT_H_FALSE
1267 GL_GENERATE_FLOAT_H_TRUE
1268 FLOAT_H
1269 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1270 NEXT_FLOAT_H
1271 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1272 NEXT_FCNTL_H
1273 REPLACE_OPENAT
1274 REPLACE_OPEN
1275 REPLACE_FCNTL
1276 REPLACE_CREAT
1277 HAVE_OPENAT
1278 HAVE_FCNTL
1279 GNULIB_OPENAT
1280 GNULIB_OPEN
1281 GNULIB_NONBLOCKING
1282 GNULIB_FCNTL
1283 GNULIB_CREAT
1284 EOVERFLOW_VALUE
1285 EOVERFLOW_HIDDEN
1286 ENOLINK_VALUE
1287 ENOLINK_HIDDEN
1288 EMULTIHOP_VALUE
1289 EMULTIHOP_HIDDEN
1290 GL_GENERATE_ERRNO_H_FALSE
1291 GL_GENERATE_ERRNO_H_TRUE
1292 ERRNO_H
1293 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1294 NEXT_ERRNO_H
1295 PRAGMA_COLUMNS
1296 PRAGMA_SYSTEM_HEADER
1297 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1298 INCLUDE_NEXT
1299 HAVE_WINSOCK2_H
1300 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1301 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1302 UNISTD_H_HAVE_WINSOCK2_H
1303 UNISTD_H_HAVE_SYS_RANDOM_H
1304 REPLACE_WRITE
1305 REPLACE_USLEEP
1306 REPLACE_UNLINKAT
1307 REPLACE_UNLINK
1308 REPLACE_TTYNAME_R
1309 REPLACE_TRUNCATE
1310 REPLACE_SYMLINKAT
1311 REPLACE_SYMLINK
1312 REPLACE_SLEEP
1313 REPLACE_RMDIR
1314 REPLACE_READLINKAT
1315 REPLACE_READLINK
1316 REPLACE_READ
1317 REPLACE_PWRITE
1318 REPLACE_PREAD
1319 REPLACE_LSEEK
1320 REPLACE_LINKAT
1321 REPLACE_LINK
1322 REPLACE_LCHOWN
1323 REPLACE_ISATTY
1324 REPLACE_GETPASS
1325 REPLACE_GETPAGESIZE
1326 REPLACE_GETGROUPS
1327 REPLACE_GETLOGIN_R
1328 REPLACE_GETDTABLESIZE
1329 REPLACE_GETDOMAINNAME
1330 REPLACE_GETCWD
1331 REPLACE_FTRUNCATE
1332 REPLACE_FCHOWNAT
1333 REPLACE_FACCESSAT
1334 REPLACE_DUP2
1335 REPLACE_DUP
1336 REPLACE_CLOSE
1337 REPLACE_CHOWN
1338 REPLACE_ACCESS
1339 HAVE_SYS_PARAM_H
1340 HAVE_OS_H
1341 HAVE_DECL_TTYNAME_R
1342 HAVE_DECL_TRUNCATE
1343 HAVE_DECL_SETHOSTNAME
1344 HAVE_DECL_GETUSERSHELL
1345 HAVE_DECL_GETPAGESIZE
1346 HAVE_DECL_GETLOGIN_R
1347 HAVE_DECL_GETLOGIN
1348 HAVE_DECL_GETDOMAINNAME
1349 HAVE_DECL_FDATASYNC
1350 HAVE_DECL_FCHDIR
1351 HAVE_DECL_ENVIRON
1352 HAVE_USLEEP
1353 HAVE_UNLINKAT
1354 HAVE_SYMLINKAT
1355 HAVE_SYMLINK
1356 HAVE_SLEEP
1357 HAVE_SETHOSTNAME
1358 HAVE_READLINKAT
1359 HAVE_READLINK
1360 HAVE_PWRITE
1361 HAVE_PREAD
1362 HAVE_PIPE2
1363 HAVE_PIPE
1364 HAVE_LINKAT
1365 HAVE_LINK
1366 HAVE_LCHOWN
1367 HAVE_GROUP_MEMBER
1368 HAVE_GETPASS
1369 HAVE_GETPAGESIZE
1370 HAVE_GETLOGIN
1371 HAVE_GETHOSTNAME
1372 HAVE_GETGROUPS
1373 HAVE_GETENTROPY
1374 HAVE_GETDTABLESIZE
1375 HAVE_FTRUNCATE
1376 HAVE_FSYNC
1377 HAVE_FDATASYNC
1378 HAVE_FCHOWNAT
1379 HAVE_FCHDIR
1380 HAVE_FACCESSAT
1381 HAVE_EUIDACCESS
1382 HAVE_DUP3
1383 HAVE_COPY_FILE_RANGE
1384 HAVE_CHOWN
1385 GNULIB_WRITE
1386 GNULIB_USLEEP
1387 GNULIB_UNLINKAT
1388 GNULIB_UNLINK
1389 GNULIB_UNISTD_H_SIGPIPE
1390 GNULIB_UNISTD_H_NONBLOCKING
1391 GNULIB_TTYNAME_R
1392 GNULIB_TRUNCATE
1393 GNULIB_SYMLINKAT
1394 GNULIB_SYMLINK
1395 GNULIB_SLEEP
1396 GNULIB_SETHOSTNAME
1397 GNULIB_RMDIR
1398 GNULIB_READLINKAT
1399 GNULIB_READLINK
1400 GNULIB_READ
1401 GNULIB_PWRITE
1402 GNULIB_PREAD
1403 GNULIB_PIPE2
1404 GNULIB_PIPE
1405 GNULIB_LSEEK
1406 GNULIB_LINKAT
1407 GNULIB_LINK
1408 GNULIB_LCHOWN
1409 GNULIB_ISATTY
1410 GNULIB_GROUP_MEMBER
1411 GNULIB_GETUSERSHELL
1412 GNULIB_GETPASS
1413 GNULIB_GETPAGESIZE
1414 GNULIB_GETOPT_POSIX
1415 GNULIB_GETLOGIN_R
1416 GNULIB_GETLOGIN
1417 GNULIB_GETHOSTNAME
1418 GNULIB_GETGROUPS
1419 GNULIB_GETENTROPY
1420 GNULIB_GETDTABLESIZE
1421 GNULIB_GETDOMAINNAME
1422 GNULIB_GETCWD
1423 GNULIB_FTRUNCATE
1424 GNULIB_FSYNC
1425 GNULIB_FDATASYNC
1426 GNULIB_FCHOWNAT
1427 GNULIB_FCHDIR
1428 GNULIB_FACCESSAT
1429 GNULIB_EUIDACCESS
1430 GNULIB_ENVIRON
1431 GNULIB_DUP3
1432 GNULIB_DUP2
1433 GNULIB_DUP
1434 GNULIB_COPY_FILE_RANGE
1435 GNULIB_CLOSE
1436 GNULIB_CHOWN
1437 GNULIB_CHDIR
1438 GNULIB_ACCESS
1439 LIB_CLOCK_GETTIME
1440 HAVE_ALLOCA_H
1441 GL_GENERATE_ALLOCA_H_FALSE
1442 GL_GENERATE_ALLOCA_H_TRUE
1443 ALLOCA_H
1444 ALLOCA
1445 GL_COND_LIBTOOL_FALSE
1446 GL_COND_LIBTOOL_TRUE
1447 RUN_TESTS_FALSE
1448 RUN_TESTS_TRUE
1449 CHECK_LIBS
1450 CHECK_CFLAGS
1451 PKG_CONFIG_LIBDIR
1452 PKG_CONFIG_PATH
1453 PKG_CONFIG
1454 LT_SYS_LIBRARY_PATH
1455 OTOOL64
1456 OTOOL
1457 LIPO
1458 NMEDIT
1459 DSYMUTIL
1460 MANIFEST_TOOL
1461 DLLTOOL
1462 OBJDUMP
1463 NM
1464 ac_ct_DUMPBIN
1465 DUMPBIN
1466 LD
1467 FGREP
1468 SED
1469 LIBTOOL
1470 LN_S
1471 WARN_CFLAGS
1472 RANLIB
1473 ARFLAGS
1474 ac_ct_AR
1475 AR
1476 EGREP
1477 GREP
1478 CPP
1479 host_os
1480 host_vendor
1481 host_cpu
1482 host
1483 build_os
1484 build_vendor
1485 build_cpu
1486 build
1487 am__fastdepCC_FALSE
1488 am__fastdepCC_TRUE
1489 CCDEPMODE
1490 am__nodep
1491 AMDEPBACKSLASH
1492 AMDEP_FALSE
1493 AMDEP_TRUE
1494 am__include
1495 DEPDIR
1496 OBJEXT
1497 EXEEXT
1498 ac_ct_CC
1499 CPPFLAGS
1500 LDFLAGS
1501 CFLAGS
1502 CC
1503 MAINT
1504 MAINTAINER_MODE_FALSE
1505 MAINTAINER_MODE_TRUE
1506 AM_BACKSLASH
1507 AM_DEFAULT_VERBOSITY
1508 AM_DEFAULT_V
1509 AM_V
1510 CSCOPE
1511 ETAGS
1512 CTAGS
1513 am__untar
1514 am__tar
1515 AMTAR
1516 am__leading_dot
1517 SET_MAKE
1518 AWK
1519 mkdir_p
1520 MKDIR_P
1521 INSTALL_STRIP_PROGRAM
1522 STRIP
1523 install_sh
1524 MAKEINFO
1525 AUTOHEADER
1526 AUTOMAKE
1527 AUTOCONF
1528 ACLOCAL
1529 VERSION
1530 PACKAGE
1531 CYGPATH_W
1532 am__isrc
1533 INSTALL_DATA
1534 INSTALL_SCRIPT
1535 INSTALL_PROGRAM
1536 target_alias
1537 host_alias
1538 build_alias
1539 LIBS
1540 ECHO_T
1541 ECHO_N
1542 ECHO_C
1543 DEFS
1544 mandir
1545 localedir
1546 libdir
1547 psdir
1548 pdfdir
1549 dvidir
1550 htmldir
1551 infodir
1552 docdir
1553 oldincludedir
1554 includedir
1555 runstatedir
1556 localstatedir
1557 sharedstatedir
1558 sysconfdir
1559 datadir
1560 datarootdir
1561 libexecdir
1562 sbindir
1563 bindir
1564 program_transform_name
1565 prefix
1566 exec_prefix
1567 PACKAGE_URL
1568 PACKAGE_BUGREPORT
1569 PACKAGE_STRING
1570 PACKAGE_VERSION
1571 PACKAGE_TARNAME
1572 PACKAGE_NAME
1573 PATH_SEPARATOR
1574 SHELL
1575 am__quote'
1576 ac_subst_files=''
1577 ac_user_opts='
1578 enable_option_checking
1579 enable_silent_rules
1580 enable_maintainer_mode
1581 enable_dependency_tracking
1582 enable_largefile
1583 enable_threads
1584 enable_static
1585 enable_shared
1586 with_pic
1587 enable_fast_install
1588 with_aix_soname
1589 with_gnu_ld
1590 with_sysroot
1591 enable_libtool_lock
1592 enable_cross_guesses
1593 enable_socketpair_pipe
1594 '
1595       ac_precious_vars='build_alias
1596 host_alias
1597 target_alias
1598 CC
1599 CFLAGS
1600 LDFLAGS
1601 LIBS
1602 CPPFLAGS
1603 CPP
1604 LT_SYS_LIBRARY_PATH
1605 PKG_CONFIG
1606 PKG_CONFIG_PATH
1607 PKG_CONFIG_LIBDIR
1608 CHECK_CFLAGS
1609 CHECK_LIBS'
1610
1611
1612 # Initialize some variables set by options.
1613 ac_init_help=
1614 ac_init_version=false
1615 ac_unrecognized_opts=
1616 ac_unrecognized_sep=
1617 # The variables have the same names as the options, with
1618 # dashes changed to underlines.
1619 cache_file=/dev/null
1620 exec_prefix=NONE
1621 no_create=
1622 no_recursion=
1623 prefix=NONE
1624 program_prefix=NONE
1625 program_suffix=NONE
1626 program_transform_name=s,x,x,
1627 silent=
1628 site=
1629 srcdir=
1630 verbose=
1631 x_includes=NONE
1632 x_libraries=NONE
1633
1634 # Installation directory options.
1635 # These are left unexpanded so users can "make install exec_prefix=/foo"
1636 # and all the variables that are supposed to be based on exec_prefix
1637 # by default will actually change.
1638 # Use braces instead of parens because sh, perl, etc. also accept them.
1639 # (The list follows the same order as the GNU Coding Standards.)
1640 bindir='${exec_prefix}/bin'
1641 sbindir='${exec_prefix}/sbin'
1642 libexecdir='${exec_prefix}/libexec'
1643 datarootdir='${prefix}/share'
1644 datadir='${datarootdir}'
1645 sysconfdir='${prefix}/etc'
1646 sharedstatedir='${prefix}/com'
1647 localstatedir='${prefix}/var'
1648 runstatedir='${localstatedir}/run'
1649 includedir='${prefix}/include'
1650 oldincludedir='/usr/include'
1651 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1652 infodir='${datarootdir}/info'
1653 htmldir='${docdir}'
1654 dvidir='${docdir}'
1655 pdfdir='${docdir}'
1656 psdir='${docdir}'
1657 libdir='${exec_prefix}/lib'
1658 localedir='${datarootdir}/locale'
1659 mandir='${datarootdir}/man'
1660
1661 ac_prev=
1662 ac_dashdash=
1663 for ac_option
1664 do
1665   # If the previous option needs an argument, assign it.
1666   if test -n "$ac_prev"; then
1667     eval $ac_prev=\$ac_option
1668     ac_prev=
1669     continue
1670   fi
1671
1672   case $ac_option in
1673   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1674   *=)   ac_optarg= ;;
1675   *)    ac_optarg=yes ;;
1676   esac
1677
1678   case $ac_dashdash$ac_option in
1679   --)
1680     ac_dashdash=yes ;;
1681
1682   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1683     ac_prev=bindir ;;
1684   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1685     bindir=$ac_optarg ;;
1686
1687   -build | --build | --buil | --bui | --bu)
1688     ac_prev=build_alias ;;
1689   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1690     build_alias=$ac_optarg ;;
1691
1692   -cache-file | --cache-file | --cache-fil | --cache-fi \
1693   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1694     ac_prev=cache_file ;;
1695   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1696   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1697     cache_file=$ac_optarg ;;
1698
1699   --config-cache | -C)
1700     cache_file=config.cache ;;
1701
1702   -datadir | --datadir | --datadi | --datad)
1703     ac_prev=datadir ;;
1704   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1705     datadir=$ac_optarg ;;
1706
1707   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1708   | --dataroo | --dataro | --datar)
1709     ac_prev=datarootdir ;;
1710   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1711   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1712     datarootdir=$ac_optarg ;;
1713
1714   -disable-* | --disable-*)
1715     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1716     # Reject names that are not valid shell variable names.
1717     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1718       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1719     ac_useropt_orig=$ac_useropt
1720     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1721     case $ac_user_opts in
1722       *"
1723 "enable_$ac_useropt"
1724 "*) ;;
1725       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1726          ac_unrecognized_sep=', ';;
1727     esac
1728     eval enable_$ac_useropt=no ;;
1729
1730   -docdir | --docdir | --docdi | --doc | --do)
1731     ac_prev=docdir ;;
1732   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1733     docdir=$ac_optarg ;;
1734
1735   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1736     ac_prev=dvidir ;;
1737   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1738     dvidir=$ac_optarg ;;
1739
1740   -enable-* | --enable-*)
1741     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1742     # Reject names that are not valid shell variable names.
1743     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1744       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1745     ac_useropt_orig=$ac_useropt
1746     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1747     case $ac_user_opts in
1748       *"
1749 "enable_$ac_useropt"
1750 "*) ;;
1751       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1752          ac_unrecognized_sep=', ';;
1753     esac
1754     eval enable_$ac_useropt=\$ac_optarg ;;
1755
1756   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1757   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1758   | --exec | --exe | --ex)
1759     ac_prev=exec_prefix ;;
1760   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1761   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1762   | --exec=* | --exe=* | --ex=*)
1763     exec_prefix=$ac_optarg ;;
1764
1765   -gas | --gas | --ga | --g)
1766     # Obsolete; use --with-gas.
1767     with_gas=yes ;;
1768
1769   -help | --help | --hel | --he | -h)
1770     ac_init_help=long ;;
1771   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1772     ac_init_help=recursive ;;
1773   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1774     ac_init_help=short ;;
1775
1776   -host | --host | --hos | --ho)
1777     ac_prev=host_alias ;;
1778   -host=* | --host=* | --hos=* | --ho=*)
1779     host_alias=$ac_optarg ;;
1780
1781   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1782     ac_prev=htmldir ;;
1783   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1784   | --ht=*)
1785     htmldir=$ac_optarg ;;
1786
1787   -includedir | --includedir | --includedi | --included | --include \
1788   | --includ | --inclu | --incl | --inc)
1789     ac_prev=includedir ;;
1790   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1791   | --includ=* | --inclu=* | --incl=* | --inc=*)
1792     includedir=$ac_optarg ;;
1793
1794   -infodir | --infodir | --infodi | --infod | --info | --inf)
1795     ac_prev=infodir ;;
1796   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1797     infodir=$ac_optarg ;;
1798
1799   -libdir | --libdir | --libdi | --libd)
1800     ac_prev=libdir ;;
1801   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1802     libdir=$ac_optarg ;;
1803
1804   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1805   | --libexe | --libex | --libe)
1806     ac_prev=libexecdir ;;
1807   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1808   | --libexe=* | --libex=* | --libe=*)
1809     libexecdir=$ac_optarg ;;
1810
1811   -localedir | --localedir | --localedi | --localed | --locale)
1812     ac_prev=localedir ;;
1813   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1814     localedir=$ac_optarg ;;
1815
1816   -localstatedir | --localstatedir | --localstatedi | --localstated \
1817   | --localstate | --localstat | --localsta | --localst | --locals)
1818     ac_prev=localstatedir ;;
1819   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1820   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1821     localstatedir=$ac_optarg ;;
1822
1823   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1824     ac_prev=mandir ;;
1825   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1826     mandir=$ac_optarg ;;
1827
1828   -nfp | --nfp | --nf)
1829     # Obsolete; use --without-fp.
1830     with_fp=no ;;
1831
1832   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1833   | --no-cr | --no-c | -n)
1834     no_create=yes ;;
1835
1836   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1837   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1838     no_recursion=yes ;;
1839
1840   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1841   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1842   | --oldin | --oldi | --old | --ol | --o)
1843     ac_prev=oldincludedir ;;
1844   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1845   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1846   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1847     oldincludedir=$ac_optarg ;;
1848
1849   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1850     ac_prev=prefix ;;
1851   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1852     prefix=$ac_optarg ;;
1853
1854   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1855   | --program-pre | --program-pr | --program-p)
1856     ac_prev=program_prefix ;;
1857   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1858   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1859     program_prefix=$ac_optarg ;;
1860
1861   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1862   | --program-suf | --program-su | --program-s)
1863     ac_prev=program_suffix ;;
1864   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1865   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1866     program_suffix=$ac_optarg ;;
1867
1868   -program-transform-name | --program-transform-name \
1869   | --program-transform-nam | --program-transform-na \
1870   | --program-transform-n | --program-transform- \
1871   | --program-transform | --program-transfor \
1872   | --program-transfo | --program-transf \
1873   | --program-trans | --program-tran \
1874   | --progr-tra | --program-tr | --program-t)
1875     ac_prev=program_transform_name ;;
1876   -program-transform-name=* | --program-transform-name=* \
1877   | --program-transform-nam=* | --program-transform-na=* \
1878   | --program-transform-n=* | --program-transform-=* \
1879   | --program-transform=* | --program-transfor=* \
1880   | --program-transfo=* | --program-transf=* \
1881   | --program-trans=* | --program-tran=* \
1882   | --progr-tra=* | --program-tr=* | --program-t=*)
1883     program_transform_name=$ac_optarg ;;
1884
1885   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1886     ac_prev=pdfdir ;;
1887   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1888     pdfdir=$ac_optarg ;;
1889
1890   -psdir | --psdir | --psdi | --psd | --ps)
1891     ac_prev=psdir ;;
1892   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1893     psdir=$ac_optarg ;;
1894
1895   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896   | -silent | --silent | --silen | --sile | --sil)
1897     silent=yes ;;
1898
1899   -runstatedir | --runstatedir | --runstatedi | --runstated \
1900   | --runstate | --runstat | --runsta | --runst | --runs \
1901   | --run | --ru | --r)
1902     ac_prev=runstatedir ;;
1903   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1904   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1905   | --run=* | --ru=* | --r=*)
1906     runstatedir=$ac_optarg ;;
1907
1908   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1909     ac_prev=sbindir ;;
1910   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1911   | --sbi=* | --sb=*)
1912     sbindir=$ac_optarg ;;
1913
1914   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1915   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1916   | --sharedst | --shareds | --shared | --share | --shar \
1917   | --sha | --sh)
1918     ac_prev=sharedstatedir ;;
1919   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1920   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1921   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1922   | --sha=* | --sh=*)
1923     sharedstatedir=$ac_optarg ;;
1924
1925   -site | --site | --sit)
1926     ac_prev=site ;;
1927   -site=* | --site=* | --sit=*)
1928     site=$ac_optarg ;;
1929
1930   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1931     ac_prev=srcdir ;;
1932   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1933     srcdir=$ac_optarg ;;
1934
1935   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1936   | --syscon | --sysco | --sysc | --sys | --sy)
1937     ac_prev=sysconfdir ;;
1938   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1939   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1940     sysconfdir=$ac_optarg ;;
1941
1942   -target | --target | --targe | --targ | --tar | --ta | --t)
1943     ac_prev=target_alias ;;
1944   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1945     target_alias=$ac_optarg ;;
1946
1947   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1948     verbose=yes ;;
1949
1950   -version | --version | --versio | --versi | --vers | -V)
1951     ac_init_version=: ;;
1952
1953   -with-* | --with-*)
1954     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1955     # Reject names that are not valid shell variable names.
1956     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1957       as_fn_error $? "invalid package name: \`$ac_useropt'"
1958     ac_useropt_orig=$ac_useropt
1959     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1960     case $ac_user_opts in
1961       *"
1962 "with_$ac_useropt"
1963 "*) ;;
1964       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1965          ac_unrecognized_sep=', ';;
1966     esac
1967     eval with_$ac_useropt=\$ac_optarg ;;
1968
1969   -without-* | --without-*)
1970     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1971     # Reject names that are not valid shell variable names.
1972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1973       as_fn_error $? "invalid package name: \`$ac_useropt'"
1974     ac_useropt_orig=$ac_useropt
1975     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1976     case $ac_user_opts in
1977       *"
1978 "with_$ac_useropt"
1979 "*) ;;
1980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1981          ac_unrecognized_sep=', ';;
1982     esac
1983     eval with_$ac_useropt=no ;;
1984
1985   --x)
1986     # Obsolete; use --with-x.
1987     with_x=yes ;;
1988
1989   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1990   | --x-incl | --x-inc | --x-in | --x-i)
1991     ac_prev=x_includes ;;
1992   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1993   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1994     x_includes=$ac_optarg ;;
1995
1996   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1997   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1998     ac_prev=x_libraries ;;
1999   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2000   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2001     x_libraries=$ac_optarg ;;
2002
2003   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2004 Try \`$0 --help' for more information"
2005     ;;
2006
2007   *=*)
2008     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2009     # Reject names that are not valid shell variable names.
2010     case $ac_envvar in #(
2011       '' | [0-9]* | *[!_$as_cr_alnum]* )
2012       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2013     esac
2014     eval $ac_envvar=\$ac_optarg
2015     export $ac_envvar ;;
2016
2017   *)
2018     # FIXME: should be removed in autoconf 3.0.
2019     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2020     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2021       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2022     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2023     ;;
2024
2025   esac
2026 done
2027
2028 if test -n "$ac_prev"; then
2029   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2030   as_fn_error $? "missing argument to $ac_option"
2031 fi
2032
2033 if test -n "$ac_unrecognized_opts"; then
2034   case $enable_option_checking in
2035     no) ;;
2036     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2037     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2038   esac
2039 fi
2040
2041 # Check all directory arguments for consistency.
2042 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2043                 datadir sysconfdir sharedstatedir localstatedir includedir \
2044                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2045                 libdir localedir mandir runstatedir
2046 do
2047   eval ac_val=\$$ac_var
2048   # Remove trailing slashes.
2049   case $ac_val in
2050     */ )
2051       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2052       eval $ac_var=\$ac_val;;
2053   esac
2054   # Be sure to have absolute directory names.
2055   case $ac_val in
2056     [\\/$]* | ?:[\\/]* )  continue;;
2057     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2058   esac
2059   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2060 done
2061
2062 # There might be people who depend on the old broken behavior: `$host'
2063 # used to hold the argument of --host etc.
2064 # FIXME: To remove some day.
2065 build=$build_alias
2066 host=$host_alias
2067 target=$target_alias
2068
2069 # FIXME: To remove some day.
2070 if test "x$host_alias" != x; then
2071   if test "x$build_alias" = x; then
2072     cross_compiling=maybe
2073   elif test "x$build_alias" != "x$host_alias"; then
2074     cross_compiling=yes
2075   fi
2076 fi
2077
2078 ac_tool_prefix=
2079 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2080
2081 test "$silent" = yes && exec 6>/dev/null
2082
2083
2084 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2085 ac_ls_di=`ls -di .` &&
2086 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2087   as_fn_error $? "working directory cannot be determined"
2088 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2089   as_fn_error $? "pwd does not report name of working directory"
2090
2091
2092 # Find the source files, if location was not specified.
2093 if test -z "$srcdir"; then
2094   ac_srcdir_defaulted=yes
2095   # Try the directory containing this script, then the parent directory.
2096   ac_confdir=`$as_dirname -- "$as_myself" ||
2097 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2098          X"$as_myself" : 'X\(//\)[^/]' \| \
2099          X"$as_myself" : 'X\(//\)$' \| \
2100          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2101 printf "%s\n" X"$as_myself" |
2102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2103             s//\1/
2104             q
2105           }
2106           /^X\(\/\/\)[^/].*/{
2107             s//\1/
2108             q
2109           }
2110           /^X\(\/\/\)$/{
2111             s//\1/
2112             q
2113           }
2114           /^X\(\/\).*/{
2115             s//\1/
2116             q
2117           }
2118           s/.*/./; q'`
2119   srcdir=$ac_confdir
2120   if test ! -r "$srcdir/$ac_unique_file"; then
2121     srcdir=..
2122   fi
2123 else
2124   ac_srcdir_defaulted=no
2125 fi
2126 if test ! -r "$srcdir/$ac_unique_file"; then
2127   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2128   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2129 fi
2130 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2131 ac_abs_confdir=`(
2132         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2133         pwd)`
2134 # When building in place, set srcdir=.
2135 if test "$ac_abs_confdir" = "$ac_pwd"; then
2136   srcdir=.
2137 fi
2138 # Remove unnecessary trailing slashes from srcdir.
2139 # Double slashes in file names in object file debugging info
2140 # mess up M-x gdb in Emacs.
2141 case $srcdir in
2142 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2143 esac
2144 for ac_var in $ac_precious_vars; do
2145   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2146   eval ac_env_${ac_var}_value=\$${ac_var}
2147   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2148   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2149 done
2150
2151 #
2152 # Report the --help message.
2153 #
2154 if test "$ac_init_help" = "long"; then
2155   # Omit some internal or obsolete options to make the list less imposing.
2156   # This message is too long to be a string in the A/UX 3.1 sh.
2157   cat <<_ACEOF
2158 \`configure' configures libpipeline 1.5.4 to adapt to many kinds of systems.
2159
2160 Usage: $0 [OPTION]... [VAR=VALUE]...
2161
2162 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2163 VAR=VALUE.  See below for descriptions of some of the useful variables.
2164
2165 Defaults for the options are specified in brackets.
2166
2167 Configuration:
2168   -h, --help              display this help and exit
2169       --help=short        display options specific to this package
2170       --help=recursive    display the short help of all the included packages
2171   -V, --version           display version information and exit
2172   -q, --quiet, --silent   do not print \`checking ...' messages
2173       --cache-file=FILE   cache test results in FILE [disabled]
2174   -C, --config-cache      alias for \`--cache-file=config.cache'
2175   -n, --no-create         do not create output files
2176       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2177
2178 Installation directories:
2179   --prefix=PREFIX         install architecture-independent files in PREFIX
2180                           [$ac_default_prefix]
2181   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2182                           [PREFIX]
2183
2184 By default, \`make install' will install all the files in
2185 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2186 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2187 for instance \`--prefix=\$HOME'.
2188
2189 For better control, use the options below.
2190
2191 Fine tuning of the installation directories:
2192   --bindir=DIR            user executables [EPREFIX/bin]
2193   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2194   --libexecdir=DIR        program executables [EPREFIX/libexec]
2195   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2196   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2197   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2198   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2199   --libdir=DIR            object code libraries [EPREFIX/lib]
2200   --includedir=DIR        C header files [PREFIX/include]
2201   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2202   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2203   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2204   --infodir=DIR           info documentation [DATAROOTDIR/info]
2205   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2206   --mandir=DIR            man documentation [DATAROOTDIR/man]
2207   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2208   --htmldir=DIR           html documentation [DOCDIR]
2209   --dvidir=DIR            dvi documentation [DOCDIR]
2210   --pdfdir=DIR            pdf documentation [DOCDIR]
2211   --psdir=DIR             ps documentation [DOCDIR]
2212 _ACEOF
2213
2214   cat <<\_ACEOF
2215
2216 Program names:
2217   --program-prefix=PREFIX            prepend PREFIX to installed program names
2218   --program-suffix=SUFFIX            append SUFFIX to installed program names
2219   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2220
2221 System types:
2222   --build=BUILD     configure for building on BUILD [guessed]
2223   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2224 _ACEOF
2225 fi
2226
2227 if test -n "$ac_init_help"; then
2228   case $ac_init_help in
2229      short | recursive ) echo "Configuration of libpipeline 1.5.4:";;
2230    esac
2231   cat <<\_ACEOF
2232
2233 Optional Features:
2234   --disable-option-checking  ignore unrecognized --enable/--with options
2235   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2236   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2237   --enable-silent-rules   less verbose build output (undo: "make V=1")
2238   --disable-silent-rules  verbose build output (undo: "make V=0")
2239   --enable-maintainer-mode
2240                           enable make rules and dependencies not useful (and
2241                           sometimes confusing) to the casual installer
2242   --enable-dependency-tracking
2243                           do not reject slow dependency extractors
2244   --disable-dependency-tracking
2245                           speeds up one-time build
2246   --disable-largefile     omit support for large files
2247   --enable-threads={isoc|posix|isoc+posix|windows}
2248                           specify multithreading API
2249   --disable-threads       build without multithread safety
2250   --enable-static[=PKGS]  build static libraries [default=no]
2251   --enable-shared[=PKGS]  build shared libraries [default=yes]
2252   --enable-fast-install[=PKGS]
2253                           optimize for fast installation [default=yes]
2254   --disable-libtool-lock  avoid locking (might break parallel builds)
2255   --enable-cross-guesses={conservative|risky}
2256                           specify policy for cross-compilation guesses
2257   --enable-socketpair-pipe
2258                           Use socketpair(2) as fast replacement for pipe(2)
2259
2260 Optional Packages:
2261   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2262   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2263   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2264                           both]
2265   --with-aix-soname=aix|svr4|both
2266                           shared library versioning (aka "SONAME") variant to
2267                           provide on AIX, [default=aix].
2268   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2269   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2270                           compiler's sysroot if not specified).
2271
2272 Some influential environment variables:
2273   CC          C compiler command
2274   CFLAGS      C compiler flags
2275   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2276               nonstandard directory <lib dir>
2277   LIBS        libraries to pass to the linker, e.g. -l<library>
2278   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2279               you have headers in a nonstandard directory <include dir>
2280   CPP         C preprocessor
2281   LT_SYS_LIBRARY_PATH
2282               User-defined run-time library search path.
2283   PKG_CONFIG  path to pkg-config utility
2284   PKG_CONFIG_PATH
2285               directories to add to pkg-config's search path
2286   PKG_CONFIG_LIBDIR
2287               path overriding pkg-config's built-in search path
2288   CHECK_CFLAGS
2289               C compiler flags for CHECK, overriding pkg-config
2290   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2291
2292 Use these variables to override the choices made by `configure' or to help
2293 it to find libraries and programs with nonstandard names/locations.
2294
2295 Report bugs to <cjwatson@debian.org>.
2296 _ACEOF
2297 ac_status=$?
2298 fi
2299
2300 if test "$ac_init_help" = "recursive"; then
2301   # If there are subdirs, report their specific --help.
2302   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2303     test -d "$ac_dir" ||
2304       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2305       continue
2306     ac_builddir=.
2307
2308 case "$ac_dir" in
2309 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2310 *)
2311   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2312   # A ".." for each directory in $ac_dir_suffix.
2313   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2314   case $ac_top_builddir_sub in
2315   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2316   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2317   esac ;;
2318 esac
2319 ac_abs_top_builddir=$ac_pwd
2320 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2321 # for backward compatibility:
2322 ac_top_builddir=$ac_top_build_prefix
2323
2324 case $srcdir in
2325   .)  # We are building in place.
2326     ac_srcdir=.
2327     ac_top_srcdir=$ac_top_builddir_sub
2328     ac_abs_top_srcdir=$ac_pwd ;;
2329   [\\/]* | ?:[\\/]* )  # Absolute name.
2330     ac_srcdir=$srcdir$ac_dir_suffix;
2331     ac_top_srcdir=$srcdir
2332     ac_abs_top_srcdir=$srcdir ;;
2333   *) # Relative name.
2334     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2335     ac_top_srcdir=$ac_top_build_prefix$srcdir
2336     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2337 esac
2338 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2339
2340     cd "$ac_dir" || { ac_status=$?; continue; }
2341     # Check for configure.gnu first; this name is used for a wrapper for
2342     # Metaconfig's "Configure" on case-insensitive file systems.
2343     if test -f "$ac_srcdir/configure.gnu"; then
2344       echo &&
2345       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2346     elif test -f "$ac_srcdir/configure"; then
2347       echo &&
2348       $SHELL "$ac_srcdir/configure" --help=recursive
2349     else
2350       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2351     fi || ac_status=$?
2352     cd "$ac_pwd" || { ac_status=$?; break; }
2353   done
2354 fi
2355
2356 test -n "$ac_init_help" && exit $ac_status
2357 if $ac_init_version; then
2358   cat <<\_ACEOF
2359 libpipeline configure 1.5.4
2360 generated by GNU Autoconf 2.71
2361
2362 Copyright (C) 2021 Free Software Foundation, Inc.
2363 This configure script is free software; the Free Software Foundation
2364 gives unlimited permission to copy, distribute and modify it.
2365 _ACEOF
2366   exit
2367 fi
2368
2369 ## ------------------------ ##
2370 ## Autoconf initialization. ##
2371 ## ------------------------ ##
2372
2373 # ac_fn_c_try_compile LINENO
2374 # --------------------------
2375 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2376 ac_fn_c_try_compile ()
2377 {
2378   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379   rm -f conftest.$ac_objext conftest.beam
2380   if { { ac_try="$ac_compile"
2381 case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 printf "%s\n" "$ac_try_echo"; } >&5
2387   (eval "$ac_compile") 2>conftest.err
2388   ac_status=$?
2389   if test -s conftest.err; then
2390     grep -v '^ *+' conftest.err >conftest.er1
2391     cat conftest.er1 >&5
2392     mv -f conftest.er1 conftest.err
2393   fi
2394   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395   test $ac_status = 0; } && {
2396          test -z "$ac_c_werror_flag" ||
2397          test ! -s conftest.err
2398        } && test -s conftest.$ac_objext
2399 then :
2400   ac_retval=0
2401 else $as_nop
2402   printf "%s\n" "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405         ac_retval=1
2406 fi
2407   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408   as_fn_set_status $ac_retval
2409
2410 } # ac_fn_c_try_compile
2411
2412 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2413 # -------------------------------------------------------
2414 # Tests whether HEADER exists and can be compiled using the include files in
2415 # INCLUDES, setting the cache variable VAR accordingly.
2416 ac_fn_c_check_header_compile ()
2417 {
2418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 printf %s "checking for $2... " >&6; }
2421 if eval test \${$3+y}
2422 then :
2423   printf %s "(cached) " >&6
2424 else $as_nop
2425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h.  */
2427 $4
2428 #include <$2>
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"
2431 then :
2432   eval "$3=yes"
2433 else $as_nop
2434   eval "$3=no"
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2437 fi
2438 eval ac_res=\$$3
2439                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 printf "%s\n" "$ac_res" >&6; }
2441   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442
2443 } # ac_fn_c_check_header_compile
2444
2445 # ac_fn_c_try_cpp LINENO
2446 # ----------------------
2447 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_c_try_cpp ()
2449 {
2450   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451   if { { ac_try="$ac_cpp conftest.$ac_ext"
2452 case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 printf "%s\n" "$ac_try_echo"; } >&5
2458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2459   ac_status=$?
2460   if test -s conftest.err; then
2461     grep -v '^ *+' conftest.err >conftest.er1
2462     cat conftest.er1 >&5
2463     mv -f conftest.er1 conftest.err
2464   fi
2465   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466   test $ac_status = 0; } > conftest.i && {
2467          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2468          test ! -s conftest.err
2469        }
2470 then :
2471   ac_retval=0
2472 else $as_nop
2473   printf "%s\n" "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476     ac_retval=1
2477 fi
2478   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2479   as_fn_set_status $ac_retval
2480
2481 } # ac_fn_c_try_cpp
2482
2483 # ac_fn_c_try_link LINENO
2484 # -----------------------
2485 # Try to link conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_c_try_link ()
2487 {
2488   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2490   if { { ac_try="$ac_link"
2491 case "(($ac_try" in
2492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493   *) ac_try_echo=$ac_try;;
2494 esac
2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 printf "%s\n" "$ac_try_echo"; } >&5
2497   (eval "$ac_link") 2>conftest.err
2498   ac_status=$?
2499   if test -s conftest.err; then
2500     grep -v '^ *+' conftest.err >conftest.er1
2501     cat conftest.er1 >&5
2502     mv -f conftest.er1 conftest.err
2503   fi
2504   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505   test $ac_status = 0; } && {
2506          test -z "$ac_c_werror_flag" ||
2507          test ! -s conftest.err
2508        } && test -s conftest$ac_exeext && {
2509          test "$cross_compiling" = yes ||
2510          test -x conftest$ac_exeext
2511        }
2512 then :
2513   ac_retval=0
2514 else $as_nop
2515   printf "%s\n" "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518         ac_retval=1
2519 fi
2520   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2521   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2522   # interfere with the next link command; also delete a directory that is
2523   # left behind by Apple's compiler.  We do this before executing the actions.
2524   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2525   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2526   as_fn_set_status $ac_retval
2527
2528 } # ac_fn_c_try_link
2529
2530 # ac_fn_c_check_func LINENO FUNC VAR
2531 # ----------------------------------
2532 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2533 ac_fn_c_check_func ()
2534 {
2535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 printf %s "checking for $2... " >&6; }
2538 if eval test \${$3+y}
2539 then :
2540   printf %s "(cached) " >&6
2541 else $as_nop
2542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h.  */
2544 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2546 #define $2 innocuous_$2
2547
2548 /* System header to define __stub macros and hopefully few prototypes,
2549    which can conflict with char $2 (); below.  */
2550
2551 #include <limits.h>
2552 #undef $2
2553
2554 /* Override any GCC internal prototype to avoid an error.
2555    Use char because int might match the return type of a GCC
2556    builtin and then its argument prototype would still apply.  */
2557 #ifdef __cplusplus
2558 extern "C"
2559 #endif
2560 char $2 ();
2561 /* The GNU C library defines this for functions which it implements
2562     to always fail with ENOSYS.  Some functions are actually named
2563     something starting with __ and the normal name is an alias.  */
2564 #if defined __stub_$2 || defined __stub___$2
2565 choke me
2566 #endif
2567
2568 int
2569 main (void)
2570 {
2571 return $2 ();
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 if ac_fn_c_try_link "$LINENO"
2577 then :
2578   eval "$3=yes"
2579 else $as_nop
2580   eval "$3=no"
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2583     conftest$ac_exeext conftest.$ac_ext
2584 fi
2585 eval ac_res=\$$3
2586                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 printf "%s\n" "$ac_res" >&6; }
2588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589
2590 } # ac_fn_c_check_func
2591
2592 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2593 # -------------------------------------------
2594 # Tests whether TYPE exists after having included INCLUDES, setting cache
2595 # variable VAR accordingly.
2596 ac_fn_c_check_type ()
2597 {
2598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 printf %s "checking for $2... " >&6; }
2601 if eval test \${$3+y}
2602 then :
2603   printf %s "(cached) " >&6
2604 else $as_nop
2605   eval "$3=no"
2606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h.  */
2608 $4
2609 int
2610 main (void)
2611 {
2612 if (sizeof ($2))
2613          return 0;
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 if ac_fn_c_try_compile "$LINENO"
2619 then :
2620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 $4
2623 int
2624 main (void)
2625 {
2626 if (sizeof (($2)))
2627             return 0;
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_c_try_compile "$LINENO"
2633 then :
2634
2635 else $as_nop
2636   eval "$3=yes"
2637 fi
2638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2639 fi
2640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2641 fi
2642 eval ac_res=\$$3
2643                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644 printf "%s\n" "$ac_res" >&6; }
2645   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646
2647 } # ac_fn_c_check_type
2648
2649 # ac_fn_c_try_run LINENO
2650 # ----------------------
2651 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2652 # executables *can* be run.
2653 ac_fn_c_try_run ()
2654 {
2655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656   if { { ac_try="$ac_link"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 printf "%s\n" "$ac_try_echo"; } >&5
2663   (eval "$ac_link") 2>&5
2664   ac_status=$?
2665   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2667   { { case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 printf "%s\n" "$ac_try_echo"; } >&5
2673   (eval "$ac_try") 2>&5
2674   ac_status=$?
2675   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676   test $ac_status = 0; }; }
2677 then :
2678   ac_retval=0
2679 else $as_nop
2680   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2681        printf "%s\n" "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684        ac_retval=$ac_status
2685 fi
2686   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2687   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2688   as_fn_set_status $ac_retval
2689
2690 } # ac_fn_c_try_run
2691
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2696 # computed
2697 ac_fn_c_compute_int ()
2698 {
2699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700   if test "$cross_compiling" = yes; then
2701     # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h.  */
2704 $4
2705 int
2706 main (void)
2707 {
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2709 test_array [0] = 0;
2710 return test_array [0];
2711
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 if ac_fn_c_try_compile "$LINENO"
2717 then :
2718   ac_lo=0 ac_mid=0
2719   while :; do
2720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h.  */
2722 $4
2723 int
2724 main (void)
2725 {
2726 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2727 test_array [0] = 0;
2728 return test_array [0];
2729
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 if ac_fn_c_try_compile "$LINENO"
2735 then :
2736   ac_hi=$ac_mid; break
2737 else $as_nop
2738   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2739                         if test $ac_lo -le $ac_mid; then
2740                           ac_lo= ac_hi=
2741                           break
2742                         fi
2743                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2744 fi
2745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2746   done
2747 else $as_nop
2748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h.  */
2750 $4
2751 int
2752 main (void)
2753 {
2754 static int test_array [1 - 2 * !(($2) < 0)];
2755 test_array [0] = 0;
2756 return test_array [0];
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 if ac_fn_c_try_compile "$LINENO"
2763 then :
2764   ac_hi=-1 ac_mid=-1
2765   while :; do
2766     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h.  */
2768 $4
2769 int
2770 main (void)
2771 {
2772 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2773 test_array [0] = 0;
2774 return test_array [0];
2775
2776   ;
2777   return 0;
2778 }
2779 _ACEOF
2780 if ac_fn_c_try_compile "$LINENO"
2781 then :
2782   ac_lo=$ac_mid; break
2783 else $as_nop
2784   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2785                         if test $ac_mid -le $ac_hi; then
2786                           ac_lo= ac_hi=
2787                           break
2788                         fi
2789                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2790 fi
2791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2792   done
2793 else $as_nop
2794   ac_lo= ac_hi=
2795 fi
2796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2797 fi
2798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2799 # Binary search between lo and hi bounds.
2800 while test "x$ac_lo" != "x$ac_hi"; do
2801   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h.  */
2804 $4
2805 int
2806 main (void)
2807 {
2808 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2809 test_array [0] = 0;
2810 return test_array [0];
2811
2812   ;
2813   return 0;
2814 }
2815 _ACEOF
2816 if ac_fn_c_try_compile "$LINENO"
2817 then :
2818   ac_hi=$ac_mid
2819 else $as_nop
2820   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2821 fi
2822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2823 done
2824 case $ac_lo in #((
2825 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2826 '') ac_retval=1 ;;
2827 esac
2828   else
2829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h.  */
2831 $4
2832 static long int longval (void) { return $2; }
2833 static unsigned long int ulongval (void) { return $2; }
2834 #include <stdio.h>
2835 #include <stdlib.h>
2836 int
2837 main (void)
2838 {
2839
2840   FILE *f = fopen ("conftest.val", "w");
2841   if (! f)
2842     return 1;
2843   if (($2) < 0)
2844     {
2845       long int i = longval ();
2846       if (i != ($2))
2847         return 1;
2848       fprintf (f, "%ld", i);
2849     }
2850   else
2851     {
2852       unsigned long int i = ulongval ();
2853       if (i != ($2))
2854         return 1;
2855       fprintf (f, "%lu", i);
2856     }
2857   /* Do not output a trailing newline, as this causes \r\n confusion
2858      on some platforms.  */
2859   return ferror (f) || fclose (f) != 0;
2860
2861   ;
2862   return 0;
2863 }
2864 _ACEOF
2865 if ac_fn_c_try_run "$LINENO"
2866 then :
2867   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2868 else $as_nop
2869   ac_retval=1
2870 fi
2871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2872   conftest.$ac_objext conftest.beam conftest.$ac_ext
2873 rm -f conftest.val
2874
2875   fi
2876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2877   as_fn_set_status $ac_retval
2878
2879 } # ac_fn_c_compute_int
2880
2881 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2882 # ------------------------------------------------------------------
2883 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2884 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2885 ac_fn_check_decl ()
2886 {
2887   ac_save_ac_compile="$ac_compile"
2888   if test -n "$ac_compile_for_check_decl"; then
2889     ac_compile="$ac_compile_for_check_decl"
2890   fi
2891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2892   as_decl_name=`echo $2|sed 's/ *(.*//'`
2893   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2894 printf %s "checking whether $as_decl_name is declared... " >&6; }
2895 if eval test \${$3+y}
2896 then :
2897   printf %s "(cached) " >&6
2898 else $as_nop
2899   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2900   eval ac_save_FLAGS=\$$6
2901   as_fn_append $6 " $5"
2902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h.  */
2904 $4
2905 int
2906 main (void)
2907 {
2908 #ifndef $as_decl_name
2909 #ifdef __cplusplus
2910   (void) $as_decl_use;
2911 #else
2912   (void) $as_decl_name;
2913 #endif
2914 #endif
2915
2916   ;
2917   return 0;
2918 }
2919 _ACEOF
2920 if ac_fn_c_try_compile "$LINENO"
2921 then :
2922   eval "$3=yes"
2923 else $as_nop
2924   eval "$3=no"
2925 fi
2926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2927   eval $6=\$ac_save_FLAGS
2928
2929 fi
2930 eval ac_res=\$$3
2931                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2932 printf "%s\n" "$ac_res" >&6; }
2933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934   ac_compile="$ac_save_ac_compile"
2935
2936 } # ac_fn_check_decl
2937
2938 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2939 # ----------------------------------------------------
2940 # Tries to find if the field MEMBER exists in type AGGR, after including
2941 # INCLUDES, setting cache variable VAR accordingly.
2942 ac_fn_c_check_member ()
2943 {
2944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2946 printf %s "checking for $2.$3... " >&6; }
2947 if eval test \${$4+y}
2948 then :
2949   printf %s "(cached) " >&6
2950 else $as_nop
2951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h.  */
2953 $5
2954 int
2955 main (void)
2956 {
2957 static $2 ac_aggr;
2958 if (ac_aggr.$3)
2959 return 0;
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 if ac_fn_c_try_compile "$LINENO"
2965 then :
2966   eval "$4=yes"
2967 else $as_nop
2968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969 /* end confdefs.h.  */
2970 $5
2971 int
2972 main (void)
2973 {
2974 static $2 ac_aggr;
2975 if (sizeof ac_aggr.$3)
2976 return 0;
2977   ;
2978   return 0;
2979 }
2980 _ACEOF
2981 if ac_fn_c_try_compile "$LINENO"
2982 then :
2983   eval "$4=yes"
2984 else $as_nop
2985   eval "$4=no"
2986 fi
2987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2988 fi
2989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2990 fi
2991 eval ac_res=\$$4
2992                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2993 printf "%s\n" "$ac_res" >&6; }
2994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2995
2996 } # ac_fn_c_check_member
2997 ac_configure_args_raw=
2998 for ac_arg
2999 do
3000   case $ac_arg in
3001   *\'*)
3002     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3003   esac
3004   as_fn_append ac_configure_args_raw " '$ac_arg'"
3005 done
3006
3007 case $ac_configure_args_raw in
3008   *$as_nl*)
3009     ac_safe_unquote= ;;
3010   *)
3011     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
3012     ac_unsafe_a="$ac_unsafe_z#~"
3013     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3014     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3015 esac
3016
3017 cat >config.log <<_ACEOF
3018 This file contains any messages produced by compilers while
3019 running configure, to aid debugging if configure makes a mistake.
3020
3021 It was created by libpipeline $as_me 1.5.4, which was
3022 generated by GNU Autoconf 2.71.  Invocation command line was
3023
3024   $ $0$ac_configure_args_raw
3025
3026 _ACEOF
3027 exec 5>>config.log
3028 {
3029 cat <<_ASUNAME
3030 ## --------- ##
3031 ## Platform. ##
3032 ## --------- ##
3033
3034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3039
3040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3041 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3042
3043 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3044 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3046 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3047 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3048 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3049 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3050
3051 _ASUNAME
3052
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   case $as_dir in #(((
3058     '') as_dir=./ ;;
3059     */) ;;
3060     *) as_dir=$as_dir/ ;;
3061   esac
3062     printf "%s\n" "PATH: $as_dir"
3063   done
3064 IFS=$as_save_IFS
3065
3066 } >&5
3067
3068 cat >&5 <<_ACEOF
3069
3070
3071 ## ----------- ##
3072 ## Core tests. ##
3073 ## ----------- ##
3074
3075 _ACEOF
3076
3077
3078 # Keep a trace of the command line.
3079 # Strip out --no-create and --no-recursion so they do not pile up.
3080 # Strip out --silent because we don't want to record it for future runs.
3081 # Also quote any args containing shell meta-characters.
3082 # Make two passes to allow for proper duplicate-argument suppression.
3083 ac_configure_args=
3084 ac_configure_args0=
3085 ac_configure_args1=
3086 ac_must_keep_next=false
3087 for ac_pass in 1 2
3088 do
3089   for ac_arg
3090   do
3091     case $ac_arg in
3092     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3093     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3094     | -silent | --silent | --silen | --sile | --sil)
3095       continue ;;
3096     *\'*)
3097       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3098     esac
3099     case $ac_pass in
3100     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3101     2)
3102       as_fn_append ac_configure_args1 " '$ac_arg'"
3103       if test $ac_must_keep_next = true; then
3104         ac_must_keep_next=false # Got value, back to normal.
3105       else
3106         case $ac_arg in
3107           *=* | --config-cache | -C | -disable-* | --disable-* \
3108           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3109           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3110           | -with-* | --with-* | -without-* | --without-* | --x)
3111             case "$ac_configure_args0 " in
3112               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3113             esac
3114             ;;
3115           -* ) ac_must_keep_next=true ;;
3116         esac
3117       fi
3118       as_fn_append ac_configure_args " '$ac_arg'"
3119       ;;
3120     esac
3121   done
3122 done
3123 { ac_configure_args0=; unset ac_configure_args0;}
3124 { ac_configure_args1=; unset ac_configure_args1;}
3125
3126 # When interrupted or exit'd, cleanup temporary files, and complete
3127 # config.log.  We remove comments because anyway the quotes in there
3128 # would cause problems or look ugly.
3129 # WARNING: Use '\'' to represent an apostrophe within the trap.
3130 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3131 trap 'exit_status=$?
3132   # Sanitize IFS.
3133   IFS=" ""      $as_nl"
3134   # Save into config.log some information that might help in debugging.
3135   {
3136     echo
3137
3138     printf "%s\n" "## ---------------- ##
3139 ## Cache variables. ##
3140 ## ---------------- ##"
3141     echo
3142     # The following way of writing the cache mishandles newlines in values,
3143 (
3144   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3145     eval ac_val=\$$ac_var
3146     case $ac_val in #(
3147     *${as_nl}*)
3148       case $ac_var in #(
3149       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3150 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3151       esac
3152       case $ac_var in #(
3153       _ | IFS | as_nl) ;; #(
3154       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3155       *) { eval $ac_var=; unset $ac_var;} ;;
3156       esac ;;
3157     esac
3158   done
3159   (set) 2>&1 |
3160     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3161     *${as_nl}ac_space=\ *)
3162       sed -n \
3163         "s/'\''/'\''\\\\'\'''\''/g;
3164           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3165       ;; #(
3166     *)
3167       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3168       ;;
3169     esac |
3170     sort
3171 )
3172     echo
3173
3174     printf "%s\n" "## ----------------- ##
3175 ## Output variables. ##
3176 ## ----------------- ##"
3177     echo
3178     for ac_var in $ac_subst_vars
3179     do
3180       eval ac_val=\$$ac_var
3181       case $ac_val in
3182       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3183       esac
3184       printf "%s\n" "$ac_var='\''$ac_val'\''"
3185     done | sort
3186     echo
3187
3188     if test -n "$ac_subst_files"; then
3189       printf "%s\n" "## ------------------- ##
3190 ## File substitutions. ##
3191 ## ------------------- ##"
3192       echo
3193       for ac_var in $ac_subst_files
3194       do
3195         eval ac_val=\$$ac_var
3196         case $ac_val in
3197         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3198         esac
3199         printf "%s\n" "$ac_var='\''$ac_val'\''"
3200       done | sort
3201       echo
3202     fi
3203
3204     if test -s confdefs.h; then
3205       printf "%s\n" "## ----------- ##
3206 ## confdefs.h. ##
3207 ## ----------- ##"
3208       echo
3209       cat confdefs.h
3210       echo
3211     fi
3212     test "$ac_signal" != 0 &&
3213       printf "%s\n" "$as_me: caught signal $ac_signal"
3214     printf "%s\n" "$as_me: exit $exit_status"
3215   } >&5
3216   rm -f core *.core core.conftest.* &&
3217     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3218     exit $exit_status
3219 ' 0
3220 for ac_signal in 1 2 13 15; do
3221   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3222 done
3223 ac_signal=0
3224
3225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3226 rm -f -r conftest* confdefs.h
3227
3228 printf "%s\n" "/* confdefs.h */" > confdefs.h
3229
3230 # Predefined preprocessor variables.
3231
3232 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3233
3234 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3235
3236 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3237
3238 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3239
3240 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3241
3242 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3243
3244
3245 # Let the site file select an alternate cache file if it wants to.
3246 # Prefer an explicitly selected file to automatically selected ones.
3247 if test -n "$CONFIG_SITE"; then
3248   ac_site_files="$CONFIG_SITE"
3249 elif test "x$prefix" != xNONE; then
3250   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3251 else
3252   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3253 fi
3254
3255 for ac_site_file in $ac_site_files
3256 do
3257   case $ac_site_file in #(
3258   */*) :
3259      ;; #(
3260   *) :
3261     ac_site_file=./$ac_site_file ;;
3262 esac
3263   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3264     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3265 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3266     sed 's/^/| /' "$ac_site_file" >&5
3267     . "$ac_site_file" \
3268       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error $? "failed to load site script $ac_site_file
3271 See \`config.log' for more details" "$LINENO" 5; }
3272   fi
3273 done
3274
3275 if test -r "$cache_file"; then
3276   # Some versions of bash will fail to source /dev/null (special files
3277   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3278   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3279     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3280 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3281     case $cache_file in
3282       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3283       *)                      . "./$cache_file";;
3284     esac
3285   fi
3286 else
3287   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3288 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3289   >$cache_file
3290 fi
3291
3292 # Test code for whether the C compiler supports C89 (global declarations)
3293 ac_c_conftest_c89_globals='
3294 /* Does the compiler advertise C89 conformance?
3295    Do not test the value of __STDC__, because some compilers set it to 0
3296    while being otherwise adequately conformant. */
3297 #if !defined __STDC__
3298 # error "Compiler does not advertise C89 conformance"
3299 #endif
3300
3301 #include <stddef.h>
3302 #include <stdarg.h>
3303 struct stat;
3304 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3305 struct buf { int x; };
3306 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3307 static char *e (p, i)
3308      char **p;
3309      int i;
3310 {
3311   return p[i];
3312 }
3313 static char *f (char * (*g) (char **, int), char **p, ...)
3314 {
3315   char *s;
3316   va_list v;
3317   va_start (v,p);
3318   s = g (p, va_arg (v,int));
3319   va_end (v);
3320   return s;
3321 }
3322
3323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3324    function prototypes and stuff, but not \xHH hex character constants.
3325    These do not provoke an error unfortunately, instead are silently treated
3326    as an "x".  The following induces an error, until -std is added to get
3327    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3328    array size at least.  It is necessary to write \x00 == 0 to get something
3329    that is true only with -std.  */
3330 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3331
3332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333    inside strings and character constants.  */
3334 #define FOO(x) '\''x'\''
3335 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3336
3337 int test (int i, double x);
3338 struct s1 {int (*f) (int a);};
3339 struct s2 {int (*f) (double a);};
3340 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3341                int, int);'
3342
3343 # Test code for whether the C compiler supports C89 (body of main).
3344 ac_c_conftest_c89_main='
3345 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3346 '
3347
3348 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3349 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3350 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3351 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3352 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3353 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3354 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3355 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3356 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3357 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3358 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3359 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3360 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3361 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3362 as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME"
3363 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
3364 as_fn_append ac_func_c_list " getrandom HAVE_GETRANDOM"
3365 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3366 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3367 as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H"
3368 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3369 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
3370 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
3371 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3372 as_fn_append ac_func_c_list " setenv HAVE_SETENV"
3373 as_fn_append ac_func_c_list " sigaction HAVE_SIGACTION"
3374 as_fn_append ac_func_c_list " sigaltstack HAVE_SIGALTSTACK"
3375 as_fn_append ac_func_c_list " siginterrupt HAVE_SIGINTERRUPT"
3376 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3377 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3378 as_fn_append ac_func_c_list " strndup HAVE_STRNDUP"
3379 as_fn_append ac_header_c_list " sys/random.h sys_random_h HAVE_SYS_RANDOM_H"
3380 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
3381 as_fn_append ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H"
3382 as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF"
3383 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
3384 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
3385 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3386 as_fn_append ac_func_c_list " fork HAVE_FORK"
3387 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3388
3389 # Auxiliary files required by this configure script.
3390 ac_aux_files="ltmain.sh ar-lib config.guess config.sub missing install-sh"
3391
3392 # Locations in which to look for auxiliary files.
3393 ac_aux_dir_candidates="${srcdir}/build-aux"
3394
3395 # Search for a directory containing all of the required auxiliary files,
3396 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3397 # If we don't find one directory that contains all the files we need,
3398 # we report the set of missing files from the *first* directory in
3399 # $ac_aux_dir_candidates and give up.
3400 ac_missing_aux_files=""
3401 ac_first_candidate=:
3402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 as_found=false
3405 for as_dir in $ac_aux_dir_candidates
3406 do
3407   IFS=$as_save_IFS
3408   case $as_dir in #(((
3409     '') as_dir=./ ;;
3410     */) ;;
3411     *) as_dir=$as_dir/ ;;
3412   esac
3413   as_found=:
3414
3415   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3416   ac_aux_dir_found=yes
3417   ac_install_sh=
3418   for ac_aux in $ac_aux_files
3419   do
3420     # As a special case, if "install-sh" is required, that requirement
3421     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3422     # and $ac_install_sh is set appropriately for whichever one is found.
3423     if test x"$ac_aux" = x"install-sh"
3424     then
3425       if test -f "${as_dir}install-sh"; then
3426         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3427         ac_install_sh="${as_dir}install-sh -c"
3428       elif test -f "${as_dir}install.sh"; then
3429         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3430         ac_install_sh="${as_dir}install.sh -c"
3431       elif test -f "${as_dir}shtool"; then
3432         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3433         ac_install_sh="${as_dir}shtool install -c"
3434       else
3435         ac_aux_dir_found=no
3436         if $ac_first_candidate; then
3437           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3438         else
3439           break
3440         fi
3441       fi
3442     else
3443       if test -f "${as_dir}${ac_aux}"; then
3444         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3445       else
3446         ac_aux_dir_found=no
3447         if $ac_first_candidate; then
3448           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3449         else
3450           break
3451         fi
3452       fi
3453     fi
3454   done
3455   if test "$ac_aux_dir_found" = yes; then
3456     ac_aux_dir="$as_dir"
3457     break
3458   fi
3459   ac_first_candidate=false
3460
3461   as_found=false
3462 done
3463 IFS=$as_save_IFS
3464 if $as_found
3465 then :
3466
3467 else $as_nop
3468   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3469 fi
3470
3471
3472 # These three variables are undocumented and unsupported,
3473 # and are intended to be withdrawn in a future Autoconf release.
3474 # They can cause serious problems if a builder's source tree is in a directory
3475 # whose full name contains unusual characters.
3476 if test -f "${ac_aux_dir}config.guess"; then
3477   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3478 fi
3479 if test -f "${ac_aux_dir}config.sub"; then
3480   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3481 fi
3482 if test -f "$ac_aux_dir/configure"; then
3483   ac_configure="$SHELL ${ac_aux_dir}configure"
3484 fi
3485
3486 # Check that the precious variables saved in the cache have kept the same
3487 # value.
3488 ac_cache_corrupted=false
3489 for ac_var in $ac_precious_vars; do
3490   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3491   eval ac_new_set=\$ac_env_${ac_var}_set
3492   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3493   eval ac_new_val=\$ac_env_${ac_var}_value
3494   case $ac_old_set,$ac_new_set in
3495     set,)
3496       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3497 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3498       ac_cache_corrupted=: ;;
3499     ,set)
3500       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3501 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3502       ac_cache_corrupted=: ;;
3503     ,);;
3504     *)
3505       if test "x$ac_old_val" != "x$ac_new_val"; then
3506         # differences in whitespace do not lead to failure.
3507         ac_old_val_w=`echo x $ac_old_val`
3508         ac_new_val_w=`echo x $ac_new_val`
3509         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3510           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3511 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3512           ac_cache_corrupted=:
3513         else
3514           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3515 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3516           eval $ac_var=\$ac_old_val
3517         fi
3518         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3519 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3520         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3521 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3522       fi;;
3523   esac
3524   # Pass precious variables to config.status.
3525   if test "$ac_new_set" = set; then
3526     case $ac_new_val in
3527     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3528     *) ac_arg=$ac_var=$ac_new_val ;;
3529     esac
3530     case " $ac_configure_args " in
3531       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3532       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3533     esac
3534   fi
3535 done
3536 if $ac_cache_corrupted; then
3537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3540 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3541   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3542             and start over" "$LINENO" 5
3543 fi
3544 ## -------------------- ##
3545 ## Main body of script. ##
3546 ## -------------------- ##
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553
3554
3555
3556 am__api_version='1.16'
3557
3558
3559
3560   # Find a good install program.  We prefer a C program (faster),
3561 # so one script is as good as another.  But avoid the broken or
3562 # incompatible versions:
3563 # SysV /etc/install, /usr/sbin/install
3564 # SunOS /usr/etc/install
3565 # IRIX /sbin/install
3566 # AIX /bin/install
3567 # AmigaOS /C/install, which installs bootblocks on floppy discs
3568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3571 # OS/2's system install, which has a completely different semantic
3572 # ./install, which can be erroneously created by make from ./install.sh.
3573 # Reject install programs that cannot install multiple files.
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3575 printf %s "checking for a BSD-compatible install... " >&6; }
3576 if test -z "$INSTALL"; then
3577 if test ${ac_cv_path_install+y}
3578 then :
3579   printf %s "(cached) " >&6
3580 else $as_nop
3581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584   IFS=$as_save_IFS
3585   case $as_dir in #(((
3586     '') as_dir=./ ;;
3587     */) ;;
3588     *) as_dir=$as_dir/ ;;
3589   esac
3590     # Account for fact that we put trailing slashes in our PATH walk.
3591 case $as_dir in #((
3592   ./ | /[cC]/* | \
3593   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3594   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3595   /usr/ucb/* ) ;;
3596   *)
3597     # OSF1 and SCO ODT 3.0 have their own names for install.
3598     # Don't use installbsd from OSF since it installs stuff as root
3599     # by default.
3600     for ac_prog in ginstall scoinst install; do
3601       for ac_exec_ext in '' $ac_executable_extensions; do
3602         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3603           if test $ac_prog = install &&
3604             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3605             # AIX install.  It has an incompatible calling convention.
3606             :
3607           elif test $ac_prog = install &&
3608             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609             # program-specific install script used by HP pwplus--don't use.
3610             :
3611           else
3612             rm -rf conftest.one conftest.two conftest.dir
3613             echo one > conftest.one
3614             echo two > conftest.two
3615             mkdir conftest.dir
3616             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3617               test -s conftest.one && test -s conftest.two &&
3618               test -s conftest.dir/conftest.one &&
3619               test -s conftest.dir/conftest.two
3620             then
3621               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3622               break 3
3623             fi
3624           fi
3625         fi
3626       done
3627     done
3628     ;;
3629 esac
3630
3631   done
3632 IFS=$as_save_IFS
3633
3634 rm -rf conftest.one conftest.two conftest.dir
3635
3636 fi
3637   if test ${ac_cv_path_install+y}; then
3638     INSTALL=$ac_cv_path_install
3639   else
3640     # As a last resort, use the slow shell script.  Don't cache a
3641     # value for INSTALL within a source directory, because that will
3642     # break other packages using the cache if that directory is
3643     # removed, or if the value is a relative name.
3644     INSTALL=$ac_install_sh
3645   fi
3646 fi
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3648 printf "%s\n" "$INSTALL" >&6; }
3649
3650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3651 # It thinks the first close brace ends the variable substitution.
3652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3653
3654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3655
3656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3657
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3659 printf %s "checking whether build environment is sane... " >&6; }
3660 # Reject unsafe characters in $srcdir or the absolute working directory
3661 # name.  Accept space and tab only in the latter.
3662 am_lf='
3663 '
3664 case `pwd` in
3665   *[\\\"\#\$\&\'\`$am_lf]*)
3666     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3667 esac
3668 case $srcdir in
3669   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3670     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3671 esac
3672
3673 # Do 'set' in a subshell so we don't clobber the current shell's
3674 # arguments.  Must try -L first in case configure is actually a
3675 # symlink; some systems play weird games with the mod time of symlinks
3676 # (eg FreeBSD returns the mod time of the symlink's containing
3677 # directory).
3678 if (
3679    am_has_slept=no
3680    for am_try in 1 2; do
3681      echo "timestamp, slept: $am_has_slept" > conftest.file
3682      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3683      if test "$*" = "X"; then
3684         # -L didn't work.
3685         set X `ls -t "$srcdir/configure" conftest.file`
3686      fi
3687      if test "$*" != "X $srcdir/configure conftest.file" \
3688         && test "$*" != "X conftest.file $srcdir/configure"; then
3689
3690         # If neither matched, then we have a broken ls.  This can happen
3691         # if, for instance, CONFIG_SHELL is bash and it inherits a
3692         # broken ls alias from the environment.  This has actually
3693         # happened.  Such a system could not be considered "sane".
3694         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3695   alias in your environment" "$LINENO" 5
3696      fi
3697      if test "$2" = conftest.file || test $am_try -eq 2; then
3698        break
3699      fi
3700      # Just in case.
3701      sleep 1
3702      am_has_slept=yes
3703    done
3704    test "$2" = conftest.file
3705    )
3706 then
3707    # Ok.
3708    :
3709 else
3710    as_fn_error $? "newly created file is older than distributed files!
3711 Check your system clock" "$LINENO" 5
3712 fi
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3714 printf "%s\n" "yes" >&6; }
3715 # If we didn't sleep, we still need to ensure time stamps of config.status and
3716 # generated files are strictly newer.
3717 am_sleep_pid=
3718 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3719   ( sleep 1 ) &
3720   am_sleep_pid=$!
3721 fi
3722
3723 rm -f conftest.file
3724
3725 test "$program_prefix" != NONE &&
3726   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3727 # Use a double $ so make ignores it.
3728 test "$program_suffix" != NONE &&
3729   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3730 # Double any \ or $.
3731 # By default was `s,x,x', remove it if useless.
3732 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3733 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3734
3735
3736 # Expand $ac_aux_dir to an absolute path.
3737 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3738
3739
3740   if test x"${MISSING+set}" != xset; then
3741   MISSING="\${SHELL} '$am_aux_dir/missing'"
3742 fi
3743 # Use eval to expand $SHELL
3744 if eval "$MISSING --is-lightweight"; then
3745   am_missing_run="$MISSING "
3746 else
3747   am_missing_run=
3748   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3749 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3750 fi
3751
3752 if test x"${install_sh+set}" != xset; then
3753   case $am_aux_dir in
3754   *\ * | *\     *)
3755     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3756   *)
3757     install_sh="\${SHELL} $am_aux_dir/install-sh"
3758   esac
3759 fi
3760
3761 # Installed binaries are usually stripped using 'strip' when the user
3762 # run "make install-strip".  However 'strip' might not be the right
3763 # tool to use in cross-compilation environments, therefore Automake
3764 # will honor the 'STRIP' environment variable to overrule this program.
3765 if test "$cross_compiling" != no; then
3766   if test -n "$ac_tool_prefix"; then
3767   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3768 set dummy ${ac_tool_prefix}strip; ac_word=$2
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 printf %s "checking for $ac_word... " >&6; }
3771 if test ${ac_cv_prog_STRIP+y}
3772 then :
3773   printf %s "(cached) " >&6
3774 else $as_nop
3775   if test -n "$STRIP"; then
3776   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   case $as_dir in #(((
3783     '') as_dir=./ ;;
3784     */) ;;
3785     *) as_dir=$as_dir/ ;;
3786   esac
3787     for ac_exec_ext in '' $ac_executable_extensions; do
3788   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3789     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3790     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3791     break 2
3792   fi
3793 done
3794   done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 STRIP=$ac_cv_prog_STRIP
3800 if test -n "$STRIP"; then
3801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3802 printf "%s\n" "$STRIP" >&6; }
3803 else
3804   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 printf "%s\n" "no" >&6; }
3806 fi
3807
3808
3809 fi
3810 if test -z "$ac_cv_prog_STRIP"; then
3811   ac_ct_STRIP=$STRIP
3812   # Extract the first word of "strip", so it can be a program name with args.
3813 set dummy strip; ac_word=$2
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 printf %s "checking for $ac_word... " >&6; }
3816 if test ${ac_cv_prog_ac_ct_STRIP+y}
3817 then :
3818   printf %s "(cached) " >&6
3819 else $as_nop
3820   if test -n "$ac_ct_STRIP"; then
3821   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3825 do
3826   IFS=$as_save_IFS
3827   case $as_dir in #(((
3828     '') as_dir=./ ;;
3829     */) ;;
3830     *) as_dir=$as_dir/ ;;
3831   esac
3832     for ac_exec_ext in '' $ac_executable_extensions; do
3833   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3834     ac_cv_prog_ac_ct_STRIP="strip"
3835     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3836     break 2
3837   fi
3838 done
3839   done
3840 IFS=$as_save_IFS
3841
3842 fi
3843 fi
3844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3845 if test -n "$ac_ct_STRIP"; then
3846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3847 printf "%s\n" "$ac_ct_STRIP" >&6; }
3848 else
3849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 printf "%s\n" "no" >&6; }
3851 fi
3852
3853   if test "x$ac_ct_STRIP" = x; then
3854     STRIP=":"
3855   else
3856     case $cross_compiling:$ac_tool_warned in
3857 yes:)
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3860 ac_tool_warned=yes ;;
3861 esac
3862     STRIP=$ac_ct_STRIP
3863   fi
3864 else
3865   STRIP="$ac_cv_prog_STRIP"
3866 fi
3867
3868 fi
3869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3870
3871
3872   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3873 printf %s "checking for a race-free mkdir -p... " >&6; }
3874 if test -z "$MKDIR_P"; then
3875   if test ${ac_cv_path_mkdir+y}
3876 then :
3877   printf %s "(cached) " >&6
3878 else $as_nop
3879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3881 do
3882   IFS=$as_save_IFS
3883   case $as_dir in #(((
3884     '') as_dir=./ ;;
3885     */) ;;
3886     *) as_dir=$as_dir/ ;;
3887   esac
3888     for ac_prog in mkdir gmkdir; do
3889          for ac_exec_ext in '' $ac_executable_extensions; do
3890            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3891            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3892              'mkdir ('*'coreutils) '* | \
3893              'BusyBox '* | \
3894              'mkdir (fileutils) '4.1*)
3895                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3896                break 3;;
3897            esac
3898          done
3899        done
3900   done
3901 IFS=$as_save_IFS
3902
3903 fi
3904
3905   test -d ./--version && rmdir ./--version
3906   if test ${ac_cv_path_mkdir+y}; then
3907     MKDIR_P="$ac_cv_path_mkdir -p"
3908   else
3909     # As a last resort, use the slow shell script.  Don't cache a
3910     # value for MKDIR_P within a source directory, because that will
3911     # break other packages using the cache if that directory is
3912     # removed, or if the value is a relative name.
3913     MKDIR_P="$ac_install_sh -d"
3914   fi
3915 fi
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3917 printf "%s\n" "$MKDIR_P" >&6; }
3918
3919 for ac_prog in gawk mawk nawk awk
3920 do
3921   # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 printf %s "checking for $ac_word... " >&6; }
3925 if test ${ac_cv_prog_AWK+y}
3926 then :
3927   printf %s "(cached) " >&6
3928 else $as_nop
3929   if test -n "$AWK"; then
3930   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   case $as_dir in #(((
3937     '') as_dir=./ ;;
3938     */) ;;
3939     *) as_dir=$as_dir/ ;;
3940   esac
3941     for ac_exec_ext in '' $ac_executable_extensions; do
3942   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943     ac_cv_prog_AWK="$ac_prog"
3944     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948   done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 AWK=$ac_cv_prog_AWK
3954 if test -n "$AWK"; then
3955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3956 printf "%s\n" "$AWK" >&6; }
3957 else
3958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3960 fi
3961
3962
3963   test -n "$AWK" && break
3964 done
3965
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3967 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3968 set x ${MAKE-make}
3969 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3970 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3971 then :
3972   printf %s "(cached) " >&6
3973 else $as_nop
3974   cat >conftest.make <<\_ACEOF
3975 SHELL = /bin/sh
3976 all:
3977         @echo '@@@%%%=$(MAKE)=@@@%%%'
3978 _ACEOF
3979 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3980 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3981   *@@@%%%=?*=@@@%%%*)
3982     eval ac_cv_prog_make_${ac_make}_set=yes;;
3983   *)
3984     eval ac_cv_prog_make_${ac_make}_set=no;;
3985 esac
3986 rm -f conftest.make
3987 fi
3988 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3990 printf "%s\n" "yes" >&6; }
3991   SET_MAKE=
3992 else
3993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 printf "%s\n" "no" >&6; }
3995   SET_MAKE="MAKE=${MAKE-make}"
3996 fi
3997
3998 rm -rf .tst 2>/dev/null
3999 mkdir .tst 2>/dev/null
4000 if test -d .tst; then
4001   am__leading_dot=.
4002 else
4003   am__leading_dot=_
4004 fi
4005 rmdir .tst 2>/dev/null
4006
4007 # Check whether --enable-silent-rules was given.
4008 if test ${enable_silent_rules+y}
4009 then :
4010   enableval=$enable_silent_rules;
4011 fi
4012
4013 case $enable_silent_rules in # (((
4014   yes) AM_DEFAULT_VERBOSITY=0;;
4015    no) AM_DEFAULT_VERBOSITY=1;;
4016     *) AM_DEFAULT_VERBOSITY=1;;
4017 esac
4018 am_make=${MAKE-make}
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4020 printf %s "checking whether $am_make supports nested variables... " >&6; }
4021 if test ${am_cv_make_support_nested_variables+y}
4022 then :
4023   printf %s "(cached) " >&6
4024 else $as_nop
4025   if printf "%s\n" 'TRUE=$(BAR$(V))
4026 BAR0=false
4027 BAR1=true
4028 V=1
4029 am__doit:
4030         @$(TRUE)
4031 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4032   am_cv_make_support_nested_variables=yes
4033 else
4034   am_cv_make_support_nested_variables=no
4035 fi
4036 fi
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4038 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4039 if test $am_cv_make_support_nested_variables = yes; then
4040     AM_V='$(V)'
4041   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4042 else
4043   AM_V=$AM_DEFAULT_VERBOSITY
4044   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4045 fi
4046 AM_BACKSLASH='\'
4047
4048 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4049   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4050   # is not polluted with repeated "-I."
4051   am__isrc=' -I$(srcdir)'
4052   # test to see if srcdir already configured
4053   if test -f $srcdir/config.status; then
4054     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4055   fi
4056 fi
4057
4058 # test whether we have cygpath
4059 if test -z "$CYGPATH_W"; then
4060   if (cygpath --version) >/dev/null 2>/dev/null; then
4061     CYGPATH_W='cygpath -w'
4062   else
4063     CYGPATH_W=echo
4064   fi
4065 fi
4066
4067
4068 # Define the identity of the package.
4069  PACKAGE='libpipeline'
4070  VERSION='1.5.4'
4071
4072
4073 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4074
4075
4076 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4077
4078 # Some tools Automake needs.
4079
4080 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4081
4082
4083 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4084
4085
4086 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4087
4088
4089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4090
4091
4092 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4093
4094 # For better backward compatibility.  To be removed once Automake 1.9.x
4095 # dies out for good.  For more background, see:
4096 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4097 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4098 mkdir_p='$(MKDIR_P)'
4099
4100 # We need awk for the "check" target (and possibly the TAP driver).  The
4101 # system "awk" is bad on some platforms.
4102 # Always define AMTAR for backward compatibility.  Yes, it's still used
4103 # in the wild :-(  We should find a proper way to deprecate it ...
4104 AMTAR='$${TAR-tar}'
4105
4106
4107 # We'll loop over all known methods to create a tar archive until one works.
4108 _am_tools='gnutar  pax cpio none'
4109
4110 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4111
4112
4113
4114
4115
4116 # Variables for tags utilities; see am/tags.am
4117 if test -z "$CTAGS"; then
4118   CTAGS=ctags
4119 fi
4120
4121 if test -z "$ETAGS"; then
4122   ETAGS=etags
4123 fi
4124
4125 if test -z "$CSCOPE"; then
4126   CSCOPE=cscope
4127 fi
4128
4129
4130
4131 # POSIX will say in a future version that running "rm -f" with no argument
4132 # is OK; and we want to be able to make that assumption in our Makefile
4133 # recipes.  So use an aggressive probe to check that the usage we want is
4134 # actually supported "in the wild" to an acceptable degree.
4135 # See automake bug#10828.
4136 # To make any issue more visible, cause the running configure to be aborted
4137 # by default if the 'rm' program in use doesn't match our expectations; the
4138 # user can still override this though.
4139 if rm -f && rm -fr && rm -rf; then : OK; else
4140   cat >&2 <<'END'
4141 Oops!
4142
4143 Your 'rm' program seems unable to run without file operands specified
4144 on the command line, even when the '-f' option is present.  This is contrary
4145 to the behaviour of most rm programs out there, and not conforming with
4146 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4147
4148 Please tell bug-automake@gnu.org about your system, including the value
4149 of your $PATH and any error possibly output before this message.  This
4150 can help us improve future automake versions.
4151
4152 END
4153   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4154     echo 'Configuration will proceed anyway, since you have set the' >&2
4155     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4156     echo >&2
4157   else
4158     cat >&2 <<'END'
4159 Aborting the configuration process, to ensure you take notice of the issue.
4160
4161 You can download and install GNU coreutils to get an 'rm' implementation
4162 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4163
4164 If you want to complete the configuration process using your problematic
4165 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4166 to "yes", and re-run configure.
4167
4168 END
4169     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4170   fi
4171 fi
4172
4173
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4175 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4176     # Check whether --enable-maintainer-mode was given.
4177 if test ${enable_maintainer_mode+y}
4178 then :
4179   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4180 else $as_nop
4181   USE_MAINTAINER_MODE=no
4182 fi
4183
4184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4185 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4186    if test $USE_MAINTAINER_MODE = yes; then
4187   MAINTAINER_MODE_TRUE=
4188   MAINTAINER_MODE_FALSE='#'
4189 else
4190   MAINTAINER_MODE_TRUE='#'
4191   MAINTAINER_MODE_FALSE=
4192 fi
4193
4194   MAINT=$MAINTAINER_MODE_TRUE
4195
4196
4197 # Check whether --enable-silent-rules was given.
4198 if test ${enable_silent_rules+y}
4199 then :
4200   enableval=$enable_silent_rules;
4201 fi
4202
4203 case $enable_silent_rules in # (((
4204   yes) AM_DEFAULT_VERBOSITY=0;;
4205    no) AM_DEFAULT_VERBOSITY=1;;
4206     *) AM_DEFAULT_VERBOSITY=0;;
4207 esac
4208 am_make=${MAKE-make}
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4210 printf %s "checking whether $am_make supports nested variables... " >&6; }
4211 if test ${am_cv_make_support_nested_variables+y}
4212 then :
4213   printf %s "(cached) " >&6
4214 else $as_nop
4215   if printf "%s\n" 'TRUE=$(BAR$(V))
4216 BAR0=false
4217 BAR1=true
4218 V=1
4219 am__doit:
4220         @$(TRUE)
4221 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4222   am_cv_make_support_nested_variables=yes
4223 else
4224   am_cv_make_support_nested_variables=no
4225 fi
4226 fi
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4228 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4229 if test $am_cv_make_support_nested_variables = yes; then
4230     AM_V='$(V)'
4231   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4232 else
4233   AM_V=$AM_DEFAULT_VERBOSITY
4234   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4235 fi
4236 AM_BACKSLASH='\'
4237
4238
4239
4240
4241
4242 DEPDIR="${am__leading_dot}deps"
4243
4244 ac_config_commands="$ac_config_commands depfiles"
4245
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4247 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4248 cat > confinc.mk << 'END'
4249 am__doit:
4250         @echo this is the am__doit target >confinc.out
4251 .PHONY: am__doit
4252 END
4253 am__include="#"
4254 am__quote=
4255 # BSD make does it like this.
4256 echo '.include "confinc.mk" # ignored' > confmf.BSD
4257 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4258 echo 'include confinc.mk # ignored' > confmf.GNU
4259 _am_result=no
4260 for s in GNU BSD; do
4261   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4262    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4263    ac_status=$?
4264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265    (exit $ac_status); }
4266   case $?:`cat confinc.out 2>/dev/null` in #(
4267   '0:this is the am__doit target') :
4268     case $s in #(
4269   BSD) :
4270     am__include='.include' am__quote='"' ;; #(
4271   *) :
4272     am__include='include' am__quote='' ;;
4273 esac ;; #(
4274   *) :
4275      ;;
4276 esac
4277   if test "$am__include" != "#"; then
4278     _am_result="yes ($s style)"
4279     break
4280   fi
4281 done
4282 rm -f confinc.* confmf.*
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4284 printf "%s\n" "${_am_result}" >&6; }
4285
4286 # Check whether --enable-dependency-tracking was given.
4287 if test ${enable_dependency_tracking+y}
4288 then :
4289   enableval=$enable_dependency_tracking;
4290 fi
4291
4292 if test "x$enable_dependency_tracking" != xno; then
4293   am_depcomp="$ac_aux_dir/depcomp"
4294   AMDEPBACKSLASH='\'
4295   am__nodep='_no'
4296 fi
4297  if test "x$enable_dependency_tracking" != xno; then
4298   AMDEP_TRUE=
4299   AMDEP_FALSE='#'
4300 else
4301   AMDEP_TRUE='#'
4302   AMDEP_FALSE=
4303 fi
4304
4305
4306 ac_ext=c
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311 if test -n "$ac_tool_prefix"; then
4312   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4313 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 printf %s "checking for $ac_word... " >&6; }
4316 if test ${ac_cv_prog_CC+y}
4317 then :
4318   printf %s "(cached) " >&6
4319 else $as_nop
4320   if test -n "$CC"; then
4321   ac_cv_prog_CC="$CC" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326   IFS=$as_save_IFS
4327   case $as_dir in #(((
4328     '') as_dir=./ ;;
4329     */) ;;
4330     *) as_dir=$as_dir/ ;;
4331   esac
4332     for ac_exec_ext in '' $ac_executable_extensions; do
4333   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4334     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4335     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4336     break 2
4337   fi
4338 done
4339   done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 CC=$ac_cv_prog_CC
4345 if test -n "$CC"; then
4346   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347 printf "%s\n" "$CC" >&6; }
4348 else
4349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 printf "%s\n" "no" >&6; }
4351 fi
4352
4353
4354 fi
4355 if test -z "$ac_cv_prog_CC"; then
4356   ac_ct_CC=$CC
4357   # Extract the first word of "gcc", so it can be a program name with args.
4358 set dummy gcc; ac_word=$2
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 printf %s "checking for $ac_word... " >&6; }
4361 if test ${ac_cv_prog_ac_ct_CC+y}
4362 then :
4363   printf %s "(cached) " >&6
4364 else $as_nop
4365   if test -n "$ac_ct_CC"; then
4366   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   case $as_dir in #(((
4373     '') as_dir=./ ;;
4374     */) ;;
4375     *) as_dir=$as_dir/ ;;
4376   esac
4377     for ac_exec_ext in '' $ac_executable_extensions; do
4378   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4379     ac_cv_prog_ac_ct_CC="gcc"
4380     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4381     break 2
4382   fi
4383 done
4384   done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4390 if test -n "$ac_ct_CC"; then
4391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4392 printf "%s\n" "$ac_ct_CC" >&6; }
4393 else
4394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 printf "%s\n" "no" >&6; }
4396 fi
4397
4398   if test "x$ac_ct_CC" = x; then
4399     CC=""
4400   else
4401     case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407     CC=$ac_ct_CC
4408   fi
4409 else
4410   CC="$ac_cv_prog_CC"
4411 fi
4412
4413 if test -z "$CC"; then
4414           if test -n "$ac_tool_prefix"; then
4415     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4416 set dummy ${ac_tool_prefix}cc; ac_word=$2
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 printf %s "checking for $ac_word... " >&6; }
4419 if test ${ac_cv_prog_CC+y}
4420 then :
4421   printf %s "(cached) " >&6
4422 else $as_nop
4423   if test -n "$CC"; then
4424   ac_cv_prog_CC="$CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   case $as_dir in #(((
4431     '') as_dir=./ ;;
4432     */) ;;
4433     *) as_dir=$as_dir/ ;;
4434   esac
4435     for ac_exec_ext in '' $ac_executable_extensions; do
4436   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4437     ac_cv_prog_CC="${ac_tool_prefix}cc"
4438     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442   done
4443 IFS=$as_save_IFS
4444
4445 fi
4446 fi
4447 CC=$ac_cv_prog_CC
4448 if test -n "$CC"; then
4449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4450 printf "%s\n" "$CC" >&6; }
4451 else
4452   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 printf "%s\n" "no" >&6; }
4454 fi
4455
4456
4457   fi
4458 fi
4459 if test -z "$CC"; then
4460   # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 printf %s "checking for $ac_word... " >&6; }
4464 if test ${ac_cv_prog_CC+y}
4465 then :
4466   printf %s "(cached) " >&6
4467 else $as_nop
4468   if test -n "$CC"; then
4469   ac_cv_prog_CC="$CC" # Let the user override the test.
4470 else
4471   ac_prog_rejected=no
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   case $as_dir in #(((
4477     '') as_dir=./ ;;
4478     */) ;;
4479     *) as_dir=$as_dir/ ;;
4480   esac
4481     for ac_exec_ext in '' $ac_executable_extensions; do
4482   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4483     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484        ac_prog_rejected=yes
4485        continue
4486      fi
4487     ac_cv_prog_CC="cc"
4488     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492   done
4493 IFS=$as_save_IFS
4494
4495 if test $ac_prog_rejected = yes; then
4496   # We found a bogon in the path, so make sure we never use it.
4497   set dummy $ac_cv_prog_CC
4498   shift
4499   if test $# != 0; then
4500     # We chose a different compiler from the bogus one.
4501     # However, it has the same basename, so the bogon will be chosen
4502     # first if we set CC to just the basename; use the full file name.
4503     shift
4504     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4505   fi
4506 fi
4507 fi
4508 fi
4509 CC=$ac_cv_prog_CC
4510 if test -n "$CC"; then
4511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4512 printf "%s\n" "$CC" >&6; }
4513 else
4514   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 printf "%s\n" "no" >&6; }
4516 fi
4517
4518
4519 fi
4520 if test -z "$CC"; then
4521   if test -n "$ac_tool_prefix"; then
4522   for ac_prog in cl.exe
4523   do
4524     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 printf %s "checking for $ac_word... " >&6; }
4528 if test ${ac_cv_prog_CC+y}
4529 then :
4530   printf %s "(cached) " >&6
4531 else $as_nop
4532   if test -n "$CC"; then
4533   ac_cv_prog_CC="$CC" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   case $as_dir in #(((
4540     '') as_dir=./ ;;
4541     */) ;;
4542     *) as_dir=$as_dir/ ;;
4543   esac
4544     for ac_exec_ext in '' $ac_executable_extensions; do
4545   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4546     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4547     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551   done
4552 IFS=$as_save_IFS
4553
4554 fi
4555 fi
4556 CC=$ac_cv_prog_CC
4557 if test -n "$CC"; then
4558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4559 printf "%s\n" "$CC" >&6; }
4560 else
4561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 printf "%s\n" "no" >&6; }
4563 fi
4564
4565
4566     test -n "$CC" && break
4567   done
4568 fi
4569 if test -z "$CC"; then
4570   ac_ct_CC=$CC
4571   for ac_prog in cl.exe
4572 do
4573   # Extract the first word of "$ac_prog", so it can be a program name with args.
4574 set dummy $ac_prog; ac_word=$2
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 printf %s "checking for $ac_word... " >&6; }
4577 if test ${ac_cv_prog_ac_ct_CC+y}
4578 then :
4579   printf %s "(cached) " >&6
4580 else $as_nop
4581   if test -n "$ac_ct_CC"; then
4582   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   case $as_dir in #(((
4589     '') as_dir=./ ;;
4590     */) ;;
4591     *) as_dir=$as_dir/ ;;
4592   esac
4593     for ac_exec_ext in '' $ac_executable_extensions; do
4594   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4595     ac_cv_prog_ac_ct_CC="$ac_prog"
4596     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600   done
4601 IFS=$as_save_IFS
4602
4603 fi
4604 fi
4605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4606 if test -n "$ac_ct_CC"; then
4607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4608 printf "%s\n" "$ac_ct_CC" >&6; }
4609 else
4610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 printf "%s\n" "no" >&6; }
4612 fi
4613
4614
4615   test -n "$ac_ct_CC" && break
4616 done
4617
4618   if test "x$ac_ct_CC" = x; then
4619     CC=""
4620   else
4621     case $cross_compiling:$ac_tool_warned in
4622 yes:)
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4626 esac
4627     CC=$ac_ct_CC
4628   fi
4629 fi
4630
4631 fi
4632 if test -z "$CC"; then
4633   if test -n "$ac_tool_prefix"; then
4634   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4635 set dummy ${ac_tool_prefix}clang; ac_word=$2
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 printf %s "checking for $ac_word... " >&6; }
4638 if test ${ac_cv_prog_CC+y}
4639 then :
4640   printf %s "(cached) " >&6
4641 else $as_nop
4642   if test -n "$CC"; then
4643   ac_cv_prog_CC="$CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   case $as_dir in #(((
4650     '') as_dir=./ ;;
4651     */) ;;
4652     *) as_dir=$as_dir/ ;;
4653   esac
4654     for ac_exec_ext in '' $ac_executable_extensions; do
4655   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4656     ac_cv_prog_CC="${ac_tool_prefix}clang"
4657     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661   done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 CC=$ac_cv_prog_CC
4667 if test -n "$CC"; then
4668   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 printf "%s\n" "$CC" >&6; }
4670 else
4671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 printf "%s\n" "no" >&6; }
4673 fi
4674
4675
4676 fi
4677 if test -z "$ac_cv_prog_CC"; then
4678   ac_ct_CC=$CC
4679   # Extract the first word of "clang", so it can be a program name with args.
4680 set dummy clang; ac_word=$2
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 printf %s "checking for $ac_word... " >&6; }
4683 if test ${ac_cv_prog_ac_ct_CC+y}
4684 then :
4685   printf %s "(cached) " >&6
4686 else $as_nop
4687   if test -n "$ac_ct_CC"; then
4688   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   case $as_dir in #(((
4695     '') as_dir=./ ;;
4696     */) ;;
4697     *) as_dir=$as_dir/ ;;
4698   esac
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4701     ac_cv_prog_ac_ct_CC="clang"
4702     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712 if test -n "$ac_ct_CC"; then
4713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4714 printf "%s\n" "$ac_ct_CC" >&6; }
4715 else
4716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 printf "%s\n" "no" >&6; }
4718 fi
4719
4720   if test "x$ac_ct_CC" = x; then
4721     CC=""
4722   else
4723     case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729     CC=$ac_ct_CC
4730   fi
4731 else
4732   CC="$ac_cv_prog_CC"
4733 fi
4734
4735 fi
4736
4737
4738 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4740 as_fn_error $? "no acceptable C compiler found in \$PATH
4741 See \`config.log' for more details" "$LINENO" 5; }
4742
4743 # Provide some information about the compiler.
4744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4745 set X $ac_compile
4746 ac_compiler=$2
4747 for ac_option in --version -v -V -qversion -version; do
4748   { { ac_try="$ac_compiler $ac_option >&5"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4754 printf "%s\n" "$ac_try_echo"; } >&5
4755   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4756   ac_status=$?
4757   if test -s conftest.err; then
4758     sed '10a\
4759 ... rest of stderr output deleted ...
4760          10q' conftest.err >conftest.er1
4761     cat conftest.er1 >&5
4762   fi
4763   rm -f conftest.er1 conftest.err
4764   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765   test $ac_status = 0; }
4766 done
4767
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h.  */
4770
4771 int
4772 main (void)
4773 {
4774
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 ac_clean_files_save=$ac_clean_files
4780 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4781 # Try to create an executable without -o first, disregard a.out.
4782 # It will help us diagnose broken compilers, and finding out an intuition
4783 # of exeext.
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4785 printf %s "checking whether the C compiler works... " >&6; }
4786 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4787
4788 # The possible output files:
4789 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4790
4791 ac_rmfiles=
4792 for ac_file in $ac_files
4793 do
4794   case $ac_file in
4795     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4796     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4797   esac
4798 done
4799 rm -f $ac_rmfiles
4800
4801 if { { ac_try="$ac_link_default"
4802 case "(($ac_try" in
4803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804   *) ac_try_echo=$ac_try;;
4805 esac
4806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807 printf "%s\n" "$ac_try_echo"; } >&5
4808   (eval "$ac_link_default") 2>&5
4809   ac_status=$?
4810   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811   test $ac_status = 0; }
4812 then :
4813   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4815 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4817 # Autoconf.
4818 for ac_file in $ac_files ''
4819 do
4820   test -f "$ac_file" || continue
4821   case $ac_file in
4822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4823         ;;
4824     [ab].out )
4825         # We found the default executable, but exeext='' is most
4826         # certainly right.
4827         break;;
4828     *.* )
4829         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4830         then :; else
4831            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4832         fi
4833         # We set ac_cv_exeext here because the later test for it is not
4834         # safe: cross compilers may not add the suffix if given an `-o'
4835         # argument, so we may need to know it at that point already.
4836         # Even if this section looks crufty: it has the advantage of
4837         # actually working.
4838         break;;
4839     * )
4840         break;;
4841   esac
4842 done
4843 test "$ac_cv_exeext" = no && ac_cv_exeext=
4844
4845 else $as_nop
4846   ac_file=''
4847 fi
4848 if test -z "$ac_file"
4849 then :
4850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 printf "%s\n" "no" >&6; }
4852 printf "%s\n" "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4856 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4857 as_fn_error 77 "C compiler cannot create executables
4858 See \`config.log' for more details" "$LINENO" 5; }
4859 else $as_nop
4860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861 printf "%s\n" "yes" >&6; }
4862 fi
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4864 printf %s "checking for C compiler default output file name... " >&6; }
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4866 printf "%s\n" "$ac_file" >&6; }
4867 ac_exeext=$ac_cv_exeext
4868
4869 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4870 ac_clean_files=$ac_clean_files_save
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4872 printf %s "checking for suffix of executables... " >&6; }
4873 if { { ac_try="$ac_link"
4874 case "(($ac_try" in
4875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876   *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879 printf "%s\n" "$ac_try_echo"; } >&5
4880   (eval "$ac_link") 2>&5
4881   ac_status=$?
4882   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4883   test $ac_status = 0; }
4884 then :
4885   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4886 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4887 # work properly (i.e., refer to `conftest.exe'), while it won't with
4888 # `rm'.
4889 for ac_file in conftest.exe conftest conftest.*; do
4890   test -f "$ac_file" || continue
4891   case $ac_file in
4892     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4893     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4894           break;;
4895     * ) break;;
4896   esac
4897 done
4898 else $as_nop
4899   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4900 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4901 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4902 See \`config.log' for more details" "$LINENO" 5; }
4903 fi
4904 rm -f conftest conftest$ac_cv_exeext
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4906 printf "%s\n" "$ac_cv_exeext" >&6; }
4907
4908 rm -f conftest.$ac_ext
4909 EXEEXT=$ac_cv_exeext
4910 ac_exeext=$EXEEXT
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h.  */
4913 #include <stdio.h>
4914 int
4915 main (void)
4916 {
4917 FILE *f = fopen ("conftest.out", "w");
4918  return ferror (f) || fclose (f) != 0;
4919
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 ac_clean_files="$ac_clean_files conftest.out"
4925 # Check that the compiler produces executables we can run.  If not, either
4926 # the compiler is broken, or we cross compile.
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4928 printf %s "checking whether we are cross compiling... " >&6; }
4929 if test "$cross_compiling" != yes; then
4930   { { ac_try="$ac_link"
4931 case "(($ac_try" in
4932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933   *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 printf "%s\n" "$ac_try_echo"; } >&5
4937   (eval "$ac_link") 2>&5
4938   ac_status=$?
4939   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940   test $ac_status = 0; }
4941   if { ac_try='./conftest$ac_cv_exeext'
4942   { { case "(($ac_try" in
4943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944   *) ac_try_echo=$ac_try;;
4945 esac
4946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4947 printf "%s\n" "$ac_try_echo"; } >&5
4948   (eval "$ac_try") 2>&5
4949   ac_status=$?
4950   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951   test $ac_status = 0; }; }; then
4952     cross_compiling=no
4953   else
4954     if test "$cross_compiling" = maybe; then
4955         cross_compiling=yes
4956     else
4957         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4959 as_fn_error 77 "cannot run C compiled programs.
4960 If you meant to cross compile, use \`--host'.
4961 See \`config.log' for more details" "$LINENO" 5; }
4962     fi
4963   fi
4964 fi
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4966 printf "%s\n" "$cross_compiling" >&6; }
4967
4968 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4969 ac_clean_files=$ac_clean_files_save
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4971 printf %s "checking for suffix of object files... " >&6; }
4972 if test ${ac_cv_objext+y}
4973 then :
4974   printf %s "(cached) " >&6
4975 else $as_nop
4976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h.  */
4978
4979 int
4980 main (void)
4981 {
4982
4983   ;
4984   return 0;
4985 }
4986 _ACEOF
4987 rm -f conftest.o conftest.obj
4988 if { { ac_try="$ac_compile"
4989 case "(($ac_try" in
4990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991   *) ac_try_echo=$ac_try;;
4992 esac
4993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4994 printf "%s\n" "$ac_try_echo"; } >&5
4995   (eval "$ac_compile") 2>&5
4996   ac_status=$?
4997   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4998   test $ac_status = 0; }
4999 then :
5000   for ac_file in conftest.o conftest.obj conftest.*; do
5001   test -f "$ac_file" || continue;
5002   case $ac_file in
5003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5004     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5005        break;;
5006   esac
5007 done
5008 else $as_nop
5009   printf "%s\n" "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5014 as_fn_error $? "cannot compute suffix of object files: cannot compile
5015 See \`config.log' for more details" "$LINENO" 5; }
5016 fi
5017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5018 fi
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5020 printf "%s\n" "$ac_cv_objext" >&6; }
5021 OBJEXT=$ac_cv_objext
5022 ac_objext=$OBJEXT
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5024 printf %s "checking whether the compiler supports GNU C... " >&6; }
5025 if test ${ac_cv_c_compiler_gnu+y}
5026 then :
5027   printf %s "(cached) " >&6
5028 else $as_nop
5029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h.  */
5031
5032 int
5033 main (void)
5034 {
5035 #ifndef __GNUC__
5036        choke me
5037 #endif
5038
5039   ;
5040   return 0;
5041 }
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"
5044 then :
5045   ac_compiler_gnu=yes
5046 else $as_nop
5047   ac_compiler_gnu=no
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5051
5052 fi
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5054 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056
5057 if test $ac_compiler_gnu = yes; then
5058   GCC=yes
5059 else
5060   GCC=
5061 fi
5062 ac_test_CFLAGS=${CFLAGS+y}
5063 ac_save_CFLAGS=$CFLAGS
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5065 printf %s "checking whether $CC accepts -g... " >&6; }
5066 if test ${ac_cv_prog_cc_g+y}
5067 then :
5068   printf %s "(cached) " >&6
5069 else $as_nop
5070   ac_save_c_werror_flag=$ac_c_werror_flag
5071    ac_c_werror_flag=yes
5072    ac_cv_prog_cc_g=no
5073    CFLAGS="-g"
5074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h.  */
5076
5077 int
5078 main (void)
5079 {
5080
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"
5086 then :
5087   ac_cv_prog_cc_g=yes
5088 else $as_nop
5089   CFLAGS=""
5090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h.  */
5092
5093 int
5094 main (void)
5095 {
5096
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"
5102 then :
5103
5104 else $as_nop
5105   ac_c_werror_flag=$ac_save_c_werror_flag
5106          CFLAGS="-g"
5107          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h.  */
5109
5110 int
5111 main (void)
5112 {
5113
5114   ;
5115   return 0;
5116 }
5117 _ACEOF
5118 if ac_fn_c_try_compile "$LINENO"
5119 then :
5120   ac_cv_prog_cc_g=yes
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5125 fi
5126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5127    ac_c_werror_flag=$ac_save_c_werror_flag
5128 fi
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5130 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5131 if test $ac_test_CFLAGS; then
5132   CFLAGS=$ac_save_CFLAGS
5133 elif test $ac_cv_prog_cc_g = yes; then
5134   if test "$GCC" = yes; then
5135     CFLAGS="-g -O2"
5136   else
5137     CFLAGS="-g"
5138   fi
5139 else
5140   if test "$GCC" = yes; then
5141     CFLAGS="-O2"
5142   else
5143     CFLAGS=
5144   fi
5145 fi
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5147 printf %s "checking for $CC option to enable C11 features... " >&6; }
5148 if test ${ac_cv_prog_cc_c11+y}
5149 then :
5150   printf %s "(cached) " >&6
5151 else $as_nop
5152   ac_cv_prog_cc_c11=no
5153 ac_save_CC=$CC
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h.  */
5156 #include <stdarg.h>
5157 #include <stdbool.h>
5158 #include <stddef.h>
5159 #include <stdlib.h>
5160 #include <wchar.h>
5161 #include <stdio.h>
5162
5163 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5164 #define debug(...) fprintf (stderr, __VA_ARGS__)
5165 #define showlist(...) puts (#__VA_ARGS__)
5166 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5167 static void
5168 test_varargs_macros (void)
5169 {
5170   int x = 1234;
5171   int y = 5678;
5172   debug ("Flag");
5173   debug ("X = %d\n", x);
5174   showlist (The first, second, and third items.);
5175   report (x>y, "x is %d but y is %d", x, y);
5176 }
5177
5178 // Check long long types.
5179 #define BIG64 18446744073709551615ull
5180 #define BIG32 4294967295ul
5181 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5182 #if !BIG_OK
5183   your preprocessor is broken;
5184 #endif
5185 #if BIG_OK
5186 #else
5187   your preprocessor is broken;
5188 #endif
5189 static long long int bignum = -9223372036854775807LL;
5190 static unsigned long long int ubignum = BIG64;
5191
5192 struct incomplete_array
5193 {
5194   int datasize;
5195   double data[];
5196 };
5197
5198 struct named_init {
5199   int number;
5200   const wchar_t *name;
5201   double average;
5202 };
5203
5204 typedef const char *ccp;
5205
5206 static inline int
5207 test_restrict (ccp restrict text)
5208 {
5209   // See if C++-style comments work.
5210   // Iterate through items via the restricted pointer.
5211   // Also check for declarations in for loops.
5212   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5213     continue;
5214   return 0;
5215 }
5216
5217 // Check varargs and va_copy.
5218 static bool
5219 test_varargs (const char *format, ...)
5220 {
5221   va_list args;
5222   va_start (args, format);
5223   va_list args_copy;
5224   va_copy (args_copy, args);
5225
5226   const char *str = "";
5227   int number = 0;
5228   float fnumber = 0;
5229
5230   while (*format)
5231     {
5232       switch (*format++)
5233         {
5234         case 's': // string
5235           str = va_arg (args_copy, const char *);
5236           break;
5237         case 'd': // int
5238           number = va_arg (args_copy, int);
5239           break;
5240         case 'f': // float
5241           fnumber = va_arg (args_copy, double);
5242           break;
5243         default:
5244           break;
5245         }
5246     }
5247   va_end (args_copy);
5248   va_end (args);
5249
5250   return *str && number && fnumber;
5251 }
5252 // Check _Alignas.
5253 char _Alignas (double) aligned_as_double;
5254 char _Alignas (0) no_special_alignment;
5255 extern char aligned_as_int;
5256 char _Alignas (0) _Alignas (int) aligned_as_int;
5257
5258 // Check _Alignof.
5259 enum
5260 {
5261   int_alignment = _Alignof (int),
5262   int_array_alignment = _Alignof (int[100]),
5263   char_alignment = _Alignof (char)
5264 };
5265 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
5266
5267 // Check _Noreturn.
5268 int _Noreturn does_not_return (void) { for (;;) continue; }
5269
5270 // Check _Static_assert.
5271 struct test_static_assert
5272 {
5273   int x;
5274   _Static_assert (sizeof (int) <= sizeof (long int),
5275                   "_Static_assert does not work in struct");
5276   long int y;
5277 };
5278
5279 // Check UTF-8 literals.
5280 #define u8 syntax error!
5281 char const utf8_literal[] = u8"happens to be ASCII" "another string";
5282
5283 // Check duplicate typedefs.
5284 typedef long *long_ptr;
5285 typedef long int *long_ptr;
5286 typedef long_ptr long_ptr;
5287
5288 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
5289 struct anonymous
5290 {
5291   union {
5292     struct { int i; int j; };
5293     struct { int k; long int l; } w;
5294   };
5295   int m;
5296 } v1;
5297
5298 int
5299 main (void)
5300 {
5301
5302   // Check bool.
5303   _Bool success = false;
5304
5305   // Check restrict.
5306   if (test_restrict ("String literal") == 0)
5307     success = true;
5308   char *restrict newvar = "Another string";
5309
5310   // Check varargs.
5311   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5312   test_varargs_macros ();
5313
5314   // Check flexible array members.
5315   struct incomplete_array *ia =
5316     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5317   ia->datasize = 10;
5318   for (int i = 0; i < ia->datasize; ++i)
5319     ia->data[i] = i * 1.234;
5320
5321   // Check named initializers.
5322   struct named_init ni = {
5323     .number = 34,
5324     .name = L"Test wide string",
5325     .average = 543.34343,
5326   };
5327
5328   ni.number = 58;
5329
5330   int dynamic_array[ni.number];
5331   dynamic_array[ni.number - 1] = 543;
5332
5333   // work around unused variable warnings
5334   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5335           || dynamic_array[ni.number - 1] != 543);
5336
5337   v1.i = 2;
5338   v1.w.k = 5;
5339   _Static_assert ((offsetof (struct anonymous, i)
5340                    == offsetof (struct anonymous, w.k)),
5341                   "Anonymous union alignment botch");
5342
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 for ac_arg in '' -std=gnu11
5348 do
5349   CC="$ac_save_CC $ac_arg"
5350   if ac_fn_c_try_compile "$LINENO"
5351 then :
5352   ac_cv_prog_cc_c11=$ac_arg
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.beam
5355   test "x$ac_cv_prog_cc_c11" != "xno" && break
5356 done
5357 rm -f conftest.$ac_ext
5358 CC=$ac_save_CC
5359
5360 fi
5361 # AC_CACHE_VAL
5362 ac_prog_cc_stdc_options=
5363 case "x$ac_cv_prog_cc_c11" in
5364   x)
5365     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5366 printf "%s\n" "none needed" >&6; } ;;
5367   xno)
5368     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5369 printf "%s\n" "unsupported" >&6; } ;;
5370   *)
5371     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5372     CC=$CC$ac_prog_cc_stdc_options
5373     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5374 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
5375 esac
5376 if test "x$ac_cv_prog_cc_c11" != xno
5377 then :
5378   ac_prog_cc_stdc=c11
5379                  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5380 else $as_nop
5381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5382 printf %s "checking for $CC option to enable C99 features... " >&6; }
5383 if test ${ac_cv_prog_cc_c99+y}
5384 then :
5385   printf %s "(cached) " >&6
5386 else $as_nop
5387   ac_cv_prog_cc_c99=no
5388 ac_save_CC=$CC
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h.  */
5391 #include <stdarg.h>
5392 #include <stdbool.h>
5393 #include <stddef.h>
5394 #include <stdlib.h>
5395 #include <wchar.h>
5396 #include <stdio.h>
5397
5398 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5399 #define debug(...) fprintf (stderr, __VA_ARGS__)
5400 #define showlist(...) puts (#__VA_ARGS__)
5401 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5402 static void
5403 test_varargs_macros (void)
5404 {
5405   int x = 1234;
5406   int y = 5678;
5407   debug ("Flag");
5408   debug ("X = %d\n", x);
5409   showlist (The first, second, and third items.);
5410   report (x>y, "x is %d but y is %d", x, y);
5411 }
5412
5413 // Check long long types.
5414 #define BIG64 18446744073709551615ull
5415 #define BIG32 4294967295ul
5416 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5417 #if !BIG_OK
5418   your preprocessor is broken;
5419 #endif
5420 #if BIG_OK
5421 #else
5422   your preprocessor is broken;
5423 #endif
5424 static long long int bignum = -9223372036854775807LL;
5425 static unsigned long long int ubignum = BIG64;
5426
5427 struct incomplete_array
5428 {
5429   int datasize;
5430   double data[];
5431 };
5432
5433 struct named_init {
5434   int number;
5435   const wchar_t *name;
5436   double average;
5437 };
5438
5439 typedef const char *ccp;
5440
5441 static inline int
5442 test_restrict (ccp restrict text)
5443 {
5444   // See if C++-style comments work.
5445   // Iterate through items via the restricted pointer.
5446   // Also check for declarations in for loops.
5447   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5448     continue;
5449   return 0;
5450 }
5451
5452 // Check varargs and va_copy.
5453 static bool
5454 test_varargs (const char *format, ...)
5455 {
5456   va_list args;
5457   va_start (args, format);
5458   va_list args_copy;
5459   va_copy (args_copy, args);
5460
5461   const char *str = "";
5462   int number = 0;
5463   float fnumber = 0;
5464
5465   while (*format)
5466     {
5467       switch (*format++)
5468         {
5469         case 's': // string
5470           str = va_arg (args_copy, const char *);
5471           break;
5472         case 'd': // int
5473           number = va_arg (args_copy, int);
5474           break;
5475         case 'f': // float
5476           fnumber = va_arg (args_copy, double);
5477           break;
5478         default:
5479           break;
5480         }
5481     }
5482   va_end (args_copy);
5483   va_end (args);
5484
5485   return *str && number && fnumber;
5486 }
5487 int
5488 main (void)
5489 {
5490
5491   // Check bool.
5492   _Bool success = false;
5493
5494   // Check restrict.
5495   if (test_restrict ("String literal") == 0)
5496     success = true;
5497   char *restrict newvar = "Another string";
5498
5499   // Check varargs.
5500   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5501   test_varargs_macros ();
5502
5503   // Check flexible array members.
5504   struct incomplete_array *ia =
5505     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5506   ia->datasize = 10;
5507   for (int i = 0; i < ia->datasize; ++i)
5508     ia->data[i] = i * 1.234;
5509
5510   // Check named initializers.
5511   struct named_init ni = {
5512     .number = 34,
5513     .name = L"Test wide string",
5514     .average = 543.34343,
5515   };
5516
5517   ni.number = 58;
5518
5519   int dynamic_array[ni.number];
5520   dynamic_array[ni.number - 1] = 543;
5521
5522   // work around unused variable warnings
5523   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5524           || dynamic_array[ni.number - 1] != 543);
5525
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5531 do
5532   CC="$ac_save_CC $ac_arg"
5533   if ac_fn_c_try_compile "$LINENO"
5534 then :
5535   ac_cv_prog_cc_c99=$ac_arg
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam
5538   test "x$ac_cv_prog_cc_c99" != "xno" && break
5539 done
5540 rm -f conftest.$ac_ext
5541 CC=$ac_save_CC
5542
5543 fi
5544 # AC_CACHE_VAL
5545 ac_prog_cc_stdc_options=
5546 case "x$ac_cv_prog_cc_c99" in
5547   x)
5548     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5549 printf "%s\n" "none needed" >&6; } ;;
5550   xno)
5551     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5552 printf "%s\n" "unsupported" >&6; } ;;
5553   *)
5554     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5555     CC=$CC$ac_prog_cc_stdc_options
5556     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5557 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
5558 esac
5559 if test "x$ac_cv_prog_cc_c99" != xno
5560 then :
5561   ac_prog_cc_stdc=c99
5562                     ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5563 else $as_nop
5564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5565 printf %s "checking for $CC option to enable C89 features... " >&6; }
5566 if test ${ac_cv_prog_cc_c89+y}
5567 then :
5568   printf %s "(cached) " >&6
5569 else $as_nop
5570   ac_cv_prog_cc_c89=no
5571 ac_save_CC=$CC
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h.  */
5574 $ac_c_conftest_c89_globals
5575 int
5576 main (void)
5577 {
5578 $ac_c_conftest_c89_main
5579   ;
5580   return 0;
5581 }
5582 _ACEOF
5583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5584 do
5585   CC="$ac_save_CC $ac_arg"
5586   if ac_fn_c_try_compile "$LINENO"
5587 then :
5588   ac_cv_prog_cc_c89=$ac_arg
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.beam
5591   test "x$ac_cv_prog_cc_c89" != "xno" && break
5592 done
5593 rm -f conftest.$ac_ext
5594 CC=$ac_save_CC
5595
5596 fi
5597 # AC_CACHE_VAL
5598 ac_prog_cc_stdc_options=
5599 case "x$ac_cv_prog_cc_c89" in
5600   x)
5601     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5602 printf "%s\n" "none needed" >&6; } ;;
5603   xno)
5604     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5605 printf "%s\n" "unsupported" >&6; } ;;
5606   *)
5607     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5608     CC=$CC$ac_prog_cc_stdc_options
5609     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5610 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
5611 esac
5612 if test "x$ac_cv_prog_cc_c89" != xno
5613 then :
5614   ac_prog_cc_stdc=c89
5615                        ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5616 else $as_nop
5617   ac_prog_cc_stdc=no
5618                        ac_cv_prog_cc_stdc=no
5619 fi
5620
5621 fi
5622
5623 fi
5624
5625 ac_ext=c
5626 ac_cpp='$CPP $CPPFLAGS'
5627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630
5631
5632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5633 printf %s "checking whether the compiler is clang... " >&6; }
5634 if test ${gl_cv_compiler_clang+y}
5635 then :
5636   printf %s "(cached) " >&6
5637 else $as_nop
5638                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640
5641            #ifdef __clang__
5642            barfbarf
5643            #endif
5644
5645 int
5646 main (void)
5647 {
5648
5649   ;
5650   return 0;
5651 }
5652
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"
5655 then :
5656   gl_cv_compiler_clang=no
5657 else $as_nop
5658   gl_cv_compiler_clang=yes
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5661
5662 fi
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5664 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5665
5666
5667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5668 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5669 if test ${gl_cv_compiler_check_decl_option+y}
5670 then :
5671   printf %s "(cached) " >&6
5672 else $as_nop
5673   if test $gl_cv_compiler_clang = yes; then
5674                      save_ac_compile="$ac_compile"
5675        ac_compile="$ac_compile -Werror=implicit-function-declaration"
5676                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h.  */
5678
5679 int
5680 main (void)
5681 {
5682
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"
5688 then :
5689   gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5690 else $as_nop
5691   gl_cv_compiler_check_decl_option=none
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5694        ac_compile="$save_ac_compile"
5695      else
5696        gl_cv_compiler_check_decl_option=none
5697      fi
5698
5699 fi
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5701 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5702   if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5703     ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5704   else
5705     ac_compile_for_check_decl="$ac_compile"
5706   fi
5707
5708
5709 depcc="$CC"   am_compiler_list=
5710
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5712 printf %s "checking dependency style of $depcc... " >&6; }
5713 if test ${am_cv_CC_dependencies_compiler_type+y}
5714 then :
5715   printf %s "(cached) " >&6
5716 else $as_nop
5717   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5718   # We make a subdir and do the tests there.  Otherwise we can end up
5719   # making bogus files that we don't know about and never remove.  For
5720   # instance it was reported that on HP-UX the gcc test will end up
5721   # making a dummy file named 'D' -- because '-MD' means "put the output
5722   # in D".
5723   rm -rf conftest.dir
5724   mkdir conftest.dir
5725   # Copy depcomp to subdir because otherwise we won't find it if we're
5726   # using a relative directory.
5727   cp "$am_depcomp" conftest.dir
5728   cd conftest.dir
5729   # We will build objects and dependencies in a subdirectory because
5730   # it helps to detect inapplicable dependency modes.  For instance
5731   # both Tru64's cc and ICC support -MD to output dependencies as a
5732   # side effect of compilation, but ICC will put the dependencies in
5733   # the current directory while Tru64 will put them in the object
5734   # directory.
5735   mkdir sub
5736
5737   am_cv_CC_dependencies_compiler_type=none
5738   if test "$am_compiler_list" = ""; then
5739      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5740   fi
5741   am__universal=false
5742   case " $depcc " in #(
5743      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5744      esac
5745
5746   for depmode in $am_compiler_list; do
5747     # Setup a source with many dependencies, because some compilers
5748     # like to wrap large dependency lists on column 80 (with \), and
5749     # we should not choose a depcomp mode which is confused by this.
5750     #
5751     # We need to recreate these files for each test, as the compiler may
5752     # overwrite some of them when testing with obscure command lines.
5753     # This happens at least with the AIX C compiler.
5754     : > sub/conftest.c
5755     for i in 1 2 3 4 5 6; do
5756       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5757       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5758       # Solaris 10 /bin/sh.
5759       echo '/* dummy */' > sub/conftst$i.h
5760     done
5761     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5762
5763     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5764     # mode.  It turns out that the SunPro C++ compiler does not properly
5765     # handle '-M -o', and we need to detect this.  Also, some Intel
5766     # versions had trouble with output in subdirs.
5767     am__obj=sub/conftest.${OBJEXT-o}
5768     am__minus_obj="-o $am__obj"
5769     case $depmode in
5770     gcc)
5771       # This depmode causes a compiler race in universal mode.
5772       test "$am__universal" = false || continue
5773       ;;
5774     nosideeffect)
5775       # After this tag, mechanisms are not by side-effect, so they'll
5776       # only be used when explicitly requested.
5777       if test "x$enable_dependency_tracking" = xyes; then
5778         continue
5779       else
5780         break
5781       fi
5782       ;;
5783     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5784       # This compiler won't grok '-c -o', but also, the minuso test has
5785       # not run yet.  These depmodes are late enough in the game, and
5786       # so weak that their functioning should not be impacted.
5787       am__obj=conftest.${OBJEXT-o}
5788       am__minus_obj=
5789       ;;
5790     none) break ;;
5791     esac
5792     if depmode=$depmode \
5793        source=sub/conftest.c object=$am__obj \
5794        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5795        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5796          >/dev/null 2>conftest.err &&
5797        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5798        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5799        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5800        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5801       # icc doesn't choke on unknown options, it will just issue warnings
5802       # or remarks (even with -Werror).  So we grep stderr for any message
5803       # that says an option was ignored or not supported.
5804       # When given -MP, icc 7.0 and 7.1 complain thusly:
5805       #   icc: Command line warning: ignoring option '-M'; no argument required
5806       # The diagnosis changed in icc 8.0:
5807       #   icc: Command line remark: option '-MP' not supported
5808       if (grep 'ignoring option' conftest.err ||
5809           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5810         am_cv_CC_dependencies_compiler_type=$depmode
5811         break
5812       fi
5813     fi
5814   done
5815
5816   cd ..
5817   rm -rf conftest.dir
5818 else
5819   am_cv_CC_dependencies_compiler_type=none
5820 fi
5821
5822 fi
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5824 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5826
5827  if
5828   test "x$enable_dependency_tracking" != xno \
5829   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5830   am__fastdepCC_TRUE=
5831   am__fastdepCC_FALSE='#'
5832 else
5833   am__fastdepCC_TRUE='#'
5834   am__fastdepCC_FALSE=
5835 fi
5836
5837
5838
5839 ac_header= ac_cache=
5840 for ac_item in $ac_header_c_list
5841 do
5842   if test $ac_cache; then
5843     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5844     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5845       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5846     fi
5847     ac_header= ac_cache=
5848   elif test $ac_header; then
5849     ac_cache=$ac_item
5850   else
5851     ac_header=$ac_item
5852   fi
5853 done
5854
5855
5856
5857
5858
5859
5860
5861
5862 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5863 then :
5864
5865 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5866
5867 fi
5868
5869   ac_fn_c_check_header_compile "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5870 if test "x$ac_cv_header_minix_config_h" = xyes
5871 then :
5872   MINIX=yes
5873 else $as_nop
5874   MINIX=
5875 fi
5876
5877   if test "$MINIX" = yes; then
5878
5879 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5880
5881
5882 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5883
5884
5885 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5886
5887
5888 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5889
5890   fi
5891
5892
5893   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5894 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5895 if test ${ac_cv_safe_to_define___extensions__+y}
5896 then :
5897   printf %s "(cached) " >&6
5898 else $as_nop
5899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h.  */
5901
5902 #         define __EXTENSIONS__ 1
5903           $ac_includes_default
5904 int
5905 main (void)
5906 {
5907
5908   ;
5909   return 0;
5910 }
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"
5913 then :
5914   ac_cv_safe_to_define___extensions__=yes
5915 else $as_nop
5916   ac_cv_safe_to_define___extensions__=no
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5919 fi
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5921 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5922   test $ac_cv_safe_to_define___extensions__ = yes &&
5923     printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5924
5925   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5926
5927   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5928
5929   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5930
5931   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5932
5933   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5934
5935   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5936
5937   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5938
5939   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5940
5941   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5942
5943   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5944
5945   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5946
5947   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5948
5949   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5950
5951   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5952
5953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5954 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5955 if test ${ac_cv_should_define__xopen_source+y}
5956 then :
5957   printf %s "(cached) " >&6
5958 else $as_nop
5959   ac_cv_should_define__xopen_source=no
5960      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h.  */
5962
5963           #include <wchar.h>
5964           mbstate_t x;
5965 int
5966 main (void)
5967 {
5968
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"
5974 then :
5975
5976 else $as_nop
5977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h.  */
5979
5980              #define _XOPEN_SOURCE 500
5981              #include <wchar.h>
5982              mbstate_t x;
5983 int
5984 main (void)
5985 {
5986
5987   ;
5988   return 0;
5989 }
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"
5992 then :
5993   ac_cv_should_define__xopen_source=yes
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5998 fi
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6000 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6001   test $ac_cv_should_define__xopen_source = yes &&
6002     printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6003
6004   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6005
6006
6007
6008
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tar --sort=name works" >&5
6010 printf %s "checking if tar --sort=name works... " >&6; }
6011 rm -rf conftest.dir
6012 mkdir conftest.dir
6013 echo GrepMe > conftest.dir/file
6014 { echo "$as_me:$LINENO: ${TAR-tar} chof - conftest.dir --sort=name >conftest.tar" >&5
6015    (${TAR-tar} chof - conftest.dir --sort=name >conftest.tar) >&5 2>&5
6016    ac_status=$?
6017    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018    (exit $ac_status); }
6019 if test -s conftest.tar; then
6020        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6021 printf "%s\n" "yes" >&6; }
6022        am__tar="$am__tar --sort=name"
6023 else
6024        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 printf "%s\n" "no" >&6; }
6026 fi
6027 rm -rf conftest.dir
6028
6029
6030 ac_config_headers="$ac_config_headers config.h"
6031
6032
6033
6034   # Make sure we can run config.sub.
6035 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6036   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6037
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6039 printf %s "checking build system type... " >&6; }
6040 if test ${ac_cv_build+y}
6041 then :
6042   printf %s "(cached) " >&6
6043 else $as_nop
6044   ac_build_alias=$build_alias
6045 test "x$ac_build_alias" = x &&
6046   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6047 test "x$ac_build_alias" = x &&
6048   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6049 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6050   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6051
6052 fi
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6054 printf "%s\n" "$ac_cv_build" >&6; }
6055 case $ac_cv_build in
6056 *-*-*) ;;
6057 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6058 esac
6059 build=$ac_cv_build
6060 ac_save_IFS=$IFS; IFS='-'
6061 set x $ac_cv_build
6062 shift
6063 build_cpu=$1
6064 build_vendor=$2
6065 shift; shift
6066 # Remember, the first character of IFS is used to create $*,
6067 # except with old shells:
6068 build_os=$*
6069 IFS=$ac_save_IFS
6070 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6071
6072
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6074 printf %s "checking host system type... " >&6; }
6075 if test ${ac_cv_host+y}
6076 then :
6077   printf %s "(cached) " >&6
6078 else $as_nop
6079   if test "x$host_alias" = x; then
6080   ac_cv_host=$ac_cv_build
6081 else
6082   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6083     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6084 fi
6085
6086 fi
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6088 printf "%s\n" "$ac_cv_host" >&6; }
6089 case $ac_cv_host in
6090 *-*-*) ;;
6091 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6092 esac
6093 host=$ac_cv_host
6094 ac_save_IFS=$IFS; IFS='-'
6095 set x $ac_cv_host
6096 shift
6097 host_cpu=$1
6098 host_vendor=$2
6099 shift; shift
6100 # Remember, the first character of IFS is used to create $*,
6101 # except with old shells:
6102 host_os=$*
6103 IFS=$ac_save_IFS
6104 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6105
6106
6107
6108 # Check $PATH for the following programs and append suitable options.
6109
6110
6111
6112
6113 ac_ext=c
6114 ac_cpp='$CPP $CPPFLAGS'
6115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6119 printf %s "checking how to run the C preprocessor... " >&6; }
6120 # On Suns, sometimes $CPP names a directory.
6121 if test -n "$CPP" && test -d "$CPP"; then
6122   CPP=
6123 fi
6124 if test -z "$CPP"; then
6125   if test ${ac_cv_prog_CPP+y}
6126 then :
6127   printf %s "(cached) " >&6
6128 else $as_nop
6129       # Double quotes because $CC needs to be expanded
6130     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6131     do
6132       ac_preproc_ok=false
6133 for ac_c_preproc_warn_flag in '' yes
6134 do
6135   # Use a header file that comes with gcc, so configuring glibc
6136   # with a fresh cross-compiler works.
6137   # On the NeXT, cc -E runs the code through the compiler's parser,
6138   # not just through cpp. "Syntax error" is here to catch this case.
6139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h.  */
6141 #include <limits.h>
6142                      Syntax error
6143 _ACEOF
6144 if ac_fn_c_try_cpp "$LINENO"
6145 then :
6146
6147 else $as_nop
6148   # Broken: fails on valid input.
6149 continue
6150 fi
6151 rm -f conftest.err conftest.i conftest.$ac_ext
6152
6153   # OK, works on sane cases.  Now check whether nonexistent headers
6154   # can be detected and how.
6155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h.  */
6157 #include <ac_nonexistent.h>
6158 _ACEOF
6159 if ac_fn_c_try_cpp "$LINENO"
6160 then :
6161   # Broken: success on invalid input.
6162 continue
6163 else $as_nop
6164   # Passes both tests.
6165 ac_preproc_ok=:
6166 break
6167 fi
6168 rm -f conftest.err conftest.i conftest.$ac_ext
6169
6170 done
6171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6172 rm -f conftest.i conftest.err conftest.$ac_ext
6173 if $ac_preproc_ok
6174 then :
6175   break
6176 fi
6177
6178     done
6179     ac_cv_prog_CPP=$CPP
6180
6181 fi
6182   CPP=$ac_cv_prog_CPP
6183 else
6184   ac_cv_prog_CPP=$CPP
6185 fi
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6187 printf "%s\n" "$CPP" >&6; }
6188 ac_preproc_ok=false
6189 for ac_c_preproc_warn_flag in '' yes
6190 do
6191   # Use a header file that comes with gcc, so configuring glibc
6192   # with a fresh cross-compiler works.
6193   # On the NeXT, cc -E runs the code through the compiler's parser,
6194   # not just through cpp. "Syntax error" is here to catch this case.
6195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h.  */
6197 #include <limits.h>
6198                      Syntax error
6199 _ACEOF
6200 if ac_fn_c_try_cpp "$LINENO"
6201 then :
6202
6203 else $as_nop
6204   # Broken: fails on valid input.
6205 continue
6206 fi
6207 rm -f conftest.err conftest.i conftest.$ac_ext
6208
6209   # OK, works on sane cases.  Now check whether nonexistent headers
6210   # can be detected and how.
6211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h.  */
6213 #include <ac_nonexistent.h>
6214 _ACEOF
6215 if ac_fn_c_try_cpp "$LINENO"
6216 then :
6217   # Broken: success on invalid input.
6218 continue
6219 else $as_nop
6220   # Passes both tests.
6221 ac_preproc_ok=:
6222 break
6223 fi
6224 rm -f conftest.err conftest.i conftest.$ac_ext
6225
6226 done
6227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228 rm -f conftest.i conftest.err conftest.$ac_ext
6229 if $ac_preproc_ok
6230 then :
6231
6232 else $as_nop
6233   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6234 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6235 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6236 See \`config.log' for more details" "$LINENO" 5; }
6237 fi
6238
6239 ac_ext=c
6240 ac_cpp='$CPP $CPPFLAGS'
6241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6244
6245
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6247 printf %s "checking for grep that handles long lines and -e... " >&6; }
6248 if test ${ac_cv_path_GREP+y}
6249 then :
6250   printf %s "(cached) " >&6
6251 else $as_nop
6252   if test -z "$GREP"; then
6253   ac_path_GREP_found=false
6254   # Loop through the user's path and test for each of PROGNAME-LIST
6255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6257 do
6258   IFS=$as_save_IFS
6259   case $as_dir in #(((
6260     '') as_dir=./ ;;
6261     */) ;;
6262     *) as_dir=$as_dir/ ;;
6263   esac
6264     for ac_prog in grep ggrep
6265    do
6266     for ac_exec_ext in '' $ac_executable_extensions; do
6267       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6268       as_fn_executable_p "$ac_path_GREP" || continue
6269 # Check for GNU ac_path_GREP and select it if it is found.
6270   # Check for GNU $ac_path_GREP
6271 case `"$ac_path_GREP" --version 2>&1` in
6272 *GNU*)
6273   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6274 *)
6275   ac_count=0
6276   printf %s 0123456789 >"conftest.in"
6277   while :
6278   do
6279     cat "conftest.in" "conftest.in" >"conftest.tmp"
6280     mv "conftest.tmp" "conftest.in"
6281     cp "conftest.in" "conftest.nl"
6282     printf "%s\n" 'GREP' >> "conftest.nl"
6283     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6284     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6285     as_fn_arith $ac_count + 1 && ac_count=$as_val
6286     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6287       # Best one so far, save it but keep looking for a better one
6288       ac_cv_path_GREP="$ac_path_GREP"
6289       ac_path_GREP_max=$ac_count
6290     fi
6291     # 10*(2^10) chars as input seems more than enough
6292     test $ac_count -gt 10 && break
6293   done
6294   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6295 esac
6296
6297       $ac_path_GREP_found && break 3
6298     done
6299   done
6300   done
6301 IFS=$as_save_IFS
6302   if test -z "$ac_cv_path_GREP"; then
6303     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6304   fi
6305 else
6306   ac_cv_path_GREP=$GREP
6307 fi
6308
6309 fi
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6311 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6312  GREP="$ac_cv_path_GREP"
6313
6314
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6316 printf %s "checking for egrep... " >&6; }
6317 if test ${ac_cv_path_EGREP+y}
6318 then :
6319   printf %s "(cached) " >&6
6320 else $as_nop
6321   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6322    then ac_cv_path_EGREP="$GREP -E"
6323    else
6324      if test -z "$EGREP"; then
6325   ac_path_EGREP_found=false
6326   # Loop through the user's path and test for each of PROGNAME-LIST
6327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6329 do
6330   IFS=$as_save_IFS
6331   case $as_dir in #(((
6332     '') as_dir=./ ;;
6333     */) ;;
6334     *) as_dir=$as_dir/ ;;
6335   esac
6336     for ac_prog in egrep
6337    do
6338     for ac_exec_ext in '' $ac_executable_extensions; do
6339       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6340       as_fn_executable_p "$ac_path_EGREP" || continue
6341 # Check for GNU ac_path_EGREP and select it if it is found.
6342   # Check for GNU $ac_path_EGREP
6343 case `"$ac_path_EGREP" --version 2>&1` in
6344 *GNU*)
6345   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6346 *)
6347   ac_count=0
6348   printf %s 0123456789 >"conftest.in"
6349   while :
6350   do
6351     cat "conftest.in" "conftest.in" >"conftest.tmp"
6352     mv "conftest.tmp" "conftest.in"
6353     cp "conftest.in" "conftest.nl"
6354     printf "%s\n" 'EGREP' >> "conftest.nl"
6355     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6356     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6357     as_fn_arith $ac_count + 1 && ac_count=$as_val
6358     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6359       # Best one so far, save it but keep looking for a better one
6360       ac_cv_path_EGREP="$ac_path_EGREP"
6361       ac_path_EGREP_max=$ac_count
6362     fi
6363     # 10*(2^10) chars as input seems more than enough
6364     test $ac_count -gt 10 && break
6365   done
6366   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6367 esac
6368
6369       $ac_path_EGREP_found && break 3
6370     done
6371   done
6372   done
6373 IFS=$as_save_IFS
6374   if test -z "$ac_cv_path_EGREP"; then
6375     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6376   fi
6377 else
6378   ac_cv_path_EGREP=$EGREP
6379 fi
6380
6381    fi
6382 fi
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6384 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6385  EGREP="$ac_cv_path_EGREP"
6386
6387
6388
6389
6390
6391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6392 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6393 if test ${gl_cv_c_amsterdam_compiler+y}
6394 then :
6395   printf %s "(cached) " >&6
6396 else $as_nop
6397
6398       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h.  */
6400
6401 #ifdef __ACK__
6402 Amsterdam
6403 #endif
6404
6405 _ACEOF
6406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6407   $EGREP "Amsterdam" >/dev/null 2>&1
6408 then :
6409   gl_cv_c_amsterdam_compiler=yes
6410 else $as_nop
6411   gl_cv_c_amsterdam_compiler=no
6412 fi
6413 rm -rf conftest*
6414
6415
6416 fi
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6418 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6419
6420       if test $gl_cv_c_amsterdam_compiler = yes; then
6421     if test -z "$AR"; then
6422       AR='cc -c.a'
6423     fi
6424     if test -z "$ARFLAGS"; then
6425       ARFLAGS='-o'
6426     fi
6427   else
6428
6429   if test -n "$ac_tool_prefix"; then
6430   for ac_prog in ar lib "link -lib"
6431   do
6432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 printf %s "checking for $ac_word... " >&6; }
6436 if test ${ac_cv_prog_AR+y}
6437 then :
6438   printf %s "(cached) " >&6
6439 else $as_nop
6440   if test -n "$AR"; then
6441   ac_cv_prog_AR="$AR" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   case $as_dir in #(((
6448     '') as_dir=./ ;;
6449     */) ;;
6450     *) as_dir=$as_dir/ ;;
6451   esac
6452     for ac_exec_ext in '' $ac_executable_extensions; do
6453   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6454     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6455     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6456     break 2
6457   fi
6458 done
6459   done
6460 IFS=$as_save_IFS
6461
6462 fi
6463 fi
6464 AR=$ac_cv_prog_AR
6465 if test -n "$AR"; then
6466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6467 printf "%s\n" "$AR" >&6; }
6468 else
6469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 printf "%s\n" "no" >&6; }
6471 fi
6472
6473
6474     test -n "$AR" && break
6475   done
6476 fi
6477 if test -z "$AR"; then
6478   ac_ct_AR=$AR
6479   for ac_prog in ar lib "link -lib"
6480 do
6481   # Extract the first word of "$ac_prog", so it can be a program name with args.
6482 set dummy $ac_prog; ac_word=$2
6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 printf %s "checking for $ac_word... " >&6; }
6485 if test ${ac_cv_prog_ac_ct_AR+y}
6486 then :
6487   printf %s "(cached) " >&6
6488 else $as_nop
6489   if test -n "$ac_ct_AR"; then
6490   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   case $as_dir in #(((
6497     '') as_dir=./ ;;
6498     */) ;;
6499     *) as_dir=$as_dir/ ;;
6500   esac
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6503     ac_cv_prog_ac_ct_AR="$ac_prog"
6504     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6514 if test -n "$ac_ct_AR"; then
6515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6516 printf "%s\n" "$ac_ct_AR" >&6; }
6517 else
6518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 printf "%s\n" "no" >&6; }
6520 fi
6521
6522
6523   test -n "$ac_ct_AR" && break
6524 done
6525
6526   if test "x$ac_ct_AR" = x; then
6527     AR="false"
6528   else
6529     case $cross_compiling:$ac_tool_warned in
6530 yes:)
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6534 esac
6535     AR=$ac_ct_AR
6536   fi
6537 fi
6538
6539 : ${AR=ar}
6540
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6542 printf %s "checking the archiver ($AR) interface... " >&6; }
6543 if test ${am_cv_ar_interface+y}
6544 then :
6545   printf %s "(cached) " >&6
6546 else $as_nop
6547   ac_ext=c
6548 ac_cpp='$CPP $CPPFLAGS'
6549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6552
6553    am_cv_ar_interface=ar
6554    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h.  */
6556 int some_variable = 0;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"
6559 then :
6560   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6561       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6562   (eval $am_ar_try) 2>&5
6563   ac_status=$?
6564   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565   test $ac_status = 0; }
6566       if test "$ac_status" -eq 0; then
6567         am_cv_ar_interface=ar
6568       else
6569         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6570         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6571   (eval $am_ar_try) 2>&5
6572   ac_status=$?
6573   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574   test $ac_status = 0; }
6575         if test "$ac_status" -eq 0; then
6576           am_cv_ar_interface=lib
6577         else
6578           am_cv_ar_interface=unknown
6579         fi
6580       fi
6581       rm -f conftest.lib libconftest.a
6582
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6585    ac_ext=c
6586 ac_cpp='$CPP $CPPFLAGS'
6587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590
6591 fi
6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6593 printf "%s\n" "$am_cv_ar_interface" >&6; }
6594
6595 case $am_cv_ar_interface in
6596 ar)
6597   ;;
6598 lib)
6599   # Microsoft lib, so override with the ar-lib wrapper script.
6600   # FIXME: It is wrong to rewrite AR.
6601   # But if we don't then we get into trouble of one sort or another.
6602   # A longer-term fix would be to have automake use am__AR in this case,
6603   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6604   # similar.
6605   AR="$am_aux_dir/ar-lib $AR"
6606   ;;
6607 unknown)
6608   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6609   ;;
6610 esac
6611
6612   fi
6613
6614         if test -n "$ac_tool_prefix"; then
6615   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}ar; ac_word=$2
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 printf %s "checking for $ac_word... " >&6; }
6619 if test ${ac_cv_prog_AR+y}
6620 then :
6621   printf %s "(cached) " >&6
6622 else $as_nop
6623   if test -n "$AR"; then
6624   ac_cv_prog_AR="$AR" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   case $as_dir in #(((
6631     '') as_dir=./ ;;
6632     */) ;;
6633     *) as_dir=$as_dir/ ;;
6634   esac
6635     for ac_exec_ext in '' $ac_executable_extensions; do
6636   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6637     ac_cv_prog_AR="${ac_tool_prefix}ar"
6638     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642   done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 AR=$ac_cv_prog_AR
6648 if test -n "$AR"; then
6649   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6650 printf "%s\n" "$AR" >&6; }
6651 else
6652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 printf "%s\n" "no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_AR"; then
6659   ac_ct_AR=$AR
6660   # Extract the first word of "ar", so it can be a program name with args.
6661 set dummy ar; ac_word=$2
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 printf %s "checking for $ac_word... " >&6; }
6664 if test ${ac_cv_prog_ac_ct_AR+y}
6665 then :
6666   printf %s "(cached) " >&6
6667 else $as_nop
6668   if test -n "$ac_ct_AR"; then
6669   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   case $as_dir in #(((
6676     '') as_dir=./ ;;
6677     */) ;;
6678     *) as_dir=$as_dir/ ;;
6679   esac
6680     for ac_exec_ext in '' $ac_executable_extensions; do
6681   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6682     ac_cv_prog_ac_ct_AR="ar"
6683     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687   done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6693 if test -n "$ac_ct_AR"; then
6694   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6695 printf "%s\n" "$ac_ct_AR" >&6; }
6696 else
6697   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 printf "%s\n" "no" >&6; }
6699 fi
6700
6701   if test "x$ac_ct_AR" = x; then
6702     AR="ar"
6703   else
6704     case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710     AR=$ac_ct_AR
6711   fi
6712 else
6713   AR="$ac_cv_prog_AR"
6714 fi
6715
6716   if test -z "$ARFLAGS"; then
6717     ARFLAGS='cr'
6718   fi
6719
6720
6721
6722   if test -z "$RANLIB"; then
6723     if test $gl_cv_c_amsterdam_compiler = yes; then
6724       RANLIB=':'
6725     else
6726             if test -n "$ac_tool_prefix"; then
6727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 printf %s "checking for $ac_word... " >&6; }
6731 if test ${ac_cv_prog_RANLIB+y}
6732 then :
6733   printf %s "(cached) " >&6
6734 else $as_nop
6735   if test -n "$RANLIB"; then
6736   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   case $as_dir in #(((
6743     '') as_dir=./ ;;
6744     */) ;;
6745     *) as_dir=$as_dir/ ;;
6746   esac
6747     for ac_exec_ext in '' $ac_executable_extensions; do
6748   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6749     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6750     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754   done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 RANLIB=$ac_cv_prog_RANLIB
6760 if test -n "$RANLIB"; then
6761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6762 printf "%s\n" "$RANLIB" >&6; }
6763 else
6764   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 printf "%s\n" "no" >&6; }
6766 fi
6767
6768
6769 fi
6770 if test -z "$ac_cv_prog_RANLIB"; then
6771   ac_ct_RANLIB=$RANLIB
6772   # Extract the first word of "ranlib", so it can be a program name with args.
6773 set dummy ranlib; ac_word=$2
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 printf %s "checking for $ac_word... " >&6; }
6776 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6777 then :
6778   printf %s "(cached) " >&6
6779 else $as_nop
6780   if test -n "$ac_ct_RANLIB"; then
6781   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   case $as_dir in #(((
6788     '') as_dir=./ ;;
6789     */) ;;
6790     *) as_dir=$as_dir/ ;;
6791   esac
6792     for ac_exec_ext in '' $ac_executable_extensions; do
6793   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6794     ac_cv_prog_ac_ct_RANLIB="ranlib"
6795     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799   done
6800 IFS=$as_save_IFS
6801
6802 fi
6803 fi
6804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6805 if test -n "$ac_ct_RANLIB"; then
6806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6807 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6808 else
6809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 printf "%s\n" "no" >&6; }
6811 fi
6812
6813   if test "x$ac_ct_RANLIB" = x; then
6814     RANLIB=":"
6815   else
6816     case $cross_compiling:$ac_tool_warned in
6817 yes:)
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820 ac_tool_warned=yes ;;
6821 esac
6822     RANLIB=$ac_ct_RANLIB
6823   fi
6824 else
6825   RANLIB="$ac_cv_prog_RANLIB"
6826 fi
6827
6828     fi
6829   fi
6830
6831
6832
6833 # Check whether --enable-largefile was given.
6834 if test ${enable_largefile+y}
6835 then :
6836   enableval=$enable_largefile;
6837 fi
6838
6839 if test "$enable_largefile" != no; then
6840
6841   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6842 printf %s "checking for special C compiler options needed for large files... " >&6; }
6843 if test ${ac_cv_sys_largefile_CC+y}
6844 then :
6845   printf %s "(cached) " >&6
6846 else $as_nop
6847   ac_cv_sys_largefile_CC=no
6848      if test "$GCC" != yes; then
6849        ac_save_CC=$CC
6850        while :; do
6851          # IRIX 6.2 and later do not support large files by default,
6852          # so use the C compiler's -n32 option if that helps.
6853          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h.  */
6855 #include <sys/types.h>
6856  /* Check that off_t can represent 2**63 - 1 correctly.
6857     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6858     since some C++ compilers masquerading as C compilers
6859     incorrectly reject 9223372036854775807.  */
6860 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6861   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6862                        && LARGE_OFF_T % 2147483647 == 1)
6863                       ? 1 : -1];
6864 int
6865 main (void)
6866 {
6867
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872          if ac_fn_c_try_compile "$LINENO"
6873 then :
6874   break
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.beam
6877          CC="$CC -n32"
6878          if ac_fn_c_try_compile "$LINENO"
6879 then :
6880   ac_cv_sys_largefile_CC=' -n32'; break
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext conftest.beam
6883          break
6884        done
6885        CC=$ac_save_CC
6886        rm -f conftest.$ac_ext
6887     fi
6888 fi
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6890 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
6891   if test "$ac_cv_sys_largefile_CC" != no; then
6892     CC=$CC$ac_cv_sys_largefile_CC
6893   fi
6894
6895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6896 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6897 if test ${ac_cv_sys_file_offset_bits+y}
6898 then :
6899   printf %s "(cached) " >&6
6900 else $as_nop
6901   while :; do
6902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h.  */
6904 #include <sys/types.h>
6905  /* Check that off_t can represent 2**63 - 1 correctly.
6906     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6907     since some C++ compilers masquerading as C compilers
6908     incorrectly reject 9223372036854775807.  */
6909 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6910   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6911                        && LARGE_OFF_T % 2147483647 == 1)
6912                       ? 1 : -1];
6913 int
6914 main (void)
6915 {
6916
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"
6922 then :
6923   ac_cv_sys_file_offset_bits=no; break
6924 fi
6925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h.  */
6928 #define _FILE_OFFSET_BITS 64
6929 #include <sys/types.h>
6930  /* Check that off_t can represent 2**63 - 1 correctly.
6931     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6932     since some C++ compilers masquerading as C compilers
6933     incorrectly reject 9223372036854775807.  */
6934 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6935   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6936                        && LARGE_OFF_T % 2147483647 == 1)
6937                       ? 1 : -1];
6938 int
6939 main (void)
6940 {
6941
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 if ac_fn_c_try_compile "$LINENO"
6947 then :
6948   ac_cv_sys_file_offset_bits=64; break
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6951   ac_cv_sys_file_offset_bits=unknown
6952   break
6953 done
6954 fi
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6956 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
6957 case $ac_cv_sys_file_offset_bits in #(
6958   no | unknown) ;;
6959   *)
6960 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
6961 ;;
6962 esac
6963 rm -rf conftest*
6964   if test $ac_cv_sys_file_offset_bits = unknown; then
6965     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6966 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
6967 if test ${ac_cv_sys_large_files+y}
6968 then :
6969   printf %s "(cached) " >&6
6970 else $as_nop
6971   while :; do
6972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h.  */
6974 #include <sys/types.h>
6975  /* Check that off_t can represent 2**63 - 1 correctly.
6976     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6977     since some C++ compilers masquerading as C compilers
6978     incorrectly reject 9223372036854775807.  */
6979 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6980   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6981                        && LARGE_OFF_T % 2147483647 == 1)
6982                       ? 1 : -1];
6983 int
6984 main (void)
6985 {
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_compile "$LINENO"
6992 then :
6993   ac_cv_sys_large_files=no; break
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h.  */
6998 #define _LARGE_FILES 1
6999 #include <sys/types.h>
7000  /* Check that off_t can represent 2**63 - 1 correctly.
7001     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7002     since some C++ compilers masquerading as C compilers
7003     incorrectly reject 9223372036854775807.  */
7004 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7005   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7006                        && LARGE_OFF_T % 2147483647 == 1)
7007                       ? 1 : -1];
7008 int
7009 main (void)
7010 {
7011
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 if ac_fn_c_try_compile "$LINENO"
7017 then :
7018   ac_cv_sys_large_files=1; break
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7021   ac_cv_sys_large_files=unknown
7022   break
7023 done
7024 fi
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7026 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7027 case $ac_cv_sys_large_files in #(
7028   no | unknown) ;;
7029   *)
7030 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7031 ;;
7032 esac
7033 rm -rf conftest*
7034   fi
7035 fi
7036
7037
7038
7039
7040
7041
7042
7043   # Check whether --enable-threads was given.
7044 if test ${enable_threads+y}
7045 then :
7046   enableval=$enable_threads; gl_use_threads=$enableval
7047 else $as_nop
7048   if test -n "$gl_use_threads_default"; then
7049        gl_use_threads="$gl_use_threads_default"
7050      else
7051        case "$host_os" in
7052                                     osf*) gl_use_threads=no ;;
7053                                     cygwin*)
7054                case `uname -r` in
7055                  1.[0-5].*) gl_use_threads=no ;;
7056                  *)         gl_use_threads=yes ;;
7057                esac
7058                ;;
7059                   mingw*)
7060                case "$gl_use_winpthreads_default" in
7061                  yes) gl_use_threads=posix ;;
7062                  no)  gl_use_threads=windows ;;
7063                  *)   gl_use_threads=yes ;;
7064                esac
7065                ;;
7066          *)    gl_use_threads=yes ;;
7067        esac
7068      fi
7069
7070 fi
7071
7072   if test "$gl_use_threads" = yes \
7073      || test "$gl_use_threads" = isoc \
7074      || test "$gl_use_threads" = posix \
7075      || test "$gl_use_threads" = isoc+posix; then
7076     # For using <threads.h> or <pthread.h>:
7077
7078
7079   if test -z "$gl_anythreadlib_early_done"; then
7080     case "$host_os" in
7081       osf*)
7082         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7083         # groks <pthread.h>. cc also understands the flag -pthread, but
7084         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7085         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7086         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7087         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7088         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7089         ;;
7090     esac
7091     # Some systems optimize for single-threaded programs by default, and
7092     # need special flags to disable these optimizations. For example, the
7093     # definition of 'errno' in <errno.h>.
7094     case "$host_os" in
7095       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7096       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7097     esac
7098     gl_anythreadlib_early_done=done
7099   fi
7100
7101   fi
7102
7103
7104
7105   # Pre-early section.
7106
7107
7108
7109
7110   # Code from module absolute-header:
7111   # Code from module alloca-opt:
7112   # Code from module attribute:
7113   # Code from module basename-lgpl:
7114   # Code from module c99:
7115   # Code from module clock-time:
7116   # Code from module cloexec:
7117   # Code from module close:
7118   # Code from module dirname:
7119   # Code from module dirname-lgpl:
7120   # Code from module double-slash-root:
7121   # Code from module dup2:
7122   # Code from module environ:
7123   # Code from module errno:
7124   # Code from module error:
7125   # Code from module exitfail:
7126   # Code from module extensions:
7127   # Code from module extern-inline:
7128   # Code from module fcntl:
7129   # Code from module fcntl-h:
7130   # Code from module fd-hook:
7131   # Code from module filename:
7132   # Code from module float:
7133   # Code from module fstat:
7134   # Code from module full-write:
7135   # Code from module getdtablesize:
7136   # Code from module getprogname:
7137   # Code from module getrandom:
7138   # Code from module gettext-h:
7139   # Code from module gitlog-to-changelog:
7140   # Code from module gnupload:
7141   # Code from module include_next:
7142   # Code from module intprops:
7143   # Code from module inttypes-incomplete:
7144   # Code from module largefile:
7145
7146   # Code from module lib-ignore:
7147   # Code from module libc-config:
7148   # Code from module limits-h:
7149   # Code from module lock:
7150   # Code from module lstat:
7151   # Code from module malloc-posix:
7152   # Code from module malloca:
7153   # Code from module manywarnings:
7154   # Code from module memchr:
7155   # Code from module minmax:
7156   # Code from module mkdir:
7157   # Code from module mkdtemp:
7158   # Code from module msvc-inval:
7159   # Code from module msvc-nothrow:
7160   # Code from module multiarch:
7161   # Code from module open:
7162   # Code from module pathmax:
7163   # Code from module raise:
7164   # Code from module read:
7165   # Code from module safe-read:
7166   # Code from module safe-write:
7167   # Code from module setenv:
7168   # Code from module sigaction:
7169   # Code from module signal:
7170   # Code from module signal-h:
7171   # Code from module sigprocmask:
7172   # Code from module size_max:
7173   # Code from module snippet/_Noreturn:
7174   # Code from module snippet/arg-nonnull:
7175   # Code from module snippet/c++defs:
7176   # Code from module snippet/warn-on-use:
7177   # Code from module snprintf:
7178   # Code from module ssize_t:
7179   # Code from module stat:
7180   # Code from module stat-time:
7181   # Code from module std-gnu11:
7182   # Code from module stdalign:
7183   # Code from module stdarg:
7184
7185
7186
7187   # Code from module stdbool:
7188   # Code from module stddef:
7189   # Code from module stdint:
7190   # Code from module stdio:
7191   # Code from module stdlib:
7192   # Code from module strerror:
7193   # Code from module strerror-override:
7194   # Code from module string:
7195   # Code from module strndup:
7196   # Code from module strnlen:
7197   # Code from module strsignal:
7198   # Code from module sys_random:
7199   # Code from module sys_select:
7200   # Code from module sys_stat:
7201   # Code from module sys_time:
7202   # Code from module sys_types:
7203   # Code from module sys_wait:
7204   # Code from module tempname:
7205   # Code from module threadlib:
7206
7207
7208
7209   # Code from module time:
7210   # Code from module tls:
7211   # Code from module unistd:
7212   # Code from module unsetenv:
7213   # Code from module vasnprintf:
7214   # Code from module vasprintf:
7215   # Code from module verify:
7216   # Code from module waitpid:
7217   # Code from module warnings:
7218   # Code from module wchar:
7219   # Code from module windows-mutex:
7220   # Code from module windows-once:
7221   # Code from module windows-recmutex:
7222   # Code from module windows-rwlock:
7223   # Code from module windows-tls:
7224   # Code from module write:
7225   # Code from module xalloc:
7226   # Code from module xalloc-die:
7227   # Code from module xalloc-oversized:
7228   # Code from module xsize:
7229   # Code from module xstrndup:
7230   # Code from module xvasprintf:
7231
7232 ac_ext=c
7233 ac_cpp='$CPP $CPPFLAGS'
7234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7238 printf %s "checking how to run the C preprocessor... " >&6; }
7239 # On Suns, sometimes $CPP names a directory.
7240 if test -n "$CPP" && test -d "$CPP"; then
7241   CPP=
7242 fi
7243 if test -z "$CPP"; then
7244   if test ${ac_cv_prog_CPP+y}
7245 then :
7246   printf %s "(cached) " >&6
7247 else $as_nop
7248       # Double quotes because $CC needs to be expanded
7249     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7250     do
7251       ac_preproc_ok=false
7252 for ac_c_preproc_warn_flag in '' yes
7253 do
7254   # Use a header file that comes with gcc, so configuring glibc
7255   # with a fresh cross-compiler works.
7256   # On the NeXT, cc -E runs the code through the compiler's parser,
7257   # not just through cpp. "Syntax error" is here to catch this case.
7258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h.  */
7260 #include <limits.h>
7261                      Syntax error
7262 _ACEOF
7263 if ac_fn_c_try_cpp "$LINENO"
7264 then :
7265
7266 else $as_nop
7267   # Broken: fails on valid input.
7268 continue
7269 fi
7270 rm -f conftest.err conftest.i conftest.$ac_ext
7271
7272   # OK, works on sane cases.  Now check whether nonexistent headers
7273   # can be detected and how.
7274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h.  */
7276 #include <ac_nonexistent.h>
7277 _ACEOF
7278 if ac_fn_c_try_cpp "$LINENO"
7279 then :
7280   # Broken: success on invalid input.
7281 continue
7282 else $as_nop
7283   # Passes both tests.
7284 ac_preproc_ok=:
7285 break
7286 fi
7287 rm -f conftest.err conftest.i conftest.$ac_ext
7288
7289 done
7290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7291 rm -f conftest.i conftest.err conftest.$ac_ext
7292 if $ac_preproc_ok
7293 then :
7294   break
7295 fi
7296
7297     done
7298     ac_cv_prog_CPP=$CPP
7299
7300 fi
7301   CPP=$ac_cv_prog_CPP
7302 else
7303   ac_cv_prog_CPP=$CPP
7304 fi
7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7306 printf "%s\n" "$CPP" >&6; }
7307 ac_preproc_ok=false
7308 for ac_c_preproc_warn_flag in '' yes
7309 do
7310   # Use a header file that comes with gcc, so configuring glibc
7311   # with a fresh cross-compiler works.
7312   # On the NeXT, cc -E runs the code through the compiler's parser,
7313   # not just through cpp. "Syntax error" is here to catch this case.
7314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h.  */
7316 #include <limits.h>
7317                      Syntax error
7318 _ACEOF
7319 if ac_fn_c_try_cpp "$LINENO"
7320 then :
7321
7322 else $as_nop
7323   # Broken: fails on valid input.
7324 continue
7325 fi
7326 rm -f conftest.err conftest.i conftest.$ac_ext
7327
7328   # OK, works on sane cases.  Now check whether nonexistent headers
7329   # can be detected and how.
7330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h.  */
7332 #include <ac_nonexistent.h>
7333 _ACEOF
7334 if ac_fn_c_try_cpp "$LINENO"
7335 then :
7336   # Broken: success on invalid input.
7337 continue
7338 else $as_nop
7339   # Passes both tests.
7340 ac_preproc_ok=:
7341 break
7342 fi
7343 rm -f conftest.err conftest.i conftest.$ac_ext
7344
7345 done
7346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7347 rm -f conftest.i conftest.err conftest.$ac_ext
7348 if $ac_preproc_ok
7349 then :
7350
7351 else $as_nop
7352   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7353 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7354 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7355 See \`config.log' for more details" "$LINENO" 5; }
7356 fi
7357
7358 ac_ext=c
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364 CFLAGS="$CFLAGS -Wall"
7365 # Enable all reasonable GCC warnings.
7366
7367   ac_ext=c
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373
7374
7375   if test -n "$GCC"; then
7376
7377             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7378 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7379 if test ${gl_cv_cc_nomfi_supported+y}
7380 then :
7381   printf %s "(cached) " >&6
7382 else $as_nop
7383   gl_save_CFLAGS="$CFLAGS"
7384        CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers"
7385        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h.  */
7387
7388 int
7389 main (void)
7390 {
7391
7392   ;
7393   return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_compile "$LINENO"
7397 then :
7398   gl_cv_cc_nomfi_supported=yes
7399 else $as_nop
7400   gl_cv_cc_nomfi_supported=no
7401 fi
7402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7403        CFLAGS="$gl_save_CFLAGS"
7404
7405 fi
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7407 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; }
7408
7409     if test "$gl_cv_cc_nomfi_supported" = yes; then
7410                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7411 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7412 if test ${gl_cv_cc_nomfi_needed+y}
7413 then :
7414   printf %s "(cached) " >&6
7415 else $as_nop
7416   gl_save_CFLAGS="$CFLAGS"
7417          CFLAGS="$CFLAGS -Wextra -Werror"
7418          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h.  */
7420 int f (void)
7421                 {
7422                   typedef struct { int a; int b; } s_t;
7423                   s_t s1 = { 0, };
7424                   return s1.b;
7425                 }
7426
7427 int
7428 main (void)
7429 {
7430
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"
7436 then :
7437   gl_cv_cc_nomfi_needed=no
7438 else $as_nop
7439   gl_cv_cc_nomfi_needed=yes
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7442          CFLAGS="$gl_save_CFLAGS"
7443
7444 fi
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7446 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
7447     fi
7448
7449                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7450 printf %s "checking whether -Wuninitialized is supported... " >&6; }
7451 if test ${gl_cv_cc_uninitialized_supported+y}
7452 then :
7453   printf %s "(cached) " >&6
7454 else $as_nop
7455   gl_save_CFLAGS="$CFLAGS"
7456        CFLAGS="$CFLAGS -Werror -Wuninitialized"
7457        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h.  */
7459
7460 int
7461 main (void)
7462 {
7463
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"
7469 then :
7470   gl_cv_cc_uninitialized_supported=yes
7471 else $as_nop
7472   gl_cv_cc_uninitialized_supported=no
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7475        CFLAGS="$gl_save_CFLAGS"
7476
7477 fi
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7479 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
7480
7481   fi
7482
7483   # List all gcc warning categories.
7484   # To compare this list to your installed GCC's, run this Bash command:
7485   #
7486   # comm -3 \
7487   #  <((sed -n 's/^  *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
7488   #     awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
7489   #  <(LC_ALL=C gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort)
7490
7491   warnings=
7492   for gl_manywarn_item in -fanalyzer -fno-common \
7493     -Wall \
7494     -Warith-conversion \
7495     -Wbad-function-cast \
7496     -Wcast-align=strict \
7497     -Wdate-time \
7498     -Wdisabled-optimization \
7499     -Wdouble-promotion \
7500     -Wduplicated-branches \
7501     -Wduplicated-cond \
7502     -Wextra \
7503     -Wformat-signedness \
7504     -Winit-self \
7505     -Winline \
7506     -Winvalid-pch \
7507     -Wlogical-op \
7508     -Wmissing-declarations \
7509     -Wmissing-include-dirs \
7510     -Wmissing-prototypes \
7511     -Wnested-externs \
7512     -Wnull-dereference \
7513     -Wold-style-definition \
7514     -Wopenmp-simd \
7515     -Woverlength-strings \
7516     -Wpacked \
7517     -Wpointer-arith \
7518     -Wshadow \
7519     -Wstack-protector \
7520     -Wstrict-overflow \
7521     -Wstrict-prototypes \
7522     -Wsuggest-attribute=cold \
7523     -Wsuggest-attribute=const \
7524     -Wsuggest-attribute=format \
7525     -Wsuggest-attribute=malloc \
7526     -Wsuggest-attribute=noreturn \
7527     -Wsuggest-attribute=pure \
7528     -Wsuggest-final-methods \
7529     -Wsuggest-final-types \
7530     -Wsync-nand \
7531     -Wsystem-headers \
7532     -Wtrampolines \
7533     -Wuninitialized \
7534     -Wunknown-pragmas \
7535     -Wunsafe-loop-optimizations \
7536     -Wunused-macros \
7537     -Wvariadic-macros \
7538     -Wvector-operation-performance \
7539     -Wvla \
7540     -Wwrite-strings \
7541     \
7542     ; do
7543     as_fn_append warnings " $gl_manywarn_item"
7544   done
7545
7546   # gcc --help=warnings outputs an unusual form for these options; list
7547   # them here so that the above 'comm' command doesn't report a false match.
7548   as_fn_append warnings ' -Warray-bounds=2'
7549   as_fn_append warnings ' -Wattribute-alias=2'
7550   as_fn_append warnings ' -Wformat-overflow=2'
7551   as_fn_append warnings ' -Wformat=2'
7552   as_fn_append warnings ' -Wformat-truncation=2'
7553   as_fn_append warnings ' -Wimplicit-fallthrough=5'
7554   as_fn_append warnings ' -Wshift-overflow=2'
7555   as_fn_append warnings ' -Wunused-const-variable=2'
7556   as_fn_append warnings ' -Wvla-larger-than=4031'
7557
7558   # These are needed for older GCC versions.
7559   if test -n "$GCC"; then
7560     case `($CC --version) 2>/dev/null` in
7561       'gcc (GCC) '[0-3].* | \
7562       'gcc (GCC) '4.[0-7].*)
7563         as_fn_append warnings ' -fdiagnostics-show-option'
7564         as_fn_append warnings ' -funit-at-a-time'
7565           ;;
7566     esac
7567   fi
7568
7569   # Disable specific options as needed.
7570   if test "$gl_cv_cc_nomfi_needed" = yes; then
7571     as_fn_append warnings ' -Wno-missing-field-initializers'
7572   fi
7573
7574   if test "$gl_cv_cc_uninitialized_supported" = no; then
7575     as_fn_append warnings ' -Wno-uninitialized'
7576   fi
7577
7578   # Some warnings have too many false alarms in GCC 10.1.
7579   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93695
7580   as_fn_append warnings ' -Wno-analyzer-double-free'
7581   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94458
7582   as_fn_append warnings ' -Wno-analyzer-malloc-leak'
7583   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94851
7584   as_fn_append warnings ' -Wno-analyzer-null-dereference'
7585   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95758
7586   as_fn_append warnings ' -Wno-analyzer-use-after-free'
7587
7588   ac_ext=c
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7593
7594
7595 nw=
7596 nw="$nw -Wsystem-headers"
7597 nw="$nw -Wmissing-field-initializers"
7598 nw="$nw -Winline"
7599
7600   gl_warn_set=
7601   set x $warnings; shift
7602   for gl_warn_item
7603   do
7604     case " $nw " in
7605       *" $gl_warn_item "*)
7606         ;;
7607       *)
7608         as_fn_append gl_warn_set " $gl_warn_item"
7609         ;;
7610     esac
7611   done
7612   warnings=$gl_warn_set
7613
7614 for w in $warnings; do
7615
7616   ac_ext=c
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621
7622
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7624 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7625 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
7626 then :
7627   printf %s "(cached) " >&6
7628 else $as_nop
7629
7630   gl_save_compiler_FLAGS="$CFLAGS"
7631   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h.  */
7634
7635 int
7636 main (void)
7637 {
7638
7639   ;
7640   return 0;
7641 }
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"
7644 then :
7645   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7646 else $as_nop
7647   gl_cv_warn_c__Werror__Wunknown_warning_option=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7650     conftest$ac_exeext conftest.$ac_ext
7651   CFLAGS="$gl_save_compiler_FLAGS"
7652
7653 fi
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7655 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7656 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
7657 then :
7658   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7659 else $as_nop
7660   gl_unknown_warnings_are_errors=
7661 fi
7662
7663   ac_ext=c
7664 ac_cpp='$CPP $CPPFLAGS'
7665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7668
7669
7670
7671
7672 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh`
7673 gl_positive="$w"
7674 case $gl_positive in
7675   -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
7676 esac
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7678 printf %s "checking whether C compiler handles $w... " >&6; }
7679 if eval test \${$as_gl_Warn+y}
7680 then :
7681   printf %s "(cached) " >&6
7682 else $as_nop
7683
7684   gl_save_compiler_FLAGS="$CFLAGS"
7685   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
7686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h.  */
7688
7689 int
7690 main (void)
7691 {
7692
7693   ;
7694   return 0;
7695 }
7696 _ACEOF
7697 if ac_fn_c_try_link "$LINENO"
7698 then :
7699   eval "$as_gl_Warn=yes"
7700 else $as_nop
7701   eval "$as_gl_Warn=no"
7702 fi
7703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7704     conftest$ac_exeext conftest.$ac_ext
7705   CFLAGS="$gl_save_compiler_FLAGS"
7706
7707 fi
7708 eval ac_res=\$$as_gl_Warn
7709                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7710 printf "%s\n" "$ac_res" >&6; }
7711 if eval test \"x\$"$as_gl_Warn"\" = x"yes"
7712 then :
7713   as_fn_append WARN_CFLAGS " $w"
7714 fi
7715
7716
7717 done
7718
7719
7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7721 printf %s "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7722 if test ${gl_cv_warn_c__Wno_missing_field_initializers+y}
7723 then :
7724   printf %s "(cached) " >&6
7725 else $as_nop
7726
7727   gl_save_compiler_FLAGS="$CFLAGS"
7728   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h.  */
7731
7732 int
7733 main (void)
7734 {
7735
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_link "$LINENO"
7741 then :
7742   gl_cv_warn_c__Wno_missing_field_initializers=yes
7743 else $as_nop
7744   gl_cv_warn_c__Wno_missing_field_initializers=no
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7747     conftest$ac_exeext conftest.$ac_ext
7748   CFLAGS="$gl_save_compiler_FLAGS"
7749
7750 fi
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7752 printf "%s\n" "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7753 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes
7754 then :
7755   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7756 fi
7757
7758
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7760 printf %s "checking whether ln -s works... " >&6; }
7761 LN_S=$as_ln_s
7762 if test "$LN_S" = "ln -s"; then
7763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7764 printf "%s\n" "yes" >&6; }
7765 else
7766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7767 printf "%s\n" "no, using $LN_S" >&6; }
7768 fi
7769
7770
7771   if test -n "$ac_tool_prefix"; then
7772   for ac_prog in ar lib "link -lib"
7773   do
7774     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 printf %s "checking for $ac_word... " >&6; }
7778 if test ${ac_cv_prog_AR+y}
7779 then :
7780   printf %s "(cached) " >&6
7781 else $as_nop
7782   if test -n "$AR"; then
7783   ac_cv_prog_AR="$AR" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788   IFS=$as_save_IFS
7789   case $as_dir in #(((
7790     '') as_dir=./ ;;
7791     */) ;;
7792     *) as_dir=$as_dir/ ;;
7793   esac
7794     for ac_exec_ext in '' $ac_executable_extensions; do
7795   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7796     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7797     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7798     break 2
7799   fi
7800 done
7801   done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 AR=$ac_cv_prog_AR
7807 if test -n "$AR"; then
7808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7809 printf "%s\n" "$AR" >&6; }
7810 else
7811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 printf "%s\n" "no" >&6; }
7813 fi
7814
7815
7816     test -n "$AR" && break
7817   done
7818 fi
7819 if test -z "$AR"; then
7820   ac_ct_AR=$AR
7821   for ac_prog in ar lib "link -lib"
7822 do
7823   # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 printf %s "checking for $ac_word... " >&6; }
7827 if test ${ac_cv_prog_ac_ct_AR+y}
7828 then :
7829   printf %s "(cached) " >&6
7830 else $as_nop
7831   if test -n "$ac_ct_AR"; then
7832   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   case $as_dir in #(((
7839     '') as_dir=./ ;;
7840     */) ;;
7841     *) as_dir=$as_dir/ ;;
7842   esac
7843     for ac_exec_ext in '' $ac_executable_extensions; do
7844   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7845     ac_cv_prog_ac_ct_AR="$ac_prog"
7846     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850   done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7856 if test -n "$ac_ct_AR"; then
7857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7858 printf "%s\n" "$ac_ct_AR" >&6; }
7859 else
7860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 printf "%s\n" "no" >&6; }
7862 fi
7863
7864
7865   test -n "$ac_ct_AR" && break
7866 done
7867
7868   if test "x$ac_ct_AR" = x; then
7869     AR="false"
7870   else
7871     case $cross_compiling:$ac_tool_warned in
7872 yes:)
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875 ac_tool_warned=yes ;;
7876 esac
7877     AR=$ac_ct_AR
7878   fi
7879 fi
7880
7881 : ${AR=ar}
7882
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7884 printf %s "checking the archiver ($AR) interface... " >&6; }
7885 if test ${am_cv_ar_interface+y}
7886 then :
7887   printf %s "(cached) " >&6
7888 else $as_nop
7889   ac_ext=c
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895    am_cv_ar_interface=ar
7896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h.  */
7898 int some_variable = 0;
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"
7901 then :
7902   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7903       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7904   (eval $am_ar_try) 2>&5
7905   ac_status=$?
7906   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907   test $ac_status = 0; }
7908       if test "$ac_status" -eq 0; then
7909         am_cv_ar_interface=ar
7910       else
7911         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7912         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7913   (eval $am_ar_try) 2>&5
7914   ac_status=$?
7915   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7916   test $ac_status = 0; }
7917         if test "$ac_status" -eq 0; then
7918           am_cv_ar_interface=lib
7919         else
7920           am_cv_ar_interface=unknown
7921         fi
7922       fi
7923       rm -f conftest.lib libconftest.a
7924
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7927    ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932
7933 fi
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7935 printf "%s\n" "$am_cv_ar_interface" >&6; }
7936
7937 case $am_cv_ar_interface in
7938 ar)
7939   ;;
7940 lib)
7941   # Microsoft lib, so override with the ar-lib wrapper script.
7942   # FIXME: It is wrong to rewrite AR.
7943   # But if we don't then we get into trouble of one sort or another.
7944   # A longer-term fix would be to have automake use am__AR in this case,
7945   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7946   # similar.
7947   AR="$am_aux_dir/ar-lib $AR"
7948   ;;
7949 unknown)
7950   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7951   ;;
7952 esac
7953
7954 case `pwd` in
7955   *\ * | *\     *)
7956     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7957 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7958 esac
7959
7960
7961
7962 macro_version='2.4.6'
7963 macro_revision='2.4.6'
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 ltmain=$ac_aux_dir/ltmain.sh
7979
7980 # Backslashify metacharacters that are still active within
7981 # double-quoted strings.
7982 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7983
7984 # Same as above, but do not quote variable references.
7985 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7986
7987 # Sed substitution to delay expansion of an escaped shell variable in a
7988 # double_quote_subst'ed string.
7989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7990
7991 # Sed substitution to delay expansion of an escaped single quote.
7992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7993
7994 # Sed substitution to avoid accidental globbing in evaled expressions
7995 no_glob_subst='s/\*/\\\*/g'
7996
7997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8000
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8002 printf %s "checking how to print strings... " >&6; }
8003 # Test print first, because it will be a builtin if present.
8004 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8005    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8006   ECHO='print -r --'
8007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8008   ECHO='printf %s\n'
8009 else
8010   # Use this function as a fallback that always works.
8011   func_fallback_echo ()
8012   {
8013     eval 'cat <<_LTECHO_EOF
8014 $1
8015 _LTECHO_EOF'
8016   }
8017   ECHO='func_fallback_echo'
8018 fi
8019
8020 # func_echo_all arg...
8021 # Invoke $ECHO with all args, space-separated.
8022 func_echo_all ()
8023 {
8024     $ECHO ""
8025 }
8026
8027 case $ECHO in
8028   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8029 printf "%s\n" "printf" >&6; } ;;
8030   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8031 printf "%s\n" "print -r" >&6; } ;;
8032   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8033 printf "%s\n" "cat" >&6; } ;;
8034 esac
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8050 printf %s "checking for a sed that does not truncate output... " >&6; }
8051 if test ${ac_cv_path_SED+y}
8052 then :
8053   printf %s "(cached) " >&6
8054 else $as_nop
8055             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8056      for ac_i in 1 2 3 4 5 6 7; do
8057        ac_script="$ac_script$as_nl$ac_script"
8058      done
8059      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8060      { ac_script=; unset ac_script;}
8061      if test -z "$SED"; then
8062   ac_path_SED_found=false
8063   # Loop through the user's path and test for each of PROGNAME-LIST
8064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067   IFS=$as_save_IFS
8068   case $as_dir in #(((
8069     '') as_dir=./ ;;
8070     */) ;;
8071     *) as_dir=$as_dir/ ;;
8072   esac
8073     for ac_prog in sed gsed
8074    do
8075     for ac_exec_ext in '' $ac_executable_extensions; do
8076       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8077       as_fn_executable_p "$ac_path_SED" || continue
8078 # Check for GNU ac_path_SED and select it if it is found.
8079   # Check for GNU $ac_path_SED
8080 case `"$ac_path_SED" --version 2>&1` in
8081 *GNU*)
8082   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8083 *)
8084   ac_count=0
8085   printf %s 0123456789 >"conftest.in"
8086   while :
8087   do
8088     cat "conftest.in" "conftest.in" >"conftest.tmp"
8089     mv "conftest.tmp" "conftest.in"
8090     cp "conftest.in" "conftest.nl"
8091     printf "%s\n" '' >> "conftest.nl"
8092     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8093     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8094     as_fn_arith $ac_count + 1 && ac_count=$as_val
8095     if test $ac_count -gt ${ac_path_SED_max-0}; then
8096       # Best one so far, save it but keep looking for a better one
8097       ac_cv_path_SED="$ac_path_SED"
8098       ac_path_SED_max=$ac_count
8099     fi
8100     # 10*(2^10) chars as input seems more than enough
8101     test $ac_count -gt 10 && break
8102   done
8103   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8104 esac
8105
8106       $ac_path_SED_found && break 3
8107     done
8108   done
8109   done
8110 IFS=$as_save_IFS
8111   if test -z "$ac_cv_path_SED"; then
8112     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8113   fi
8114 else
8115   ac_cv_path_SED=$SED
8116 fi
8117
8118 fi
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8120 printf "%s\n" "$ac_cv_path_SED" >&6; }
8121  SED="$ac_cv_path_SED"
8122   rm -f conftest.sed
8123
8124 test -z "$SED" && SED=sed
8125 Xsed="$SED -e 1s/^X//"
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8138 printf %s "checking for fgrep... " >&6; }
8139 if test ${ac_cv_path_FGREP+y}
8140 then :
8141   printf %s "(cached) " >&6
8142 else $as_nop
8143   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8144    then ac_cv_path_FGREP="$GREP -F"
8145    else
8146      if test -z "$FGREP"; then
8147   ac_path_FGREP_found=false
8148   # Loop through the user's path and test for each of PROGNAME-LIST
8149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8151 do
8152   IFS=$as_save_IFS
8153   case $as_dir in #(((
8154     '') as_dir=./ ;;
8155     */) ;;
8156     *) as_dir=$as_dir/ ;;
8157   esac
8158     for ac_prog in fgrep
8159    do
8160     for ac_exec_ext in '' $ac_executable_extensions; do
8161       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8162       as_fn_executable_p "$ac_path_FGREP" || continue
8163 # Check for GNU ac_path_FGREP and select it if it is found.
8164   # Check for GNU $ac_path_FGREP
8165 case `"$ac_path_FGREP" --version 2>&1` in
8166 *GNU*)
8167   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8168 *)
8169   ac_count=0
8170   printf %s 0123456789 >"conftest.in"
8171   while :
8172   do
8173     cat "conftest.in" "conftest.in" >"conftest.tmp"
8174     mv "conftest.tmp" "conftest.in"
8175     cp "conftest.in" "conftest.nl"
8176     printf "%s\n" 'FGREP' >> "conftest.nl"
8177     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8178     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8179     as_fn_arith $ac_count + 1 && ac_count=$as_val
8180     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8181       # Best one so far, save it but keep looking for a better one
8182       ac_cv_path_FGREP="$ac_path_FGREP"
8183       ac_path_FGREP_max=$ac_count
8184     fi
8185     # 10*(2^10) chars as input seems more than enough
8186     test $ac_count -gt 10 && break
8187   done
8188   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8189 esac
8190
8191       $ac_path_FGREP_found && break 3
8192     done
8193   done
8194   done
8195 IFS=$as_save_IFS
8196   if test -z "$ac_cv_path_FGREP"; then
8197     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8198   fi
8199 else
8200   ac_cv_path_FGREP=$FGREP
8201 fi
8202
8203    fi
8204 fi
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8206 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8207  FGREP="$ac_cv_path_FGREP"
8208
8209
8210 test -z "$GREP" && GREP=grep
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230 # Check whether --with-gnu-ld was given.
8231 if test ${with_gnu_ld+y}
8232 then :
8233   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8234 else $as_nop
8235   with_gnu_ld=no
8236 fi
8237
8238 ac_prog=ld
8239 if test yes = "$GCC"; then
8240   # Check if gcc -print-prog-name=ld gives a path.
8241   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8242 printf %s "checking for ld used by $CC... " >&6; }
8243   case $host in
8244   *-*-mingw*)
8245     # gcc leaves a trailing carriage return, which upsets mingw
8246     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8247   *)
8248     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8249   esac
8250   case $ac_prog in
8251     # Accept absolute paths.
8252     [\\/]* | ?:[\\/]*)
8253       re_direlt='/[^/][^/]*/\.\./'
8254       # Canonicalize the pathname of ld
8255       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8256       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8257         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8258       done
8259       test -z "$LD" && LD=$ac_prog
8260       ;;
8261   "")
8262     # If it fails, then pretend we aren't using GCC.
8263     ac_prog=ld
8264     ;;
8265   *)
8266     # If it is relative, then search for the first ld in PATH.
8267     with_gnu_ld=unknown
8268     ;;
8269   esac
8270 elif test yes = "$with_gnu_ld"; then
8271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8272 printf %s "checking for GNU ld... " >&6; }
8273 else
8274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8275 printf %s "checking for non-GNU ld... " >&6; }
8276 fi
8277 if test ${lt_cv_path_LD+y}
8278 then :
8279   printf %s "(cached) " >&6
8280 else $as_nop
8281   if test -z "$LD"; then
8282   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8283   for ac_dir in $PATH; do
8284     IFS=$lt_save_ifs
8285     test -z "$ac_dir" && ac_dir=.
8286     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8287       lt_cv_path_LD=$ac_dir/$ac_prog
8288       # Check to see if the program is GNU ld.  I'd rather use --version,
8289       # but apparently some variants of GNU ld only accept -v.
8290       # Break only if it was the GNU/non-GNU ld that we prefer.
8291       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8292       *GNU* | *'with BFD'*)
8293         test no != "$with_gnu_ld" && break
8294         ;;
8295       *)
8296         test yes != "$with_gnu_ld" && break
8297         ;;
8298       esac
8299     fi
8300   done
8301   IFS=$lt_save_ifs
8302 else
8303   lt_cv_path_LD=$LD # Let the user override the test with a path.
8304 fi
8305 fi
8306
8307 LD=$lt_cv_path_LD
8308 if test -n "$LD"; then
8309   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8310 printf "%s\n" "$LD" >&6; }
8311 else
8312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 printf "%s\n" "no" >&6; }
8314 fi
8315 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8317 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8318 if test ${lt_cv_prog_gnu_ld+y}
8319 then :
8320   printf %s "(cached) " >&6
8321 else $as_nop
8322   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8323 case `$LD -v 2>&1 </dev/null` in
8324 *GNU* | *'with BFD'*)
8325   lt_cv_prog_gnu_ld=yes
8326   ;;
8327 *)
8328   lt_cv_prog_gnu_ld=no
8329   ;;
8330 esac
8331 fi
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8333 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8334 with_gnu_ld=$lt_cv_prog_gnu_ld
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8345 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8346 if test ${lt_cv_path_NM+y}
8347 then :
8348   printf %s "(cached) " >&6
8349 else $as_nop
8350   if test -n "$NM"; then
8351   # Let the user override the test.
8352   lt_cv_path_NM=$NM
8353 else
8354   lt_nm_to_check=${ac_tool_prefix}nm
8355   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8356     lt_nm_to_check="$lt_nm_to_check nm"
8357   fi
8358   for lt_tmp_nm in $lt_nm_to_check; do
8359     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8360     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8361       IFS=$lt_save_ifs
8362       test -z "$ac_dir" && ac_dir=.
8363       tmp_nm=$ac_dir/$lt_tmp_nm
8364       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8365         # Check to see if the nm accepts a BSD-compat flag.
8366         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8367         #   nm: unknown option "B" ignored
8368         # Tru64's nm complains that /dev/null is an invalid object file
8369         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8370         case $build_os in
8371         mingw*) lt_bad_file=conftest.nm/nofile ;;
8372         *) lt_bad_file=/dev/null ;;
8373         esac
8374         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8375         *$lt_bad_file* | *'Invalid file or object type'*)
8376           lt_cv_path_NM="$tmp_nm -B"
8377           break 2
8378           ;;
8379         *)
8380           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8381           */dev/null*)
8382             lt_cv_path_NM="$tmp_nm -p"
8383             break 2
8384             ;;
8385           *)
8386             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8387             continue # so that we can try to find one that supports BSD flags
8388             ;;
8389           esac
8390           ;;
8391         esac
8392       fi
8393     done
8394     IFS=$lt_save_ifs
8395   done
8396   : ${lt_cv_path_NM=no}
8397 fi
8398 fi
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8400 printf "%s\n" "$lt_cv_path_NM" >&6; }
8401 if test no != "$lt_cv_path_NM"; then
8402   NM=$lt_cv_path_NM
8403 else
8404   # Didn't find any BSD compatible name lister, look for dumpbin.
8405   if test -n "$DUMPBIN"; then :
8406     # Let the user override the test.
8407   else
8408     if test -n "$ac_tool_prefix"; then
8409   for ac_prog in dumpbin "link -dump"
8410   do
8411     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 printf %s "checking for $ac_word... " >&6; }
8415 if test ${ac_cv_prog_DUMPBIN+y}
8416 then :
8417   printf %s "(cached) " >&6
8418 else $as_nop
8419   if test -n "$DUMPBIN"; then
8420   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425   IFS=$as_save_IFS
8426   case $as_dir in #(((
8427     '') as_dir=./ ;;
8428     */) ;;
8429     *) as_dir=$as_dir/ ;;
8430   esac
8431     for ac_exec_ext in '' $ac_executable_extensions; do
8432   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8433     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8434     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8435     break 2
8436   fi
8437 done
8438   done
8439 IFS=$as_save_IFS
8440
8441 fi
8442 fi
8443 DUMPBIN=$ac_cv_prog_DUMPBIN
8444 if test -n "$DUMPBIN"; then
8445   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8446 printf "%s\n" "$DUMPBIN" >&6; }
8447 else
8448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 printf "%s\n" "no" >&6; }
8450 fi
8451
8452
8453     test -n "$DUMPBIN" && break
8454   done
8455 fi
8456 if test -z "$DUMPBIN"; then
8457   ac_ct_DUMPBIN=$DUMPBIN
8458   for ac_prog in dumpbin "link -dump"
8459 do
8460   # Extract the first word of "$ac_prog", so it can be a program name with args.
8461 set dummy $ac_prog; ac_word=$2
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 printf %s "checking for $ac_word... " >&6; }
8464 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8465 then :
8466   printf %s "(cached) " >&6
8467 else $as_nop
8468   if test -n "$ac_ct_DUMPBIN"; then
8469   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474   IFS=$as_save_IFS
8475   case $as_dir in #(((
8476     '') as_dir=./ ;;
8477     */) ;;
8478     *) as_dir=$as_dir/ ;;
8479   esac
8480     for ac_exec_ext in '' $ac_executable_extensions; do
8481   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8482     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8483     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8484     break 2
8485   fi
8486 done
8487   done
8488 IFS=$as_save_IFS
8489
8490 fi
8491 fi
8492 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8493 if test -n "$ac_ct_DUMPBIN"; then
8494   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8495 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8496 else
8497   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 printf "%s\n" "no" >&6; }
8499 fi
8500
8501
8502   test -n "$ac_ct_DUMPBIN" && break
8503 done
8504
8505   if test "x$ac_ct_DUMPBIN" = x; then
8506     DUMPBIN=":"
8507   else
8508     case $cross_compiling:$ac_tool_warned in
8509 yes:)
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8512 ac_tool_warned=yes ;;
8513 esac
8514     DUMPBIN=$ac_ct_DUMPBIN
8515   fi
8516 fi
8517
8518     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8519     *COFF*)
8520       DUMPBIN="$DUMPBIN -symbols -headers"
8521       ;;
8522     *)
8523       DUMPBIN=:
8524       ;;
8525     esac
8526   fi
8527
8528   if test : != "$DUMPBIN"; then
8529     NM=$DUMPBIN
8530   fi
8531 fi
8532 test -z "$NM" && NM=nm
8533
8534
8535
8536
8537
8538
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8540 printf %s "checking the name lister ($NM) interface... " >&6; }
8541 if test ${lt_cv_nm_interface+y}
8542 then :
8543   printf %s "(cached) " >&6
8544 else $as_nop
8545   lt_cv_nm_interface="BSD nm"
8546   echo "int some_variable = 0;" > conftest.$ac_ext
8547   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8548   (eval "$ac_compile" 2>conftest.err)
8549   cat conftest.err >&5
8550   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8551   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8552   cat conftest.err >&5
8553   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8554   cat conftest.out >&5
8555   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8556     lt_cv_nm_interface="MS dumpbin"
8557   fi
8558   rm -f conftest*
8559 fi
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8561 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8562
8563 # find the maximum length of command line arguments
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8565 printf %s "checking the maximum length of command line arguments... " >&6; }
8566 if test ${lt_cv_sys_max_cmd_len+y}
8567 then :
8568   printf %s "(cached) " >&6
8569 else $as_nop
8570     i=0
8571   teststring=ABCD
8572
8573   case $build_os in
8574   msdosdjgpp*)
8575     # On DJGPP, this test can blow up pretty badly due to problems in libc
8576     # (any single argument exceeding 2000 bytes causes a buffer overrun
8577     # during glob expansion).  Even if it were fixed, the result of this
8578     # check would be larger than it should be.
8579     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8580     ;;
8581
8582   gnu*)
8583     # Under GNU Hurd, this test is not required because there is
8584     # no limit to the length of command line arguments.
8585     # Libtool will interpret -1 as no limit whatsoever
8586     lt_cv_sys_max_cmd_len=-1;
8587     ;;
8588
8589   cygwin* | mingw* | cegcc*)
8590     # On Win9x/ME, this test blows up -- it succeeds, but takes
8591     # about 5 minutes as the teststring grows exponentially.
8592     # Worse, since 9x/ME are not pre-emptively multitasking,
8593     # you end up with a "frozen" computer, even though with patience
8594     # the test eventually succeeds (with a max line length of 256k).
8595     # Instead, let's just punt: use the minimum linelength reported by
8596     # all of the supported platforms: 8192 (on NT/2K/XP).
8597     lt_cv_sys_max_cmd_len=8192;
8598     ;;
8599
8600   mint*)
8601     # On MiNT this can take a long time and run out of memory.
8602     lt_cv_sys_max_cmd_len=8192;
8603     ;;
8604
8605   amigaos*)
8606     # On AmigaOS with pdksh, this test takes hours, literally.
8607     # So we just punt and use a minimum line length of 8192.
8608     lt_cv_sys_max_cmd_len=8192;
8609     ;;
8610
8611   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8612     # This has been around since 386BSD, at least.  Likely further.
8613     if test -x /sbin/sysctl; then
8614       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8615     elif test -x /usr/sbin/sysctl; then
8616       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8617     else
8618       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8619     fi
8620     # And add a safety zone
8621     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8622     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8623     ;;
8624
8625   interix*)
8626     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8627     lt_cv_sys_max_cmd_len=196608
8628     ;;
8629
8630   os2*)
8631     # The test takes a long time on OS/2.
8632     lt_cv_sys_max_cmd_len=8192
8633     ;;
8634
8635   osf*)
8636     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8637     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8638     # nice to cause kernel panics so lets avoid the loop below.
8639     # First set a reasonable default.
8640     lt_cv_sys_max_cmd_len=16384
8641     #
8642     if test -x /sbin/sysconfig; then
8643       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8644         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8645       esac
8646     fi
8647     ;;
8648   sco3.2v5*)
8649     lt_cv_sys_max_cmd_len=102400
8650     ;;
8651   sysv5* | sco5v6* | sysv4.2uw2*)
8652     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8653     if test -n "$kargmax"; then
8654       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8655     else
8656       lt_cv_sys_max_cmd_len=32768
8657     fi
8658     ;;
8659   *)
8660     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8661     if test -n "$lt_cv_sys_max_cmd_len" && \
8662        test undefined != "$lt_cv_sys_max_cmd_len"; then
8663       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8664       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8665     else
8666       # Make teststring a little bigger before we do anything with it.
8667       # a 1K string should be a reasonable start.
8668       for i in 1 2 3 4 5 6 7 8; do
8669         teststring=$teststring$teststring
8670       done
8671       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8672       # If test is not a shell built-in, we'll probably end up computing a
8673       # maximum length that is only half of the actual maximum length, but
8674       # we can't tell.
8675       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8676                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8677               test 17 != "$i" # 1/2 MB should be enough
8678       do
8679         i=`expr $i + 1`
8680         teststring=$teststring$teststring
8681       done
8682       # Only check the string length outside the loop.
8683       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8684       teststring=
8685       # Add a significant safety factor because C++ compilers can tack on
8686       # massive amounts of additional arguments before passing them to the
8687       # linker.  It appears as though 1/2 is a usable value.
8688       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8689     fi
8690     ;;
8691   esac
8692
8693 fi
8694
8695 if test -n "$lt_cv_sys_max_cmd_len"; then
8696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8697 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8698 else
8699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8700 printf "%s\n" "none" >&6; }
8701 fi
8702 max_cmd_len=$lt_cv_sys_max_cmd_len
8703
8704
8705
8706
8707
8708
8709 : ${CP="cp -f"}
8710 : ${MV="mv -f"}
8711 : ${RM="rm -f"}
8712
8713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8714   lt_unset=unset
8715 else
8716   lt_unset=false
8717 fi
8718
8719
8720
8721
8722
8723 # test EBCDIC or ASCII
8724 case `echo X|tr X '\101'` in
8725  A) # ASCII based system
8726     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8727   lt_SP2NL='tr \040 \012'
8728   lt_NL2SP='tr \015\012 \040\040'
8729   ;;
8730  *) # EBCDIC based system
8731   lt_SP2NL='tr \100 \n'
8732   lt_NL2SP='tr \r\n \100\100'
8733   ;;
8734 esac
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8745 printf %s "checking how to convert $build file names to $host format... " >&6; }
8746 if test ${lt_cv_to_host_file_cmd+y}
8747 then :
8748   printf %s "(cached) " >&6
8749 else $as_nop
8750   case $host in
8751   *-*-mingw* )
8752     case $build in
8753       *-*-mingw* ) # actually msys
8754         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8755         ;;
8756       *-*-cygwin* )
8757         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8758         ;;
8759       * ) # otherwise, assume *nix
8760         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8761         ;;
8762     esac
8763     ;;
8764   *-*-cygwin* )
8765     case $build in
8766       *-*-mingw* ) # actually msys
8767         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8768         ;;
8769       *-*-cygwin* )
8770         lt_cv_to_host_file_cmd=func_convert_file_noop
8771         ;;
8772       * ) # otherwise, assume *nix
8773         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8774         ;;
8775     esac
8776     ;;
8777   * ) # unhandled hosts (and "normal" native builds)
8778     lt_cv_to_host_file_cmd=func_convert_file_noop
8779     ;;
8780 esac
8781
8782 fi
8783
8784 to_host_file_cmd=$lt_cv_to_host_file_cmd
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8786 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8787
8788
8789
8790
8791
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8793 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8794 if test ${lt_cv_to_tool_file_cmd+y}
8795 then :
8796   printf %s "(cached) " >&6
8797 else $as_nop
8798   #assume ordinary cross tools, or native build.
8799 lt_cv_to_tool_file_cmd=func_convert_file_noop
8800 case $host in
8801   *-*-mingw* )
8802     case $build in
8803       *-*-mingw* ) # actually msys
8804         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8805         ;;
8806     esac
8807     ;;
8808 esac
8809
8810 fi
8811
8812 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8814 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8815
8816
8817
8818
8819
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8821 printf %s "checking for $LD option to reload object files... " >&6; }
8822 if test ${lt_cv_ld_reload_flag+y}
8823 then :
8824   printf %s "(cached) " >&6
8825 else $as_nop
8826   lt_cv_ld_reload_flag='-r'
8827 fi
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8829 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8830 reload_flag=$lt_cv_ld_reload_flag
8831 case $reload_flag in
8832 "" | " "*) ;;
8833 *) reload_flag=" $reload_flag" ;;
8834 esac
8835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8836 case $host_os in
8837   cygwin* | mingw* | pw32* | cegcc*)
8838     if test yes != "$GCC"; then
8839       reload_cmds=false
8840     fi
8841     ;;
8842   darwin*)
8843     if test yes = "$GCC"; then
8844       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8845     else
8846       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8847     fi
8848     ;;
8849 esac
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 if test -n "$ac_tool_prefix"; then
8860   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8861 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 printf %s "checking for $ac_word... " >&6; }
8864 if test ${ac_cv_prog_OBJDUMP+y}
8865 then :
8866   printf %s "(cached) " >&6
8867 else $as_nop
8868   if test -n "$OBJDUMP"; then
8869   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8870 else
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8873 do
8874   IFS=$as_save_IFS
8875   case $as_dir in #(((
8876     '') as_dir=./ ;;
8877     */) ;;
8878     *) as_dir=$as_dir/ ;;
8879   esac
8880     for ac_exec_ext in '' $ac_executable_extensions; do
8881   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8882     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8883     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8884     break 2
8885   fi
8886 done
8887   done
8888 IFS=$as_save_IFS
8889
8890 fi
8891 fi
8892 OBJDUMP=$ac_cv_prog_OBJDUMP
8893 if test -n "$OBJDUMP"; then
8894   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8895 printf "%s\n" "$OBJDUMP" >&6; }
8896 else
8897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8898 printf "%s\n" "no" >&6; }
8899 fi
8900
8901
8902 fi
8903 if test -z "$ac_cv_prog_OBJDUMP"; then
8904   ac_ct_OBJDUMP=$OBJDUMP
8905   # Extract the first word of "objdump", so it can be a program name with args.
8906 set dummy objdump; ac_word=$2
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 printf %s "checking for $ac_word... " >&6; }
8909 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8910 then :
8911   printf %s "(cached) " >&6
8912 else $as_nop
8913   if test -n "$ac_ct_OBJDUMP"; then
8914   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919   IFS=$as_save_IFS
8920   case $as_dir in #(((
8921     '') as_dir=./ ;;
8922     */) ;;
8923     *) as_dir=$as_dir/ ;;
8924   esac
8925     for ac_exec_ext in '' $ac_executable_extensions; do
8926   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8927     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8928     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8929     break 2
8930   fi
8931 done
8932   done
8933 IFS=$as_save_IFS
8934
8935 fi
8936 fi
8937 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8938 if test -n "$ac_ct_OBJDUMP"; then
8939   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8940 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8941 else
8942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 printf "%s\n" "no" >&6; }
8944 fi
8945
8946   if test "x$ac_ct_OBJDUMP" = x; then
8947     OBJDUMP="false"
8948   else
8949     case $cross_compiling:$ac_tool_warned in
8950 yes:)
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8952 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8953 ac_tool_warned=yes ;;
8954 esac
8955     OBJDUMP=$ac_ct_OBJDUMP
8956   fi
8957 else
8958   OBJDUMP="$ac_cv_prog_OBJDUMP"
8959 fi
8960
8961 test -z "$OBJDUMP" && OBJDUMP=objdump
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8972 printf %s "checking how to recognize dependent libraries... " >&6; }
8973 if test ${lt_cv_deplibs_check_method+y}
8974 then :
8975   printf %s "(cached) " >&6
8976 else $as_nop
8977   lt_cv_file_magic_cmd='$MAGIC_CMD'
8978 lt_cv_file_magic_test_file=
8979 lt_cv_deplibs_check_method='unknown'
8980 # Need to set the preceding variable on all platforms that support
8981 # interlibrary dependencies.
8982 # 'none' -- dependencies not supported.
8983 # 'unknown' -- same as none, but documents that we really don't know.
8984 # 'pass_all' -- all dependencies passed with no checks.
8985 # 'test_compile' -- check by making test program.
8986 # 'file_magic [[regex]]' -- check by looking for files in library path
8987 # that responds to the $file_magic_cmd with a given extended regex.
8988 # If you have 'file' or equivalent on your system and you're not sure
8989 # whether 'pass_all' will *always* work, you probably want this one.
8990
8991 case $host_os in
8992 aix[4-9]*)
8993   lt_cv_deplibs_check_method=pass_all
8994   ;;
8995
8996 beos*)
8997   lt_cv_deplibs_check_method=pass_all
8998   ;;
8999
9000 bsdi[45]*)
9001   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9002   lt_cv_file_magic_cmd='/usr/bin/file -L'
9003   lt_cv_file_magic_test_file=/shlib/libc.so
9004   ;;
9005
9006 cygwin*)
9007   # func_win32_libid is a shell function defined in ltmain.sh
9008   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9009   lt_cv_file_magic_cmd='func_win32_libid'
9010   ;;
9011
9012 mingw* | pw32*)
9013   # Base MSYS/MinGW do not provide the 'file' command needed by
9014   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9015   # unless we find 'file', for example because we are cross-compiling.
9016   if ( file / ) >/dev/null 2>&1; then
9017     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9018     lt_cv_file_magic_cmd='func_win32_libid'
9019   else
9020     # Keep this pattern in sync with the one in func_win32_libid.
9021     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9022     lt_cv_file_magic_cmd='$OBJDUMP -f'
9023   fi
9024   ;;
9025
9026 cegcc*)
9027   # use the weaker test based on 'objdump'. See mingw*.
9028   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9029   lt_cv_file_magic_cmd='$OBJDUMP -f'
9030   ;;
9031
9032 darwin* | rhapsody*)
9033   lt_cv_deplibs_check_method=pass_all
9034   ;;
9035
9036 freebsd* | dragonfly*)
9037   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9038     case $host_cpu in
9039     i*86 )
9040       # Not sure whether the presence of OpenBSD here was a mistake.
9041       # Let's accept both of them until this is cleared up.
9042       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9043       lt_cv_file_magic_cmd=/usr/bin/file
9044       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9045       ;;
9046     esac
9047   else
9048     lt_cv_deplibs_check_method=pass_all
9049   fi
9050   ;;
9051
9052 haiku*)
9053   lt_cv_deplibs_check_method=pass_all
9054   ;;
9055
9056 hpux10.20* | hpux11*)
9057   lt_cv_file_magic_cmd=/usr/bin/file
9058   case $host_cpu in
9059   ia64*)
9060     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9061     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9062     ;;
9063   hppa*64*)
9064     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]'
9065     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9066     ;;
9067   *)
9068     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9069     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9070     ;;
9071   esac
9072   ;;
9073
9074 interix[3-9]*)
9075   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9076   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9077   ;;
9078
9079 irix5* | irix6* | nonstopux*)
9080   case $LD in
9081   *-32|*"-32 ") libmagic=32-bit;;
9082   *-n32|*"-n32 ") libmagic=N32;;
9083   *-64|*"-64 ") libmagic=64-bit;;
9084   *) libmagic=never-match;;
9085   esac
9086   lt_cv_deplibs_check_method=pass_all
9087   ;;
9088
9089 # This must be glibc/ELF.
9090 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9091   lt_cv_deplibs_check_method=pass_all
9092   ;;
9093
9094 netbsd* | netbsdelf*-gnu)
9095   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9096     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9097   else
9098     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9099   fi
9100   ;;
9101
9102 newos6*)
9103   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9104   lt_cv_file_magic_cmd=/usr/bin/file
9105   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9106   ;;
9107
9108 *nto* | *qnx*)
9109   lt_cv_deplibs_check_method=pass_all
9110   ;;
9111
9112 openbsd* | bitrig*)
9113   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9115   else
9116     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9117   fi
9118   ;;
9119
9120 osf3* | osf4* | osf5*)
9121   lt_cv_deplibs_check_method=pass_all
9122   ;;
9123
9124 rdos*)
9125   lt_cv_deplibs_check_method=pass_all
9126   ;;
9127
9128 solaris*)
9129   lt_cv_deplibs_check_method=pass_all
9130   ;;
9131
9132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9133   lt_cv_deplibs_check_method=pass_all
9134   ;;
9135
9136 sysv4 | sysv4.3*)
9137   case $host_vendor in
9138   motorola)
9139     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]'
9140     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9141     ;;
9142   ncr)
9143     lt_cv_deplibs_check_method=pass_all
9144     ;;
9145   sequent)
9146     lt_cv_file_magic_cmd='/bin/file'
9147     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9148     ;;
9149   sni)
9150     lt_cv_file_magic_cmd='/bin/file'
9151     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9152     lt_cv_file_magic_test_file=/lib/libc.so
9153     ;;
9154   siemens)
9155     lt_cv_deplibs_check_method=pass_all
9156     ;;
9157   pc)
9158     lt_cv_deplibs_check_method=pass_all
9159     ;;
9160   esac
9161   ;;
9162
9163 tpf*)
9164   lt_cv_deplibs_check_method=pass_all
9165   ;;
9166 os2*)
9167   lt_cv_deplibs_check_method=pass_all
9168   ;;
9169 esac
9170
9171 fi
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9173 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9174
9175 file_magic_glob=
9176 want_nocaseglob=no
9177 if test "$build" = "$host"; then
9178   case $host_os in
9179   mingw* | pw32*)
9180     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9181       want_nocaseglob=yes
9182     else
9183       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9184     fi
9185     ;;
9186   esac
9187 fi
9188
9189 file_magic_cmd=$lt_cv_file_magic_cmd
9190 deplibs_check_method=$lt_cv_deplibs_check_method
9191 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214 if test -n "$ac_tool_prefix"; then
9215   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9216 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 printf %s "checking for $ac_word... " >&6; }
9219 if test ${ac_cv_prog_DLLTOOL+y}
9220 then :
9221   printf %s "(cached) " >&6
9222 else $as_nop
9223   if test -n "$DLLTOOL"; then
9224   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9225 else
9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227 for as_dir in $PATH
9228 do
9229   IFS=$as_save_IFS
9230   case $as_dir in #(((
9231     '') as_dir=./ ;;
9232     */) ;;
9233     *) as_dir=$as_dir/ ;;
9234   esac
9235     for ac_exec_ext in '' $ac_executable_extensions; do
9236   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9237     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9238     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9239     break 2
9240   fi
9241 done
9242   done
9243 IFS=$as_save_IFS
9244
9245 fi
9246 fi
9247 DLLTOOL=$ac_cv_prog_DLLTOOL
9248 if test -n "$DLLTOOL"; then
9249   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9250 printf "%s\n" "$DLLTOOL" >&6; }
9251 else
9252   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 printf "%s\n" "no" >&6; }
9254 fi
9255
9256
9257 fi
9258 if test -z "$ac_cv_prog_DLLTOOL"; then
9259   ac_ct_DLLTOOL=$DLLTOOL
9260   # Extract the first word of "dlltool", so it can be a program name with args.
9261 set dummy dlltool; ac_word=$2
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 printf %s "checking for $ac_word... " >&6; }
9264 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9265 then :
9266   printf %s "(cached) " >&6
9267 else $as_nop
9268   if test -n "$ac_ct_DLLTOOL"; then
9269   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9270 else
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in $PATH
9273 do
9274   IFS=$as_save_IFS
9275   case $as_dir in #(((
9276     '') as_dir=./ ;;
9277     */) ;;
9278     *) as_dir=$as_dir/ ;;
9279   esac
9280     for ac_exec_ext in '' $ac_executable_extensions; do
9281   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9282     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9283     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9284     break 2
9285   fi
9286 done
9287   done
9288 IFS=$as_save_IFS
9289
9290 fi
9291 fi
9292 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9293 if test -n "$ac_ct_DLLTOOL"; then
9294   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9295 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9296 else
9297   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 printf "%s\n" "no" >&6; }
9299 fi
9300
9301   if test "x$ac_ct_DLLTOOL" = x; then
9302     DLLTOOL="false"
9303   else
9304     case $cross_compiling:$ac_tool_warned in
9305 yes:)
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9308 ac_tool_warned=yes ;;
9309 esac
9310     DLLTOOL=$ac_ct_DLLTOOL
9311   fi
9312 else
9313   DLLTOOL="$ac_cv_prog_DLLTOOL"
9314 fi
9315
9316 test -z "$DLLTOOL" && DLLTOOL=dlltool
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9328 printf %s "checking how to associate runtime and link libraries... " >&6; }
9329 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9330 then :
9331   printf %s "(cached) " >&6
9332 else $as_nop
9333   lt_cv_sharedlib_from_linklib_cmd='unknown'
9334
9335 case $host_os in
9336 cygwin* | mingw* | pw32* | cegcc*)
9337   # two different shell functions defined in ltmain.sh;
9338   # decide which one to use based on capabilities of $DLLTOOL
9339   case `$DLLTOOL --help 2>&1` in
9340   *--identify-strict*)
9341     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9342     ;;
9343   *)
9344     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9345     ;;
9346   esac
9347   ;;
9348 *)
9349   # fallback: assume linklib IS sharedlib
9350   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9351   ;;
9352 esac
9353
9354 fi
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9356 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9357 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9358 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9359
9360
9361
9362
9363
9364
9365
9366 if test -n "$ac_tool_prefix"; then
9367   for ac_prog in ar
9368   do
9369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 printf %s "checking for $ac_word... " >&6; }
9373 if test ${ac_cv_prog_AR+y}
9374 then :
9375   printf %s "(cached) " >&6
9376 else $as_nop
9377   if test -n "$AR"; then
9378   ac_cv_prog_AR="$AR" # Let the user override the test.
9379 else
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383   IFS=$as_save_IFS
9384   case $as_dir in #(((
9385     '') as_dir=./ ;;
9386     */) ;;
9387     *) as_dir=$as_dir/ ;;
9388   esac
9389     for ac_exec_ext in '' $ac_executable_extensions; do
9390   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9391     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9392     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9393     break 2
9394   fi
9395 done
9396   done
9397 IFS=$as_save_IFS
9398
9399 fi
9400 fi
9401 AR=$ac_cv_prog_AR
9402 if test -n "$AR"; then
9403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9404 printf "%s\n" "$AR" >&6; }
9405 else
9406   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 printf "%s\n" "no" >&6; }
9408 fi
9409
9410
9411     test -n "$AR" && break
9412   done
9413 fi
9414 if test -z "$AR"; then
9415   ac_ct_AR=$AR
9416   for ac_prog in ar
9417 do
9418   # Extract the first word of "$ac_prog", so it can be a program name with args.
9419 set dummy $ac_prog; ac_word=$2
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 printf %s "checking for $ac_word... " >&6; }
9422 if test ${ac_cv_prog_ac_ct_AR+y}
9423 then :
9424   printf %s "(cached) " >&6
9425 else $as_nop
9426   if test -n "$ac_ct_AR"; then
9427   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9428 else
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 for as_dir in $PATH
9431 do
9432   IFS=$as_save_IFS
9433   case $as_dir in #(((
9434     '') as_dir=./ ;;
9435     */) ;;
9436     *) as_dir=$as_dir/ ;;
9437   esac
9438     for ac_exec_ext in '' $ac_executable_extensions; do
9439   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9440     ac_cv_prog_ac_ct_AR="$ac_prog"
9441     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9442     break 2
9443   fi
9444 done
9445   done
9446 IFS=$as_save_IFS
9447
9448 fi
9449 fi
9450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9451 if test -n "$ac_ct_AR"; then
9452   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9453 printf "%s\n" "$ac_ct_AR" >&6; }
9454 else
9455   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 printf "%s\n" "no" >&6; }
9457 fi
9458
9459
9460   test -n "$ac_ct_AR" && break
9461 done
9462
9463   if test "x$ac_ct_AR" = x; then
9464     AR="false"
9465   else
9466     case $cross_compiling:$ac_tool_warned in
9467 yes:)
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9469 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9470 ac_tool_warned=yes ;;
9471 esac
9472     AR=$ac_ct_AR
9473   fi
9474 fi
9475
9476 : ${AR=ar}
9477 : ${AR_FLAGS=cr}
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9490 printf %s "checking for archiver @FILE support... " >&6; }
9491 if test ${lt_cv_ar_at_file+y}
9492 then :
9493   printf %s "(cached) " >&6
9494 else $as_nop
9495   lt_cv_ar_at_file=no
9496    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h.  */
9498
9499 int
9500 main (void)
9501 {
9502
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_compile "$LINENO"
9508 then :
9509   echo conftest.$ac_objext > conftest.lst
9510       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9511       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9512   (eval $lt_ar_try) 2>&5
9513   ac_status=$?
9514   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9515   test $ac_status = 0; }
9516       if test 0 -eq "$ac_status"; then
9517         # Ensure the archiver fails upon bogus file names.
9518         rm -f conftest.$ac_objext libconftest.a
9519         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9520   (eval $lt_ar_try) 2>&5
9521   ac_status=$?
9522   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523   test $ac_status = 0; }
9524         if test 0 -ne "$ac_status"; then
9525           lt_cv_ar_at_file=@
9526         fi
9527       fi
9528       rm -f conftest.* libconftest.a
9529
9530 fi
9531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9532
9533 fi
9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9535 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9536
9537 if test no = "$lt_cv_ar_at_file"; then
9538   archiver_list_spec=
9539 else
9540   archiver_list_spec=$lt_cv_ar_at_file
9541 fi
9542
9543
9544
9545
9546
9547
9548
9549 if test -n "$ac_tool_prefix"; then
9550   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9551 set dummy ${ac_tool_prefix}strip; ac_word=$2
9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9553 printf %s "checking for $ac_word... " >&6; }
9554 if test ${ac_cv_prog_STRIP+y}
9555 then :
9556   printf %s "(cached) " >&6
9557 else $as_nop
9558   if test -n "$STRIP"; then
9559   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9560 else
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9563 do
9564   IFS=$as_save_IFS
9565   case $as_dir in #(((
9566     '') as_dir=./ ;;
9567     */) ;;
9568     *) as_dir=$as_dir/ ;;
9569   esac
9570     for ac_exec_ext in '' $ac_executable_extensions; do
9571   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9572     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9573     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9574     break 2
9575   fi
9576 done
9577   done
9578 IFS=$as_save_IFS
9579
9580 fi
9581 fi
9582 STRIP=$ac_cv_prog_STRIP
9583 if test -n "$STRIP"; then
9584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9585 printf "%s\n" "$STRIP" >&6; }
9586 else
9587   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 printf "%s\n" "no" >&6; }
9589 fi
9590
9591
9592 fi
9593 if test -z "$ac_cv_prog_STRIP"; then
9594   ac_ct_STRIP=$STRIP
9595   # Extract the first word of "strip", so it can be a program name with args.
9596 set dummy strip; ac_word=$2
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 printf %s "checking for $ac_word... " >&6; }
9599 if test ${ac_cv_prog_ac_ct_STRIP+y}
9600 then :
9601   printf %s "(cached) " >&6
9602 else $as_nop
9603   if test -n "$ac_ct_STRIP"; then
9604   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9605 else
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9608 do
9609   IFS=$as_save_IFS
9610   case $as_dir in #(((
9611     '') as_dir=./ ;;
9612     */) ;;
9613     *) as_dir=$as_dir/ ;;
9614   esac
9615     for ac_exec_ext in '' $ac_executable_extensions; do
9616   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9617     ac_cv_prog_ac_ct_STRIP="strip"
9618     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9619     break 2
9620   fi
9621 done
9622   done
9623 IFS=$as_save_IFS
9624
9625 fi
9626 fi
9627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9628 if test -n "$ac_ct_STRIP"; then
9629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9630 printf "%s\n" "$ac_ct_STRIP" >&6; }
9631 else
9632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 printf "%s\n" "no" >&6; }
9634 fi
9635
9636   if test "x$ac_ct_STRIP" = x; then
9637     STRIP=":"
9638   else
9639     case $cross_compiling:$ac_tool_warned in
9640 yes:)
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9642 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9643 ac_tool_warned=yes ;;
9644 esac
9645     STRIP=$ac_ct_STRIP
9646   fi
9647 else
9648   STRIP="$ac_cv_prog_STRIP"
9649 fi
9650
9651 test -z "$STRIP" && STRIP=:
9652
9653
9654
9655
9656
9657
9658 if test -n "$ac_tool_prefix"; then
9659   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 printf %s "checking for $ac_word... " >&6; }
9663 if test ${ac_cv_prog_RANLIB+y}
9664 then :
9665   printf %s "(cached) " >&6
9666 else $as_nop
9667   if test -n "$RANLIB"; then
9668   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9669 else
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 for as_dir in $PATH
9672 do
9673   IFS=$as_save_IFS
9674   case $as_dir in #(((
9675     '') as_dir=./ ;;
9676     */) ;;
9677     *) as_dir=$as_dir/ ;;
9678   esac
9679     for ac_exec_ext in '' $ac_executable_extensions; do
9680   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9681     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9682     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9683     break 2
9684   fi
9685 done
9686   done
9687 IFS=$as_save_IFS
9688
9689 fi
9690 fi
9691 RANLIB=$ac_cv_prog_RANLIB
9692 if test -n "$RANLIB"; then
9693   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9694 printf "%s\n" "$RANLIB" >&6; }
9695 else
9696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 printf "%s\n" "no" >&6; }
9698 fi
9699
9700
9701 fi
9702 if test -z "$ac_cv_prog_RANLIB"; then
9703   ac_ct_RANLIB=$RANLIB
9704   # Extract the first word of "ranlib", so it can be a program name with args.
9705 set dummy ranlib; ac_word=$2
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707 printf %s "checking for $ac_word... " >&6; }
9708 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9709 then :
9710   printf %s "(cached) " >&6
9711 else $as_nop
9712   if test -n "$ac_ct_RANLIB"; then
9713   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9714 else
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716 for as_dir in $PATH
9717 do
9718   IFS=$as_save_IFS
9719   case $as_dir in #(((
9720     '') as_dir=./ ;;
9721     */) ;;
9722     *) as_dir=$as_dir/ ;;
9723   esac
9724     for ac_exec_ext in '' $ac_executable_extensions; do
9725   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9726     ac_cv_prog_ac_ct_RANLIB="ranlib"
9727     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9728     break 2
9729   fi
9730 done
9731   done
9732 IFS=$as_save_IFS
9733
9734 fi
9735 fi
9736 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9737 if test -n "$ac_ct_RANLIB"; then
9738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9739 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9740 else
9741   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742 printf "%s\n" "no" >&6; }
9743 fi
9744
9745   if test "x$ac_ct_RANLIB" = x; then
9746     RANLIB=":"
9747   else
9748     case $cross_compiling:$ac_tool_warned in
9749 yes:)
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9752 ac_tool_warned=yes ;;
9753 esac
9754     RANLIB=$ac_ct_RANLIB
9755   fi
9756 else
9757   RANLIB="$ac_cv_prog_RANLIB"
9758 fi
9759
9760 test -z "$RANLIB" && RANLIB=:
9761
9762
9763
9764
9765
9766
9767 # Determine commands to create old-style static archives.
9768 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9769 old_postinstall_cmds='chmod 644 $oldlib'
9770 old_postuninstall_cmds=
9771
9772 if test -n "$RANLIB"; then
9773   case $host_os in
9774   bitrig* | openbsd*)
9775     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9776     ;;
9777   *)
9778     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9779     ;;
9780   esac
9781   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9782 fi
9783
9784 case $host_os in
9785   darwin*)
9786     lock_old_archive_extraction=yes ;;
9787   *)
9788     lock_old_archive_extraction=no ;;
9789 esac
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829 # If no C compiler was specified, use CC.
9830 LTCC=${LTCC-"$CC"}
9831
9832 # If no C compiler flags were specified, use CFLAGS.
9833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9834
9835 # Allow CC to be a program name with arguments.
9836 compiler=$CC
9837
9838
9839 # Check for command to grab the raw symbol name followed by C symbol from nm.
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9841 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9842 if test ${lt_cv_sys_global_symbol_pipe+y}
9843 then :
9844   printf %s "(cached) " >&6
9845 else $as_nop
9846
9847 # These are sane defaults that work on at least a few old systems.
9848 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9849
9850 # Character class describing NM global symbol codes.
9851 symcode='[BCDEGRST]'
9852
9853 # Regexp to match symbols that can be accessed directly from C.
9854 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9855
9856 # Define system-specific variables.
9857 case $host_os in
9858 aix*)
9859   symcode='[BCDT]'
9860   ;;
9861 cygwin* | mingw* | pw32* | cegcc*)
9862   symcode='[ABCDGISTW]'
9863   ;;
9864 hpux*)
9865   if test ia64 = "$host_cpu"; then
9866     symcode='[ABCDEGRST]'
9867   fi
9868   ;;
9869 irix* | nonstopux*)
9870   symcode='[BCDEGRST]'
9871   ;;
9872 osf*)
9873   symcode='[BCDEGQRST]'
9874   ;;
9875 solaris*)
9876   symcode='[BDRT]'
9877   ;;
9878 sco3.2v5*)
9879   symcode='[DT]'
9880   ;;
9881 sysv4.2uw2*)
9882   symcode='[DT]'
9883   ;;
9884 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9885   symcode='[ABDT]'
9886   ;;
9887 sysv4)
9888   symcode='[DFNSTU]'
9889   ;;
9890 esac
9891
9892 # If we're using GNU nm, then use its standard symbol codes.
9893 case `$NM -V 2>&1` in
9894 *GNU* | *'with BFD'*)
9895   symcode='[ABCDGIRSTW]' ;;
9896 esac
9897
9898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9899   # Gets list of data symbols to import.
9900   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9901   # Adjust the below global symbol transforms to fixup imported variables.
9902   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9903   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9904   lt_c_name_lib_hook="\
9905   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9906   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9907 else
9908   # Disable hooks by default.
9909   lt_cv_sys_global_symbol_to_import=
9910   lt_cdecl_hook=
9911   lt_c_name_hook=
9912   lt_c_name_lib_hook=
9913 fi
9914
9915 # Transform an extracted symbol line into a proper C declaration.
9916 # Some systems (esp. on ia64) link data and code symbols differently,
9917 # so use this general approach.
9918 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9919 $lt_cdecl_hook\
9920 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9921 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9922
9923 # Transform an extracted symbol line into symbol name and symbol address
9924 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9925 $lt_c_name_hook\
9926 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9927 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9928
9929 # Transform an extracted symbol line into symbol name with lib prefix and
9930 # symbol address.
9931 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9932 $lt_c_name_lib_hook\
9933 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9934 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9935 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9936
9937 # Handle CRLF in mingw tool chain
9938 opt_cr=
9939 case $build_os in
9940 mingw*)
9941   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9942   ;;
9943 esac
9944
9945 # Try without a prefix underscore, then with it.
9946 for ac_symprfx in "" "_"; do
9947
9948   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9949   symxfrm="\\1 $ac_symprfx\\2 \\2"
9950
9951   # Write the raw and C identifiers.
9952   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9953     # Fake it for dumpbin and say T for any non-static function,
9954     # D for any global variable and I for any imported variable.
9955     # Also find C++ and __fastcall symbols from MSVC++,
9956     # which start with @ or ?.
9957     lt_cv_sys_global_symbol_pipe="$AWK '"\
9958 "     {last_section=section; section=\$ 3};"\
9959 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9960 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9961 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9962 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9963 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9964 "     \$ 0!~/External *\|/{next};"\
9965 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9966 "     {if(hide[section]) next};"\
9967 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9968 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9969 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9970 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9971 "     ' prfx=^$ac_symprfx"
9972   else
9973     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9974   fi
9975   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9976
9977   # Check to see that the pipe works correctly.
9978   pipe_works=no
9979
9980   rm -f conftest*
9981   cat > conftest.$ac_ext <<_LT_EOF
9982 #ifdef __cplusplus
9983 extern "C" {
9984 #endif
9985 char nm_test_var;
9986 void nm_test_func(void);
9987 void nm_test_func(void){}
9988 #ifdef __cplusplus
9989 }
9990 #endif
9991 int main(){nm_test_var='a';nm_test_func();return(0);}
9992 _LT_EOF
9993
9994   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9995   (eval $ac_compile) 2>&5
9996   ac_status=$?
9997   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9998   test $ac_status = 0; }; then
9999     # Now try to grab the symbols.
10000     nlist=conftest.nm
10001     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10002     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10003       # Try sorting and uniquifying the output.
10004       if sort "$nlist" | uniq > "$nlist"T; then
10005         mv -f "$nlist"T "$nlist"
10006       else
10007         rm -f "$nlist"T
10008       fi
10009
10010       # Make sure that we snagged all the symbols we need.
10011       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10012         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10013           cat <<_LT_EOF > conftest.$ac_ext
10014 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10015 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10016 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10017    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10018 # define LT_DLSYM_CONST
10019 #elif defined __osf__
10020 /* This system does not cope well with relocations in const data.  */
10021 # define LT_DLSYM_CONST
10022 #else
10023 # define LT_DLSYM_CONST const
10024 #endif
10025
10026 #ifdef __cplusplus
10027 extern "C" {
10028 #endif
10029
10030 _LT_EOF
10031           # Now generate the symbol file.
10032           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10033
10034           cat <<_LT_EOF >> conftest.$ac_ext
10035
10036 /* The mapping between symbol names and symbols.  */
10037 LT_DLSYM_CONST struct {
10038   const char *name;
10039   void       *address;
10040 }
10041 lt__PROGRAM__LTX_preloaded_symbols[] =
10042 {
10043   { "@PROGRAM@", (void *) 0 },
10044 _LT_EOF
10045           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10046           cat <<\_LT_EOF >> conftest.$ac_ext
10047   {0, (void *) 0}
10048 };
10049
10050 /* This works around a problem in FreeBSD linker */
10051 #ifdef FREEBSD_WORKAROUND
10052 static const void *lt_preloaded_setup() {
10053   return lt__PROGRAM__LTX_preloaded_symbols;
10054 }
10055 #endif
10056
10057 #ifdef __cplusplus
10058 }
10059 #endif
10060 _LT_EOF
10061           # Now try linking the two files.
10062           mv conftest.$ac_objext conftstm.$ac_objext
10063           lt_globsym_save_LIBS=$LIBS
10064           lt_globsym_save_CFLAGS=$CFLAGS
10065           LIBS=conftstm.$ac_objext
10066           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10067           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10068   (eval $ac_link) 2>&5
10069   ac_status=$?
10070   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10071   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10072             pipe_works=yes
10073           fi
10074           LIBS=$lt_globsym_save_LIBS
10075           CFLAGS=$lt_globsym_save_CFLAGS
10076         else
10077           echo "cannot find nm_test_func in $nlist" >&5
10078         fi
10079       else
10080         echo "cannot find nm_test_var in $nlist" >&5
10081       fi
10082     else
10083       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10084     fi
10085   else
10086     echo "$progname: failed program was:" >&5
10087     cat conftest.$ac_ext >&5
10088   fi
10089   rm -rf conftest* conftst*
10090
10091   # Do not use the global_symbol_pipe unless it works.
10092   if test yes = "$pipe_works"; then
10093     break
10094   else
10095     lt_cv_sys_global_symbol_pipe=
10096   fi
10097 done
10098
10099 fi
10100
10101 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10102   lt_cv_sys_global_symbol_to_cdecl=
10103 fi
10104 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10106 printf "%s\n" "failed" >&6; }
10107 else
10108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10109 printf "%s\n" "ok" >&6; }
10110 fi
10111
10112 # Response file support.
10113 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10114   nm_file_list_spec='@'
10115 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10116   nm_file_list_spec='@'
10117 fi
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10156 printf %s "checking for sysroot... " >&6; }
10157
10158 # Check whether --with-sysroot was given.
10159 if test ${with_sysroot+y}
10160 then :
10161   withval=$with_sysroot;
10162 else $as_nop
10163   with_sysroot=no
10164 fi
10165
10166
10167 lt_sysroot=
10168 case $with_sysroot in #(
10169  yes)
10170    if test yes = "$GCC"; then
10171      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10172    fi
10173    ;; #(
10174  /*)
10175    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10176    ;; #(
10177  no|'')
10178    ;; #(
10179  *)
10180    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10181 printf "%s\n" "$with_sysroot" >&6; }
10182    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10183    ;;
10184 esac
10185
10186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10187 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10188
10189
10190
10191
10192
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10194 printf %s "checking for a working dd... " >&6; }
10195 if test ${ac_cv_path_lt_DD+y}
10196 then :
10197   printf %s "(cached) " >&6
10198 else $as_nop
10199   printf 0123456789abcdef0123456789abcdef >conftest.i
10200 cat conftest.i conftest.i >conftest2.i
10201 : ${lt_DD:=$DD}
10202 if test -z "$lt_DD"; then
10203   ac_path_lt_DD_found=false
10204   # Loop through the user's path and test for each of PROGNAME-LIST
10205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in $PATH
10207 do
10208   IFS=$as_save_IFS
10209   case $as_dir in #(((
10210     '') as_dir=./ ;;
10211     */) ;;
10212     *) as_dir=$as_dir/ ;;
10213   esac
10214     for ac_prog in dd
10215    do
10216     for ac_exec_ext in '' $ac_executable_extensions; do
10217       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10218       as_fn_executable_p "$ac_path_lt_DD" || continue
10219 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10220   cmp -s conftest.i conftest.out \
10221   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10222 fi
10223       $ac_path_lt_DD_found && break 3
10224     done
10225   done
10226   done
10227 IFS=$as_save_IFS
10228   if test -z "$ac_cv_path_lt_DD"; then
10229     :
10230   fi
10231 else
10232   ac_cv_path_lt_DD=$lt_DD
10233 fi
10234
10235 rm -f conftest.i conftest2.i conftest.out
10236 fi
10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10238 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10239
10240
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10242 printf %s "checking how to truncate binary pipes... " >&6; }
10243 if test ${lt_cv_truncate_bin+y}
10244 then :
10245   printf %s "(cached) " >&6
10246 else $as_nop
10247   printf 0123456789abcdef0123456789abcdef >conftest.i
10248 cat conftest.i conftest.i >conftest2.i
10249 lt_cv_truncate_bin=
10250 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10251   cmp -s conftest.i conftest.out \
10252   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10253 fi
10254 rm -f conftest.i conftest2.i conftest.out
10255 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10256 fi
10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10258 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10259
10260
10261
10262
10263
10264
10265
10266 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10267 func_cc_basename ()
10268 {
10269     for cc_temp in $*""; do
10270       case $cc_temp in
10271         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10272         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10273         \-*) ;;
10274         *) break;;
10275       esac
10276     done
10277     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10278 }
10279
10280 # Check whether --enable-libtool-lock was given.
10281 if test ${enable_libtool_lock+y}
10282 then :
10283   enableval=$enable_libtool_lock;
10284 fi
10285
10286 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10287
10288 # Some flags need to be propagated to the compiler or linker for good
10289 # libtool support.
10290 case $host in
10291 ia64-*-hpux*)
10292   # Find out what ABI is being produced by ac_compile, and set mode
10293   # options accordingly.
10294   echo 'int i;' > conftest.$ac_ext
10295   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10296   (eval $ac_compile) 2>&5
10297   ac_status=$?
10298   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299   test $ac_status = 0; }; then
10300     case `/usr/bin/file conftest.$ac_objext` in
10301       *ELF-32*)
10302         HPUX_IA64_MODE=32
10303         ;;
10304       *ELF-64*)
10305         HPUX_IA64_MODE=64
10306         ;;
10307     esac
10308   fi
10309   rm -rf conftest*
10310   ;;
10311 *-*-irix6*)
10312   # Find out what ABI is being produced by ac_compile, and set linker
10313   # options accordingly.
10314   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10315   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10316   (eval $ac_compile) 2>&5
10317   ac_status=$?
10318   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10319   test $ac_status = 0; }; then
10320     if test yes = "$lt_cv_prog_gnu_ld"; then
10321       case `/usr/bin/file conftest.$ac_objext` in
10322         *32-bit*)
10323           LD="${LD-ld} -melf32bsmip"
10324           ;;
10325         *N32*)
10326           LD="${LD-ld} -melf32bmipn32"
10327           ;;
10328         *64-bit*)
10329           LD="${LD-ld} -melf64bmip"
10330         ;;
10331       esac
10332     else
10333       case `/usr/bin/file conftest.$ac_objext` in
10334         *32-bit*)
10335           LD="${LD-ld} -32"
10336           ;;
10337         *N32*)
10338           LD="${LD-ld} -n32"
10339           ;;
10340         *64-bit*)
10341           LD="${LD-ld} -64"
10342           ;;
10343       esac
10344     fi
10345   fi
10346   rm -rf conftest*
10347   ;;
10348
10349 mips64*-*linux*)
10350   # Find out what ABI is being produced by ac_compile, and set linker
10351   # options accordingly.
10352   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10353   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10354   (eval $ac_compile) 2>&5
10355   ac_status=$?
10356   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10357   test $ac_status = 0; }; then
10358     emul=elf
10359     case `/usr/bin/file conftest.$ac_objext` in
10360       *32-bit*)
10361         emul="${emul}32"
10362         ;;
10363       *64-bit*)
10364         emul="${emul}64"
10365         ;;
10366     esac
10367     case `/usr/bin/file conftest.$ac_objext` in
10368       *MSB*)
10369         emul="${emul}btsmip"
10370         ;;
10371       *LSB*)
10372         emul="${emul}ltsmip"
10373         ;;
10374     esac
10375     case `/usr/bin/file conftest.$ac_objext` in
10376       *N32*)
10377         emul="${emul}n32"
10378         ;;
10379     esac
10380     LD="${LD-ld} -m $emul"
10381   fi
10382   rm -rf conftest*
10383   ;;
10384
10385 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10386 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10387   # Find out what ABI is being produced by ac_compile, and set linker
10388   # options accordingly.  Note that the listed cases only cover the
10389   # situations where additional linker options are needed (such as when
10390   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10391   # vice versa); the common cases where no linker options are needed do
10392   # not appear in the list.
10393   echo 'int i;' > conftest.$ac_ext
10394   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10395   (eval $ac_compile) 2>&5
10396   ac_status=$?
10397   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10398   test $ac_status = 0; }; then
10399     case `/usr/bin/file conftest.o` in
10400       *32-bit*)
10401         case $host in
10402           x86_64-*kfreebsd*-gnu)
10403             LD="${LD-ld} -m elf_i386_fbsd"
10404             ;;
10405           x86_64-*linux*)
10406             case `/usr/bin/file conftest.o` in
10407               *x86-64*)
10408                 LD="${LD-ld} -m elf32_x86_64"
10409                 ;;
10410               *)
10411                 LD="${LD-ld} -m elf_i386"
10412                 ;;
10413             esac
10414             ;;
10415           powerpc64le-*linux*)
10416             LD="${LD-ld} -m elf32lppclinux"
10417             ;;
10418           powerpc64-*linux*)
10419             LD="${LD-ld} -m elf32ppclinux"
10420             ;;
10421           s390x-*linux*)
10422             LD="${LD-ld} -m elf_s390"
10423             ;;
10424           sparc64-*linux*)
10425             LD="${LD-ld} -m elf32_sparc"
10426             ;;
10427         esac
10428         ;;
10429       *64-bit*)
10430         case $host in
10431           x86_64-*kfreebsd*-gnu)
10432             LD="${LD-ld} -m elf_x86_64_fbsd"
10433             ;;
10434           x86_64-*linux*)
10435             LD="${LD-ld} -m elf_x86_64"
10436             ;;
10437           powerpcle-*linux*)
10438             LD="${LD-ld} -m elf64lppc"
10439             ;;
10440           powerpc-*linux*)
10441             LD="${LD-ld} -m elf64ppc"
10442             ;;
10443           s390*-*linux*|s390*-*tpf*)
10444             LD="${LD-ld} -m elf64_s390"
10445             ;;
10446           sparc*-*linux*)
10447             LD="${LD-ld} -m elf64_sparc"
10448             ;;
10449         esac
10450         ;;
10451     esac
10452   fi
10453   rm -rf conftest*
10454   ;;
10455
10456 *-*-sco3.2v5*)
10457   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10458   SAVE_CFLAGS=$CFLAGS
10459   CFLAGS="$CFLAGS -belf"
10460   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10461 printf %s "checking whether the C compiler needs -belf... " >&6; }
10462 if test ${lt_cv_cc_needs_belf+y}
10463 then :
10464   printf %s "(cached) " >&6
10465 else $as_nop
10466   ac_ext=c
10467 ac_cpp='$CPP $CPPFLAGS'
10468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10471
10472      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h.  */
10474
10475 int
10476 main (void)
10477 {
10478
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"
10484 then :
10485   lt_cv_cc_needs_belf=yes
10486 else $as_nop
10487   lt_cv_cc_needs_belf=no
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10490     conftest$ac_exeext conftest.$ac_ext
10491      ac_ext=c
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496
10497 fi
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10499 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10500   if test yes != "$lt_cv_cc_needs_belf"; then
10501     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10502     CFLAGS=$SAVE_CFLAGS
10503   fi
10504   ;;
10505 *-*solaris*)
10506   # Find out what ABI is being produced by ac_compile, and set linker
10507   # options accordingly.
10508   echo 'int i;' > conftest.$ac_ext
10509   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10510   (eval $ac_compile) 2>&5
10511   ac_status=$?
10512   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513   test $ac_status = 0; }; then
10514     case `/usr/bin/file conftest.o` in
10515     *64-bit*)
10516       case $lt_cv_prog_gnu_ld in
10517       yes*)
10518         case $host in
10519         i?86-*-solaris*|x86_64-*-solaris*)
10520           LD="${LD-ld} -m elf_x86_64"
10521           ;;
10522         sparc*-*-solaris*)
10523           LD="${LD-ld} -m elf64_sparc"
10524           ;;
10525         esac
10526         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10527         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10528           LD=${LD-ld}_sol2
10529         fi
10530         ;;
10531       *)
10532         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10533           LD="${LD-ld} -64"
10534         fi
10535         ;;
10536       esac
10537       ;;
10538     esac
10539   fi
10540   rm -rf conftest*
10541   ;;
10542 esac
10543
10544 need_locks=$enable_libtool_lock
10545
10546 if test -n "$ac_tool_prefix"; then
10547   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10548 set dummy ${ac_tool_prefix}mt; ac_word=$2
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 printf %s "checking for $ac_word... " >&6; }
10551 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10552 then :
10553   printf %s "(cached) " >&6
10554 else $as_nop
10555   if test -n "$MANIFEST_TOOL"; then
10556   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10557 else
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10560 do
10561   IFS=$as_save_IFS
10562   case $as_dir in #(((
10563     '') as_dir=./ ;;
10564     */) ;;
10565     *) as_dir=$as_dir/ ;;
10566   esac
10567     for ac_exec_ext in '' $ac_executable_extensions; do
10568   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10569     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10570     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10571     break 2
10572   fi
10573 done
10574   done
10575 IFS=$as_save_IFS
10576
10577 fi
10578 fi
10579 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10580 if test -n "$MANIFEST_TOOL"; then
10581   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10582 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10583 else
10584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 printf "%s\n" "no" >&6; }
10586 fi
10587
10588
10589 fi
10590 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10591   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10592   # Extract the first word of "mt", so it can be a program name with args.
10593 set dummy mt; ac_word=$2
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 printf %s "checking for $ac_word... " >&6; }
10596 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10597 then :
10598   printf %s "(cached) " >&6
10599 else $as_nop
10600   if test -n "$ac_ct_MANIFEST_TOOL"; then
10601   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10602 else
10603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604 for as_dir in $PATH
10605 do
10606   IFS=$as_save_IFS
10607   case $as_dir in #(((
10608     '') as_dir=./ ;;
10609     */) ;;
10610     *) as_dir=$as_dir/ ;;
10611   esac
10612     for ac_exec_ext in '' $ac_executable_extensions; do
10613   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10614     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10615     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10616     break 2
10617   fi
10618 done
10619   done
10620 IFS=$as_save_IFS
10621
10622 fi
10623 fi
10624 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10625 if test -n "$ac_ct_MANIFEST_TOOL"; then
10626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10627 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10628 else
10629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 printf "%s\n" "no" >&6; }
10631 fi
10632
10633   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10634     MANIFEST_TOOL=":"
10635   else
10636     case $cross_compiling:$ac_tool_warned in
10637 yes:)
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10640 ac_tool_warned=yes ;;
10641 esac
10642     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10643   fi
10644 else
10645   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10646 fi
10647
10648 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10650 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10651 if test ${lt_cv_path_mainfest_tool+y}
10652 then :
10653   printf %s "(cached) " >&6
10654 else $as_nop
10655   lt_cv_path_mainfest_tool=no
10656   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10657   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10658   cat conftest.err >&5
10659   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10660     lt_cv_path_mainfest_tool=yes
10661   fi
10662   rm -f conftest*
10663 fi
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10665 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10666 if test yes != "$lt_cv_path_mainfest_tool"; then
10667   MANIFEST_TOOL=:
10668 fi
10669
10670
10671
10672
10673
10674
10675   case $host_os in
10676     rhapsody* | darwin*)
10677     if test -n "$ac_tool_prefix"; then
10678   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10679 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681 printf %s "checking for $ac_word... " >&6; }
10682 if test ${ac_cv_prog_DSYMUTIL+y}
10683 then :
10684   printf %s "(cached) " >&6
10685 else $as_nop
10686   if test -n "$DSYMUTIL"; then
10687   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10688 else
10689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10690 for as_dir in $PATH
10691 do
10692   IFS=$as_save_IFS
10693   case $as_dir in #(((
10694     '') as_dir=./ ;;
10695     */) ;;
10696     *) as_dir=$as_dir/ ;;
10697   esac
10698     for ac_exec_ext in '' $ac_executable_extensions; do
10699   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10700     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10701     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10702     break 2
10703   fi
10704 done
10705   done
10706 IFS=$as_save_IFS
10707
10708 fi
10709 fi
10710 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10711 if test -n "$DSYMUTIL"; then
10712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10713 printf "%s\n" "$DSYMUTIL" >&6; }
10714 else
10715   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 printf "%s\n" "no" >&6; }
10717 fi
10718
10719
10720 fi
10721 if test -z "$ac_cv_prog_DSYMUTIL"; then
10722   ac_ct_DSYMUTIL=$DSYMUTIL
10723   # Extract the first word of "dsymutil", so it can be a program name with args.
10724 set dummy dsymutil; ac_word=$2
10725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10726 printf %s "checking for $ac_word... " >&6; }
10727 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10728 then :
10729   printf %s "(cached) " >&6
10730 else $as_nop
10731   if test -n "$ac_ct_DSYMUTIL"; then
10732   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10733 else
10734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735 for as_dir in $PATH
10736 do
10737   IFS=$as_save_IFS
10738   case $as_dir in #(((
10739     '') as_dir=./ ;;
10740     */) ;;
10741     *) as_dir=$as_dir/ ;;
10742   esac
10743     for ac_exec_ext in '' $ac_executable_extensions; do
10744   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10745     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10746     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10747     break 2
10748   fi
10749 done
10750   done
10751 IFS=$as_save_IFS
10752
10753 fi
10754 fi
10755 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10756 if test -n "$ac_ct_DSYMUTIL"; then
10757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10758 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10759 else
10760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 printf "%s\n" "no" >&6; }
10762 fi
10763
10764   if test "x$ac_ct_DSYMUTIL" = x; then
10765     DSYMUTIL=":"
10766   else
10767     case $cross_compiling:$ac_tool_warned in
10768 yes:)
10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10770 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10771 ac_tool_warned=yes ;;
10772 esac
10773     DSYMUTIL=$ac_ct_DSYMUTIL
10774   fi
10775 else
10776   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10777 fi
10778
10779     if test -n "$ac_tool_prefix"; then
10780   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10781 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 printf %s "checking for $ac_word... " >&6; }
10784 if test ${ac_cv_prog_NMEDIT+y}
10785 then :
10786   printf %s "(cached) " >&6
10787 else $as_nop
10788   if test -n "$NMEDIT"; then
10789   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10790 else
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10793 do
10794   IFS=$as_save_IFS
10795   case $as_dir in #(((
10796     '') as_dir=./ ;;
10797     */) ;;
10798     *) as_dir=$as_dir/ ;;
10799   esac
10800     for ac_exec_ext in '' $ac_executable_extensions; do
10801   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10802     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10803     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10804     break 2
10805   fi
10806 done
10807   done
10808 IFS=$as_save_IFS
10809
10810 fi
10811 fi
10812 NMEDIT=$ac_cv_prog_NMEDIT
10813 if test -n "$NMEDIT"; then
10814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10815 printf "%s\n" "$NMEDIT" >&6; }
10816 else
10817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 printf "%s\n" "no" >&6; }
10819 fi
10820
10821
10822 fi
10823 if test -z "$ac_cv_prog_NMEDIT"; then
10824   ac_ct_NMEDIT=$NMEDIT
10825   # Extract the first word of "nmedit", so it can be a program name with args.
10826 set dummy nmedit; ac_word=$2
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 printf %s "checking for $ac_word... " >&6; }
10829 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10830 then :
10831   printf %s "(cached) " >&6
10832 else $as_nop
10833   if test -n "$ac_ct_NMEDIT"; then
10834   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10835 else
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839   IFS=$as_save_IFS
10840   case $as_dir in #(((
10841     '') as_dir=./ ;;
10842     */) ;;
10843     *) as_dir=$as_dir/ ;;
10844   esac
10845     for ac_exec_ext in '' $ac_executable_extensions; do
10846   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10847     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10848     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10849     break 2
10850   fi
10851 done
10852   done
10853 IFS=$as_save_IFS
10854
10855 fi
10856 fi
10857 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10858 if test -n "$ac_ct_NMEDIT"; then
10859   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10860 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10861 else
10862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 printf "%s\n" "no" >&6; }
10864 fi
10865
10866   if test "x$ac_ct_NMEDIT" = x; then
10867     NMEDIT=":"
10868   else
10869     case $cross_compiling:$ac_tool_warned in
10870 yes:)
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10873 ac_tool_warned=yes ;;
10874 esac
10875     NMEDIT=$ac_ct_NMEDIT
10876   fi
10877 else
10878   NMEDIT="$ac_cv_prog_NMEDIT"
10879 fi
10880
10881     if test -n "$ac_tool_prefix"; then
10882   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10883 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 printf %s "checking for $ac_word... " >&6; }
10886 if test ${ac_cv_prog_LIPO+y}
10887 then :
10888   printf %s "(cached) " >&6
10889 else $as_nop
10890   if test -n "$LIPO"; then
10891   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10892 else
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10895 do
10896   IFS=$as_save_IFS
10897   case $as_dir in #(((
10898     '') as_dir=./ ;;
10899     */) ;;
10900     *) as_dir=$as_dir/ ;;
10901   esac
10902     for ac_exec_ext in '' $ac_executable_extensions; do
10903   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10904     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10905     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10906     break 2
10907   fi
10908 done
10909   done
10910 IFS=$as_save_IFS
10911
10912 fi
10913 fi
10914 LIPO=$ac_cv_prog_LIPO
10915 if test -n "$LIPO"; then
10916   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10917 printf "%s\n" "$LIPO" >&6; }
10918 else
10919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 printf "%s\n" "no" >&6; }
10921 fi
10922
10923
10924 fi
10925 if test -z "$ac_cv_prog_LIPO"; then
10926   ac_ct_LIPO=$LIPO
10927   # Extract the first word of "lipo", so it can be a program name with args.
10928 set dummy lipo; ac_word=$2
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 printf %s "checking for $ac_word... " >&6; }
10931 if test ${ac_cv_prog_ac_ct_LIPO+y}
10932 then :
10933   printf %s "(cached) " >&6
10934 else $as_nop
10935   if test -n "$ac_ct_LIPO"; then
10936   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10937 else
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10940 do
10941   IFS=$as_save_IFS
10942   case $as_dir in #(((
10943     '') as_dir=./ ;;
10944     */) ;;
10945     *) as_dir=$as_dir/ ;;
10946   esac
10947     for ac_exec_ext in '' $ac_executable_extensions; do
10948   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10949     ac_cv_prog_ac_ct_LIPO="lipo"
10950     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10951     break 2
10952   fi
10953 done
10954   done
10955 IFS=$as_save_IFS
10956
10957 fi
10958 fi
10959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10960 if test -n "$ac_ct_LIPO"; then
10961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10962 printf "%s\n" "$ac_ct_LIPO" >&6; }
10963 else
10964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 printf "%s\n" "no" >&6; }
10966 fi
10967
10968   if test "x$ac_ct_LIPO" = x; then
10969     LIPO=":"
10970   else
10971     case $cross_compiling:$ac_tool_warned in
10972 yes:)
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10975 ac_tool_warned=yes ;;
10976 esac
10977     LIPO=$ac_ct_LIPO
10978   fi
10979 else
10980   LIPO="$ac_cv_prog_LIPO"
10981 fi
10982
10983     if test -n "$ac_tool_prefix"; then
10984   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10985 set dummy ${ac_tool_prefix}otool; ac_word=$2
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987 printf %s "checking for $ac_word... " >&6; }
10988 if test ${ac_cv_prog_OTOOL+y}
10989 then :
10990   printf %s "(cached) " >&6
10991 else $as_nop
10992   if test -n "$OTOOL"; then
10993   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10994 else
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10997 do
10998   IFS=$as_save_IFS
10999   case $as_dir in #(((
11000     '') as_dir=./ ;;
11001     */) ;;
11002     *) as_dir=$as_dir/ ;;
11003   esac
11004     for ac_exec_ext in '' $ac_executable_extensions; do
11005   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11006     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11007     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11008     break 2
11009   fi
11010 done
11011   done
11012 IFS=$as_save_IFS
11013
11014 fi
11015 fi
11016 OTOOL=$ac_cv_prog_OTOOL
11017 if test -n "$OTOOL"; then
11018   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11019 printf "%s\n" "$OTOOL" >&6; }
11020 else
11021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 printf "%s\n" "no" >&6; }
11023 fi
11024
11025
11026 fi
11027 if test -z "$ac_cv_prog_OTOOL"; then
11028   ac_ct_OTOOL=$OTOOL
11029   # Extract the first word of "otool", so it can be a program name with args.
11030 set dummy otool; ac_word=$2
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 printf %s "checking for $ac_word... " >&6; }
11033 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11034 then :
11035   printf %s "(cached) " >&6
11036 else $as_nop
11037   if test -n "$ac_ct_OTOOL"; then
11038   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043   IFS=$as_save_IFS
11044   case $as_dir in #(((
11045     '') as_dir=./ ;;
11046     */) ;;
11047     *) as_dir=$as_dir/ ;;
11048   esac
11049     for ac_exec_ext in '' $ac_executable_extensions; do
11050   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11051     ac_cv_prog_ac_ct_OTOOL="otool"
11052     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11053     break 2
11054   fi
11055 done
11056   done
11057 IFS=$as_save_IFS
11058
11059 fi
11060 fi
11061 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11062 if test -n "$ac_ct_OTOOL"; then
11063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11064 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11065 else
11066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 printf "%s\n" "no" >&6; }
11068 fi
11069
11070   if test "x$ac_ct_OTOOL" = x; then
11071     OTOOL=":"
11072   else
11073     case $cross_compiling:$ac_tool_warned in
11074 yes:)
11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11076 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11077 ac_tool_warned=yes ;;
11078 esac
11079     OTOOL=$ac_ct_OTOOL
11080   fi
11081 else
11082   OTOOL="$ac_cv_prog_OTOOL"
11083 fi
11084
11085     if test -n "$ac_tool_prefix"; then
11086   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11087 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 printf %s "checking for $ac_word... " >&6; }
11090 if test ${ac_cv_prog_OTOOL64+y}
11091 then :
11092   printf %s "(cached) " >&6
11093 else $as_nop
11094   if test -n "$OTOOL64"; then
11095   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11096 else
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11099 do
11100   IFS=$as_save_IFS
11101   case $as_dir in #(((
11102     '') as_dir=./ ;;
11103     */) ;;
11104     *) as_dir=$as_dir/ ;;
11105   esac
11106     for ac_exec_ext in '' $ac_executable_extensions; do
11107   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11108     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11109     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11110     break 2
11111   fi
11112 done
11113   done
11114 IFS=$as_save_IFS
11115
11116 fi
11117 fi
11118 OTOOL64=$ac_cv_prog_OTOOL64
11119 if test -n "$OTOOL64"; then
11120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11121 printf "%s\n" "$OTOOL64" >&6; }
11122 else
11123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 printf "%s\n" "no" >&6; }
11125 fi
11126
11127
11128 fi
11129 if test -z "$ac_cv_prog_OTOOL64"; then
11130   ac_ct_OTOOL64=$OTOOL64
11131   # Extract the first word of "otool64", so it can be a program name with args.
11132 set dummy otool64; ac_word=$2
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 printf %s "checking for $ac_word... " >&6; }
11135 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11136 then :
11137   printf %s "(cached) " >&6
11138 else $as_nop
11139   if test -n "$ac_ct_OTOOL64"; then
11140   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11141 else
11142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143 for as_dir in $PATH
11144 do
11145   IFS=$as_save_IFS
11146   case $as_dir in #(((
11147     '') as_dir=./ ;;
11148     */) ;;
11149     *) as_dir=$as_dir/ ;;
11150   esac
11151     for ac_exec_ext in '' $ac_executable_extensions; do
11152   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11153     ac_cv_prog_ac_ct_OTOOL64="otool64"
11154     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11155     break 2
11156   fi
11157 done
11158   done
11159 IFS=$as_save_IFS
11160
11161 fi
11162 fi
11163 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11164 if test -n "$ac_ct_OTOOL64"; then
11165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11166 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11167 else
11168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 printf "%s\n" "no" >&6; }
11170 fi
11171
11172   if test "x$ac_ct_OTOOL64" = x; then
11173     OTOOL64=":"
11174   else
11175     case $cross_compiling:$ac_tool_warned in
11176 yes:)
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11179 ac_tool_warned=yes ;;
11180 esac
11181     OTOOL64=$ac_ct_OTOOL64
11182   fi
11183 else
11184   OTOOL64="$ac_cv_prog_OTOOL64"
11185 fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11214 printf %s "checking for -single_module linker flag... " >&6; }
11215 if test ${lt_cv_apple_cc_single_mod+y}
11216 then :
11217   printf %s "(cached) " >&6
11218 else $as_nop
11219   lt_cv_apple_cc_single_mod=no
11220       if test -z "$LT_MULTI_MODULE"; then
11221         # By default we will add the -single_module flag. You can override
11222         # by either setting the environment variable LT_MULTI_MODULE
11223         # non-empty at configure time, or by adding -multi_module to the
11224         # link flags.
11225         rm -rf libconftest.dylib*
11226         echo "int foo(void){return 1;}" > conftest.c
11227         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11228 -dynamiclib -Wl,-single_module conftest.c" >&5
11229         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11230           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11231         _lt_result=$?
11232         # If there is a non-empty error log, and "single_module"
11233         # appears in it, assume the flag caused a linker warning
11234         if test -s conftest.err && $GREP single_module conftest.err; then
11235           cat conftest.err >&5
11236         # Otherwise, if the output was created with a 0 exit code from
11237         # the compiler, it worked.
11238         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11239           lt_cv_apple_cc_single_mod=yes
11240         else
11241           cat conftest.err >&5
11242         fi
11243         rm -rf libconftest.dylib*
11244         rm -f conftest.*
11245       fi
11246 fi
11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11248 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11249
11250     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11251 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11252 if test ${lt_cv_ld_exported_symbols_list+y}
11253 then :
11254   printf %s "(cached) " >&6
11255 else $as_nop
11256   lt_cv_ld_exported_symbols_list=no
11257       save_LDFLAGS=$LDFLAGS
11258       echo "_main" > conftest.sym
11259       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11260       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h.  */
11262
11263 int
11264 main (void)
11265 {
11266
11267   ;
11268   return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"
11272 then :
11273   lt_cv_ld_exported_symbols_list=yes
11274 else $as_nop
11275   lt_cv_ld_exported_symbols_list=no
11276 fi
11277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11278     conftest$ac_exeext conftest.$ac_ext
11279         LDFLAGS=$save_LDFLAGS
11280
11281 fi
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11283 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11284
11285     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11286 printf %s "checking for -force_load linker flag... " >&6; }
11287 if test ${lt_cv_ld_force_load+y}
11288 then :
11289   printf %s "(cached) " >&6
11290 else $as_nop
11291   lt_cv_ld_force_load=no
11292       cat > conftest.c << _LT_EOF
11293 int forced_loaded() { return 2;}
11294 _LT_EOF
11295       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11296       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11297       echo "$AR cr libconftest.a conftest.o" >&5
11298       $AR cr libconftest.a conftest.o 2>&5
11299       echo "$RANLIB libconftest.a" >&5
11300       $RANLIB libconftest.a 2>&5
11301       cat > conftest.c << _LT_EOF
11302 int main() { return 0;}
11303 _LT_EOF
11304       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11305       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11306       _lt_result=$?
11307       if test -s conftest.err && $GREP force_load conftest.err; then
11308         cat conftest.err >&5
11309       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11310         lt_cv_ld_force_load=yes
11311       else
11312         cat conftest.err >&5
11313       fi
11314         rm -f conftest.err libconftest.a conftest conftest.c
11315         rm -rf conftest.dSYM
11316
11317 fi
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11319 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11320     case $host_os in
11321     rhapsody* | darwin1.[012])
11322       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11323     darwin1.*)
11324       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11325     darwin*) # darwin 5.x on
11326       # if running on 10.5 or later, the deployment target defaults
11327       # to the OS version, if on x86, and 10.4, the deployment
11328       # target defaults to 10.4. Don't you love it?
11329       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11330         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
11331           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11332         10.[012][,.]*)
11333           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11334         10.*|11.*)
11335           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11336       esac
11337     ;;
11338   esac
11339     if test yes = "$lt_cv_apple_cc_single_mod"; then
11340       _lt_dar_single_mod='$single_module'
11341     fi
11342     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11343       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11344     else
11345       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11346     fi
11347     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11348       _lt_dsymutil='~$DSYMUTIL $lib || :'
11349     else
11350       _lt_dsymutil=
11351     fi
11352     ;;
11353   esac
11354
11355 # func_munge_path_list VARIABLE PATH
11356 # -----------------------------------
11357 # VARIABLE is name of variable containing _space_ separated list of
11358 # directories to be munged by the contents of PATH, which is string
11359 # having a format:
11360 # "DIR[:DIR]:"
11361 #       string "DIR[ DIR]" will be prepended to VARIABLE
11362 # ":DIR[:DIR]"
11363 #       string "DIR[ DIR]" will be appended to VARIABLE
11364 # "DIRP[:DIRP]::[DIRA:]DIRA"
11365 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11366 #       "DIRA[ DIRA]" will be appended to VARIABLE
11367 # "DIR[:DIR]"
11368 #       VARIABLE will be replaced by "DIR[ DIR]"
11369 func_munge_path_list ()
11370 {
11371     case x$2 in
11372     x)
11373         ;;
11374     *:)
11375         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11376         ;;
11377     x:*)
11378         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11379         ;;
11380     *::*)
11381         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11382         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11383         ;;
11384     *)
11385         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11386         ;;
11387     esac
11388 }
11389
11390 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11391 "
11392 if test "x$ac_cv_header_dlfcn_h" = xyes
11393 then :
11394   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11395
11396 fi
11397
11398
11399
11400
11401
11402 # Set options
11403 # Check whether --enable-static was given.
11404 if test ${enable_static+y}
11405 then :
11406   enableval=$enable_static; p=${PACKAGE-default}
11407     case $enableval in
11408     yes) enable_static=yes ;;
11409     no) enable_static=no ;;
11410     *)
11411      enable_static=no
11412       # Look at the argument we got.  We use all the common list separators.
11413       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11414       for pkg in $enableval; do
11415         IFS=$lt_save_ifs
11416         if test "X$pkg" = "X$p"; then
11417           enable_static=yes
11418         fi
11419       done
11420       IFS=$lt_save_ifs
11421       ;;
11422     esac
11423 else $as_nop
11424   enable_static=no
11425 fi
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436         enable_dlopen=no
11437
11438
11439   enable_win32_dll=no
11440
11441
11442             # Check whether --enable-shared was given.
11443 if test ${enable_shared+y}
11444 then :
11445   enableval=$enable_shared; p=${PACKAGE-default}
11446     case $enableval in
11447     yes) enable_shared=yes ;;
11448     no) enable_shared=no ;;
11449     *)
11450       enable_shared=no
11451       # Look at the argument we got.  We use all the common list separators.
11452       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11453       for pkg in $enableval; do
11454         IFS=$lt_save_ifs
11455         if test "X$pkg" = "X$p"; then
11456           enable_shared=yes
11457         fi
11458       done
11459       IFS=$lt_save_ifs
11460       ;;
11461     esac
11462 else $as_nop
11463   enable_shared=yes
11464 fi
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476 # Check whether --with-pic was given.
11477 if test ${with_pic+y}
11478 then :
11479   withval=$with_pic; lt_p=${PACKAGE-default}
11480     case $withval in
11481     yes|no) pic_mode=$withval ;;
11482     *)
11483       pic_mode=default
11484       # Look at the argument we got.  We use all the common list separators.
11485       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11486       for lt_pkg in $withval; do
11487         IFS=$lt_save_ifs
11488         if test "X$lt_pkg" = "X$lt_p"; then
11489           pic_mode=yes
11490         fi
11491       done
11492       IFS=$lt_save_ifs
11493       ;;
11494     esac
11495 else $as_nop
11496   pic_mode=default
11497 fi
11498
11499
11500
11501
11502
11503
11504
11505
11506   # Check whether --enable-fast-install was given.
11507 if test ${enable_fast_install+y}
11508 then :
11509   enableval=$enable_fast_install; p=${PACKAGE-default}
11510     case $enableval in
11511     yes) enable_fast_install=yes ;;
11512     no) enable_fast_install=no ;;
11513     *)
11514       enable_fast_install=no
11515       # Look at the argument we got.  We use all the common list separators.
11516       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11517       for pkg in $enableval; do
11518         IFS=$lt_save_ifs
11519         if test "X$pkg" = "X$p"; then
11520           enable_fast_install=yes
11521         fi
11522       done
11523       IFS=$lt_save_ifs
11524       ;;
11525     esac
11526 else $as_nop
11527   enable_fast_install=yes
11528 fi
11529
11530
11531
11532
11533
11534
11535
11536
11537   shared_archive_member_spec=
11538 case $host,$enable_shared in
11539 power*-*-aix[5-9]*,yes)
11540   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11541 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11542
11543 # Check whether --with-aix-soname was given.
11544 if test ${with_aix_soname+y}
11545 then :
11546   withval=$with_aix_soname; case $withval in
11547     aix|svr4|both)
11548       ;;
11549     *)
11550       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11551       ;;
11552     esac
11553     lt_cv_with_aix_soname=$with_aix_soname
11554 else $as_nop
11555   if test ${lt_cv_with_aix_soname+y}
11556 then :
11557   printf %s "(cached) " >&6
11558 else $as_nop
11559   lt_cv_with_aix_soname=aix
11560 fi
11561
11562     with_aix_soname=$lt_cv_with_aix_soname
11563 fi
11564
11565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11566 printf "%s\n" "$with_aix_soname" >&6; }
11567   if test aix != "$with_aix_soname"; then
11568     # For the AIX way of multilib, we name the shared archive member
11569     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11570     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11571     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11572     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11573     if test 64 = "${OBJECT_MODE-32}"; then
11574       shared_archive_member_spec=shr_64
11575     else
11576       shared_archive_member_spec=shr
11577     fi
11578   fi
11579   ;;
11580 *)
11581   with_aix_soname=aix
11582   ;;
11583 esac
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594 # This can be used to rebuild libtool when needed
11595 LIBTOOL_DEPS=$ltmain
11596
11597 # Always use our own libtool.
11598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629 test -z "$LN_S" && LN_S="ln -s"
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644 if test -n "${ZSH_VERSION+set}"; then
11645    setopt NO_GLOB_SUBST
11646 fi
11647
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11649 printf %s "checking for objdir... " >&6; }
11650 if test ${lt_cv_objdir+y}
11651 then :
11652   printf %s "(cached) " >&6
11653 else $as_nop
11654   rm -f .libs 2>/dev/null
11655 mkdir .libs 2>/dev/null
11656 if test -d .libs; then
11657   lt_cv_objdir=.libs
11658 else
11659   # MS-DOS does not allow filenames that begin with a dot.
11660   lt_cv_objdir=_libs
11661 fi
11662 rmdir .libs 2>/dev/null
11663 fi
11664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11665 printf "%s\n" "$lt_cv_objdir" >&6; }
11666 objdir=$lt_cv_objdir
11667
11668
11669
11670
11671
11672 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11673
11674
11675
11676
11677 case $host_os in
11678 aix3*)
11679   # AIX sometimes has problems with the GCC collect2 program.  For some
11680   # reason, if we set the COLLECT_NAMES environment variable, the problems
11681   # vanish in a puff of smoke.
11682   if test set != "${COLLECT_NAMES+set}"; then
11683     COLLECT_NAMES=
11684     export COLLECT_NAMES
11685   fi
11686   ;;
11687 esac
11688
11689 # Global variables:
11690 ofile=libtool
11691 can_build_shared=yes
11692
11693 # All known linkers require a '.a' archive for static linking (except MSVC,
11694 # which needs '.lib').
11695 libext=a
11696
11697 with_gnu_ld=$lt_cv_prog_gnu_ld
11698
11699 old_CC=$CC
11700 old_CFLAGS=$CFLAGS
11701
11702 # Set sane defaults for various variables
11703 test -z "$CC" && CC=cc
11704 test -z "$LTCC" && LTCC=$CC
11705 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11706 test -z "$LD" && LD=ld
11707 test -z "$ac_objext" && ac_objext=o
11708
11709 func_cc_basename $compiler
11710 cc_basename=$func_cc_basename_result
11711
11712
11713 # Only perform the check for file, if the check method requires it
11714 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11715 case $deplibs_check_method in
11716 file_magic*)
11717   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11718     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11719 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11720 if test ${lt_cv_path_MAGIC_CMD+y}
11721 then :
11722   printf %s "(cached) " >&6
11723 else $as_nop
11724   case $MAGIC_CMD in
11725 [\\/*] |  ?:[\\/]*)
11726   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11727   ;;
11728 *)
11729   lt_save_MAGIC_CMD=$MAGIC_CMD
11730   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11731   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11732   for ac_dir in $ac_dummy; do
11733     IFS=$lt_save_ifs
11734     test -z "$ac_dir" && ac_dir=.
11735     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11736       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11737       if test -n "$file_magic_test_file"; then
11738         case $deplibs_check_method in
11739         "file_magic "*)
11740           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11741           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11742           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11743             $EGREP "$file_magic_regex" > /dev/null; then
11744             :
11745           else
11746             cat <<_LT_EOF 1>&2
11747
11748 *** Warning: the command libtool uses to detect shared libraries,
11749 *** $file_magic_cmd, produces output that libtool cannot recognize.
11750 *** The result is that libtool may fail to recognize shared libraries
11751 *** as such.  This will affect the creation of libtool libraries that
11752 *** depend on shared libraries, but programs linked with such libtool
11753 *** libraries will work regardless of this problem.  Nevertheless, you
11754 *** may want to report the problem to your system manager and/or to
11755 *** bug-libtool@gnu.org
11756
11757 _LT_EOF
11758           fi ;;
11759         esac
11760       fi
11761       break
11762     fi
11763   done
11764   IFS=$lt_save_ifs
11765   MAGIC_CMD=$lt_save_MAGIC_CMD
11766   ;;
11767 esac
11768 fi
11769
11770 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11771 if test -n "$MAGIC_CMD"; then
11772   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11773 printf "%s\n" "$MAGIC_CMD" >&6; }
11774 else
11775   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 printf "%s\n" "no" >&6; }
11777 fi
11778
11779
11780
11781
11782
11783 if test -z "$lt_cv_path_MAGIC_CMD"; then
11784   if test -n "$ac_tool_prefix"; then
11785     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11786 printf %s "checking for file... " >&6; }
11787 if test ${lt_cv_path_MAGIC_CMD+y}
11788 then :
11789   printf %s "(cached) " >&6
11790 else $as_nop
11791   case $MAGIC_CMD in
11792 [\\/*] |  ?:[\\/]*)
11793   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11794   ;;
11795 *)
11796   lt_save_MAGIC_CMD=$MAGIC_CMD
11797   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11798   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11799   for ac_dir in $ac_dummy; do
11800     IFS=$lt_save_ifs
11801     test -z "$ac_dir" && ac_dir=.
11802     if test -f "$ac_dir/file"; then
11803       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11804       if test -n "$file_magic_test_file"; then
11805         case $deplibs_check_method in
11806         "file_magic "*)
11807           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11808           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11809           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11810             $EGREP "$file_magic_regex" > /dev/null; then
11811             :
11812           else
11813             cat <<_LT_EOF 1>&2
11814
11815 *** Warning: the command libtool uses to detect shared libraries,
11816 *** $file_magic_cmd, produces output that libtool cannot recognize.
11817 *** The result is that libtool may fail to recognize shared libraries
11818 *** as such.  This will affect the creation of libtool libraries that
11819 *** depend on shared libraries, but programs linked with such libtool
11820 *** libraries will work regardless of this problem.  Nevertheless, you
11821 *** may want to report the problem to your system manager and/or to
11822 *** bug-libtool@gnu.org
11823
11824 _LT_EOF
11825           fi ;;
11826         esac
11827       fi
11828       break
11829     fi
11830   done
11831   IFS=$lt_save_ifs
11832   MAGIC_CMD=$lt_save_MAGIC_CMD
11833   ;;
11834 esac
11835 fi
11836
11837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11838 if test -n "$MAGIC_CMD"; then
11839   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11840 printf "%s\n" "$MAGIC_CMD" >&6; }
11841 else
11842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 printf "%s\n" "no" >&6; }
11844 fi
11845
11846
11847   else
11848     MAGIC_CMD=:
11849   fi
11850 fi
11851
11852   fi
11853   ;;
11854 esac
11855
11856 # Use C for the default configuration in the libtool script
11857
11858 lt_save_CC=$CC
11859 ac_ext=c
11860 ac_cpp='$CPP $CPPFLAGS'
11861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11864
11865
11866 # Source file extension for C test sources.
11867 ac_ext=c
11868
11869 # Object file extension for compiled C test sources.
11870 objext=o
11871 objext=$objext
11872
11873 # Code to be used in simple compile tests
11874 lt_simple_compile_test_code="int some_variable = 0;"
11875
11876 # Code to be used in simple link tests
11877 lt_simple_link_test_code='int main(){return(0);}'
11878
11879
11880
11881
11882
11883
11884
11885 # If no C compiler was specified, use CC.
11886 LTCC=${LTCC-"$CC"}
11887
11888 # If no C compiler flags were specified, use CFLAGS.
11889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11890
11891 # Allow CC to be a program name with arguments.
11892 compiler=$CC
11893
11894 # Save the default compiler, since it gets overwritten when the other
11895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11896 compiler_DEFAULT=$CC
11897
11898 # save warnings/boilerplate of simple test code
11899 ac_outfile=conftest.$ac_objext
11900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11902 _lt_compiler_boilerplate=`cat conftest.err`
11903 $RM conftest*
11904
11905 ac_outfile=conftest.$ac_objext
11906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11908 _lt_linker_boilerplate=`cat conftest.err`
11909 $RM -r conftest*
11910
11911
11912 ## CAVEAT EMPTOR:
11913 ## There is no encapsulation within the following macros, do not change
11914 ## the running order or otherwise move them around unless you know exactly
11915 ## what you are doing...
11916 if test -n "$compiler"; then
11917
11918 lt_prog_compiler_no_builtin_flag=
11919
11920 if test yes = "$GCC"; then
11921   case $cc_basename in
11922   nvcc*)
11923     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11924   *)
11925     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11926   esac
11927
11928   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11929 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11930 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11931 then :
11932   printf %s "(cached) " >&6
11933 else $as_nop
11934   lt_cv_prog_compiler_rtti_exceptions=no
11935    ac_outfile=conftest.$ac_objext
11936    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11937    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11938    # Insert the option either (1) after the last *FLAGS variable, or
11939    # (2) before a word containing "conftest.", or (3) at the end.
11940    # Note that $ac_compile itself does not contain backslashes and begins
11941    # with a dollar sign (not a hyphen), so the echo should work correctly.
11942    # The option is referenced via a variable to avoid confusing sed.
11943    lt_compile=`echo "$ac_compile" | $SED \
11944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11946    -e 's:$: $lt_compiler_flag:'`
11947    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11948    (eval "$lt_compile" 2>conftest.err)
11949    ac_status=$?
11950    cat conftest.err >&5
11951    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952    if (exit $ac_status) && test -s "$ac_outfile"; then
11953      # The compiler can only warn and ignore the option if not recognized
11954      # So say no if there are warnings other than the usual output.
11955      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11956      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11957      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11958        lt_cv_prog_compiler_rtti_exceptions=yes
11959      fi
11960    fi
11961    $RM conftest*
11962
11963 fi
11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11965 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11966
11967 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11968     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11969 else
11970     :
11971 fi
11972
11973 fi
11974
11975
11976
11977
11978
11979
11980   lt_prog_compiler_wl=
11981 lt_prog_compiler_pic=
11982 lt_prog_compiler_static=
11983
11984
11985   if test yes = "$GCC"; then
11986     lt_prog_compiler_wl='-Wl,'
11987     lt_prog_compiler_static='-static'
11988
11989     case $host_os in
11990       aix*)
11991       # All AIX code is PIC.
11992       if test ia64 = "$host_cpu"; then
11993         # AIX 5 now supports IA64 processor
11994         lt_prog_compiler_static='-Bstatic'
11995       fi
11996       lt_prog_compiler_pic='-fPIC'
11997       ;;
11998
11999     amigaos*)
12000       case $host_cpu in
12001       powerpc)
12002             # see comment about AmigaOS4 .so support
12003             lt_prog_compiler_pic='-fPIC'
12004         ;;
12005       m68k)
12006             # FIXME: we need at least 68020 code to build shared libraries, but
12007             # adding the '-m68020' flag to GCC prevents building anything better,
12008             # like '-m68040'.
12009             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12010         ;;
12011       esac
12012       ;;
12013
12014     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12015       # PIC is the default for these OSes.
12016       ;;
12017
12018     mingw* | cygwin* | pw32* | os2* | cegcc*)
12019       # This hack is so that the source file can tell whether it is being
12020       # built for inclusion in a dll (and should export symbols for example).
12021       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12022       # (--disable-auto-import) libraries
12023       lt_prog_compiler_pic='-DDLL_EXPORT'
12024       case $host_os in
12025       os2*)
12026         lt_prog_compiler_static='$wl-static'
12027         ;;
12028       esac
12029       ;;
12030
12031     darwin* | rhapsody*)
12032       # PIC is the default on this platform
12033       # Common symbols not allowed in MH_DYLIB files
12034       lt_prog_compiler_pic='-fno-common'
12035       ;;
12036
12037     haiku*)
12038       # PIC is the default for Haiku.
12039       # The "-static" flag exists, but is broken.
12040       lt_prog_compiler_static=
12041       ;;
12042
12043     hpux*)
12044       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12045       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12046       # sets the default TLS model and affects inlining.
12047       case $host_cpu in
12048       hppa*64*)
12049         # +Z the default
12050         ;;
12051       *)
12052         lt_prog_compiler_pic='-fPIC'
12053         ;;
12054       esac
12055       ;;
12056
12057     interix[3-9]*)
12058       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12059       # Instead, we relocate shared libraries at runtime.
12060       ;;
12061
12062     msdosdjgpp*)
12063       # Just because we use GCC doesn't mean we suddenly get shared libraries
12064       # on systems that don't support them.
12065       lt_prog_compiler_can_build_shared=no
12066       enable_shared=no
12067       ;;
12068
12069     *nto* | *qnx*)
12070       # QNX uses GNU C++, but need to define -shared option too, otherwise
12071       # it will coredump.
12072       lt_prog_compiler_pic='-fPIC -shared'
12073       ;;
12074
12075     sysv4*MP*)
12076       if test -d /usr/nec; then
12077         lt_prog_compiler_pic=-Kconform_pic
12078       fi
12079       ;;
12080
12081     *)
12082       lt_prog_compiler_pic='-fPIC'
12083       ;;
12084     esac
12085
12086     case $cc_basename in
12087     nvcc*) # Cuda Compiler Driver 2.2
12088       lt_prog_compiler_wl='-Xlinker '
12089       if test -n "$lt_prog_compiler_pic"; then
12090         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12091       fi
12092       ;;
12093     esac
12094   else
12095     # PORTME Check for flag to pass linker flags through the system compiler.
12096     case $host_os in
12097     aix*)
12098       lt_prog_compiler_wl='-Wl,'
12099       if test ia64 = "$host_cpu"; then
12100         # AIX 5 now supports IA64 processor
12101         lt_prog_compiler_static='-Bstatic'
12102       else
12103         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12104       fi
12105       ;;
12106
12107     darwin* | rhapsody*)
12108       # PIC is the default on this platform
12109       # Common symbols not allowed in MH_DYLIB files
12110       lt_prog_compiler_pic='-fno-common'
12111       case $cc_basename in
12112       nagfor*)
12113         # NAG Fortran compiler
12114         lt_prog_compiler_wl='-Wl,-Wl,,'
12115         lt_prog_compiler_pic='-PIC'
12116         lt_prog_compiler_static='-Bstatic'
12117         ;;
12118       esac
12119       ;;
12120
12121     mingw* | cygwin* | pw32* | os2* | cegcc*)
12122       # This hack is so that the source file can tell whether it is being
12123       # built for inclusion in a dll (and should export symbols for example).
12124       lt_prog_compiler_pic='-DDLL_EXPORT'
12125       case $host_os in
12126       os2*)
12127         lt_prog_compiler_static='$wl-static'
12128         ;;
12129       esac
12130       ;;
12131
12132     hpux9* | hpux10* | hpux11*)
12133       lt_prog_compiler_wl='-Wl,'
12134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12135       # not for PA HP-UX.
12136       case $host_cpu in
12137       hppa*64*|ia64*)
12138         # +Z the default
12139         ;;
12140       *)
12141         lt_prog_compiler_pic='+Z'
12142         ;;
12143       esac
12144       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12145       lt_prog_compiler_static='$wl-a ${wl}archive'
12146       ;;
12147
12148     irix5* | irix6* | nonstopux*)
12149       lt_prog_compiler_wl='-Wl,'
12150       # PIC (with -KPIC) is the default.
12151       lt_prog_compiler_static='-non_shared'
12152       ;;
12153
12154     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12155       case $cc_basename in
12156       # old Intel for x86_64, which still supported -KPIC.
12157       ecc*)
12158         lt_prog_compiler_wl='-Wl,'
12159         lt_prog_compiler_pic='-KPIC'
12160         lt_prog_compiler_static='-static'
12161         ;;
12162       # flang / f18. f95 an alias for gfortran or flang on Debian
12163       flang* | f18* | f95*)
12164         lt_prog_compiler_wl='-Wl,'
12165         lt_prog_compiler_pic='-fPIC'
12166         lt_prog_compiler_static='-static'
12167         ;;
12168       # icc used to be incompatible with GCC.
12169       # ICC 10 doesn't accept -KPIC any more.
12170       icc* | ifort*)
12171         lt_prog_compiler_wl='-Wl,'
12172         lt_prog_compiler_pic='-fPIC'
12173         lt_prog_compiler_static='-static'
12174         ;;
12175       # Lahey Fortran 8.1.
12176       lf95*)
12177         lt_prog_compiler_wl='-Wl,'
12178         lt_prog_compiler_pic='--shared'
12179         lt_prog_compiler_static='--static'
12180         ;;
12181       nagfor*)
12182         # NAG Fortran compiler
12183         lt_prog_compiler_wl='-Wl,-Wl,,'
12184         lt_prog_compiler_pic='-PIC'
12185         lt_prog_compiler_static='-Bstatic'
12186         ;;
12187       tcc*)
12188         # Fabrice Bellard et al's Tiny C Compiler
12189         lt_prog_compiler_wl='-Wl,'
12190         lt_prog_compiler_pic='-fPIC'
12191         lt_prog_compiler_static='-static'
12192         ;;
12193       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12194         # Portland Group compilers (*not* the Pentium gcc compiler,
12195         # which looks to be a dead project)
12196         lt_prog_compiler_wl='-Wl,'
12197         lt_prog_compiler_pic='-fpic'
12198         lt_prog_compiler_static='-Bstatic'
12199         ;;
12200       ccc*)
12201         lt_prog_compiler_wl='-Wl,'
12202         # All Alpha code is PIC.
12203         lt_prog_compiler_static='-non_shared'
12204         ;;
12205       xl* | bgxl* | bgf* | mpixl*)
12206         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12207         lt_prog_compiler_wl='-Wl,'
12208         lt_prog_compiler_pic='-qpic'
12209         lt_prog_compiler_static='-qstaticlink'
12210         ;;
12211       *)
12212         case `$CC -V 2>&1 | sed 5q` in
12213         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12214           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12215           lt_prog_compiler_pic='-KPIC'
12216           lt_prog_compiler_static='-Bstatic'
12217           lt_prog_compiler_wl=''
12218           ;;
12219         *Sun\ F* | *Sun*Fortran*)
12220           lt_prog_compiler_pic='-KPIC'
12221           lt_prog_compiler_static='-Bstatic'
12222           lt_prog_compiler_wl='-Qoption ld '
12223           ;;
12224         *Sun\ C*)
12225           # Sun C 5.9
12226           lt_prog_compiler_pic='-KPIC'
12227           lt_prog_compiler_static='-Bstatic'
12228           lt_prog_compiler_wl='-Wl,'
12229           ;;
12230         *Intel*\ [CF]*Compiler*)
12231           lt_prog_compiler_wl='-Wl,'
12232           lt_prog_compiler_pic='-fPIC'
12233           lt_prog_compiler_static='-static'
12234           ;;
12235         *Portland\ Group*)
12236           lt_prog_compiler_wl='-Wl,'
12237           lt_prog_compiler_pic='-fpic'
12238           lt_prog_compiler_static='-Bstatic'
12239           ;;
12240         esac
12241         ;;
12242       esac
12243       ;;
12244
12245     newsos6)
12246       lt_prog_compiler_pic='-KPIC'
12247       lt_prog_compiler_static='-Bstatic'
12248       ;;
12249
12250     *nto* | *qnx*)
12251       # QNX uses GNU C++, but need to define -shared option too, otherwise
12252       # it will coredump.
12253       lt_prog_compiler_pic='-fPIC -shared'
12254       ;;
12255
12256     osf3* | osf4* | osf5*)
12257       lt_prog_compiler_wl='-Wl,'
12258       # All OSF/1 code is PIC.
12259       lt_prog_compiler_static='-non_shared'
12260       ;;
12261
12262     rdos*)
12263       lt_prog_compiler_static='-non_shared'
12264       ;;
12265
12266     solaris*)
12267       lt_prog_compiler_pic='-KPIC'
12268       lt_prog_compiler_static='-Bstatic'
12269       case $cc_basename in
12270       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12271         lt_prog_compiler_wl='-Qoption ld ';;
12272       *)
12273         lt_prog_compiler_wl='-Wl,';;
12274       esac
12275       ;;
12276
12277     sunos4*)
12278       lt_prog_compiler_wl='-Qoption ld '
12279       lt_prog_compiler_pic='-PIC'
12280       lt_prog_compiler_static='-Bstatic'
12281       ;;
12282
12283     sysv4 | sysv4.2uw2* | sysv4.3*)
12284       lt_prog_compiler_wl='-Wl,'
12285       lt_prog_compiler_pic='-KPIC'
12286       lt_prog_compiler_static='-Bstatic'
12287       ;;
12288
12289     sysv4*MP*)
12290       if test -d /usr/nec; then
12291         lt_prog_compiler_pic='-Kconform_pic'
12292         lt_prog_compiler_static='-Bstatic'
12293       fi
12294       ;;
12295
12296     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12297       lt_prog_compiler_wl='-Wl,'
12298       lt_prog_compiler_pic='-KPIC'
12299       lt_prog_compiler_static='-Bstatic'
12300       ;;
12301
12302     unicos*)
12303       lt_prog_compiler_wl='-Wl,'
12304       lt_prog_compiler_can_build_shared=no
12305       ;;
12306
12307     uts4*)
12308       lt_prog_compiler_pic='-pic'
12309       lt_prog_compiler_static='-Bstatic'
12310       ;;
12311
12312     *)
12313       lt_prog_compiler_can_build_shared=no
12314       ;;
12315     esac
12316   fi
12317
12318 case $host_os in
12319   # For platforms that do not support PIC, -DPIC is meaningless:
12320   *djgpp*)
12321     lt_prog_compiler_pic=
12322     ;;
12323   *)
12324     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12325     ;;
12326 esac
12327
12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12329 printf %s "checking for $compiler option to produce PIC... " >&6; }
12330 if test ${lt_cv_prog_compiler_pic+y}
12331 then :
12332   printf %s "(cached) " >&6
12333 else $as_nop
12334   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12335 fi
12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12337 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12338 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12339
12340 #
12341 # Check to make sure the PIC flag actually works.
12342 #
12343 if test -n "$lt_prog_compiler_pic"; then
12344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12345 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12346 if test ${lt_cv_prog_compiler_pic_works+y}
12347 then :
12348   printf %s "(cached) " >&6
12349 else $as_nop
12350   lt_cv_prog_compiler_pic_works=no
12351    ac_outfile=conftest.$ac_objext
12352    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12353    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12354    # Insert the option either (1) after the last *FLAGS variable, or
12355    # (2) before a word containing "conftest.", or (3) at the end.
12356    # Note that $ac_compile itself does not contain backslashes and begins
12357    # with a dollar sign (not a hyphen), so the echo should work correctly.
12358    # The option is referenced via a variable to avoid confusing sed.
12359    lt_compile=`echo "$ac_compile" | $SED \
12360    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12361    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12362    -e 's:$: $lt_compiler_flag:'`
12363    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12364    (eval "$lt_compile" 2>conftest.err)
12365    ac_status=$?
12366    cat conftest.err >&5
12367    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368    if (exit $ac_status) && test -s "$ac_outfile"; then
12369      # The compiler can only warn and ignore the option if not recognized
12370      # So say no if there are warnings other than the usual output.
12371      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12372      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12373      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12374        lt_cv_prog_compiler_pic_works=yes
12375      fi
12376    fi
12377    $RM conftest*
12378
12379 fi
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12381 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12382
12383 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12384     case $lt_prog_compiler_pic in
12385      "" | " "*) ;;
12386      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12387      esac
12388 else
12389     lt_prog_compiler_pic=
12390      lt_prog_compiler_can_build_shared=no
12391 fi
12392
12393 fi
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405 #
12406 # Check to make sure the static flag actually works.
12407 #
12408 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12410 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12411 if test ${lt_cv_prog_compiler_static_works+y}
12412 then :
12413   printf %s "(cached) " >&6
12414 else $as_nop
12415   lt_cv_prog_compiler_static_works=no
12416    save_LDFLAGS=$LDFLAGS
12417    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12418    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12419    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12420      # The linker can only warn and ignore the option if not recognized
12421      # So say no if there are warnings
12422      if test -s conftest.err; then
12423        # Append any errors to the config.log.
12424        cat conftest.err 1>&5
12425        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12426        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12427        if diff conftest.exp conftest.er2 >/dev/null; then
12428          lt_cv_prog_compiler_static_works=yes
12429        fi
12430      else
12431        lt_cv_prog_compiler_static_works=yes
12432      fi
12433    fi
12434    $RM -r conftest*
12435    LDFLAGS=$save_LDFLAGS
12436
12437 fi
12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12439 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12440
12441 if test yes = "$lt_cv_prog_compiler_static_works"; then
12442     :
12443 else
12444     lt_prog_compiler_static=
12445 fi
12446
12447
12448
12449
12450
12451
12452
12453   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12454 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12455 if test ${lt_cv_prog_compiler_c_o+y}
12456 then :
12457   printf %s "(cached) " >&6
12458 else $as_nop
12459   lt_cv_prog_compiler_c_o=no
12460    $RM -r conftest 2>/dev/null
12461    mkdir conftest
12462    cd conftest
12463    mkdir out
12464    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12465
12466    lt_compiler_flag="-o out/conftest2.$ac_objext"
12467    # Insert the option either (1) after the last *FLAGS variable, or
12468    # (2) before a word containing "conftest.", or (3) at the end.
12469    # Note that $ac_compile itself does not contain backslashes and begins
12470    # with a dollar sign (not a hyphen), so the echo should work correctly.
12471    lt_compile=`echo "$ac_compile" | $SED \
12472    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12474    -e 's:$: $lt_compiler_flag:'`
12475    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12476    (eval "$lt_compile" 2>out/conftest.err)
12477    ac_status=$?
12478    cat out/conftest.err >&5
12479    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12481    then
12482      # The compiler can only warn and ignore the option if not recognized
12483      # So say no if there are warnings
12484      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12485      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12486      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12487        lt_cv_prog_compiler_c_o=yes
12488      fi
12489    fi
12490    chmod u+w . 2>&5
12491    $RM conftest*
12492    # SGI C++ compiler will create directory out/ii_files/ for
12493    # template instantiation
12494    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12495    $RM out/* && rmdir out
12496    cd ..
12497    $RM -r conftest
12498    $RM conftest*
12499
12500 fi
12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12502 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12503
12504
12505
12506
12507
12508
12509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12510 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12511 if test ${lt_cv_prog_compiler_c_o+y}
12512 then :
12513   printf %s "(cached) " >&6
12514 else $as_nop
12515   lt_cv_prog_compiler_c_o=no
12516    $RM -r conftest 2>/dev/null
12517    mkdir conftest
12518    cd conftest
12519    mkdir out
12520    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12521
12522    lt_compiler_flag="-o out/conftest2.$ac_objext"
12523    # Insert the option either (1) after the last *FLAGS variable, or
12524    # (2) before a word containing "conftest.", or (3) at the end.
12525    # Note that $ac_compile itself does not contain backslashes and begins
12526    # with a dollar sign (not a hyphen), so the echo should work correctly.
12527    lt_compile=`echo "$ac_compile" | $SED \
12528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12530    -e 's:$: $lt_compiler_flag:'`
12531    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12532    (eval "$lt_compile" 2>out/conftest.err)
12533    ac_status=$?
12534    cat out/conftest.err >&5
12535    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12537    then
12538      # The compiler can only warn and ignore the option if not recognized
12539      # So say no if there are warnings
12540      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12541      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12542      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12543        lt_cv_prog_compiler_c_o=yes
12544      fi
12545    fi
12546    chmod u+w . 2>&5
12547    $RM conftest*
12548    # SGI C++ compiler will create directory out/ii_files/ for
12549    # template instantiation
12550    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12551    $RM out/* && rmdir out
12552    cd ..
12553    $RM -r conftest
12554    $RM conftest*
12555
12556 fi
12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12558 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12559
12560
12561
12562
12563 hard_links=nottested
12564 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12565   # do not overwrite the value of need_locks provided by the user
12566   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12567 printf %s "checking if we can lock with hard links... " >&6; }
12568   hard_links=yes
12569   $RM conftest*
12570   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12571   touch conftest.a
12572   ln conftest.a conftest.b 2>&5 || hard_links=no
12573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12575 printf "%s\n" "$hard_links" >&6; }
12576   if test no = "$hard_links"; then
12577     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12578 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12579     need_locks=warn
12580   fi
12581 else
12582   need_locks=no
12583 fi
12584
12585
12586
12587
12588
12589
12590   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12591 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12592
12593   runpath_var=
12594   allow_undefined_flag=
12595   always_export_symbols=no
12596   archive_cmds=
12597   archive_expsym_cmds=
12598   compiler_needs_object=no
12599   enable_shared_with_static_runtimes=no
12600   export_dynamic_flag_spec=
12601   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12602   hardcode_automatic=no
12603   hardcode_direct=no
12604   hardcode_direct_absolute=no
12605   hardcode_libdir_flag_spec=
12606   hardcode_libdir_separator=
12607   hardcode_minus_L=no
12608   hardcode_shlibpath_var=unsupported
12609   inherit_rpath=no
12610   link_all_deplibs=unknown
12611   module_cmds=
12612   module_expsym_cmds=
12613   old_archive_from_new_cmds=
12614   old_archive_from_expsyms_cmds=
12615   thread_safe_flag_spec=
12616   whole_archive_flag_spec=
12617   # include_expsyms should be a list of space-separated symbols to be *always*
12618   # included in the symbol list
12619   include_expsyms=
12620   # exclude_expsyms can be an extended regexp of symbols to exclude
12621   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12622   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12623   # as well as any symbol that contains 'd'.
12624   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12626   # platforms (ab)use it in PIC code, but their linkers get confused if
12627   # the symbol is explicitly referenced.  Since portable code cannot
12628   # rely on this symbol name, it's probably fine to never include it in
12629   # preloaded symbol tables.
12630   # Exclude shared library initialization/finalization symbols.
12631   extract_expsyms_cmds=
12632
12633   case $host_os in
12634   cygwin* | mingw* | pw32* | cegcc*)
12635     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12636     # When not using gcc, we currently assume that we are using
12637     # Microsoft Visual C++.
12638     if test yes != "$GCC"; then
12639       with_gnu_ld=no
12640     fi
12641     ;;
12642   interix*)
12643     # we just hope/assume this is gcc and not c89 (= MSVC++)
12644     with_gnu_ld=yes
12645     ;;
12646   openbsd* | bitrig*)
12647     with_gnu_ld=no
12648     ;;
12649   linux* | k*bsd*-gnu | gnu*)
12650     link_all_deplibs=no
12651     ;;
12652   esac
12653
12654   ld_shlibs=yes
12655
12656   # On some targets, GNU ld is compatible enough with the native linker
12657   # that we're better off using the native interface for both.
12658   lt_use_gnu_ld_interface=no
12659   if test yes = "$with_gnu_ld"; then
12660     case $host_os in
12661       aix*)
12662         # The AIX port of GNU ld has always aspired to compatibility
12663         # with the native linker.  However, as the warning in the GNU ld
12664         # block says, versions before 2.19.5* couldn't really create working
12665         # shared libraries, regardless of the interface used.
12666         case `$LD -v 2>&1` in
12667           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12668           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12669           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12670           *)
12671             lt_use_gnu_ld_interface=yes
12672             ;;
12673         esac
12674         ;;
12675       *)
12676         lt_use_gnu_ld_interface=yes
12677         ;;
12678     esac
12679   fi
12680
12681   if test yes = "$lt_use_gnu_ld_interface"; then
12682     # If archive_cmds runs LD, not CC, wlarc should be empty
12683     wlarc='$wl'
12684
12685     # Set some defaults for GNU ld with shared library support. These
12686     # are reset later if shared libraries are not supported. Putting them
12687     # here allows them to be overridden if necessary.
12688     runpath_var=LD_RUN_PATH
12689     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12690     export_dynamic_flag_spec='$wl--export-dynamic'
12691     # ancient GNU ld didn't support --whole-archive et. al.
12692     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12693       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12694     else
12695       whole_archive_flag_spec=
12696     fi
12697     supports_anon_versioning=no
12698     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12699       *GNU\ gold*) supports_anon_versioning=yes ;;
12700       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12701       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12702       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12703       *\ 2.11.*) ;; # other 2.11 versions
12704       *) supports_anon_versioning=yes ;;
12705     esac
12706
12707     # See if GNU ld supports shared libraries.
12708     case $host_os in
12709     aix[3-9]*)
12710       # On AIX/PPC, the GNU linker is very broken
12711       if test ia64 != "$host_cpu"; then
12712         ld_shlibs=no
12713         cat <<_LT_EOF 1>&2
12714
12715 *** Warning: the GNU linker, at least up to release 2.19, is reported
12716 *** to be unable to reliably create shared libraries on AIX.
12717 *** Therefore, libtool is disabling shared libraries support.  If you
12718 *** really care for shared libraries, you may want to install binutils
12719 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12720 *** You will then need to restart the configuration process.
12721
12722 _LT_EOF
12723       fi
12724       ;;
12725
12726     amigaos*)
12727       case $host_cpu in
12728       powerpc)
12729             # see comment about AmigaOS4 .so support
12730             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12731             archive_expsym_cmds=''
12732         ;;
12733       m68k)
12734             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)'
12735             hardcode_libdir_flag_spec='-L$libdir'
12736             hardcode_minus_L=yes
12737         ;;
12738       esac
12739       ;;
12740
12741     beos*)
12742       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12743         allow_undefined_flag=unsupported
12744         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12745         # support --undefined.  This deserves some investigation.  FIXME
12746         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12747       else
12748         ld_shlibs=no
12749       fi
12750       ;;
12751
12752     cygwin* | mingw* | pw32* | cegcc*)
12753       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12754       # as there is no search path for DLLs.
12755       hardcode_libdir_flag_spec='-L$libdir'
12756       export_dynamic_flag_spec='$wl--export-all-symbols'
12757       allow_undefined_flag=unsupported
12758       always_export_symbols=no
12759       enable_shared_with_static_runtimes=yes
12760       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'
12761       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12762
12763       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12764         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12765         # If the export-symbols file already is a .def file, use it as
12766         # is; otherwise, prepend EXPORTS...
12767         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12768           cp $export_symbols $output_objdir/$soname.def;
12769         else
12770           echo EXPORTS > $output_objdir/$soname.def;
12771           cat $export_symbols >> $output_objdir/$soname.def;
12772         fi~
12773         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12774       else
12775         ld_shlibs=no
12776       fi
12777       ;;
12778
12779     haiku*)
12780       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12781       link_all_deplibs=yes
12782       ;;
12783
12784     os2*)
12785       hardcode_libdir_flag_spec='-L$libdir'
12786       hardcode_minus_L=yes
12787       allow_undefined_flag=unsupported
12788       shrext_cmds=.dll
12789       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12790         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12791         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12792         $ECHO EXPORTS >> $output_objdir/$libname.def~
12793         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12794         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12795         emximp -o $lib $output_objdir/$libname.def'
12796       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12797         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12798         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12799         $ECHO EXPORTS >> $output_objdir/$libname.def~
12800         prefix_cmds="$SED"~
12801         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12802           prefix_cmds="$prefix_cmds -e 1d";
12803         fi~
12804         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12805         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12806         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12807         emximp -o $lib $output_objdir/$libname.def'
12808       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12809       enable_shared_with_static_runtimes=yes
12810       ;;
12811
12812     interix[3-9]*)
12813       hardcode_direct=no
12814       hardcode_shlibpath_var=no
12815       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12816       export_dynamic_flag_spec='$wl-E'
12817       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12818       # Instead, shared libraries are loaded at an image base (0x10000000 by
12819       # default) and relocated if they conflict, which is a slow very memory
12820       # consuming and fragmenting process.  To avoid this, we pick a random,
12821       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12822       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12823       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12824       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'
12825       ;;
12826
12827     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12828       tmp_diet=no
12829       if test linux-dietlibc = "$host_os"; then
12830         case $cc_basename in
12831           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12832         esac
12833       fi
12834       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12835          && test no = "$tmp_diet"
12836       then
12837         tmp_addflag=' $pic_flag'
12838         tmp_sharedflag='-shared'
12839         case $cc_basename,$host_cpu in
12840         pgcc*)                          # Portland Group C compiler
12841           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'
12842           tmp_addflag=' $pic_flag'
12843           ;;
12844         pgf77* | pgf90* | pgf95* | pgfortran*)
12845                                         # Portland Group f77 and f90 compilers
12846           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'
12847           tmp_addflag=' $pic_flag -Mnomain' ;;
12848         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12849           tmp_addflag=' -i_dynamic' ;;
12850         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12851           tmp_addflag=' -i_dynamic -nofor_main' ;;
12852         ifc* | ifort*)                  # Intel Fortran compiler
12853           tmp_addflag=' -nofor_main' ;;
12854         lf95*)                          # Lahey Fortran 8.1
12855           whole_archive_flag_spec=
12856           tmp_sharedflag='--shared' ;;
12857         nagfor*)                        # NAGFOR 5.3
12858           tmp_sharedflag='-Wl,-shared' ;;
12859         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12860           tmp_sharedflag='-qmkshrobj'
12861           tmp_addflag= ;;
12862         nvcc*)  # Cuda Compiler Driver 2.2
12863           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'
12864           compiler_needs_object=yes
12865           ;;
12866         esac
12867         case `$CC -V 2>&1 | sed 5q` in
12868         *Sun\ C*)                       # Sun C 5.9
12869           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'
12870           compiler_needs_object=yes
12871           tmp_sharedflag='-G' ;;
12872         *Sun\ F*)                       # Sun Fortran 8.3
12873           tmp_sharedflag='-G' ;;
12874         esac
12875         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12876
12877         if test yes = "$supports_anon_versioning"; then
12878           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12879             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12880             echo "local: *; };" >> $output_objdir/$libname.ver~
12881             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12882         fi
12883
12884         case $cc_basename in
12885         tcc*)
12886           export_dynamic_flag_spec='-rdynamic'
12887           ;;
12888         xlf* | bgf* | bgxlf* | mpixlf*)
12889           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12890           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12891           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12892           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12893           if test yes = "$supports_anon_versioning"; then
12894             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12895               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12896               echo "local: *; };" >> $output_objdir/$libname.ver~
12897               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12898           fi
12899           ;;
12900         esac
12901       else
12902         ld_shlibs=no
12903       fi
12904       ;;
12905
12906     netbsd* | netbsdelf*-gnu)
12907       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12908         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12909         wlarc=
12910       else
12911         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12912         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12913       fi
12914       ;;
12915
12916     solaris*)
12917       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12918         ld_shlibs=no
12919         cat <<_LT_EOF 1>&2
12920
12921 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12922 *** create shared libraries on Solaris systems.  Therefore, libtool
12923 *** is disabling shared libraries support.  We urge you to upgrade GNU
12924 *** binutils to release 2.9.1 or newer.  Another option is to modify
12925 *** your PATH or compiler configuration so that the native linker is
12926 *** used, and then restart.
12927
12928 _LT_EOF
12929       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12930         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12931         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12932       else
12933         ld_shlibs=no
12934       fi
12935       ;;
12936
12937     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12938       case `$LD -v 2>&1` in
12939         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12940         ld_shlibs=no
12941         cat <<_LT_EOF 1>&2
12942
12943 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12944 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12945 *** is disabling shared libraries support.  We urge you to upgrade GNU
12946 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12947 *** your PATH or compiler configuration so that the native linker is
12948 *** used, and then restart.
12949
12950 _LT_EOF
12951         ;;
12952         *)
12953           # For security reasons, it is highly recommended that you always
12954           # use absolute paths for naming shared libraries, and exclude the
12955           # DT_RUNPATH tag from executables and libraries.  But doing so
12956           # requires that you compile everything twice, which is a pain.
12957           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12958             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12959             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12960             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12961           else
12962             ld_shlibs=no
12963           fi
12964         ;;
12965       esac
12966       ;;
12967
12968     sunos4*)
12969       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12970       wlarc=
12971       hardcode_direct=yes
12972       hardcode_shlibpath_var=no
12973       ;;
12974
12975     *)
12976       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12977         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12978         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12979       else
12980         ld_shlibs=no
12981       fi
12982       ;;
12983     esac
12984
12985     if test no = "$ld_shlibs"; then
12986       runpath_var=
12987       hardcode_libdir_flag_spec=
12988       export_dynamic_flag_spec=
12989       whole_archive_flag_spec=
12990     fi
12991   else
12992     # PORTME fill in a description of your system's linker (not GNU ld)
12993     case $host_os in
12994     aix3*)
12995       allow_undefined_flag=unsupported
12996       always_export_symbols=yes
12997       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'
12998       # Note: this linker hardcodes the directories in LIBPATH if there
12999       # are no directories specified by -L.
13000       hardcode_minus_L=yes
13001       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13002         # Neither direct hardcoding nor static linking is supported with a
13003         # broken collect2.
13004         hardcode_direct=unsupported
13005       fi
13006       ;;
13007
13008     aix[4-9]*)
13009       if test ia64 = "$host_cpu"; then
13010         # On IA64, the linker does run time linking by default, so we don't
13011         # have to do anything special.
13012         aix_use_runtimelinking=no
13013         exp_sym_flag='-Bexport'
13014         no_entry_flag=
13015       else
13016         # If we're using GNU nm, then we don't want the "-C" option.
13017         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13018         # Without the "-l" option, or with the "-B" option, AIX nm treats
13019         # weak defined symbols like other global defined symbols, whereas
13020         # GNU nm marks them as "W".
13021         # While the 'weak' keyword is ignored in the Export File, we need
13022         # it in the Import File for the 'aix-soname' feature, so we have
13023         # to replace the "-B" option with "-P" for AIX nm.
13024         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13025           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13026         else
13027           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13028         fi
13029         aix_use_runtimelinking=no
13030
13031         # Test if we are trying to use run time linking or normal
13032         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13033         # have runtime linking enabled, and use it for executables.
13034         # For shared libraries, we enable/disable runtime linking
13035         # depending on the kind of the shared library created -
13036         # when "with_aix_soname,aix_use_runtimelinking" is:
13037         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13038         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13039         #            lib.a           static archive
13040         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13041         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13042         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13043         #            lib.a(lib.so.V) shared, rtl:no
13044         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13045         #            lib.a           static archive
13046         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13047           for ld_flag in $LDFLAGS; do
13048           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13049             aix_use_runtimelinking=yes
13050             break
13051           fi
13052           done
13053           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13054             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13055             # so we don't have lib.a shared libs to link our executables.
13056             # We have to force runtime linking in this case.
13057             aix_use_runtimelinking=yes
13058             LDFLAGS="$LDFLAGS -Wl,-brtl"
13059           fi
13060           ;;
13061         esac
13062
13063         exp_sym_flag='-bexport'
13064         no_entry_flag='-bnoentry'
13065       fi
13066
13067       # When large executables or shared objects are built, AIX ld can
13068       # have problems creating the table of contents.  If linking a library
13069       # or program results in "error TOC overflow" add -mminimal-toc to
13070       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13071       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13072
13073       archive_cmds=''
13074       hardcode_direct=yes
13075       hardcode_direct_absolute=yes
13076       hardcode_libdir_separator=':'
13077       link_all_deplibs=yes
13078       file_list_spec='$wl-f,'
13079       case $with_aix_soname,$aix_use_runtimelinking in
13080       aix,*) ;; # traditional, no import file
13081       svr4,* | *,yes) # use import file
13082         # The Import File defines what to hardcode.
13083         hardcode_direct=no
13084         hardcode_direct_absolute=no
13085         ;;
13086       esac
13087
13088       if test yes = "$GCC"; then
13089         case $host_os in aix4.[012]|aix4.[012].*)
13090         # We only want to do this on AIX 4.2 and lower, the check
13091         # below for broken collect2 doesn't work under 4.3+
13092           collect2name=`$CC -print-prog-name=collect2`
13093           if test -f "$collect2name" &&
13094            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13095           then
13096           # We have reworked collect2
13097           :
13098           else
13099           # We have old collect2
13100           hardcode_direct=unsupported
13101           # It fails to find uninstalled libraries when the uninstalled
13102           # path is not listed in the libpath.  Setting hardcode_minus_L
13103           # to unsupported forces relinking
13104           hardcode_minus_L=yes
13105           hardcode_libdir_flag_spec='-L$libdir'
13106           hardcode_libdir_separator=
13107           fi
13108           ;;
13109         esac
13110         shared_flag='-shared'
13111         if test yes = "$aix_use_runtimelinking"; then
13112           shared_flag="$shared_flag "'$wl-G'
13113         fi
13114         # Need to ensure runtime linking is disabled for the traditional
13115         # shared library, or the linker may eventually find shared libraries
13116         # /with/ Import File - we do not want to mix them.
13117         shared_flag_aix='-shared'
13118         shared_flag_svr4='-shared $wl-G'
13119       else
13120         # not using gcc
13121         if test ia64 = "$host_cpu"; then
13122         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13123         # chokes on -Wl,-G. The following line is correct:
13124           shared_flag='-G'
13125         else
13126           if test yes = "$aix_use_runtimelinking"; then
13127             shared_flag='$wl-G'
13128           else
13129             shared_flag='$wl-bM:SRE'
13130           fi
13131           shared_flag_aix='$wl-bM:SRE'
13132           shared_flag_svr4='$wl-G'
13133         fi
13134       fi
13135
13136       export_dynamic_flag_spec='$wl-bexpall'
13137       # It seems that -bexpall does not export symbols beginning with
13138       # underscore (_), so it is better to generate a list of symbols to export.
13139       always_export_symbols=yes
13140       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13141         # Warning - without using the other runtime loading flags (-brtl),
13142         # -berok will link without error, but may produce a broken library.
13143         allow_undefined_flag='-berok'
13144         # Determine the default libpath from the value encoded in an
13145         # empty executable.
13146         if test set = "${lt_cv_aix_libpath+set}"; then
13147   aix_libpath=$lt_cv_aix_libpath
13148 else
13149   if test ${lt_cv_aix_libpath_+y}
13150 then :
13151   printf %s "(cached) " >&6
13152 else $as_nop
13153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h.  */
13155
13156 int
13157 main (void)
13158 {
13159
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"
13165 then :
13166
13167   lt_aix_libpath_sed='
13168       /Import File Strings/,/^$/ {
13169           /^0/ {
13170               s/^0  *\([^ ]*\) *$/\1/
13171               p
13172           }
13173       }'
13174   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13175   # Check for a 64-bit object if we didn't find anything.
13176   if test -z "$lt_cv_aix_libpath_"; then
13177     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13178   fi
13179 fi
13180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13181     conftest$ac_exeext conftest.$ac_ext
13182   if test -z "$lt_cv_aix_libpath_"; then
13183     lt_cv_aix_libpath_=/usr/lib:/lib
13184   fi
13185
13186 fi
13187
13188   aix_libpath=$lt_cv_aix_libpath_
13189 fi
13190
13191         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13192         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13193       else
13194         if test ia64 = "$host_cpu"; then
13195           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13196           allow_undefined_flag="-z nodefs"
13197           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"
13198         else
13199          # Determine the default libpath from the value encoded in an
13200          # empty executable.
13201          if test set = "${lt_cv_aix_libpath+set}"; then
13202   aix_libpath=$lt_cv_aix_libpath
13203 else
13204   if test ${lt_cv_aix_libpath_+y}
13205 then :
13206   printf %s "(cached) " >&6
13207 else $as_nop
13208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h.  */
13210
13211 int
13212 main (void)
13213 {
13214
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_link "$LINENO"
13220 then :
13221
13222   lt_aix_libpath_sed='
13223       /Import File Strings/,/^$/ {
13224           /^0/ {
13225               s/^0  *\([^ ]*\) *$/\1/
13226               p
13227           }
13228       }'
13229   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13230   # Check for a 64-bit object if we didn't find anything.
13231   if test -z "$lt_cv_aix_libpath_"; then
13232     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13233   fi
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13236     conftest$ac_exeext conftest.$ac_ext
13237   if test -z "$lt_cv_aix_libpath_"; then
13238     lt_cv_aix_libpath_=/usr/lib:/lib
13239   fi
13240
13241 fi
13242
13243   aix_libpath=$lt_cv_aix_libpath_
13244 fi
13245
13246          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13247           # Warning - without using the other run time loading flags,
13248           # -berok will link without error, but may produce a broken library.
13249           no_undefined_flag=' $wl-bernotok'
13250           allow_undefined_flag=' $wl-berok'
13251           if test yes = "$with_gnu_ld"; then
13252             # We only use this code for GNU lds that support --whole-archive.
13253             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13254           else
13255             # Exported symbols can be pulled into shared objects from archives
13256             whole_archive_flag_spec='$convenience'
13257           fi
13258           archive_cmds_need_lc=yes
13259           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13260           # -brtl affects multiple linker settings, -berok does not and is overridden later
13261           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13262           if test svr4 != "$with_aix_soname"; then
13263             # This is similar to how AIX traditionally builds its shared libraries.
13264             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13265           fi
13266           if test aix != "$with_aix_soname"; then
13267             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13268           else
13269             # used by -dlpreopen to get the symbols
13270             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13271           fi
13272           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13273         fi
13274       fi
13275       ;;
13276
13277     amigaos*)
13278       case $host_cpu in
13279       powerpc)
13280             # see comment about AmigaOS4 .so support
13281             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13282             archive_expsym_cmds=''
13283         ;;
13284       m68k)
13285             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)'
13286             hardcode_libdir_flag_spec='-L$libdir'
13287             hardcode_minus_L=yes
13288         ;;
13289       esac
13290       ;;
13291
13292     bsdi[45]*)
13293       export_dynamic_flag_spec=-rdynamic
13294       ;;
13295
13296     cygwin* | mingw* | pw32* | cegcc*)
13297       # When not using gcc, we currently assume that we are using
13298       # Microsoft Visual C++.
13299       # hardcode_libdir_flag_spec is actually meaningless, as there is
13300       # no search path for DLLs.
13301       case $cc_basename in
13302       cl*)
13303         # Native MSVC
13304         hardcode_libdir_flag_spec=' '
13305         allow_undefined_flag=unsupported
13306         always_export_symbols=yes
13307         file_list_spec='@'
13308         # Tell ltmain to make .lib files, not .a files.
13309         libext=lib
13310         # Tell ltmain to make .dll files, not .so files.
13311         shrext_cmds=.dll
13312         # FIXME: Setting linknames here is a bad hack.
13313         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13314         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13315             cp "$export_symbols" "$output_objdir/$soname.def";
13316             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13317           else
13318             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13319           fi~
13320           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13321           linknames='
13322         # The linker will not automatically build a static lib if we build a DLL.
13323         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13324         enable_shared_with_static_runtimes=yes
13325         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13326         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13327         # Don't use ranlib
13328         old_postinstall_cmds='chmod 644 $oldlib'
13329         postlink_cmds='lt_outputfile="@OUTPUT@"~
13330           lt_tool_outputfile="@TOOL_OUTPUT@"~
13331           case $lt_outputfile in
13332             *.exe|*.EXE) ;;
13333             *)
13334               lt_outputfile=$lt_outputfile.exe
13335               lt_tool_outputfile=$lt_tool_outputfile.exe
13336               ;;
13337           esac~
13338           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13339             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13340             $RM "$lt_outputfile.manifest";
13341           fi'
13342         ;;
13343       *)
13344         # Assume MSVC wrapper
13345         hardcode_libdir_flag_spec=' '
13346         allow_undefined_flag=unsupported
13347         # Tell ltmain to make .lib files, not .a files.
13348         libext=lib
13349         # Tell ltmain to make .dll files, not .so files.
13350         shrext_cmds=.dll
13351         # FIXME: Setting linknames here is a bad hack.
13352         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13353         # The linker will automatically build a .lib file if we build a DLL.
13354         old_archive_from_new_cmds='true'
13355         # FIXME: Should let the user specify the lib program.
13356         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13357         enable_shared_with_static_runtimes=yes
13358         ;;
13359       esac
13360       ;;
13361
13362     darwin* | rhapsody*)
13363
13364
13365   archive_cmds_need_lc=no
13366   hardcode_direct=no
13367   hardcode_automatic=yes
13368   hardcode_shlibpath_var=unsupported
13369   if test yes = "$lt_cv_ld_force_load"; then
13370     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\"`'
13371
13372   else
13373     whole_archive_flag_spec=''
13374   fi
13375   link_all_deplibs=yes
13376   allow_undefined_flag=$_lt_dar_allow_undefined
13377   case $cc_basename in
13378      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13379      *) _lt_dar_can_shared=$GCC ;;
13380   esac
13381   if test yes = "$_lt_dar_can_shared"; then
13382     output_verbose_link_cmd=func_echo_all
13383     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13384     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13385     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"
13386     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"
13387
13388   else
13389   ld_shlibs=no
13390   fi
13391
13392       ;;
13393
13394     dgux*)
13395       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13396       hardcode_libdir_flag_spec='-L$libdir'
13397       hardcode_shlibpath_var=no
13398       ;;
13399
13400     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13401     # support.  Future versions do this automatically, but an explicit c++rt0.o
13402     # does not break anything, and helps significantly (at the cost of a little
13403     # extra space).
13404     freebsd2.2*)
13405       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13406       hardcode_libdir_flag_spec='-R$libdir'
13407       hardcode_direct=yes
13408       hardcode_shlibpath_var=no
13409       ;;
13410
13411     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13412     freebsd2.*)
13413       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13414       hardcode_direct=yes
13415       hardcode_minus_L=yes
13416       hardcode_shlibpath_var=no
13417       ;;
13418
13419     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13420     freebsd* | dragonfly*)
13421       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13422       hardcode_libdir_flag_spec='-R$libdir'
13423       hardcode_direct=yes
13424       hardcode_shlibpath_var=no
13425       ;;
13426
13427     hpux9*)
13428       if test yes = "$GCC"; then
13429         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13430       else
13431         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13432       fi
13433       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13434       hardcode_libdir_separator=:
13435       hardcode_direct=yes
13436
13437       # hardcode_minus_L: Not really in the search PATH,
13438       # but as the default location of the library.
13439       hardcode_minus_L=yes
13440       export_dynamic_flag_spec='$wl-E'
13441       ;;
13442
13443     hpux10*)
13444       if test yes,no = "$GCC,$with_gnu_ld"; then
13445         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13446       else
13447         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13448       fi
13449       if test no = "$with_gnu_ld"; then
13450         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13451         hardcode_libdir_separator=:
13452         hardcode_direct=yes
13453         hardcode_direct_absolute=yes
13454         export_dynamic_flag_spec='$wl-E'
13455         # hardcode_minus_L: Not really in the search PATH,
13456         # but as the default location of the library.
13457         hardcode_minus_L=yes
13458       fi
13459       ;;
13460
13461     hpux11*)
13462       if test yes,no = "$GCC,$with_gnu_ld"; then
13463         case $host_cpu in
13464         hppa*64*)
13465           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13466           ;;
13467         ia64*)
13468           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13469           ;;
13470         *)
13471           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13472           ;;
13473         esac
13474       else
13475         case $host_cpu in
13476         hppa*64*)
13477           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13478           ;;
13479         ia64*)
13480           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13481           ;;
13482         *)
13483
13484           # Older versions of the 11.00 compiler do not understand -b yet
13485           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13486           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13487 printf %s "checking if $CC understands -b... " >&6; }
13488 if test ${lt_cv_prog_compiler__b+y}
13489 then :
13490   printf %s "(cached) " >&6
13491 else $as_nop
13492   lt_cv_prog_compiler__b=no
13493    save_LDFLAGS=$LDFLAGS
13494    LDFLAGS="$LDFLAGS -b"
13495    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13496    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13497      # The linker can only warn and ignore the option if not recognized
13498      # So say no if there are warnings
13499      if test -s conftest.err; then
13500        # Append any errors to the config.log.
13501        cat conftest.err 1>&5
13502        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13503        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13504        if diff conftest.exp conftest.er2 >/dev/null; then
13505          lt_cv_prog_compiler__b=yes
13506        fi
13507      else
13508        lt_cv_prog_compiler__b=yes
13509      fi
13510    fi
13511    $RM -r conftest*
13512    LDFLAGS=$save_LDFLAGS
13513
13514 fi
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13516 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13517
13518 if test yes = "$lt_cv_prog_compiler__b"; then
13519     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13520 else
13521     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13522 fi
13523
13524           ;;
13525         esac
13526       fi
13527       if test no = "$with_gnu_ld"; then
13528         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13529         hardcode_libdir_separator=:
13530
13531         case $host_cpu in
13532         hppa*64*|ia64*)
13533           hardcode_direct=no
13534           hardcode_shlibpath_var=no
13535           ;;
13536         *)
13537           hardcode_direct=yes
13538           hardcode_direct_absolute=yes
13539           export_dynamic_flag_spec='$wl-E'
13540
13541           # hardcode_minus_L: Not really in the search PATH,
13542           # but as the default location of the library.
13543           hardcode_minus_L=yes
13544           ;;
13545         esac
13546       fi
13547       ;;
13548
13549     irix5* | irix6* | nonstopux*)
13550       if test yes = "$GCC"; then
13551         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'
13552         # Try to use the -exported_symbol ld option, if it does not
13553         # work, assume that -exports_file does not work either and
13554         # implicitly export all symbols.
13555         # This should be the same for all languages, so no per-tag cache variable.
13556         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13557 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13558 if test ${lt_cv_irix_exported_symbol+y}
13559 then :
13560   printf %s "(cached) " >&6
13561 else $as_nop
13562   save_LDFLAGS=$LDFLAGS
13563            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13564            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h.  */
13566 int foo (void) { return 0; }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"
13569 then :
13570   lt_cv_irix_exported_symbol=yes
13571 else $as_nop
13572   lt_cv_irix_exported_symbol=no
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13575     conftest$ac_exeext conftest.$ac_ext
13576            LDFLAGS=$save_LDFLAGS
13577 fi
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13579 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13580         if test yes = "$lt_cv_irix_exported_symbol"; then
13581           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'
13582         fi
13583         link_all_deplibs=no
13584       else
13585         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'
13586         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'
13587       fi
13588       archive_cmds_need_lc='no'
13589       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13590       hardcode_libdir_separator=:
13591       inherit_rpath=yes
13592       link_all_deplibs=yes
13593       ;;
13594
13595     linux*)
13596       case $cc_basename in
13597       tcc*)
13598         # Fabrice Bellard et al's Tiny C Compiler
13599         ld_shlibs=yes
13600         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13601         ;;
13602       esac
13603       ;;
13604
13605     netbsd* | netbsdelf*-gnu)
13606       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13607         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13608       else
13609         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13610       fi
13611       hardcode_libdir_flag_spec='-R$libdir'
13612       hardcode_direct=yes
13613       hardcode_shlibpath_var=no
13614       ;;
13615
13616     newsos6)
13617       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618       hardcode_direct=yes
13619       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13620       hardcode_libdir_separator=:
13621       hardcode_shlibpath_var=no
13622       ;;
13623
13624     *nto* | *qnx*)
13625       ;;
13626
13627     openbsd* | bitrig*)
13628       if test -f /usr/libexec/ld.so; then
13629         hardcode_direct=yes
13630         hardcode_shlibpath_var=no
13631         hardcode_direct_absolute=yes
13632         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13633           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13634           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13635           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13636           export_dynamic_flag_spec='$wl-E'
13637         else
13638           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13639           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13640         fi
13641       else
13642         ld_shlibs=no
13643       fi
13644       ;;
13645
13646     os2*)
13647       hardcode_libdir_flag_spec='-L$libdir'
13648       hardcode_minus_L=yes
13649       allow_undefined_flag=unsupported
13650       shrext_cmds=.dll
13651       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13652         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13653         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13654         $ECHO EXPORTS >> $output_objdir/$libname.def~
13655         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13656         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13657         emximp -o $lib $output_objdir/$libname.def'
13658       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13659         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13660         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13661         $ECHO EXPORTS >> $output_objdir/$libname.def~
13662         prefix_cmds="$SED"~
13663         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13664           prefix_cmds="$prefix_cmds -e 1d";
13665         fi~
13666         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13667         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13668         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13669         emximp -o $lib $output_objdir/$libname.def'
13670       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13671       enable_shared_with_static_runtimes=yes
13672       ;;
13673
13674     osf3*)
13675       if test yes = "$GCC"; then
13676         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13677         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'
13678       else
13679         allow_undefined_flag=' -expect_unresolved \*'
13680         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'
13681       fi
13682       archive_cmds_need_lc='no'
13683       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13684       hardcode_libdir_separator=:
13685       ;;
13686
13687     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13688       if test yes = "$GCC"; then
13689         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13690         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'
13691         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13692       else
13693         allow_undefined_flag=' -expect_unresolved \*'
13694         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'
13695         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~
13696           $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'
13697
13698         # Both c and cxx compiler support -rpath directly
13699         hardcode_libdir_flag_spec='-rpath $libdir'
13700       fi
13701       archive_cmds_need_lc='no'
13702       hardcode_libdir_separator=:
13703       ;;
13704
13705     solaris*)
13706       no_undefined_flag=' -z defs'
13707       if test yes = "$GCC"; then
13708         wlarc='$wl'
13709         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13710         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711           $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'
13712       else
13713         case `$CC -V 2>&1` in
13714         *"Compilers 5.0"*)
13715           wlarc=''
13716           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13717           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13719           ;;
13720         *)
13721           wlarc='$wl'
13722           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13723           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13724             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13725           ;;
13726         esac
13727       fi
13728       hardcode_libdir_flag_spec='-R$libdir'
13729       hardcode_shlibpath_var=no
13730       case $host_os in
13731       solaris2.[0-5] | solaris2.[0-5].*) ;;
13732       *)
13733         # The compiler driver will combine and reorder linker options,
13734         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13735         # but is careful enough not to reorder.
13736         # Supported since Solaris 2.6 (maybe 2.5.1?)
13737         if test yes = "$GCC"; then
13738           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13739         else
13740           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13741         fi
13742         ;;
13743       esac
13744       link_all_deplibs=yes
13745       ;;
13746
13747     sunos4*)
13748       if test sequent = "$host_vendor"; then
13749         # Use $CC to link under sequent, because it throws in some extra .o
13750         # files that make .init and .fini sections work.
13751         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13752       else
13753         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13754       fi
13755       hardcode_libdir_flag_spec='-L$libdir'
13756       hardcode_direct=yes
13757       hardcode_minus_L=yes
13758       hardcode_shlibpath_var=no
13759       ;;
13760
13761     sysv4)
13762       case $host_vendor in
13763         sni)
13764           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13765           hardcode_direct=yes # is this really true???
13766         ;;
13767         siemens)
13768           ## LD is ld it makes a PLAMLIB
13769           ## CC just makes a GrossModule.
13770           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13771           reload_cmds='$CC -r -o $output$reload_objs'
13772           hardcode_direct=no
13773         ;;
13774         motorola)
13775           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13776           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13777         ;;
13778       esac
13779       runpath_var='LD_RUN_PATH'
13780       hardcode_shlibpath_var=no
13781       ;;
13782
13783     sysv4.3*)
13784       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13785       hardcode_shlibpath_var=no
13786       export_dynamic_flag_spec='-Bexport'
13787       ;;
13788
13789     sysv4*MP*)
13790       if test -d /usr/nec; then
13791         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792         hardcode_shlibpath_var=no
13793         runpath_var=LD_RUN_PATH
13794         hardcode_runpath_var=yes
13795         ld_shlibs=yes
13796       fi
13797       ;;
13798
13799     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13800       no_undefined_flag='$wl-z,text'
13801       archive_cmds_need_lc=no
13802       hardcode_shlibpath_var=no
13803       runpath_var='LD_RUN_PATH'
13804
13805       if test yes = "$GCC"; then
13806         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13807         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13808       else
13809         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13811       fi
13812       ;;
13813
13814     sysv5* | sco3.2v5* | sco5v6*)
13815       # Note: We CANNOT use -z defs as we might desire, because we do not
13816       # link with -lc, and that would cause any symbols used from libc to
13817       # always be unresolved, which means just about no library would
13818       # ever link correctly.  If we're not using GNU ld we use -z text
13819       # though, which does catch some bad symbols but isn't as heavy-handed
13820       # as -z defs.
13821       no_undefined_flag='$wl-z,text'
13822       allow_undefined_flag='$wl-z,nodefs'
13823       archive_cmds_need_lc=no
13824       hardcode_shlibpath_var=no
13825       hardcode_libdir_flag_spec='$wl-R,$libdir'
13826       hardcode_libdir_separator=':'
13827       link_all_deplibs=yes
13828       export_dynamic_flag_spec='$wl-Bexport'
13829       runpath_var='LD_RUN_PATH'
13830
13831       if test yes = "$GCC"; then
13832         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834       else
13835         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837       fi
13838       ;;
13839
13840     uts4*)
13841       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13842       hardcode_libdir_flag_spec='-L$libdir'
13843       hardcode_shlibpath_var=no
13844       ;;
13845
13846     *)
13847       ld_shlibs=no
13848       ;;
13849     esac
13850
13851     if test sni = "$host_vendor"; then
13852       case $host in
13853       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13854         export_dynamic_flag_spec='$wl-Blargedynsym'
13855         ;;
13856       esac
13857     fi
13858   fi
13859
13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13861 printf "%s\n" "$ld_shlibs" >&6; }
13862 test no = "$ld_shlibs" && can_build_shared=no
13863
13864 with_gnu_ld=$with_gnu_ld
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880 #
13881 # Do we need to explicitly link libc?
13882 #
13883 case "x$archive_cmds_need_lc" in
13884 x|xyes)
13885   # Assume -lc should be added
13886   archive_cmds_need_lc=yes
13887
13888   if test yes,yes = "$GCC,$enable_shared"; then
13889     case $archive_cmds in
13890     *'~'*)
13891       # FIXME: we may have to deal with multi-command sequences.
13892       ;;
13893     '$CC '*)
13894       # Test whether the compiler implicitly links with -lc since on some
13895       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13896       # to ld, don't add -lc before -lgcc.
13897       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13898 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13899 if test ${lt_cv_archive_cmds_need_lc+y}
13900 then :
13901   printf %s "(cached) " >&6
13902 else $as_nop
13903   $RM conftest*
13904         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13905
13906         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13907   (eval $ac_compile) 2>&5
13908   ac_status=$?
13909   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13910   test $ac_status = 0; } 2>conftest.err; then
13911           soname=conftest
13912           lib=conftest
13913           libobjs=conftest.$ac_objext
13914           deplibs=
13915           wl=$lt_prog_compiler_wl
13916           pic_flag=$lt_prog_compiler_pic
13917           compiler_flags=-v
13918           linker_flags=-v
13919           verstring=
13920           output_objdir=.
13921           libname=conftest
13922           lt_save_allow_undefined_flag=$allow_undefined_flag
13923           allow_undefined_flag=
13924           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13925   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13926   ac_status=$?
13927   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928   test $ac_status = 0; }
13929           then
13930             lt_cv_archive_cmds_need_lc=no
13931           else
13932             lt_cv_archive_cmds_need_lc=yes
13933           fi
13934           allow_undefined_flag=$lt_save_allow_undefined_flag
13935         else
13936           cat conftest.err 1>&5
13937         fi
13938         $RM conftest*
13939
13940 fi
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13942 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13943       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13944       ;;
13945     esac
13946   fi
13947   ;;
13948 esac
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14102 printf %s "checking dynamic linker characteristics... " >&6; }
14103
14104 if test yes = "$GCC"; then
14105   case $host_os in
14106     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14107     *) lt_awk_arg='/^libraries:/' ;;
14108   esac
14109   case $host_os in
14110     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14111     *) lt_sed_strip_eq='s|=/|/|g' ;;
14112   esac
14113   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14114   case $lt_search_path_spec in
14115   *\;*)
14116     # if the path contains ";" then we assume it to be the separator
14117     # otherwise default to the standard path separator (i.e. ":") - it is
14118     # assumed that no part of a normal pathname contains ";" but that should
14119     # okay in the real world where ";" in dirpaths is itself problematic.
14120     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14121     ;;
14122   *)
14123     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14124     ;;
14125   esac
14126   # Ok, now we have the path, separated by spaces, we can step through it
14127   # and add multilib dir if necessary...
14128   lt_tmp_lt_search_path_spec=
14129   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14130   # ...but if some path component already ends with the multilib dir we assume
14131   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14132   case "$lt_multi_os_dir; $lt_search_path_spec " in
14133   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14134     lt_multi_os_dir=
14135     ;;
14136   esac
14137   for lt_sys_path in $lt_search_path_spec; do
14138     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14139       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14140     elif test -n "$lt_multi_os_dir"; then
14141       test -d "$lt_sys_path" && \
14142         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14143     fi
14144   done
14145   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14146 BEGIN {RS = " "; FS = "/|\n";} {
14147   lt_foo = "";
14148   lt_count = 0;
14149   for (lt_i = NF; lt_i > 0; lt_i--) {
14150     if ($lt_i != "" && $lt_i != ".") {
14151       if ($lt_i == "..") {
14152         lt_count++;
14153       } else {
14154         if (lt_count == 0) {
14155           lt_foo = "/" $lt_i lt_foo;
14156         } else {
14157           lt_count--;
14158         }
14159       }
14160     }
14161   }
14162   if (lt_foo != "") { lt_freq[lt_foo]++; }
14163   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14164 }'`
14165   # AWK program above erroneously prepends '/' to C:/dos/paths
14166   # for these hosts.
14167   case $host_os in
14168     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14169       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14170   esac
14171   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14172 else
14173   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14174 fi
14175 library_names_spec=
14176 libname_spec='lib$name'
14177 soname_spec=
14178 shrext_cmds=.so
14179 postinstall_cmds=
14180 postuninstall_cmds=
14181 finish_cmds=
14182 finish_eval=
14183 shlibpath_var=
14184 shlibpath_overrides_runpath=unknown
14185 version_type=none
14186 dynamic_linker="$host_os ld.so"
14187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14188 need_lib_prefix=unknown
14189 hardcode_into_libs=no
14190
14191 # when you set need_version to no, make sure it does not cause -set_version
14192 # flags to be left without arguments
14193 need_version=unknown
14194
14195
14196
14197 case $host_os in
14198 aix3*)
14199   version_type=linux # correct to gnu/linux during the next big refactor
14200   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14201   shlibpath_var=LIBPATH
14202
14203   # AIX 3 has no versioning support, so we append a major version to the name.
14204   soname_spec='$libname$release$shared_ext$major'
14205   ;;
14206
14207 aix[4-9]*)
14208   version_type=linux # correct to gnu/linux during the next big refactor
14209   need_lib_prefix=no
14210   need_version=no
14211   hardcode_into_libs=yes
14212   if test ia64 = "$host_cpu"; then
14213     # AIX 5 supports IA64
14214     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14215     shlibpath_var=LD_LIBRARY_PATH
14216   else
14217     # With GCC up to 2.95.x, collect2 would create an import file
14218     # for dependence libraries.  The import file would start with
14219     # the line '#! .'.  This would cause the generated library to
14220     # depend on '.', always an invalid library.  This was fixed in
14221     # development snapshots of GCC prior to 3.0.
14222     case $host_os in
14223       aix4 | aix4.[01] | aix4.[01].*)
14224       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14225            echo ' yes '
14226            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14227         :
14228       else
14229         can_build_shared=no
14230       fi
14231       ;;
14232     esac
14233     # Using Import Files as archive members, it is possible to support
14234     # filename-based versioning of shared library archives on AIX. While
14235     # this would work for both with and without runtime linking, it will
14236     # prevent static linking of such archives. So we do filename-based
14237     # shared library versioning with .so extension only, which is used
14238     # when both runtime linking and shared linking is enabled.
14239     # Unfortunately, runtime linking may impact performance, so we do
14240     # not want this to be the default eventually. Also, we use the
14241     # versioned .so libs for executables only if there is the -brtl
14242     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14243     # To allow for filename-based versioning support, we need to create
14244     # libNAME.so.V as an archive file, containing:
14245     # *) an Import File, referring to the versioned filename of the
14246     #    archive as well as the shared archive member, telling the
14247     #    bitwidth (32 or 64) of that shared object, and providing the
14248     #    list of exported symbols of that shared object, eventually
14249     #    decorated with the 'weak' keyword
14250     # *) the shared object with the F_LOADONLY flag set, to really avoid
14251     #    it being seen by the linker.
14252     # At run time we better use the real file rather than another symlink,
14253     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14254
14255     case $with_aix_soname,$aix_use_runtimelinking in
14256     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14257     # soname into executable. Probably we can add versioning support to
14258     # collect2, so additional links can be useful in future.
14259     aix,yes) # traditional libtool
14260       dynamic_linker='AIX unversionable lib.so'
14261       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14262       # instead of lib<name>.a to let people know that these are not
14263       # typical AIX shared libraries.
14264       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14265       ;;
14266     aix,no) # traditional AIX only
14267       dynamic_linker='AIX lib.a(lib.so.V)'
14268       # We preserve .a as extension for shared libraries through AIX4.2
14269       # and later when we are not doing run time linking.
14270       library_names_spec='$libname$release.a $libname.a'
14271       soname_spec='$libname$release$shared_ext$major'
14272       ;;
14273     svr4,*) # full svr4 only
14274       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14275       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14276       # We do not specify a path in Import Files, so LIBPATH fires.
14277       shlibpath_overrides_runpath=yes
14278       ;;
14279     *,yes) # both, prefer svr4
14280       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14281       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14282       # unpreferred sharedlib libNAME.a needs extra handling
14283       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14284       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14285       # We do not specify a path in Import Files, so LIBPATH fires.
14286       shlibpath_overrides_runpath=yes
14287       ;;
14288     *,no) # both, prefer aix
14289       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14290       library_names_spec='$libname$release.a $libname.a'
14291       soname_spec='$libname$release$shared_ext$major'
14292       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14293       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14294       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14295       ;;
14296     esac
14297     shlibpath_var=LIBPATH
14298   fi
14299   ;;
14300
14301 amigaos*)
14302   case $host_cpu in
14303   powerpc)
14304     # Since July 2007 AmigaOS4 officially supports .so libraries.
14305     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14306     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14307     ;;
14308   m68k)
14309     library_names_spec='$libname.ixlibrary $libname.a'
14310     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14311     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14312     ;;
14313   esac
14314   ;;
14315
14316 beos*)
14317   library_names_spec='$libname$shared_ext'
14318   dynamic_linker="$host_os ld.so"
14319   shlibpath_var=LIBRARY_PATH
14320   ;;
14321
14322 bsdi[45]*)
14323   version_type=linux # correct to gnu/linux during the next big refactor
14324   need_version=no
14325   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14326   soname_spec='$libname$release$shared_ext$major'
14327   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14328   shlibpath_var=LD_LIBRARY_PATH
14329   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14330   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14331   # the default ld.so.conf also contains /usr/contrib/lib and
14332   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14333   # libtool to hard-code these into programs
14334   ;;
14335
14336 cygwin* | mingw* | pw32* | cegcc*)
14337   version_type=windows
14338   shrext_cmds=.dll
14339   need_version=no
14340   need_lib_prefix=no
14341
14342   case $GCC,$cc_basename in
14343   yes,*)
14344     # gcc
14345     library_names_spec='$libname.dll.a'
14346     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14347     postinstall_cmds='base_file=`basename \$file`~
14348       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14349       dldir=$destdir/`dirname \$dlpath`~
14350       test -d \$dldir || mkdir -p \$dldir~
14351       $install_prog $dir/$dlname \$dldir/$dlname~
14352       chmod a+x \$dldir/$dlname~
14353       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14354         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14355       fi'
14356     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14357       dlpath=$dir/\$dldll~
14358        $RM \$dlpath'
14359     shlibpath_overrides_runpath=yes
14360
14361     case $host_os in
14362     cygwin*)
14363       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14364       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14365
14366       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14367       ;;
14368     mingw* | cegcc*)
14369       # MinGW DLLs use traditional 'lib' prefix
14370       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14371       ;;
14372     pw32*)
14373       # pw32 DLLs use 'pw' prefix rather than 'lib'
14374       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14375       ;;
14376     esac
14377     dynamic_linker='Win32 ld.exe'
14378     ;;
14379
14380   *,cl*)
14381     # Native MSVC
14382     libname_spec='$name'
14383     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14384     library_names_spec='$libname.dll.lib'
14385
14386     case $build_os in
14387     mingw*)
14388       sys_lib_search_path_spec=
14389       lt_save_ifs=$IFS
14390       IFS=';'
14391       for lt_path in $LIB
14392       do
14393         IFS=$lt_save_ifs
14394         # Let DOS variable expansion print the short 8.3 style file name.
14395         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14396         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14397       done
14398       IFS=$lt_save_ifs
14399       # Convert to MSYS style.
14400       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14401       ;;
14402     cygwin*)
14403       # Convert to unix form, then to dos form, then back to unix form
14404       # but this time dos style (no spaces!) so that the unix form looks
14405       # like /cygdrive/c/PROGRA~1:/cygdr...
14406       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14407       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14408       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14409       ;;
14410     *)
14411       sys_lib_search_path_spec=$LIB
14412       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14413         # It is most probably a Windows format PATH.
14414         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14415       else
14416         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14417       fi
14418       # FIXME: find the short name or the path components, as spaces are
14419       # common. (e.g. "Program Files" -> "PROGRA~1")
14420       ;;
14421     esac
14422
14423     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14424     postinstall_cmds='base_file=`basename \$file`~
14425       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14426       dldir=$destdir/`dirname \$dlpath`~
14427       test -d \$dldir || mkdir -p \$dldir~
14428       $install_prog $dir/$dlname \$dldir/$dlname'
14429     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14430       dlpath=$dir/\$dldll~
14431        $RM \$dlpath'
14432     shlibpath_overrides_runpath=yes
14433     dynamic_linker='Win32 link.exe'
14434     ;;
14435
14436   *)
14437     # Assume MSVC wrapper
14438     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14439     dynamic_linker='Win32 ld.exe'
14440     ;;
14441   esac
14442   # FIXME: first we should search . and the directory the executable is in
14443   shlibpath_var=PATH
14444   ;;
14445
14446 darwin* | rhapsody*)
14447   dynamic_linker="$host_os dyld"
14448   version_type=darwin
14449   need_lib_prefix=no
14450   need_version=no
14451   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14452   soname_spec='$libname$release$major$shared_ext'
14453   shlibpath_overrides_runpath=yes
14454   shlibpath_var=DYLD_LIBRARY_PATH
14455   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14456
14457   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14458   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14459   ;;
14460
14461 dgux*)
14462   version_type=linux # correct to gnu/linux during the next big refactor
14463   need_lib_prefix=no
14464   need_version=no
14465   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14466   soname_spec='$libname$release$shared_ext$major'
14467   shlibpath_var=LD_LIBRARY_PATH
14468   ;;
14469
14470 freebsd* | dragonfly*)
14471   # DragonFly does not have aout.  When/if they implement a new
14472   # versioning mechanism, adjust this.
14473   if test -x /usr/bin/objformat; then
14474     objformat=`/usr/bin/objformat`
14475   else
14476     case $host_os in
14477     freebsd[23].*) objformat=aout ;;
14478     *) objformat=elf ;;
14479     esac
14480   fi
14481   version_type=freebsd-$objformat
14482   case $version_type in
14483     freebsd-elf*)
14484       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14485       soname_spec='$libname$release$shared_ext$major'
14486       need_version=no
14487       need_lib_prefix=no
14488       ;;
14489     freebsd-*)
14490       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14491       need_version=yes
14492       ;;
14493   esac
14494   shlibpath_var=LD_LIBRARY_PATH
14495   case $host_os in
14496   freebsd2.*)
14497     shlibpath_overrides_runpath=yes
14498     ;;
14499   freebsd3.[01]* | freebsdelf3.[01]*)
14500     shlibpath_overrides_runpath=yes
14501     hardcode_into_libs=yes
14502     ;;
14503   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14504   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14505     shlibpath_overrides_runpath=no
14506     hardcode_into_libs=yes
14507     ;;
14508   *) # from 4.6 on, and DragonFly
14509     shlibpath_overrides_runpath=yes
14510     hardcode_into_libs=yes
14511     ;;
14512   esac
14513   ;;
14514
14515 haiku*)
14516   version_type=linux # correct to gnu/linux during the next big refactor
14517   need_lib_prefix=no
14518   need_version=no
14519   dynamic_linker="$host_os runtime_loader"
14520   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14521   soname_spec='$libname$release$shared_ext$major'
14522   shlibpath_var=LIBRARY_PATH
14523   shlibpath_overrides_runpath=no
14524   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14525   hardcode_into_libs=yes
14526   ;;
14527
14528 hpux9* | hpux10* | hpux11*)
14529   # Give a soname corresponding to the major version so that dld.sl refuses to
14530   # link against other versions.
14531   version_type=sunos
14532   need_lib_prefix=no
14533   need_version=no
14534   case $host_cpu in
14535   ia64*)
14536     shrext_cmds='.so'
14537     hardcode_into_libs=yes
14538     dynamic_linker="$host_os dld.so"
14539     shlibpath_var=LD_LIBRARY_PATH
14540     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14541     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14542     soname_spec='$libname$release$shared_ext$major'
14543     if test 32 = "$HPUX_IA64_MODE"; then
14544       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14545       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14546     else
14547       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14548       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14549     fi
14550     ;;
14551   hppa*64*)
14552     shrext_cmds='.sl'
14553     hardcode_into_libs=yes
14554     dynamic_linker="$host_os dld.sl"
14555     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14557     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14558     soname_spec='$libname$release$shared_ext$major'
14559     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14561     ;;
14562   *)
14563     shrext_cmds='.sl'
14564     dynamic_linker="$host_os dld.sl"
14565     shlibpath_var=SHLIB_PATH
14566     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14567     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14568     soname_spec='$libname$release$shared_ext$major'
14569     ;;
14570   esac
14571   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14572   postinstall_cmds='chmod 555 $lib'
14573   # or fails outright, so override atomically:
14574   install_override_mode=555
14575   ;;
14576
14577 interix[3-9]*)
14578   version_type=linux # correct to gnu/linux during the next big refactor
14579   need_lib_prefix=no
14580   need_version=no
14581   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14582   soname_spec='$libname$release$shared_ext$major'
14583   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14584   shlibpath_var=LD_LIBRARY_PATH
14585   shlibpath_overrides_runpath=no
14586   hardcode_into_libs=yes
14587   ;;
14588
14589 irix5* | irix6* | nonstopux*)
14590   case $host_os in
14591     nonstopux*) version_type=nonstopux ;;
14592     *)
14593         if test yes = "$lt_cv_prog_gnu_ld"; then
14594                 version_type=linux # correct to gnu/linux during the next big refactor
14595         else
14596                 version_type=irix
14597         fi ;;
14598   esac
14599   need_lib_prefix=no
14600   need_version=no
14601   soname_spec='$libname$release$shared_ext$major'
14602   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14603   case $host_os in
14604   irix5* | nonstopux*)
14605     libsuff= shlibsuff=
14606     ;;
14607   *)
14608     case $LD in # libtool.m4 will add one of these switches to LD
14609     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14610       libsuff= shlibsuff= libmagic=32-bit;;
14611     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14612       libsuff=32 shlibsuff=N32 libmagic=N32;;
14613     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14614       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14615     *) libsuff= shlibsuff= libmagic=never-match;;
14616     esac
14617     ;;
14618   esac
14619   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14620   shlibpath_overrides_runpath=no
14621   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14622   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14623   hardcode_into_libs=yes
14624   ;;
14625
14626 # No shared lib support for Linux oldld, aout, or coff.
14627 linux*oldld* | linux*aout* | linux*coff*)
14628   dynamic_linker=no
14629   ;;
14630
14631 linux*android*)
14632   version_type=none # Android doesn't support versioned libraries.
14633   need_lib_prefix=no
14634   need_version=no
14635   library_names_spec='$libname$release$shared_ext'
14636   soname_spec='$libname$release$shared_ext'
14637   finish_cmds=
14638   shlibpath_var=LD_LIBRARY_PATH
14639   shlibpath_overrides_runpath=yes
14640
14641   # This implies no fast_install, which is unacceptable.
14642   # Some rework will be needed to allow for fast_install
14643   # before this can be enabled.
14644   hardcode_into_libs=yes
14645
14646   dynamic_linker='Android linker'
14647   # Don't embed -rpath directories since the linker doesn't support them.
14648   hardcode_libdir_flag_spec='-L$libdir'
14649   ;;
14650
14651 # This must be glibc/ELF.
14652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14653   version_type=linux # correct to gnu/linux during the next big refactor
14654   need_lib_prefix=no
14655   need_version=no
14656   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14657   soname_spec='$libname$release$shared_ext$major'
14658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14659   shlibpath_var=LD_LIBRARY_PATH
14660   shlibpath_overrides_runpath=no
14661
14662   # Some binutils ld are patched to set DT_RUNPATH
14663   if test ${lt_cv_shlibpath_overrides_runpath+y}
14664 then :
14665   printf %s "(cached) " >&6
14666 else $as_nop
14667   lt_cv_shlibpath_overrides_runpath=no
14668     save_LDFLAGS=$LDFLAGS
14669     save_libdir=$libdir
14670     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14671          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h.  */
14674
14675 int
14676 main (void)
14677 {
14678
14679   ;
14680   return 0;
14681 }
14682 _ACEOF
14683 if ac_fn_c_try_link "$LINENO"
14684 then :
14685   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14686 then :
14687   lt_cv_shlibpath_overrides_runpath=yes
14688 fi
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14691     conftest$ac_exeext conftest.$ac_ext
14692     LDFLAGS=$save_LDFLAGS
14693     libdir=$save_libdir
14694
14695 fi
14696
14697   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14698
14699   # This implies no fast_install, which is unacceptable.
14700   # Some rework will be needed to allow for fast_install
14701   # before this can be enabled.
14702   hardcode_into_libs=yes
14703
14704   # Ideally, we could use ldconfig to report *all* directores which are
14705   # searched for libraries, however this is still not possible.  Aside from not
14706   # being certain /sbin/ldconfig is available, command
14707   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14708   # even though it is searched at run-time.  Try to do the best guess by
14709   # appending ld.so.conf contents (and includes) to the search path.
14710   if test -f /etc/ld.so.conf; then
14711     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' ' '`
14712     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14713   fi
14714
14715   # We used to test for /lib/ld.so.1 and disable shared libraries on
14716   # powerpc, because MkLinux only supported shared libraries with the
14717   # GNU dynamic linker.  Since this was broken with cross compilers,
14718   # most powerpc-linux boxes support dynamic linking these days and
14719   # people can always --disable-shared, the test was removed, and we
14720   # assume the GNU/Linux dynamic linker is in use.
14721   dynamic_linker='GNU/Linux ld.so'
14722   ;;
14723
14724 netbsdelf*-gnu)
14725   version_type=linux
14726   need_lib_prefix=no
14727   need_version=no
14728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14729   soname_spec='${libname}${release}${shared_ext}$major'
14730   shlibpath_var=LD_LIBRARY_PATH
14731   shlibpath_overrides_runpath=no
14732   hardcode_into_libs=yes
14733   dynamic_linker='NetBSD ld.elf_so'
14734   ;;
14735
14736 netbsd*)
14737   version_type=sunos
14738   need_lib_prefix=no
14739   need_version=no
14740   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14741     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14742     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14743     dynamic_linker='NetBSD (a.out) ld.so'
14744   else
14745     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14746     soname_spec='$libname$release$shared_ext$major'
14747     dynamic_linker='NetBSD ld.elf_so'
14748   fi
14749   shlibpath_var=LD_LIBRARY_PATH
14750   shlibpath_overrides_runpath=yes
14751   hardcode_into_libs=yes
14752   ;;
14753
14754 newsos6)
14755   version_type=linux # correct to gnu/linux during the next big refactor
14756   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14757   shlibpath_var=LD_LIBRARY_PATH
14758   shlibpath_overrides_runpath=yes
14759   ;;
14760
14761 *nto* | *qnx*)
14762   version_type=qnx
14763   need_lib_prefix=no
14764   need_version=no
14765   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14766   soname_spec='$libname$release$shared_ext$major'
14767   shlibpath_var=LD_LIBRARY_PATH
14768   shlibpath_overrides_runpath=no
14769   hardcode_into_libs=yes
14770   dynamic_linker='ldqnx.so'
14771   ;;
14772
14773 openbsd* | bitrig*)
14774   version_type=sunos
14775   sys_lib_dlsearch_path_spec=/usr/lib
14776   need_lib_prefix=no
14777   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14778     need_version=no
14779   else
14780     need_version=yes
14781   fi
14782   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14783   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14784   shlibpath_var=LD_LIBRARY_PATH
14785   shlibpath_overrides_runpath=yes
14786   ;;
14787
14788 os2*)
14789   libname_spec='$name'
14790   version_type=windows
14791   shrext_cmds=.dll
14792   need_version=no
14793   need_lib_prefix=no
14794   # OS/2 can only load a DLL with a base name of 8 characters or less.
14795   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14796     v=$($ECHO $release$versuffix | tr -d .-);
14797     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14798     $ECHO $n$v`$shared_ext'
14799   library_names_spec='${libname}_dll.$libext'
14800   dynamic_linker='OS/2 ld.exe'
14801   shlibpath_var=BEGINLIBPATH
14802   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14803   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14804   postinstall_cmds='base_file=`basename \$file`~
14805     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14806     dldir=$destdir/`dirname \$dlpath`~
14807     test -d \$dldir || mkdir -p \$dldir~
14808     $install_prog $dir/$dlname \$dldir/$dlname~
14809     chmod a+x \$dldir/$dlname~
14810     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14811       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14812     fi'
14813   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14814     dlpath=$dir/\$dldll~
14815     $RM \$dlpath'
14816   ;;
14817
14818 osf3* | osf4* | osf5*)
14819   version_type=osf
14820   need_lib_prefix=no
14821   need_version=no
14822   soname_spec='$libname$release$shared_ext$major'
14823   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14824   shlibpath_var=LD_LIBRARY_PATH
14825   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14826   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14827   ;;
14828
14829 rdos*)
14830   dynamic_linker=no
14831   ;;
14832
14833 solaris*)
14834   version_type=linux # correct to gnu/linux during the next big refactor
14835   need_lib_prefix=no
14836   need_version=no
14837   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14838   soname_spec='$libname$release$shared_ext$major'
14839   shlibpath_var=LD_LIBRARY_PATH
14840   shlibpath_overrides_runpath=yes
14841   hardcode_into_libs=yes
14842   # ldd complains unless libraries are executable
14843   postinstall_cmds='chmod +x $lib'
14844   ;;
14845
14846 sunos4*)
14847   version_type=sunos
14848   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14849   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14850   shlibpath_var=LD_LIBRARY_PATH
14851   shlibpath_overrides_runpath=yes
14852   if test yes = "$with_gnu_ld"; then
14853     need_lib_prefix=no
14854   fi
14855   need_version=yes
14856   ;;
14857
14858 sysv4 | sysv4.3*)
14859   version_type=linux # correct to gnu/linux during the next big refactor
14860   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14861   soname_spec='$libname$release$shared_ext$major'
14862   shlibpath_var=LD_LIBRARY_PATH
14863   case $host_vendor in
14864     sni)
14865       shlibpath_overrides_runpath=no
14866       need_lib_prefix=no
14867       runpath_var=LD_RUN_PATH
14868       ;;
14869     siemens)
14870       need_lib_prefix=no
14871       ;;
14872     motorola)
14873       need_lib_prefix=no
14874       need_version=no
14875       shlibpath_overrides_runpath=no
14876       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14877       ;;
14878   esac
14879   ;;
14880
14881 sysv4*MP*)
14882   if test -d /usr/nec; then
14883     version_type=linux # correct to gnu/linux during the next big refactor
14884     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14885     soname_spec='$libname$shared_ext.$major'
14886     shlibpath_var=LD_LIBRARY_PATH
14887   fi
14888   ;;
14889
14890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14891   version_type=sco
14892   need_lib_prefix=no
14893   need_version=no
14894   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14895   soname_spec='$libname$release$shared_ext$major'
14896   shlibpath_var=LD_LIBRARY_PATH
14897   shlibpath_overrides_runpath=yes
14898   hardcode_into_libs=yes
14899   if test yes = "$with_gnu_ld"; then
14900     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14901   else
14902     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14903     case $host_os in
14904       sco3.2v5*)
14905         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14906         ;;
14907     esac
14908   fi
14909   sys_lib_dlsearch_path_spec='/usr/lib'
14910   ;;
14911
14912 tpf*)
14913   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14914   version_type=linux # correct to gnu/linux during the next big refactor
14915   need_lib_prefix=no
14916   need_version=no
14917   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14918   shlibpath_var=LD_LIBRARY_PATH
14919   shlibpath_overrides_runpath=no
14920   hardcode_into_libs=yes
14921   ;;
14922
14923 uts4*)
14924   version_type=linux # correct to gnu/linux during the next big refactor
14925   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14926   soname_spec='$libname$release$shared_ext$major'
14927   shlibpath_var=LD_LIBRARY_PATH
14928   ;;
14929
14930 *)
14931   dynamic_linker=no
14932   ;;
14933 esac
14934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14935 printf "%s\n" "$dynamic_linker" >&6; }
14936 test no = "$dynamic_linker" && can_build_shared=no
14937
14938 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14939 if test yes = "$GCC"; then
14940   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14941 fi
14942
14943 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14944   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14945 fi
14946
14947 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14948   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14949 fi
14950
14951 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14952 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14953
14954 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14955 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14956
14957 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14958 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15057 printf %s "checking how to hardcode library paths into programs... " >&6; }
15058 hardcode_action=
15059 if test -n "$hardcode_libdir_flag_spec" ||
15060    test -n "$runpath_var" ||
15061    test yes = "$hardcode_automatic"; then
15062
15063   # We can hardcode non-existent directories.
15064   if test no != "$hardcode_direct" &&
15065      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15066      # have to relink, otherwise we might link with an installed library
15067      # when we should be linking with a yet-to-be-installed one
15068      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15069      test no != "$hardcode_minus_L"; then
15070     # Linking always hardcodes the temporary library directory.
15071     hardcode_action=relink
15072   else
15073     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15074     hardcode_action=immediate
15075   fi
15076 else
15077   # We cannot hardcode anything, or else we can only hardcode existing
15078   # directories.
15079   hardcode_action=unsupported
15080 fi
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15082 printf "%s\n" "$hardcode_action" >&6; }
15083
15084 if test relink = "$hardcode_action" ||
15085    test yes = "$inherit_rpath"; then
15086   # Fast installation is not supported
15087   enable_fast_install=no
15088 elif test yes = "$shlibpath_overrides_runpath" ||
15089      test no = "$enable_shared"; then
15090   # Fast installation is not necessary
15091   enable_fast_install=needless
15092 fi
15093
15094
15095
15096
15097
15098
15099   if test yes != "$enable_dlopen"; then
15100   enable_dlopen=unknown
15101   enable_dlopen_self=unknown
15102   enable_dlopen_self_static=unknown
15103 else
15104   lt_cv_dlopen=no
15105   lt_cv_dlopen_libs=
15106
15107   case $host_os in
15108   beos*)
15109     lt_cv_dlopen=load_add_on
15110     lt_cv_dlopen_libs=
15111     lt_cv_dlopen_self=yes
15112     ;;
15113
15114   mingw* | pw32* | cegcc*)
15115     lt_cv_dlopen=LoadLibrary
15116     lt_cv_dlopen_libs=
15117     ;;
15118
15119   cygwin*)
15120     lt_cv_dlopen=dlopen
15121     lt_cv_dlopen_libs=
15122     ;;
15123
15124   darwin*)
15125     # if libdl is installed we need to link against it
15126     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15127 printf %s "checking for dlopen in -ldl... " >&6; }
15128 if test ${ac_cv_lib_dl_dlopen+y}
15129 then :
15130   printf %s "(cached) " >&6
15131 else $as_nop
15132   ac_check_lib_save_LIBS=$LIBS
15133 LIBS="-ldl  $LIBS"
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h.  */
15136
15137 /* Override any GCC internal prototype to avoid an error.
15138    Use char because int might match the return type of a GCC
15139    builtin and then its argument prototype would still apply.  */
15140 char dlopen ();
15141 int
15142 main (void)
15143 {
15144 return dlopen ();
15145   ;
15146   return 0;
15147 }
15148 _ACEOF
15149 if ac_fn_c_try_link "$LINENO"
15150 then :
15151   ac_cv_lib_dl_dlopen=yes
15152 else $as_nop
15153   ac_cv_lib_dl_dlopen=no
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15156     conftest$ac_exeext conftest.$ac_ext
15157 LIBS=$ac_check_lib_save_LIBS
15158 fi
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15160 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15161 if test "x$ac_cv_lib_dl_dlopen" = xyes
15162 then :
15163   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15164 else $as_nop
15165
15166     lt_cv_dlopen=dyld
15167     lt_cv_dlopen_libs=
15168     lt_cv_dlopen_self=yes
15169
15170 fi
15171
15172     ;;
15173
15174   tpf*)
15175     # Don't try to run any link tests for TPF.  We know it's impossible
15176     # because TPF is a cross-compiler, and we know how we open DSOs.
15177     lt_cv_dlopen=dlopen
15178     lt_cv_dlopen_libs=
15179     lt_cv_dlopen_self=no
15180     ;;
15181
15182   *)
15183     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15184 if test "x$ac_cv_func_shl_load" = xyes
15185 then :
15186   lt_cv_dlopen=shl_load
15187 else $as_nop
15188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15189 printf %s "checking for shl_load in -ldld... " >&6; }
15190 if test ${ac_cv_lib_dld_shl_load+y}
15191 then :
15192   printf %s "(cached) " >&6
15193 else $as_nop
15194   ac_check_lib_save_LIBS=$LIBS
15195 LIBS="-ldld  $LIBS"
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h.  */
15198
15199 /* Override any GCC internal prototype to avoid an error.
15200    Use char because int might match the return type of a GCC
15201    builtin and then its argument prototype would still apply.  */
15202 char shl_load ();
15203 int
15204 main (void)
15205 {
15206 return shl_load ();
15207   ;
15208   return 0;
15209 }
15210 _ACEOF
15211 if ac_fn_c_try_link "$LINENO"
15212 then :
15213   ac_cv_lib_dld_shl_load=yes
15214 else $as_nop
15215   ac_cv_lib_dld_shl_load=no
15216 fi
15217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15218     conftest$ac_exeext conftest.$ac_ext
15219 LIBS=$ac_check_lib_save_LIBS
15220 fi
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15222 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15223 if test "x$ac_cv_lib_dld_shl_load" = xyes
15224 then :
15225   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15226 else $as_nop
15227   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15228 if test "x$ac_cv_func_dlopen" = xyes
15229 then :
15230   lt_cv_dlopen=dlopen
15231 else $as_nop
15232   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15233 printf %s "checking for dlopen in -ldl... " >&6; }
15234 if test ${ac_cv_lib_dl_dlopen+y}
15235 then :
15236   printf %s "(cached) " >&6
15237 else $as_nop
15238   ac_check_lib_save_LIBS=$LIBS
15239 LIBS="-ldl  $LIBS"
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h.  */
15242
15243 /* Override any GCC internal prototype to avoid an error.
15244    Use char because int might match the return type of a GCC
15245    builtin and then its argument prototype would still apply.  */
15246 char dlopen ();
15247 int
15248 main (void)
15249 {
15250 return dlopen ();
15251   ;
15252   return 0;
15253 }
15254 _ACEOF
15255 if ac_fn_c_try_link "$LINENO"
15256 then :
15257   ac_cv_lib_dl_dlopen=yes
15258 else $as_nop
15259   ac_cv_lib_dl_dlopen=no
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15262     conftest$ac_exeext conftest.$ac_ext
15263 LIBS=$ac_check_lib_save_LIBS
15264 fi
15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15266 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15267 if test "x$ac_cv_lib_dl_dlopen" = xyes
15268 then :
15269   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15270 else $as_nop
15271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15272 printf %s "checking for dlopen in -lsvld... " >&6; }
15273 if test ${ac_cv_lib_svld_dlopen+y}
15274 then :
15275   printf %s "(cached) " >&6
15276 else $as_nop
15277   ac_check_lib_save_LIBS=$LIBS
15278 LIBS="-lsvld  $LIBS"
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h.  */
15281
15282 /* Override any GCC internal prototype to avoid an error.
15283    Use char because int might match the return type of a GCC
15284    builtin and then its argument prototype would still apply.  */
15285 char dlopen ();
15286 int
15287 main (void)
15288 {
15289 return dlopen ();
15290   ;
15291   return 0;
15292 }
15293 _ACEOF
15294 if ac_fn_c_try_link "$LINENO"
15295 then :
15296   ac_cv_lib_svld_dlopen=yes
15297 else $as_nop
15298   ac_cv_lib_svld_dlopen=no
15299 fi
15300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15301     conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15303 fi
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15305 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15306 if test "x$ac_cv_lib_svld_dlopen" = xyes
15307 then :
15308   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15309 else $as_nop
15310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15311 printf %s "checking for dld_link in -ldld... " >&6; }
15312 if test ${ac_cv_lib_dld_dld_link+y}
15313 then :
15314   printf %s "(cached) " >&6
15315 else $as_nop
15316   ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-ldld  $LIBS"
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h.  */
15320
15321 /* Override any GCC internal prototype to avoid an error.
15322    Use char because int might match the return type of a GCC
15323    builtin and then its argument prototype would still apply.  */
15324 char dld_link ();
15325 int
15326 main (void)
15327 {
15328 return dld_link ();
15329   ;
15330   return 0;
15331 }
15332 _ACEOF
15333 if ac_fn_c_try_link "$LINENO"
15334 then :
15335   ac_cv_lib_dld_dld_link=yes
15336 else $as_nop
15337   ac_cv_lib_dld_dld_link=no
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15340     conftest$ac_exeext conftest.$ac_ext
15341 LIBS=$ac_check_lib_save_LIBS
15342 fi
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15344 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15345 if test "x$ac_cv_lib_dld_dld_link" = xyes
15346 then :
15347   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15348 fi
15349
15350
15351 fi
15352
15353
15354 fi
15355
15356
15357 fi
15358
15359
15360 fi
15361
15362
15363 fi
15364
15365     ;;
15366   esac
15367
15368   if test no = "$lt_cv_dlopen"; then
15369     enable_dlopen=no
15370   else
15371     enable_dlopen=yes
15372   fi
15373
15374   case $lt_cv_dlopen in
15375   dlopen)
15376     save_CPPFLAGS=$CPPFLAGS
15377     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15378
15379     save_LDFLAGS=$LDFLAGS
15380     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15381
15382     save_LIBS=$LIBS
15383     LIBS="$lt_cv_dlopen_libs $LIBS"
15384
15385     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15386 printf %s "checking whether a program can dlopen itself... " >&6; }
15387 if test ${lt_cv_dlopen_self+y}
15388 then :
15389   printf %s "(cached) " >&6
15390 else $as_nop
15391           if test yes = "$cross_compiling"; then :
15392   lt_cv_dlopen_self=cross
15393 else
15394   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15395   lt_status=$lt_dlunknown
15396   cat > conftest.$ac_ext <<_LT_EOF
15397 #line $LINENO "configure"
15398 #include "confdefs.h"
15399
15400 #if HAVE_DLFCN_H
15401 #include <dlfcn.h>
15402 #endif
15403
15404 #include <stdio.h>
15405
15406 #ifdef RTLD_GLOBAL
15407 #  define LT_DLGLOBAL           RTLD_GLOBAL
15408 #else
15409 #  ifdef DL_GLOBAL
15410 #    define LT_DLGLOBAL         DL_GLOBAL
15411 #  else
15412 #    define LT_DLGLOBAL         0
15413 #  endif
15414 #endif
15415
15416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15417    find out it does not work in some platform. */
15418 #ifndef LT_DLLAZY_OR_NOW
15419 #  ifdef RTLD_LAZY
15420 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15421 #  else
15422 #    ifdef DL_LAZY
15423 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15424 #    else
15425 #      ifdef RTLD_NOW
15426 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15427 #      else
15428 #        ifdef DL_NOW
15429 #          define LT_DLLAZY_OR_NOW      DL_NOW
15430 #        else
15431 #          define LT_DLLAZY_OR_NOW      0
15432 #        endif
15433 #      endif
15434 #    endif
15435 #  endif
15436 #endif
15437
15438 /* When -fvisibility=hidden is used, assume the code has been annotated
15439    correspondingly for the symbols needed.  */
15440 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15441 int fnord () __attribute__((visibility("default")));
15442 #endif
15443
15444 int fnord () { return 42; }
15445 int main ()
15446 {
15447   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15448   int status = $lt_dlunknown;
15449
15450   if (self)
15451     {
15452       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15453       else
15454         {
15455           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15456           else puts (dlerror ());
15457         }
15458       /* dlclose (self); */
15459     }
15460   else
15461     puts (dlerror ());
15462
15463   return status;
15464 }
15465 _LT_EOF
15466   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15467   (eval $ac_link) 2>&5
15468   ac_status=$?
15469   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15471     (./conftest; exit; ) >&5 2>/dev/null
15472     lt_status=$?
15473     case x$lt_status in
15474       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15475       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15476       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15477     esac
15478   else :
15479     # compilation failed
15480     lt_cv_dlopen_self=no
15481   fi
15482 fi
15483 rm -fr conftest*
15484
15485
15486 fi
15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15488 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15489
15490     if test yes = "$lt_cv_dlopen_self"; then
15491       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15492       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15493 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15494 if test ${lt_cv_dlopen_self_static+y}
15495 then :
15496   printf %s "(cached) " >&6
15497 else $as_nop
15498           if test yes = "$cross_compiling"; then :
15499   lt_cv_dlopen_self_static=cross
15500 else
15501   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15502   lt_status=$lt_dlunknown
15503   cat > conftest.$ac_ext <<_LT_EOF
15504 #line $LINENO "configure"
15505 #include "confdefs.h"
15506
15507 #if HAVE_DLFCN_H
15508 #include <dlfcn.h>
15509 #endif
15510
15511 #include <stdio.h>
15512
15513 #ifdef RTLD_GLOBAL
15514 #  define LT_DLGLOBAL           RTLD_GLOBAL
15515 #else
15516 #  ifdef DL_GLOBAL
15517 #    define LT_DLGLOBAL         DL_GLOBAL
15518 #  else
15519 #    define LT_DLGLOBAL         0
15520 #  endif
15521 #endif
15522
15523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15524    find out it does not work in some platform. */
15525 #ifndef LT_DLLAZY_OR_NOW
15526 #  ifdef RTLD_LAZY
15527 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15528 #  else
15529 #    ifdef DL_LAZY
15530 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15531 #    else
15532 #      ifdef RTLD_NOW
15533 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15534 #      else
15535 #        ifdef DL_NOW
15536 #          define LT_DLLAZY_OR_NOW      DL_NOW
15537 #        else
15538 #          define LT_DLLAZY_OR_NOW      0
15539 #        endif
15540 #      endif
15541 #    endif
15542 #  endif
15543 #endif
15544
15545 /* When -fvisibility=hidden is used, assume the code has been annotated
15546    correspondingly for the symbols needed.  */
15547 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15548 int fnord () __attribute__((visibility("default")));
15549 #endif
15550
15551 int fnord () { return 42; }
15552 int main ()
15553 {
15554   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15555   int status = $lt_dlunknown;
15556
15557   if (self)
15558     {
15559       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15560       else
15561         {
15562           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15563           else puts (dlerror ());
15564         }
15565       /* dlclose (self); */
15566     }
15567   else
15568     puts (dlerror ());
15569
15570   return status;
15571 }
15572 _LT_EOF
15573   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15574   (eval $ac_link) 2>&5
15575   ac_status=$?
15576   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15577   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15578     (./conftest; exit; ) >&5 2>/dev/null
15579     lt_status=$?
15580     case x$lt_status in
15581       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15582       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15583       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15584     esac
15585   else :
15586     # compilation failed
15587     lt_cv_dlopen_self_static=no
15588   fi
15589 fi
15590 rm -fr conftest*
15591
15592
15593 fi
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15595 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15596     fi
15597
15598     CPPFLAGS=$save_CPPFLAGS
15599     LDFLAGS=$save_LDFLAGS
15600     LIBS=$save_LIBS
15601     ;;
15602   esac
15603
15604   case $lt_cv_dlopen_self in
15605   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15606   *) enable_dlopen_self=unknown ;;
15607   esac
15608
15609   case $lt_cv_dlopen_self_static in
15610   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15611   *) enable_dlopen_self_static=unknown ;;
15612   esac
15613 fi
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631 striplib=
15632 old_striplib=
15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15634 printf %s "checking whether stripping libraries is possible... " >&6; }
15635 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15636   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15637   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15639 printf "%s\n" "yes" >&6; }
15640 else
15641 # FIXME - insert some real tests, host_os isn't really good enough
15642   case $host_os in
15643   darwin*)
15644     if test -n "$STRIP"; then
15645       striplib="$STRIP -x"
15646       old_striplib="$STRIP -S"
15647       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15648 printf "%s\n" "yes" >&6; }
15649     else
15650       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15651 printf "%s\n" "no" >&6; }
15652     fi
15653     ;;
15654   *)
15655     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 printf "%s\n" "no" >&6; }
15657     ;;
15658   esac
15659 fi
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672   # Report what library types will actually be built
15673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15674 printf %s "checking if libtool supports shared libraries... " >&6; }
15675   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15676 printf "%s\n" "$can_build_shared" >&6; }
15677
15678   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15679 printf %s "checking whether to build shared libraries... " >&6; }
15680   test no = "$can_build_shared" && enable_shared=no
15681
15682   # On AIX, shared libraries and static libraries use the same namespace, and
15683   # are all built from PIC.
15684   case $host_os in
15685   aix3*)
15686     test yes = "$enable_shared" && enable_static=no
15687     if test -n "$RANLIB"; then
15688       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15689       postinstall_cmds='$RANLIB $lib'
15690     fi
15691     ;;
15692
15693   aix[4-9]*)
15694     if test ia64 != "$host_cpu"; then
15695       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15696       yes,aix,yes) ;;                   # shared object as lib.so file only
15697       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15698       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15699       esac
15700     fi
15701     ;;
15702   esac
15703   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15704 printf "%s\n" "$enable_shared" >&6; }
15705
15706   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15707 printf %s "checking whether to build static libraries... " >&6; }
15708   # Make sure either enable_shared or enable_static is yes.
15709   test yes = "$enable_shared" || enable_static=yes
15710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15711 printf "%s\n" "$enable_static" >&6; }
15712
15713
15714
15715
15716 fi
15717 ac_ext=c
15718 ac_cpp='$CPP $CPPFLAGS'
15719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15722
15723 CC=$lt_save_CC
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739         ac_config_commands="$ac_config_commands libtool"
15740
15741
15742
15743
15744 # Only expand once:
15745
15746
15747
15748 printf "%s\n" "#define SHELL \"$SHELL\"" >>confdefs.h
15749
15750
15751
15752
15753
15754
15755
15756
15757 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15758         if test -n "$ac_tool_prefix"; then
15759   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15760 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15762 printf %s "checking for $ac_word... " >&6; }
15763 if test ${ac_cv_path_PKG_CONFIG+y}
15764 then :
15765   printf %s "(cached) " >&6
15766 else $as_nop
15767   case $PKG_CONFIG in
15768   [\\/]* | ?:[\\/]*)
15769   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15770   ;;
15771   *)
15772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15773 for as_dir in $PATH
15774 do
15775   IFS=$as_save_IFS
15776   case $as_dir in #(((
15777     '') as_dir=./ ;;
15778     */) ;;
15779     *) as_dir=$as_dir/ ;;
15780   esac
15781     for ac_exec_ext in '' $ac_executable_extensions; do
15782   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15783     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15784     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15785     break 2
15786   fi
15787 done
15788   done
15789 IFS=$as_save_IFS
15790
15791   ;;
15792 esac
15793 fi
15794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15795 if test -n "$PKG_CONFIG"; then
15796   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15797 printf "%s\n" "$PKG_CONFIG" >&6; }
15798 else
15799   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15800 printf "%s\n" "no" >&6; }
15801 fi
15802
15803
15804 fi
15805 if test -z "$ac_cv_path_PKG_CONFIG"; then
15806   ac_pt_PKG_CONFIG=$PKG_CONFIG
15807   # Extract the first word of "pkg-config", so it can be a program name with args.
15808 set dummy pkg-config; ac_word=$2
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15810 printf %s "checking for $ac_word... " >&6; }
15811 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15812 then :
15813   printf %s "(cached) " >&6
15814 else $as_nop
15815   case $ac_pt_PKG_CONFIG in
15816   [\\/]* | ?:[\\/]*)
15817   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15818   ;;
15819   *)
15820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15822 do
15823   IFS=$as_save_IFS
15824   case $as_dir in #(((
15825     '') as_dir=./ ;;
15826     */) ;;
15827     *) as_dir=$as_dir/ ;;
15828   esac
15829     for ac_exec_ext in '' $ac_executable_extensions; do
15830   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15831     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15832     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15833     break 2
15834   fi
15835 done
15836   done
15837 IFS=$as_save_IFS
15838
15839   ;;
15840 esac
15841 fi
15842 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15843 if test -n "$ac_pt_PKG_CONFIG"; then
15844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15845 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15846 else
15847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848 printf "%s\n" "no" >&6; }
15849 fi
15850
15851   if test "x$ac_pt_PKG_CONFIG" = x; then
15852     PKG_CONFIG=""
15853   else
15854     case $cross_compiling:$ac_tool_warned in
15855 yes:)
15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15858 ac_tool_warned=yes ;;
15859 esac
15860     PKG_CONFIG=$ac_pt_PKG_CONFIG
15861   fi
15862 else
15863   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15864 fi
15865
15866 fi
15867 if test -n "$PKG_CONFIG"; then
15868         _pkg_min_version=0.9.0
15869         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15870 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15871         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15872                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15873 printf "%s\n" "yes" >&6; }
15874         else
15875                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15876 printf "%s\n" "no" >&6; }
15877                 PKG_CONFIG=""
15878         fi
15879 fi
15880
15881 pkg_failed=no
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.10" >&5
15883 printf %s "checking for check >= 0.9.10... " >&6; }
15884
15885 if test -n "$CHECK_CFLAGS"; then
15886     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15887  elif test -n "$PKG_CONFIG"; then
15888     if test -n "$PKG_CONFIG" && \
15889     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.10\""; } >&5
15890   ($PKG_CONFIG --exists --print-errors "check >= 0.9.10") 2>&5
15891   ac_status=$?
15892   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15893   test $ac_status = 0; }; then
15894   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.10" 2>/dev/null`
15895                       test "x$?" != "x0" && pkg_failed=yes
15896 else
15897   pkg_failed=yes
15898 fi
15899  else
15900     pkg_failed=untried
15901 fi
15902 if test -n "$CHECK_LIBS"; then
15903     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15904  elif test -n "$PKG_CONFIG"; then
15905     if test -n "$PKG_CONFIG" && \
15906     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.10\""; } >&5
15907   ($PKG_CONFIG --exists --print-errors "check >= 0.9.10") 2>&5
15908   ac_status=$?
15909   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910   test $ac_status = 0; }; then
15911   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.10" 2>/dev/null`
15912                       test "x$?" != "x0" && pkg_failed=yes
15913 else
15914   pkg_failed=yes
15915 fi
15916  else
15917     pkg_failed=untried
15918 fi
15919
15920
15921
15922 if test $pkg_failed = yes; then
15923         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 printf "%s\n" "no" >&6; }
15925
15926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15927         _pkg_short_errors_supported=yes
15928 else
15929         _pkg_short_errors_supported=no
15930 fi
15931         if test $_pkg_short_errors_supported = yes; then
15932                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.10" 2>&1`
15933         else
15934                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.10" 2>&1`
15935         fi
15936         # Put the nasty error message in config.log where it belongs
15937         echo "$CHECK_PKG_ERRORS" >&5
15938
15939         run_tests=no
15940 elif test $pkg_failed = untried; then
15941         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942 printf "%s\n" "no" >&6; }
15943         run_tests=no
15944 else
15945         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15946         CHECK_LIBS=$pkg_cv_CHECK_LIBS
15947         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15948 printf "%s\n" "yes" >&6; }
15949         run_tests=yes
15950 fi
15951  if test "x$run_tests" = xyes; then
15952   RUN_TESTS_TRUE=
15953   RUN_TESTS_FALSE='#'
15954 else
15955   RUN_TESTS_TRUE='#'
15956   RUN_TESTS_FALSE=
15957 fi
15958
15959
15960 # Check for various header files and associated libraries.
15961
15962
15963
15964
15965
15966
15967
15968
15969                         # Check whether --enable-cross-guesses was given.
15970 if test ${enable_cross_guesses+y}
15971 then :
15972   enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
15973        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
15974 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
15975        enableval=conservative
15976      fi
15977      gl_cross_guesses="$enableval"
15978 else $as_nop
15979   gl_cross_guesses=conservative
15980 fi
15981
15982   if test $gl_cross_guesses = risky; then
15983     gl_cross_guess_normal="guessing yes"
15984     gl_cross_guess_inverted="guessing no"
15985   else
15986     gl_cross_guess_normal="guessing no"
15987     gl_cross_guess_inverted="guessing yes"
15988   fi
15989           LIBC_FATAL_STDERR_=1
15990   export LIBC_FATAL_STDERR_
15991
15992
15993 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15994 if test "x$ac_cv_type_size_t" = xyes
15995 then :
15996
15997 else $as_nop
15998
15999 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
16000
16001 fi
16002
16003 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16004 # for constant arguments.  Useless!
16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16006 printf %s "checking for working alloca.h... " >&6; }
16007 if test ${ac_cv_working_alloca_h+y}
16008 then :
16009   printf %s "(cached) " >&6
16010 else $as_nop
16011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h.  */
16013 #include <alloca.h>
16014 int
16015 main (void)
16016 {
16017 char *p = (char *) alloca (2 * sizeof (int));
16018                           if (p) return 0;
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_c_try_link "$LINENO"
16024 then :
16025   ac_cv_working_alloca_h=yes
16026 else $as_nop
16027   ac_cv_working_alloca_h=no
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16030     conftest$ac_exeext conftest.$ac_ext
16031 fi
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16033 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
16034 if test $ac_cv_working_alloca_h = yes; then
16035
16036 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16037
16038 fi
16039
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16041 printf %s "checking for alloca... " >&6; }
16042 if test ${ac_cv_func_alloca_works+y}
16043 then :
16044   printf %s "(cached) " >&6
16045 else $as_nop
16046   if test $ac_cv_working_alloca_h = yes; then
16047   ac_cv_func_alloca_works=yes
16048 else
16049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h.  */
16051 #include <stdlib.h>
16052 #include <stddef.h>
16053 #ifndef alloca
16054 # ifdef __GNUC__
16055 #  define alloca __builtin_alloca
16056 # elif defined _MSC_VER
16057 #  include <malloc.h>
16058 #  define alloca _alloca
16059 # else
16060 #  ifdef  __cplusplus
16061 extern "C"
16062 #  endif
16063 void *alloca (size_t);
16064 # endif
16065 #endif
16066
16067 int
16068 main (void)
16069 {
16070 char *p = (char *) alloca (1);
16071                                     if (p) return 0;
16072   ;
16073   return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"
16077 then :
16078   ac_cv_func_alloca_works=yes
16079 else $as_nop
16080   ac_cv_func_alloca_works=no
16081 fi
16082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16083     conftest$ac_exeext conftest.$ac_ext
16084 fi
16085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16086 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
16087 fi
16088
16089 if test $ac_cv_func_alloca_works = yes; then
16090
16091 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16092
16093 else
16094   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16095 # that cause trouble.  Some versions do not even contain alloca or
16096 # contain a buggy version.  If you still want to use their alloca,
16097 # use ar to extract alloca.o from them instead of compiling alloca.c.
16098
16099
16100
16101
16102
16103 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16104
16105 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
16106
16107
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16109 printf %s "checking stack direction for C alloca... " >&6; }
16110 if test ${ac_cv_c_stack_direction+y}
16111 then :
16112   printf %s "(cached) " >&6
16113 else $as_nop
16114   if test "$cross_compiling" = yes
16115 then :
16116   ac_cv_c_stack_direction=0
16117 else $as_nop
16118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h.  */
16120 $ac_includes_default
16121 int
16122 find_stack_direction (int *addr, int depth)
16123 {
16124   int dir, dummy = 0;
16125   if (! addr)
16126     addr = &dummy;
16127   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16128   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16129   return dir + dummy;
16130 }
16131
16132 int
16133 main (int argc, char **argv)
16134 {
16135   return find_stack_direction (0, argc + !argv + 20) < 0;
16136 }
16137 _ACEOF
16138 if ac_fn_c_try_run "$LINENO"
16139 then :
16140   ac_cv_c_stack_direction=1
16141 else $as_nop
16142   ac_cv_c_stack_direction=-1
16143 fi
16144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16145   conftest.$ac_objext conftest.beam conftest.$ac_ext
16146 fi
16147
16148 fi
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16150 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
16151 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
16152
16153
16154 fi
16155
16156
16157   GNULIB_ACCESS=0;
16158   GNULIB_CHDIR=0;
16159   GNULIB_CHOWN=0;
16160   GNULIB_CLOSE=0;
16161   GNULIB_COPY_FILE_RANGE=0;
16162   GNULIB_DUP=0;
16163   GNULIB_DUP2=0;
16164   GNULIB_DUP3=0;
16165   GNULIB_ENVIRON=0;
16166   GNULIB_EUIDACCESS=0;
16167   GNULIB_FACCESSAT=0;
16168   GNULIB_FCHDIR=0;
16169   GNULIB_FCHOWNAT=0;
16170   GNULIB_FDATASYNC=0;
16171   GNULIB_FSYNC=0;
16172   GNULIB_FTRUNCATE=0;
16173   GNULIB_GETCWD=0;
16174   GNULIB_GETDOMAINNAME=0;
16175   GNULIB_GETDTABLESIZE=0;
16176   GNULIB_GETENTROPY=0;
16177   GNULIB_GETGROUPS=0;
16178   GNULIB_GETHOSTNAME=0;
16179   GNULIB_GETLOGIN=0;
16180   GNULIB_GETLOGIN_R=0;
16181   GNULIB_GETOPT_POSIX=0;
16182   GNULIB_GETPAGESIZE=0;
16183   GNULIB_GETPASS=0;
16184   GNULIB_GETUSERSHELL=0;
16185   GNULIB_GROUP_MEMBER=0;
16186   GNULIB_ISATTY=0;
16187   GNULIB_LCHOWN=0;
16188   GNULIB_LINK=0;
16189   GNULIB_LINKAT=0;
16190   GNULIB_LSEEK=0;
16191   GNULIB_PIPE=0;
16192   GNULIB_PIPE2=0;
16193   GNULIB_PREAD=0;
16194   GNULIB_PWRITE=0;
16195   GNULIB_READ=0;
16196   GNULIB_READLINK=0;
16197   GNULIB_READLINKAT=0;
16198   GNULIB_RMDIR=0;
16199   GNULIB_SETHOSTNAME=0;
16200   GNULIB_SLEEP=0;
16201   GNULIB_SYMLINK=0;
16202   GNULIB_SYMLINKAT=0;
16203   GNULIB_TRUNCATE=0;
16204   GNULIB_TTYNAME_R=0;
16205   GNULIB_UNISTD_H_NONBLOCKING=0;
16206   GNULIB_UNISTD_H_SIGPIPE=0;
16207   GNULIB_UNLINK=0;
16208   GNULIB_UNLINKAT=0;
16209   GNULIB_USLEEP=0;
16210   GNULIB_WRITE=0;
16211     HAVE_CHOWN=1;
16212   HAVE_COPY_FILE_RANGE=1;
16213   HAVE_DUP3=1;
16214   HAVE_EUIDACCESS=1;
16215   HAVE_FACCESSAT=1;
16216   HAVE_FCHDIR=1;
16217   HAVE_FCHOWNAT=1;
16218   HAVE_FDATASYNC=1;
16219   HAVE_FSYNC=1;
16220   HAVE_FTRUNCATE=1;
16221   HAVE_GETDTABLESIZE=1;
16222   HAVE_GETENTROPY=1;
16223   HAVE_GETGROUPS=1;
16224   HAVE_GETHOSTNAME=1;
16225   HAVE_GETLOGIN=1;
16226   HAVE_GETPAGESIZE=1;
16227   HAVE_GETPASS=1;
16228   HAVE_GROUP_MEMBER=1;
16229   HAVE_LCHOWN=1;
16230   HAVE_LINK=1;
16231   HAVE_LINKAT=1;
16232   HAVE_PIPE=1;
16233   HAVE_PIPE2=1;
16234   HAVE_PREAD=1;
16235   HAVE_PWRITE=1;
16236   HAVE_READLINK=1;
16237   HAVE_READLINKAT=1;
16238   HAVE_SETHOSTNAME=1;
16239   HAVE_SLEEP=1;
16240   HAVE_SYMLINK=1;
16241   HAVE_SYMLINKAT=1;
16242   HAVE_UNLINKAT=1;
16243   HAVE_USLEEP=1;
16244   HAVE_DECL_ENVIRON=1;
16245   HAVE_DECL_FCHDIR=1;
16246   HAVE_DECL_FDATASYNC=1;
16247   HAVE_DECL_GETDOMAINNAME=1;
16248   HAVE_DECL_GETLOGIN=1;
16249   HAVE_DECL_GETLOGIN_R=1;
16250   HAVE_DECL_GETPAGESIZE=1;
16251   HAVE_DECL_GETUSERSHELL=1;
16252   HAVE_DECL_SETHOSTNAME=1;
16253   HAVE_DECL_TRUNCATE=1;
16254   HAVE_DECL_TTYNAME_R=1;
16255   HAVE_OS_H=0;
16256   HAVE_SYS_PARAM_H=0;
16257   REPLACE_ACCESS=0;
16258   REPLACE_CHOWN=0;
16259   REPLACE_CLOSE=0;
16260   REPLACE_DUP=0;
16261   REPLACE_DUP2=0;
16262   REPLACE_FACCESSAT=0;
16263   REPLACE_FCHOWNAT=0;
16264   REPLACE_FTRUNCATE=0;
16265   REPLACE_GETCWD=0;
16266   REPLACE_GETDOMAINNAME=0;
16267   REPLACE_GETDTABLESIZE=0;
16268   REPLACE_GETLOGIN_R=0;
16269   REPLACE_GETGROUPS=0;
16270   REPLACE_GETPAGESIZE=0;
16271   REPLACE_GETPASS=0;
16272   REPLACE_ISATTY=0;
16273   REPLACE_LCHOWN=0;
16274   REPLACE_LINK=0;
16275   REPLACE_LINKAT=0;
16276   REPLACE_LSEEK=0;
16277   REPLACE_PREAD=0;
16278   REPLACE_PWRITE=0;
16279   REPLACE_READ=0;
16280   REPLACE_READLINK=0;
16281   REPLACE_READLINKAT=0;
16282   REPLACE_RMDIR=0;
16283   REPLACE_SLEEP=0;
16284   REPLACE_SYMLINK=0;
16285   REPLACE_SYMLINKAT=0;
16286   REPLACE_TRUNCATE=0;
16287   REPLACE_TTYNAME_R=0;
16288   REPLACE_UNLINK=0;
16289   REPLACE_UNLINKAT=0;
16290   REPLACE_USLEEP=0;
16291   REPLACE_WRITE=0;
16292   UNISTD_H_HAVE_SYS_RANDOM_H=0;
16293   UNISTD_H_HAVE_WINSOCK2_H=0;
16294   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16295
16296
16297 ac_func=
16298 for ac_item in $ac_func_c_list
16299 do
16300   if test $ac_func; then
16301     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
16302     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
16303       echo "#define $ac_item 1" >> confdefs.h
16304     fi
16305     ac_func=
16306   else
16307     ac_func=$ac_item
16308   fi
16309 done
16310
16311
16312   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
16313     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
16314
16315 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
16316
16317   else
16318     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
16319   fi
16320
16321
16322
16323 gl_mda_defines='
16324 #if defined _WIN32 && !defined __CYGWIN__
16325 #define access    _access
16326 #define chdir     _chdir
16327 #define chmod     _chmod
16328 #define close     _close
16329 #define creat     _creat
16330 #define dup       _dup
16331 #define dup2      _dup2
16332 #define ecvt      _ecvt
16333 #define execl     _execl
16334 #define execle    _execle
16335 #define execlp    _execlp
16336 #define execv     _execv
16337 #define execve    _execve
16338 #define execvp    _execvp
16339 #define execvpe   _execvpe
16340 #define fcloseall _fcloseall
16341 #define fcvt      _fcvt
16342 #define fdopen    _fdopen
16343 #define fileno    _fileno
16344 #define gcvt      _gcvt
16345 #define getcwd    _getcwd
16346 #define getpid    _getpid
16347 #define getw      _getw
16348 #define isatty    _isatty
16349 #define j0        _j0
16350 #define j1        _j1
16351 #define jn        _jn
16352 #define lfind     _lfind
16353 #define lsearch   _lsearch
16354 #define lseek     _lseek
16355 #define memccpy   _memccpy
16356 #define mkdir     _mkdir
16357 #define mktemp    _mktemp
16358 #define open      _open
16359 #define putenv    _putenv
16360 #define putw      _putw
16361 #define read      _read
16362 #define rmdir     _rmdir
16363 #define strdup    _strdup
16364 #define swab      _swab
16365 #define tempnam   _tempnam
16366 #define tzset     _tzset
16367 #define umask     _umask
16368 #define unlink    _unlink
16369 #define utime     _utime
16370 #define wcsdup    _wcsdup
16371 #define write     _write
16372 #define y0        _y0
16373 #define y1        _y1
16374 #define yn        _yn
16375 #endif
16376 '
16377
16378
16379
16380
16381
16382
16383
16384
16385   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16386 printf %s "checking if environ is properly declared... " >&6; }
16387 if test ${gt_cv_var_environ_declaration+y}
16388 then :
16389   printf %s "(cached) " >&6
16390 else $as_nop
16391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h.  */
16393 #if HAVE_UNISTD_H
16394      #include <unistd.h>
16395      #endif
16396      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
16397      #include <stdlib.h>
16398
16399             extern struct { int foo; } environ;
16400 int
16401 main (void)
16402 {
16403 environ.foo = 1;
16404   ;
16405   return 0;
16406 }
16407 _ACEOF
16408 if ac_fn_c_try_compile "$LINENO"
16409 then :
16410   gt_cv_var_environ_declaration=no
16411 else $as_nop
16412   gt_cv_var_environ_declaration=yes
16413 fi
16414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16415 fi
16416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16417 printf "%s\n" "$gt_cv_var_environ_declaration" >&6; }
16418   if test $gt_cv_var_environ_declaration = yes; then
16419
16420 printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16421
16422   fi
16423
16424
16425   if test $gt_cv_var_environ_declaration != yes; then
16426     HAVE_DECL_ENVIRON=0
16427   fi
16428
16429
16430
16431   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16432 printf %s "checking whether the preprocessor supports include_next... " >&6; }
16433 if test ${gl_cv_have_include_next+y}
16434 then :
16435   printf %s "(cached) " >&6
16436 else $as_nop
16437   rm -rf conftestd1a conftestd1b conftestd2
16438      mkdir conftestd1a conftestd1b conftestd2
16439                                                   cat <<EOF > conftestd1a/conftest.h
16440 #define DEFINED_IN_CONFTESTD1
16441 #include_next <conftest.h>
16442 #ifdef DEFINED_IN_CONFTESTD2
16443 int foo;
16444 #else
16445 #error "include_next doesn't work"
16446 #endif
16447 EOF
16448      cat <<EOF > conftestd1b/conftest.h
16449 #define DEFINED_IN_CONFTESTD1
16450 #include <stdio.h>
16451 #include_next <conftest.h>
16452 #ifdef DEFINED_IN_CONFTESTD2
16453 int foo;
16454 #else
16455 #error "include_next doesn't work"
16456 #endif
16457 EOF
16458      cat <<EOF > conftestd2/conftest.h
16459 #ifndef DEFINED_IN_CONFTESTD1
16460 #error "include_next test doesn't work"
16461 #endif
16462 #define DEFINED_IN_CONFTESTD2
16463 EOF
16464      gl_save_CPPFLAGS="$CPPFLAGS"
16465      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16466      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h.  */
16468 #include <conftest.h>
16469 _ACEOF
16470 if ac_fn_c_try_compile "$LINENO"
16471 then :
16472   gl_cv_have_include_next=yes
16473 else $as_nop
16474   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16475         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h.  */
16477 #include <conftest.h>
16478 _ACEOF
16479 if ac_fn_c_try_compile "$LINENO"
16480 then :
16481   gl_cv_have_include_next=buggy
16482 else $as_nop
16483   gl_cv_have_include_next=no
16484 fi
16485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16486
16487 fi
16488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16489      CPPFLAGS="$gl_save_CPPFLAGS"
16490      rm -rf conftestd1a conftestd1b conftestd2
16491
16492 fi
16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16494 printf "%s\n" "$gl_cv_have_include_next" >&6; }
16495   PRAGMA_SYSTEM_HEADER=
16496   if test $gl_cv_have_include_next = yes; then
16497     INCLUDE_NEXT=include_next
16498     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16499     if test -n "$GCC"; then
16500       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16501     fi
16502   else
16503     if test $gl_cv_have_include_next = buggy; then
16504       INCLUDE_NEXT=include
16505       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16506     else
16507       INCLUDE_NEXT=include
16508       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16509     fi
16510   fi
16511
16512
16513
16514
16515       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
16516 printf %s "checking whether source code line length is unlimited... " >&6; }
16517 if test ${gl_cv_source_line_length_unlimited+y}
16518 then :
16519   printf %s "(cached) " >&6
16520 else $as_nop
16521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h.  */
16523
16524 #ifdef __TANDEM
16525 choke me
16526 #endif
16527
16528 _ACEOF
16529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16530   $EGREP "choke me" >/dev/null 2>&1
16531 then :
16532   gl_cv_source_line_length_unlimited=no
16533 else $as_nop
16534   gl_cv_source_line_length_unlimited=yes
16535 fi
16536 rm -rf conftest*
16537
16538
16539 fi
16540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
16541 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
16542   if test $gl_cv_source_line_length_unlimited = no; then
16543     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16544   else
16545     PRAGMA_COLUMNS=
16546   fi
16547
16548
16549
16550
16551   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16552 printf %s "checking for complete errno.h... " >&6; }
16553 if test ${gl_cv_header_errno_h_complete+y}
16554 then :
16555   printf %s "(cached) " >&6
16556 else $as_nop
16557
16558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h.  */
16560
16561 #include <errno.h>
16562 #if !defined ETXTBSY
16563 booboo
16564 #endif
16565 #if !defined ENOMSG
16566 booboo
16567 #endif
16568 #if !defined EIDRM
16569 booboo
16570 #endif
16571 #if !defined ENOLINK
16572 booboo
16573 #endif
16574 #if !defined EPROTO
16575 booboo
16576 #endif
16577 #if !defined EMULTIHOP
16578 booboo
16579 #endif
16580 #if !defined EBADMSG
16581 booboo
16582 #endif
16583 #if !defined EOVERFLOW
16584 booboo
16585 #endif
16586 #if !defined ENOTSUP
16587 booboo
16588 #endif
16589 #if !defined ENETRESET
16590 booboo
16591 #endif
16592 #if !defined ECONNABORTED
16593 booboo
16594 #endif
16595 #if !defined ESTALE
16596 booboo
16597 #endif
16598 #if !defined EDQUOT
16599 booboo
16600 #endif
16601 #if !defined ECANCELED
16602 booboo
16603 #endif
16604 #if !defined EOWNERDEAD
16605 booboo
16606 #endif
16607 #if !defined ENOTRECOVERABLE
16608 booboo
16609 #endif
16610 #if !defined EILSEQ
16611 booboo
16612 #endif
16613
16614 _ACEOF
16615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16616   $EGREP "booboo" >/dev/null 2>&1
16617 then :
16618   gl_cv_header_errno_h_complete=no
16619 else $as_nop
16620   gl_cv_header_errno_h_complete=yes
16621 fi
16622 rm -rf conftest*
16623
16624
16625 fi
16626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16627 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
16628   if test $gl_cv_header_errno_h_complete = yes; then
16629     ERRNO_H=''
16630   else
16631
16632
16633
16634
16635
16636
16637
16638
16639      if test $gl_cv_have_include_next = yes; then
16640        gl_cv_next_errno_h='<'errno.h'>'
16641      else
16642        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16643 printf %s "checking absolute name of <errno.h>... " >&6; }
16644 if test ${gl_cv_next_errno_h+y}
16645 then :
16646   printf %s "(cached) " >&6
16647 else $as_nop
16648
16649
16650
16651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h.  */
16653 #include <errno.h>
16654 _ACEOF
16655                 case "$host_os" in
16656     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16657     *)    gl_absname_cpp="$ac_cpp" ;;
16658   esac
16659
16660   case "$host_os" in
16661     mingw*)
16662                                           gl_dirsep_regex='[/\\]'
16663       ;;
16664     *)
16665       gl_dirsep_regex='\/'
16666       ;;
16667   esac
16668       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16669   gl_header_literal_regex=`echo 'errno.h' \
16670                            | sed -e "$gl_make_literal_regex_sed"`
16671   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16672       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16673       s|^/[^/]|//&|
16674       p
16675       q
16676     }'
16677
16678         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16679   sed -n "$gl_absolute_header_sed"`
16680
16681            gl_header=$gl_cv_absolute_errno_h
16682            gl_cv_next_errno_h='"'$gl_header'"'
16683
16684
16685 fi
16686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16687 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
16688      fi
16689      NEXT_ERRNO_H=$gl_cv_next_errno_h
16690
16691      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16692        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16693        gl_next_as_first_directive='<'errno.h'>'
16694      else
16695        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16696        gl_next_as_first_directive=$gl_cv_next_errno_h
16697      fi
16698      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16699
16700
16701
16702
16703     ERRNO_H='errno.h'
16704   fi
16705
16706    if test -n "$ERRNO_H"; then
16707   GL_GENERATE_ERRNO_H_TRUE=
16708   GL_GENERATE_ERRNO_H_FALSE='#'
16709 else
16710   GL_GENERATE_ERRNO_H_TRUE='#'
16711   GL_GENERATE_ERRNO_H_FALSE=
16712 fi
16713
16714
16715   if test -n "$ERRNO_H"; then
16716     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16717 printf %s "checking for EMULTIHOP value... " >&6; }
16718 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
16719 then :
16720   printf %s "(cached) " >&6
16721 else $as_nop
16722
16723       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h.  */
16725
16726 #include <errno.h>
16727 #ifdef EMULTIHOP
16728 yes
16729 #endif
16730
16731 _ACEOF
16732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16733   $EGREP "yes" >/dev/null 2>&1
16734 then :
16735   gl_cv_header_errno_h_EMULTIHOP=yes
16736 else $as_nop
16737   gl_cv_header_errno_h_EMULTIHOP=no
16738 fi
16739 rm -rf conftest*
16740
16741       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16742         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743 /* end confdefs.h.  */
16744
16745 #define _XOPEN_SOURCE_EXTENDED 1
16746 #include <errno.h>
16747 #ifdef EMULTIHOP
16748 yes
16749 #endif
16750
16751 _ACEOF
16752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16753   $EGREP "yes" >/dev/null 2>&1
16754 then :
16755   gl_cv_header_errno_h_EMULTIHOP=hidden
16756 fi
16757 rm -rf conftest*
16758
16759         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16760                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
16761 #define _XOPEN_SOURCE_EXTENDED 1
16762 #include <errno.h>
16763 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16764 #include <stdio.h>
16765 #include <stdlib.h>
16766 "
16767 then :
16768
16769 fi
16770
16771         fi
16772       fi
16773
16774 fi
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16776 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16777     case $gl_cv_header_errno_h_EMULTIHOP in
16778       yes | no)
16779         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16780         ;;
16781       *)
16782         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16783         ;;
16784     esac
16785
16786
16787   fi
16788
16789
16790   if test -n "$ERRNO_H"; then
16791     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16792 printf %s "checking for ENOLINK value... " >&6; }
16793 if test ${gl_cv_header_errno_h_ENOLINK+y}
16794 then :
16795   printf %s "(cached) " >&6
16796 else $as_nop
16797
16798       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h.  */
16800
16801 #include <errno.h>
16802 #ifdef ENOLINK
16803 yes
16804 #endif
16805
16806 _ACEOF
16807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16808   $EGREP "yes" >/dev/null 2>&1
16809 then :
16810   gl_cv_header_errno_h_ENOLINK=yes
16811 else $as_nop
16812   gl_cv_header_errno_h_ENOLINK=no
16813 fi
16814 rm -rf conftest*
16815
16816       if test $gl_cv_header_errno_h_ENOLINK = no; then
16817         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h.  */
16819
16820 #define _XOPEN_SOURCE_EXTENDED 1
16821 #include <errno.h>
16822 #ifdef ENOLINK
16823 yes
16824 #endif
16825
16826 _ACEOF
16827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16828   $EGREP "yes" >/dev/null 2>&1
16829 then :
16830   gl_cv_header_errno_h_ENOLINK=hidden
16831 fi
16832 rm -rf conftest*
16833
16834         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16835                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
16836 #define _XOPEN_SOURCE_EXTENDED 1
16837 #include <errno.h>
16838 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16839 #include <stdio.h>
16840 #include <stdlib.h>
16841 "
16842 then :
16843
16844 fi
16845
16846         fi
16847       fi
16848
16849 fi
16850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16851 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
16852     case $gl_cv_header_errno_h_ENOLINK in
16853       yes | no)
16854         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16855         ;;
16856       *)
16857         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16858         ;;
16859     esac
16860
16861
16862   fi
16863
16864
16865   if test -n "$ERRNO_H"; then
16866     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16867 printf %s "checking for EOVERFLOW value... " >&6; }
16868 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
16869 then :
16870   printf %s "(cached) " >&6
16871 else $as_nop
16872
16873       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h.  */
16875
16876 #include <errno.h>
16877 #ifdef EOVERFLOW
16878 yes
16879 #endif
16880
16881 _ACEOF
16882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16883   $EGREP "yes" >/dev/null 2>&1
16884 then :
16885   gl_cv_header_errno_h_EOVERFLOW=yes
16886 else $as_nop
16887   gl_cv_header_errno_h_EOVERFLOW=no
16888 fi
16889 rm -rf conftest*
16890
16891       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16892         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h.  */
16894
16895 #define _XOPEN_SOURCE_EXTENDED 1
16896 #include <errno.h>
16897 #ifdef EOVERFLOW
16898 yes
16899 #endif
16900
16901 _ACEOF
16902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16903   $EGREP "yes" >/dev/null 2>&1
16904 then :
16905   gl_cv_header_errno_h_EOVERFLOW=hidden
16906 fi
16907 rm -rf conftest*
16908
16909         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16910                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
16911 #define _XOPEN_SOURCE_EXTENDED 1
16912 #include <errno.h>
16913 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16914 #include <stdio.h>
16915 #include <stdlib.h>
16916 "
16917 then :
16918
16919 fi
16920
16921         fi
16922       fi
16923
16924 fi
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16926 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16927     case $gl_cv_header_errno_h_EOVERFLOW in
16928       yes | no)
16929         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16930         ;;
16931       *)
16932         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16933         ;;
16934     esac
16935
16936
16937   fi
16938
16939
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16941 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16942 if test ${ac_cv_c_undeclared_builtin_options+y}
16943 then :
16944   printf %s "(cached) " >&6
16945 else $as_nop
16946   ac_save_CFLAGS=$CFLAGS
16947    ac_cv_c_undeclared_builtin_options='cannot detect'
16948    for ac_arg in '' -fno-builtin; do
16949      CFLAGS="$ac_save_CFLAGS $ac_arg"
16950      # This test program should *not* compile successfully.
16951      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952 /* end confdefs.h.  */
16953
16954 int
16955 main (void)
16956 {
16957 (void) strchr;
16958   ;
16959   return 0;
16960 }
16961 _ACEOF
16962 if ac_fn_c_try_compile "$LINENO"
16963 then :
16964
16965 else $as_nop
16966   # This test program should compile successfully.
16967         # No library function is consistently available on
16968         # freestanding implementations, so test against a dummy
16969         # declaration.  Include always-available headers on the
16970         # off chance that they somehow elicit warnings.
16971         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h.  */
16973 #include <float.h>
16974 #include <limits.h>
16975 #include <stdarg.h>
16976 #include <stddef.h>
16977 extern void ac_decl (int, char *);
16978
16979 int
16980 main (void)
16981 {
16982 (void) ac_decl (0, (char *) 0);
16983   (void) ac_decl;
16984
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 if ac_fn_c_try_compile "$LINENO"
16990 then :
16991   if test x"$ac_arg" = x
16992 then :
16993   ac_cv_c_undeclared_builtin_options='none needed'
16994 else $as_nop
16995   ac_cv_c_undeclared_builtin_options=$ac_arg
16996 fi
16997           break
16998 fi
16999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17000 fi
17001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17002     done
17003     CFLAGS=$ac_save_CFLAGS
17004
17005 fi
17006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
17007 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
17008   case $ac_cv_c_undeclared_builtin_options in #(
17009   'cannot detect') :
17010     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17011 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17012 as_fn_error $? "cannot make $CC report undeclared builtins
17013 See \`config.log' for more details" "$LINENO" 5; } ;; #(
17014   'none needed') :
17015     ac_c_undeclared_builtin_options='' ;; #(
17016   *) :
17017     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
17018 esac
17019
17020 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17021 if test "x$ac_cv_have_decl_strerror_r" = xyes
17022 then :
17023   ac_have_decl=1
17024 else $as_nop
17025   ac_have_decl=0
17026 fi
17027 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
17028
17029
17030 if test $ac_cv_have_decl_strerror_r = yes; then
17031   # For backward compatibility's sake, define HAVE_STRERROR_R.
17032   # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
17033   # as AC_CHECK_DECLS_ONCE.)
17034
17035 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
17036
17037 fi
17038
17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17040 printf %s "checking whether strerror_r returns char *... " >&6; }
17041 if test ${ac_cv_func_strerror_r_char_p+y}
17042 then :
17043   printf %s "(cached) " >&6
17044 else $as_nop
17045
17046     ac_cv_func_strerror_r_char_p=no
17047     if test $ac_cv_have_decl_strerror_r = yes; then
17048       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h.  */
17050 #include <string.h>
17051 int
17052 main (void)
17053 {
17054
17055           char buf[100];
17056           char x = *strerror_r (0, buf, sizeof buf);
17057           char *p = strerror_r (0, buf, sizeof buf);
17058           return !p || x;
17059
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 if ac_fn_c_try_compile "$LINENO"
17065 then :
17066   ac_cv_func_strerror_r_char_p=yes
17067 fi
17068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17069
17070     fi
17071
17072 fi
17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17074 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
17075 if test $ac_cv_func_strerror_r_char_p = yes; then
17076
17077 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17078
17079 fi
17080
17081
17082   XGETTEXT_EXTRA_OPTIONS=
17083
17084
17085
17086
17087
17088   GNULIB_CREAT=0;
17089   GNULIB_FCNTL=0;
17090   GNULIB_NONBLOCKING=0;
17091   GNULIB_OPEN=0;
17092   GNULIB_OPENAT=0;
17093     HAVE_FCNTL=1;
17094   HAVE_OPENAT=1;
17095   REPLACE_CREAT=0;
17096   REPLACE_FCNTL=0;
17097   REPLACE_OPEN=0;
17098   REPLACE_OPENAT=0;
17099
17100
17101
17102
17103
17104
17105
17106
17107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
17108 printf %s "checking for working fcntl.h... " >&6; }
17109 if test ${gl_cv_header_working_fcntl_h+y}
17110 then :
17111   printf %s "(cached) " >&6
17112 else $as_nop
17113   if test "$cross_compiling" = yes
17114 then :
17115   case "$host_os" in
17116                   # Guess 'no' on native Windows.
17117           mingw*) gl_cv_header_working_fcntl_h='no' ;;
17118           *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
17119         esac
17120
17121 else $as_nop
17122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h.  */
17124 #include <sys/types.h>
17125            #include <sys/stat.h>
17126            #if HAVE_UNISTD_H
17127            # include <unistd.h>
17128            #else /* on Windows with MSVC */
17129            # include <io.h>
17130            # include <stdlib.h>
17131            # defined sleep(n) _sleep ((n) * 1000)
17132            #endif
17133            #include <fcntl.h>
17134
17135
17136 $gl_mda_defines
17137
17138            #ifndef O_NOATIME
17139             #define O_NOATIME 0
17140            #endif
17141            #ifndef O_NOFOLLOW
17142             #define O_NOFOLLOW 0
17143            #endif
17144            static int const constants[] =
17145             {
17146               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
17147               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
17148             };
17149
17150 int
17151 main (void)
17152 {
17153
17154             int result = !constants;
17155             #if HAVE_SYMLINK
17156             {
17157               static char const sym[] = "conftest.sym";
17158               if (symlink ("/dev/null", sym) != 0)
17159                 result |= 2;
17160               else
17161                 {
17162                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
17163                   if (fd >= 0)
17164                     {
17165                       close (fd);
17166                       result |= 4;
17167                     }
17168                 }
17169               if (unlink (sym) != 0 || symlink (".", sym) != 0)
17170                 result |= 2;
17171               else
17172                 {
17173                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
17174                   if (fd >= 0)
17175                     {
17176                       close (fd);
17177                       result |= 4;
17178                     }
17179                 }
17180               unlink (sym);
17181             }
17182             #endif
17183             {
17184               static char const file[] = "confdefs.h";
17185               int fd = open (file, O_RDONLY | O_NOATIME);
17186               if (fd < 0)
17187                 result |= 8;
17188               else
17189                 {
17190                   struct stat st0;
17191                   if (fstat (fd, &st0) != 0)
17192                     result |= 16;
17193                   else
17194                     {
17195                       char c;
17196                       sleep (1);
17197                       if (read (fd, &c, 1) != 1)
17198                         result |= 24;
17199                       else
17200                         {
17201                           if (close (fd) != 0)
17202                             result |= 32;
17203                           else
17204                             {
17205                               struct stat st1;
17206                               if (stat (file, &st1) != 0)
17207                                 result |= 40;
17208                               else
17209                                 if (st0.st_atime != st1.st_atime)
17210                                   result |= 64;
17211                             }
17212                         }
17213                     }
17214                 }
17215             }
17216             return result;
17217   ;
17218   return 0;
17219 }
17220 _ACEOF
17221 if ac_fn_c_try_run "$LINENO"
17222 then :
17223   gl_cv_header_working_fcntl_h=yes
17224 else $as_nop
17225   case $? in #(
17226         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
17227         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
17228         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
17229          *) gl_cv_header_working_fcntl_h='no';;
17230         esac
17231 fi
17232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17233   conftest.$ac_objext conftest.beam conftest.$ac_ext
17234 fi
17235
17236
17237 fi
17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
17239 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
17240
17241   case $gl_cv_header_working_fcntl_h in #(
17242   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
17243   *) ac_val=1;;
17244   esac
17245
17246 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
17247
17248
17249   case $gl_cv_header_working_fcntl_h in #(
17250   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
17251   *) ac_val=1;;
17252   esac
17253
17254 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
17255
17256
17257
17258   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
17259 "
17260 if test "x$ac_cv_type_pid_t" = xyes
17261 then :
17262
17263 else $as_nop
17264                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h.  */
17266
17267           #if defined _WIN64 && !defined __CYGWIN__
17268           LLP64
17269           #endif
17270
17271 int
17272 main (void)
17273 {
17274
17275   ;
17276   return 0;
17277 }
17278
17279 _ACEOF
17280 if ac_fn_c_try_compile "$LINENO"
17281 then :
17282   ac_pid_type='int'
17283 else $as_nop
17284   ac_pid_type='__int64'
17285 fi
17286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17287
17288 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
17289
17290
17291 fi
17292
17293
17294 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17295 if test "x$ac_cv_type_mode_t" = xyes
17296 then :
17297
17298 else $as_nop
17299
17300 printf "%s\n" "#define mode_t int" >>confdefs.h
17301
17302 fi
17303
17304
17305      GNULIB_FCHMODAT=0;
17306   GNULIB_FSTAT=0;
17307   GNULIB_FSTATAT=0;
17308   GNULIB_FUTIMENS=0;
17309   GNULIB_GETUMASK=0;
17310   GNULIB_LCHMOD=0;
17311   GNULIB_LSTAT=0;
17312   GNULIB_MKDIRAT=0;
17313   GNULIB_MKFIFO=0;
17314   GNULIB_MKFIFOAT=0;
17315   GNULIB_MKNOD=0;
17316   GNULIB_MKNODAT=0;
17317   GNULIB_STAT=0;
17318   GNULIB_UTIMENSAT=0;
17319   GNULIB_OVERRIDES_STRUCT_STAT=0;
17320     HAVE_FCHMODAT=1;
17321   HAVE_FSTATAT=1;
17322   HAVE_FUTIMENS=1;
17323   HAVE_GETUMASK=1;
17324   HAVE_LCHMOD=1;
17325   HAVE_LSTAT=1;
17326   HAVE_MKDIRAT=1;
17327   HAVE_MKFIFO=1;
17328   HAVE_MKFIFOAT=1;
17329   HAVE_MKNOD=1;
17330   HAVE_MKNODAT=1;
17331   HAVE_UTIMENSAT=1;
17332   REPLACE_FCHMODAT=0;
17333   REPLACE_FSTAT=0;
17334   REPLACE_FSTATAT=0;
17335   REPLACE_FUTIMENS=0;
17336   REPLACE_LSTAT=0;
17337   REPLACE_MKDIR=0;
17338   REPLACE_MKFIFO=0;
17339   REPLACE_MKNOD=0;
17340   REPLACE_STAT=0;
17341   REPLACE_UTIMENSAT=0;
17342
17343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
17344 printf %s "checking whether stat file-mode macros are broken... " >&6; }
17345 if test ${ac_cv_header_stat_broken+y}
17346 then :
17347   printf %s "(cached) " >&6
17348 else $as_nop
17349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h.  */
17351 #include <sys/types.h>
17352 #include <sys/stat.h>
17353
17354 #if defined S_ISBLK && defined S_IFDIR
17355 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
17356 #endif
17357
17358 #if defined S_ISBLK && defined S_IFCHR
17359 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
17360 #endif
17361
17362 #if defined S_ISLNK && defined S_IFREG
17363 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
17364 #endif
17365
17366 #if defined S_ISSOCK && defined S_IFREG
17367 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
17368 #endif
17369
17370 _ACEOF
17371 if ac_fn_c_try_compile "$LINENO"
17372 then :
17373   ac_cv_header_stat_broken=no
17374 else $as_nop
17375   ac_cv_header_stat_broken=yes
17376 fi
17377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17378 fi
17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
17380 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
17381 if test $ac_cv_header_stat_broken = yes; then
17382
17383 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
17384
17385 fi
17386
17387
17388
17389   case "$host_os" in
17390     mingw*)
17391                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17392 printf %s "checking for 64-bit off_t... " >&6; }
17393 if test ${gl_cv_type_off_t_64+y}
17394 then :
17395   printf %s "(cached) " >&6
17396 else $as_nop
17397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h.  */
17399 #include <sys/types.h>
17400                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17401
17402 int
17403 main (void)
17404 {
17405
17406   ;
17407   return 0;
17408 }
17409 _ACEOF
17410 if ac_fn_c_try_compile "$LINENO"
17411 then :
17412   gl_cv_type_off_t_64=yes
17413 else $as_nop
17414   gl_cv_type_off_t_64=no
17415 fi
17416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17417
17418 fi
17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17420 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
17421       if test $gl_cv_type_off_t_64 = no; then
17422         WINDOWS_64_BIT_OFF_T=1
17423       else
17424         WINDOWS_64_BIT_OFF_T=0
17425       fi
17426                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
17427 printf %s "checking for 64-bit st_size... " >&6; }
17428 if test ${gl_cv_member_st_size_64+y}
17429 then :
17430   printf %s "(cached) " >&6
17431 else $as_nop
17432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433 /* end confdefs.h.  */
17434 #include <sys/types.h>
17435                 struct stat buf;
17436                 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
17437
17438 int
17439 main (void)
17440 {
17441
17442   ;
17443   return 0;
17444 }
17445 _ACEOF
17446 if ac_fn_c_try_compile "$LINENO"
17447 then :
17448   gl_cv_member_st_size_64=yes
17449 else $as_nop
17450   gl_cv_member_st_size_64=no
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17453
17454 fi
17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
17456 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
17457       if test $gl_cv_member_st_size_64 = no; then
17458         WINDOWS_64_BIT_ST_SIZE=1
17459       else
17460         WINDOWS_64_BIT_ST_SIZE=0
17461       fi
17462       ;;
17463     *)
17464                                                       WINDOWS_64_BIT_OFF_T=0
17465       WINDOWS_64_BIT_ST_SIZE=0
17466       ;;
17467   esac
17468
17469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17470 printf %s "checking for C/C++ restrict keyword... " >&6; }
17471 if test ${ac_cv_c_restrict+y}
17472 then :
17473   printf %s "(cached) " >&6
17474 else $as_nop
17475   ac_cv_c_restrict=no
17476    # The order here caters to the fact that C++ does not require restrict.
17477    for ac_kw in __restrict __restrict__ _Restrict restrict; do
17478      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h.  */
17480 typedef int *int_ptr;
17481            int foo (int_ptr $ac_kw ip) { return ip[0]; }
17482            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
17483            int bar (int ip[$ac_kw]) { return ip[0]; }
17484
17485 int
17486 main (void)
17487 {
17488 int s[1];
17489            int *$ac_kw t = s;
17490            t[0] = 0;
17491            return foo (t) + bar (t);
17492
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 if ac_fn_c_try_compile "$LINENO"
17498 then :
17499   ac_cv_c_restrict=$ac_kw
17500 fi
17501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17502      test "$ac_cv_c_restrict" != no && break
17503    done
17504
17505 fi
17506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17507 printf "%s\n" "$ac_cv_c_restrict" >&6; }
17508
17509  case $ac_cv_c_restrict in
17510    restrict) ;;
17511    no) printf "%s\n" "#define restrict /**/" >>confdefs.h
17512  ;;
17513    *)  printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
17514  ;;
17515  esac
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531      if test $gl_cv_have_include_next = yes; then
17532        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17533      else
17534        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17535 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
17536 if test ${gl_cv_next_sys_stat_h+y}
17537 then :
17538   printf %s "(cached) " >&6
17539 else $as_nop
17540
17541              if test $ac_cv_header_sys_stat_h = yes; then
17542
17543
17544
17545
17546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h.  */
17548 #include <sys/stat.h>
17549 _ACEOF
17550                 case "$host_os" in
17551     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17552     *)    gl_absname_cpp="$ac_cpp" ;;
17553   esac
17554
17555   case "$host_os" in
17556     mingw*)
17557                                           gl_dirsep_regex='[/\\]'
17558       ;;
17559     *)
17560       gl_dirsep_regex='\/'
17561       ;;
17562   esac
17563       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17564   gl_header_literal_regex=`echo 'sys/stat.h' \
17565                            | sed -e "$gl_make_literal_regex_sed"`
17566   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17567       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17568       s|^/[^/]|//&|
17569       p
17570       q
17571     }'
17572
17573         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17574   sed -n "$gl_absolute_header_sed"`
17575
17576            gl_header=$gl_cv_absolute_sys_stat_h
17577            gl_cv_next_sys_stat_h='"'$gl_header'"'
17578           else
17579                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17580              fi
17581
17582
17583 fi
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17585 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
17586      fi
17587      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17588
17589      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17590        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17591        gl_next_as_first_directive='<'sys/stat.h'>'
17592      else
17593        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17594        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17595      fi
17596      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17597
17598
17599
17600
17601
17602
17603
17604
17605     WINDOWS_STAT_TIMESPEC=0
17606
17607
17608
17609
17610
17611
17612
17613
17614       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17615      #include <sys/stat.h>
17616 "
17617 if test "x$ac_cv_type_nlink_t" = xyes
17618 then :
17619
17620 else $as_nop
17621
17622 printf "%s\n" "#define nlink_t int" >>confdefs.h
17623
17624 fi
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635   case "$host_os" in
17636     mingw*)
17637       ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
17638 if test "x$ac_cv_header_sdkddkver_h" = xyes
17639 then :
17640   printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
17641
17642 fi
17643
17644       ;;
17645   esac
17646
17647
17648 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17649 if test "x$ac_cv_have_decl_getdtablesize" = xyes
17650 then :
17651   ac_have_decl=1
17652 else $as_nop
17653   ac_have_decl=0
17654 fi
17655 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
17656
17657
17658
17659
17660   GNULIB_GETRANDOM=0;
17661     HAVE_GETRANDOM=1;
17662   REPLACE_GETRANDOM=0;
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676      if test $gl_cv_have_include_next = yes; then
17677        gl_cv_next_limits_h='<'limits.h'>'
17678      else
17679        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
17680 printf %s "checking absolute name of <limits.h>... " >&6; }
17681 if test ${gl_cv_next_limits_h+y}
17682 then :
17683   printf %s "(cached) " >&6
17684 else $as_nop
17685
17686              if test $ac_cv_header_limits_h = yes; then
17687
17688
17689
17690
17691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h.  */
17693 #include <limits.h>
17694 _ACEOF
17695                 case "$host_os" in
17696     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17697     *)    gl_absname_cpp="$ac_cpp" ;;
17698   esac
17699
17700   case "$host_os" in
17701     mingw*)
17702                                           gl_dirsep_regex='[/\\]'
17703       ;;
17704     *)
17705       gl_dirsep_regex='\/'
17706       ;;
17707   esac
17708       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17709   gl_header_literal_regex=`echo 'limits.h' \
17710                            | sed -e "$gl_make_literal_regex_sed"`
17711   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17712       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17713       s|^/[^/]|//&|
17714       p
17715       q
17716     }'
17717
17718         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17719   sed -n "$gl_absolute_header_sed"`
17720
17721            gl_header=$gl_cv_absolute_limits_h
17722            gl_cv_next_limits_h='"'$gl_header'"'
17723           else
17724                gl_cv_next_limits_h='<'limits.h'>'
17725              fi
17726
17727
17728 fi
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
17730 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
17731      fi
17732      NEXT_LIMITS_H=$gl_cv_next_limits_h
17733
17734      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17735        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17736        gl_next_as_first_directive='<'limits.h'>'
17737      else
17738        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17739        gl_next_as_first_directive=$gl_cv_next_limits_h
17740      fi
17741      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
17742
17743
17744
17745
17746
17747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
17748 printf %s "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
17749 if test ${gl_cv_header_limits_width+y}
17750 then :
17751   printf %s "(cached) " >&6
17752 else $as_nop
17753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h.  */
17755 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17756              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17757             #endif
17758             #include <limits.h>
17759             long long llm = LLONG_MAX;
17760             int wb = WORD_BIT;
17761             int ullw = ULLONG_WIDTH;
17762
17763 int
17764 main (void)
17765 {
17766
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 if ac_fn_c_try_compile "$LINENO"
17772 then :
17773   gl_cv_header_limits_width=yes
17774 else $as_nop
17775   gl_cv_header_limits_width=no
17776 fi
17777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17778 fi
17779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
17780 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
17781   if test "$gl_cv_header_limits_width" = yes; then
17782     LIMITS_H=
17783   else
17784     LIMITS_H=limits.h
17785   fi
17786
17787    if test -n "$LIMITS_H"; then
17788   GL_GENERATE_LIMITS_H_TRUE=
17789   GL_GENERATE_LIMITS_H_FALSE='#'
17790 else
17791   GL_GENERATE_LIMITS_H_TRUE='#'
17792   GL_GENERATE_LIMITS_H_FALSE=
17793 fi
17794
17795
17796
17797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
17798 printf %s "checking for wint_t... " >&6; }
17799 if test ${gt_cv_c_wint_t+y}
17800 then :
17801   printf %s "(cached) " >&6
17802 else $as_nop
17803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804 /* end confdefs.h.  */
17805
17806 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17807    <wchar.h>.
17808    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
17809    before <wchar.h>.  */
17810 #include <stddef.h>
17811 #include <stdio.h>
17812 #include <time.h>
17813 #include <wchar.h>
17814             wint_t foo = (wchar_t)'\0';
17815 int
17816 main (void)
17817 {
17818
17819   ;
17820   return 0;
17821 }
17822 _ACEOF
17823 if ac_fn_c_try_compile "$LINENO"
17824 then :
17825   gt_cv_c_wint_t=yes
17826 else $as_nop
17827   gt_cv_c_wint_t=no
17828 fi
17829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17830 fi
17831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
17832 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
17833   if test $gt_cv_c_wint_t = yes; then
17834
17835 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
17836
17837
17838             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
17839 printf %s "checking whether wint_t is large enough... " >&6; }
17840 if test ${gl_cv_type_wint_t_large_enough+y}
17841 then :
17842   printf %s "(cached) " >&6
17843 else $as_nop
17844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h.  */
17846
17847 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17848    <wchar.h>.
17849    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17850    included before <wchar.h>.  */
17851 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17852 # include <stddef.h>
17853 # include <stdio.h>
17854 # include <time.h>
17855 #endif
17856 #include <wchar.h>
17857             int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
17858
17859 int
17860 main (void)
17861 {
17862
17863   ;
17864   return 0;
17865 }
17866 _ACEOF
17867 if ac_fn_c_try_compile "$LINENO"
17868 then :
17869   gl_cv_type_wint_t_large_enough=yes
17870 else $as_nop
17871   gl_cv_type_wint_t_large_enough=no
17872 fi
17873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17874 fi
17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
17876 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
17877     if test $gl_cv_type_wint_t_large_enough = no; then
17878       GNULIB_OVERRIDES_WINT_T=1
17879     else
17880       GNULIB_OVERRIDES_WINT_T=0
17881     fi
17882   else
17883     GNULIB_OVERRIDES_WINT_T=0
17884   fi
17885
17886
17887
17888
17889     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
17890 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
17891 if test ${gl_cv_c_multiarch+y}
17892 then :
17893   printf %s "(cached) " >&6
17894 else $as_nop
17895   gl_cv_c_multiarch=no
17896      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h.  */
17898 #ifndef __APPLE_CC__
17899             not a universal capable compiler
17900            #endif
17901            typedef int dummy;
17902
17903 _ACEOF
17904 if ac_fn_c_try_compile "$LINENO"
17905 then :
17906
17907                         arch=
17908         prev=
17909         for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17910           if test -n "$prev"; then
17911             case $word in
17912               i?86 | x86_64 | ppc | ppc64 | arm | arm64)
17913                 if test -z "$arch" || test "$arch" = "$word"; then
17914                   arch="$word"
17915                 else
17916                   gl_cv_c_multiarch=yes
17917                 fi
17918                 ;;
17919             esac
17920             prev=
17921           else
17922             if test "x$word" = "x-arch"; then
17923               prev=arch
17924             fi
17925           fi
17926         done
17927
17928 fi
17929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17930
17931 fi
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
17933 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
17934   if test $gl_cv_c_multiarch = yes; then
17935     APPLE_UNIVERSAL_BUILD=1
17936   else
17937     APPLE_UNIVERSAL_BUILD=0
17938   fi
17939
17940
17941
17942
17943
17944
17945
17946
17947 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17948
17949
17950 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17951
17952
17953
17954   if test $ac_cv_header_wchar_h = yes; then
17955     HAVE_WCHAR_H=1
17956   else
17957     HAVE_WCHAR_H=0
17958   fi
17959
17960
17961       if test $ac_cv_header_inttypes_h = yes; then
17962     HAVE_INTTYPES_H=1
17963   else
17964     HAVE_INTTYPES_H=0
17965   fi
17966
17967
17968       if test $ac_cv_header_sys_types_h = yes; then
17969     HAVE_SYS_TYPES_H=1
17970   else
17971     HAVE_SYS_TYPES_H=0
17972   fi
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984      if test $gl_cv_have_include_next = yes; then
17985        gl_cv_next_stdint_h='<'stdint.h'>'
17986      else
17987        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17988 printf %s "checking absolute name of <stdint.h>... " >&6; }
17989 if test ${gl_cv_next_stdint_h+y}
17990 then :
17991   printf %s "(cached) " >&6
17992 else $as_nop
17993
17994              if test $ac_cv_header_stdint_h = yes; then
17995
17996
17997
17998
17999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h.  */
18001 #include <stdint.h>
18002 _ACEOF
18003                 case "$host_os" in
18004     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18005     *)    gl_absname_cpp="$ac_cpp" ;;
18006   esac
18007
18008   case "$host_os" in
18009     mingw*)
18010                                           gl_dirsep_regex='[/\\]'
18011       ;;
18012     *)
18013       gl_dirsep_regex='\/'
18014       ;;
18015   esac
18016       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18017   gl_header_literal_regex=`echo 'stdint.h' \
18018                            | sed -e "$gl_make_literal_regex_sed"`
18019   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18020       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18021       s|^/[^/]|//&|
18022       p
18023       q
18024     }'
18025
18026         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18027   sed -n "$gl_absolute_header_sed"`
18028
18029            gl_header=$gl_cv_absolute_stdint_h
18030            gl_cv_next_stdint_h='"'$gl_header'"'
18031           else
18032                gl_cv_next_stdint_h='<'stdint.h'>'
18033              fi
18034
18035
18036 fi
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18038 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
18039      fi
18040      NEXT_STDINT_H=$gl_cv_next_stdint_h
18041
18042      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18043        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18044        gl_next_as_first_directive='<'stdint.h'>'
18045      else
18046        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18047        gl_next_as_first_directive=$gl_cv_next_stdint_h
18048      fi
18049      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18050
18051
18052
18053
18054   if test $ac_cv_header_stdint_h = yes; then
18055     HAVE_STDINT_H=1
18056   else
18057     HAVE_STDINT_H=0
18058   fi
18059
18060
18061     if test $ac_cv_header_stdint_h = yes; then
18062     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18063 printf %s "checking whether stdint.h conforms to C99... " >&6; }
18064 if test ${gl_cv_header_working_stdint_h+y}
18065 then :
18066   printf %s "(cached) " >&6
18067 else $as_nop
18068   gl_cv_header_working_stdint_h=no
18069        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h.  */
18071
18072
18073 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18074 #define __STDC_CONSTANT_MACROS 1
18075 #define __STDC_LIMIT_MACROS 1
18076 #include <stdint.h>
18077 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
18078 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18079 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18080 #endif
18081
18082
18083   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18084      included before <wchar.h>.  */
18085   #include <stddef.h>
18086   #include <signal.h>
18087   #if HAVE_WCHAR_H
18088   # include <stdio.h>
18089   # include <time.h>
18090   # include <wchar.h>
18091   #endif
18092
18093
18094 #ifdef INT8_MAX
18095 int8_t a1 = INT8_MAX;
18096 int8_t a1min = INT8_MIN;
18097 #endif
18098 #ifdef INT16_MAX
18099 int16_t a2 = INT16_MAX;
18100 int16_t a2min = INT16_MIN;
18101 #endif
18102 #ifdef INT32_MAX
18103 int32_t a3 = INT32_MAX;
18104 int32_t a3min = INT32_MIN;
18105 #endif
18106 #ifdef INT64_MAX
18107 int64_t a4 = INT64_MAX;
18108 int64_t a4min = INT64_MIN;
18109 #endif
18110 #ifdef UINT8_MAX
18111 uint8_t b1 = UINT8_MAX;
18112 #else
18113 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18114 #endif
18115 #ifdef UINT16_MAX
18116 uint16_t b2 = UINT16_MAX;
18117 #endif
18118 #ifdef UINT32_MAX
18119 uint32_t b3 = UINT32_MAX;
18120 #endif
18121 #ifdef UINT64_MAX
18122 uint64_t b4 = UINT64_MAX;
18123 #endif
18124 int_least8_t c1 = INT8_C (0x7f);
18125 int_least8_t c1max = INT_LEAST8_MAX;
18126 int_least8_t c1min = INT_LEAST8_MIN;
18127 int_least16_t c2 = INT16_C (0x7fff);
18128 int_least16_t c2max = INT_LEAST16_MAX;
18129 int_least16_t c2min = INT_LEAST16_MIN;
18130 int_least32_t c3 = INT32_C (0x7fffffff);
18131 int_least32_t c3max = INT_LEAST32_MAX;
18132 int_least32_t c3min = INT_LEAST32_MIN;
18133 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18134 int_least64_t c4max = INT_LEAST64_MAX;
18135 int_least64_t c4min = INT_LEAST64_MIN;
18136 uint_least8_t d1 = UINT8_C (0xff);
18137 uint_least8_t d1max = UINT_LEAST8_MAX;
18138 uint_least16_t d2 = UINT16_C (0xffff);
18139 uint_least16_t d2max = UINT_LEAST16_MAX;
18140 uint_least32_t d3 = UINT32_C (0xffffffff);
18141 uint_least32_t d3max = UINT_LEAST32_MAX;
18142 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18143 uint_least64_t d4max = UINT_LEAST64_MAX;
18144 int_fast8_t e1 = INT_FAST8_MAX;
18145 int_fast8_t e1min = INT_FAST8_MIN;
18146 int_fast16_t e2 = INT_FAST16_MAX;
18147 int_fast16_t e2min = INT_FAST16_MIN;
18148 int_fast32_t e3 = INT_FAST32_MAX;
18149 int_fast32_t e3min = INT_FAST32_MIN;
18150 int_fast64_t e4 = INT_FAST64_MAX;
18151 int_fast64_t e4min = INT_FAST64_MIN;
18152 uint_fast8_t f1 = UINT_FAST8_MAX;
18153 uint_fast16_t f2 = UINT_FAST16_MAX;
18154 uint_fast32_t f3 = UINT_FAST32_MAX;
18155 uint_fast64_t f4 = UINT_FAST64_MAX;
18156 #ifdef INTPTR_MAX
18157 intptr_t g = INTPTR_MAX;
18158 intptr_t gmin = INTPTR_MIN;
18159 #endif
18160 #ifdef UINTPTR_MAX
18161 uintptr_t h = UINTPTR_MAX;
18162 #endif
18163 intmax_t i = INTMAX_MAX;
18164 uintmax_t j = UINTMAX_MAX;
18165
18166 /* Check that SIZE_MAX has the correct type, if possible.  */
18167 #if 201112 <= __STDC_VERSION__
18168 int k = _Generic (SIZE_MAX, size_t: 0);
18169 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
18170        || (0x5110 <= __SUNPRO_C && !__STDC__))
18171 extern size_t k;
18172 extern __typeof__ (SIZE_MAX) k;
18173 #endif
18174
18175 #include <limits.h> /* for CHAR_BIT */
18176 #define TYPE_MINIMUM(t) \
18177   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18178 #define TYPE_MAXIMUM(t) \
18179   ((t) ((t) 0 < (t) -1 \
18180         ? (t) -1 \
18181         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18182 struct s {
18183   int check_PTRDIFF:
18184       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18185       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18186       ? 1 : -1;
18187   /* Detect bug in FreeBSD 6.0 / ia64.  */
18188   int check_SIG_ATOMIC:
18189       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18190       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18191       ? 1 : -1;
18192   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18193   int check_WCHAR:
18194       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18195       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18196       ? 1 : -1;
18197   /* Detect bug in mingw.  */
18198   int check_WINT:
18199       WINT_MIN == TYPE_MINIMUM (wint_t)
18200       && WINT_MAX == TYPE_MAXIMUM (wint_t)
18201       ? 1 : -1;
18202
18203   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
18204   int check_UINT8_C:
18205         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18206   int check_UINT16_C:
18207         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18208
18209   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
18210 #ifdef UINT8_MAX
18211   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18212 #endif
18213 #ifdef UINT16_MAX
18214   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18215 #endif
18216 #ifdef UINT32_MAX
18217   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18218 #endif
18219 #ifdef UINT64_MAX
18220   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18221 #endif
18222   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18223   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18224   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18225   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18226   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18227   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18228   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18229   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18230   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18231   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18232   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18233 };
18234
18235 int
18236 main (void)
18237 {
18238
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 if ac_fn_c_try_compile "$LINENO"
18244 then :
18245                                                     if test "$cross_compiling" = yes
18246 then :
18247   case "$host_os" in
18248                          # Guess yes on native Windows.
18249                  mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
18250                          # In general, assume it works.
18251                  *)      gl_cv_header_working_stdint_h="guessing yes" ;;
18252                esac
18253
18254 else $as_nop
18255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h.  */
18257
18258
18259 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18260 #define __STDC_CONSTANT_MACROS 1
18261 #define __STDC_LIMIT_MACROS 1
18262 #include <stdint.h>
18263
18264
18265   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18266      included before <wchar.h>.  */
18267   #include <stddef.h>
18268   #include <signal.h>
18269   #if HAVE_WCHAR_H
18270   # include <stdio.h>
18271   # include <time.h>
18272   # include <wchar.h>
18273   #endif
18274
18275
18276 #include <stdio.h>
18277 #include <string.h>
18278 #define MVAL(macro) MVAL1(macro)
18279 #define MVAL1(expression) #expression
18280 static const char *macro_values[] =
18281   {
18282 #ifdef INT8_MAX
18283     MVAL (INT8_MAX),
18284 #endif
18285 #ifdef INT16_MAX
18286     MVAL (INT16_MAX),
18287 #endif
18288 #ifdef INT32_MAX
18289     MVAL (INT32_MAX),
18290 #endif
18291 #ifdef INT64_MAX
18292     MVAL (INT64_MAX),
18293 #endif
18294 #ifdef UINT8_MAX
18295     MVAL (UINT8_MAX),
18296 #endif
18297 #ifdef UINT16_MAX
18298     MVAL (UINT16_MAX),
18299 #endif
18300 #ifdef UINT32_MAX
18301     MVAL (UINT32_MAX),
18302 #endif
18303 #ifdef UINT64_MAX
18304     MVAL (UINT64_MAX),
18305 #endif
18306     NULL
18307   };
18308
18309 int
18310 main (void)
18311 {
18312
18313   const char **mv;
18314   for (mv = macro_values; *mv != NULL; mv++)
18315     {
18316       const char *value = *mv;
18317       /* Test whether it looks like a cast expression.  */
18318       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18319           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18320           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18321           || strncmp (value, "((int)"/*)*/, 6) == 0
18322           || strncmp (value, "((signed short)"/*)*/, 15) == 0
18323           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18324         return mv - macro_values + 1;
18325     }
18326   return 0;
18327
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 if ac_fn_c_try_run "$LINENO"
18333 then :
18334   gl_cv_header_working_stdint_h=yes
18335 fi
18336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18337   conftest.$ac_objext conftest.beam conftest.$ac_ext
18338 fi
18339
18340
18341 fi
18342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18343
18344 fi
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18346 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
18347   fi
18348
18349   HAVE_C99_STDINT_H=0
18350   HAVE_SYS_BITYPES_H=0
18351   HAVE_SYS_INTTYPES_H=0
18352   STDINT_H=stdint.h
18353   case "$gl_cv_header_working_stdint_h" in
18354     *yes)
18355       HAVE_C99_STDINT_H=1
18356                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
18357 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
18358 if test ${gl_cv_header_stdint_without_STDC_macros+y}
18359 then :
18360   printf %s "(cached) " >&6
18361 else $as_nop
18362   gl_cv_header_stdint_without_STDC_macros=no
18363          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h.  */
18365
18366
18367 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18368 #include <stdint.h>
18369
18370
18371   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18372      included before <wchar.h>.  */
18373   #include <stddef.h>
18374   #include <signal.h>
18375   #if HAVE_WCHAR_H
18376   # include <stdio.h>
18377   # include <time.h>
18378   # include <wchar.h>
18379   #endif
18380
18381
18382 intmax_t im = INTMAX_MAX;
18383 int32_t i32 = INT32_C (0x7fffffff);
18384
18385 int
18386 main (void)
18387 {
18388
18389   ;
18390   return 0;
18391 }
18392 _ACEOF
18393 if ac_fn_c_try_compile "$LINENO"
18394 then :
18395   gl_cv_header_stdint_without_STDC_macros=yes
18396 fi
18397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18398
18399 fi
18400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
18401 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
18402
18403       if test $gl_cv_header_stdint_without_STDC_macros = no; then
18404
18405 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
18406
18407
18408 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
18409
18410       fi
18411       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
18412 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
18413 if test ${gl_cv_header_stdint_width+y}
18414 then :
18415   printf %s "(cached) " >&6
18416 else $as_nop
18417   gl_cv_header_stdint_width=no
18418          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h.  */
18420
18421               /* Work if build is not clean.  */
18422               #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
18423               #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
18424                #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
18425               #endif
18426               #include <stdint.h>
18427
18428   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18429      included before <wchar.h>.  */
18430   #include <stddef.h>
18431   #include <signal.h>
18432   #if HAVE_WCHAR_H
18433   # include <stdio.h>
18434   # include <time.h>
18435   # include <wchar.h>
18436   #endif
18437
18438               int iw = UINTMAX_WIDTH;
18439
18440 int
18441 main (void)
18442 {
18443
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 if ac_fn_c_try_compile "$LINENO"
18449 then :
18450   gl_cv_header_stdint_width=yes
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18453 fi
18454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
18455 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
18456       if test "$gl_cv_header_stdint_width" = yes; then
18457         STDINT_H=
18458       fi
18459       ;;
18460     *)
18461                   ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
18462 if test "x$ac_cv_header_sys_inttypes_h" = xyes
18463 then :
18464   printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
18465
18466 fi
18467 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
18468 if test "x$ac_cv_header_sys_bitypes_h" = xyes
18469 then :
18470   printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
18471
18472 fi
18473
18474       if test $ac_cv_header_sys_inttypes_h = yes; then
18475         HAVE_SYS_INTTYPES_H=1
18476       fi
18477       if test $ac_cv_header_sys_bitypes_h = yes; then
18478         HAVE_SYS_BITYPES_H=1
18479       fi
18480
18481
18482   if test $APPLE_UNIVERSAL_BUILD = 0; then
18483
18484
18485   for gltype in ptrdiff_t size_t ; do
18486     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18487 printf %s "checking for bit size of $gltype... " >&6; }
18488 if eval test \${gl_cv_bitsizeof_${gltype}+y}
18489 then :
18490   printf %s "(cached) " >&6
18491 else $as_nop
18492   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18493   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18494      included before <wchar.h>.  */
18495   #include <stddef.h>
18496   #include <signal.h>
18497   #if HAVE_WCHAR_H
18498   # include <stdio.h>
18499   # include <time.h>
18500   # include <wchar.h>
18501   #endif
18502
18503 #include <limits.h>"
18504 then :
18505
18506 else $as_nop
18507   result=unknown
18508 fi
18509
18510        eval gl_cv_bitsizeof_${gltype}=\$result
18511
18512 fi
18513 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18514                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18515 printf "%s\n" "$ac_res" >&6; }
18516     eval result=\$gl_cv_bitsizeof_${gltype}
18517     if test $result = unknown; then
18518                                                 result=0
18519     fi
18520     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18521     printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
18522
18523     eval BITSIZEOF_${GLTYPE}=\$result
18524   done
18525
18526
18527   fi
18528
18529
18530   for gltype in sig_atomic_t wchar_t wint_t ; do
18531     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18532 printf %s "checking for bit size of $gltype... " >&6; }
18533 if eval test \${gl_cv_bitsizeof_${gltype}+y}
18534 then :
18535   printf %s "(cached) " >&6
18536 else $as_nop
18537   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18538   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18539      included before <wchar.h>.  */
18540   #include <stddef.h>
18541   #include <signal.h>
18542   #if HAVE_WCHAR_H
18543   # include <stdio.h>
18544   # include <time.h>
18545   # include <wchar.h>
18546   #endif
18547
18548 #include <limits.h>"
18549 then :
18550
18551 else $as_nop
18552   result=unknown
18553 fi
18554
18555        eval gl_cv_bitsizeof_${gltype}=\$result
18556
18557 fi
18558 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18559                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18560 printf "%s\n" "$ac_res" >&6; }
18561     eval result=\$gl_cv_bitsizeof_${gltype}
18562     if test $result = unknown; then
18563                                                 result=0
18564     fi
18565     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18566     printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
18567
18568     eval BITSIZEOF_${GLTYPE}=\$result
18569   done
18570
18571
18572
18573
18574   for gltype in sig_atomic_t wchar_t wint_t ; do
18575     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18576 printf %s "checking whether $gltype is signed... " >&6; }
18577 if eval test \${gl_cv_type_${gltype}_signed+y}
18578 then :
18579   printf %s "(cached) " >&6
18580 else $as_nop
18581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h.  */
18583
18584   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18585      included before <wchar.h>.  */
18586   #include <stddef.h>
18587   #include <signal.h>
18588   #if HAVE_WCHAR_H
18589   # include <stdio.h>
18590   # include <time.h>
18591   # include <wchar.h>
18592   #endif
18593
18594             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18595 int
18596 main (void)
18597 {
18598
18599   ;
18600   return 0;
18601 }
18602 _ACEOF
18603 if ac_fn_c_try_compile "$LINENO"
18604 then :
18605   result=yes
18606 else $as_nop
18607   result=no
18608 fi
18609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18610        eval gl_cv_type_${gltype}_signed=\$result
18611
18612 fi
18613 eval ac_res=\$gl_cv_type_${gltype}_signed
18614                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18615 printf "%s\n" "$ac_res" >&6; }
18616     eval result=\$gl_cv_type_${gltype}_signed
18617     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18618     if test "$result" = yes; then
18619       printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
18620
18621       eval HAVE_SIGNED_${GLTYPE}=1
18622     else
18623       eval HAVE_SIGNED_${GLTYPE}=0
18624     fi
18625   done
18626
18627
18628   gl_cv_type_ptrdiff_t_signed=yes
18629   gl_cv_type_size_t_signed=no
18630   if test $APPLE_UNIVERSAL_BUILD = 0; then
18631
18632
18633   for gltype in ptrdiff_t size_t ; do
18634     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18635 printf %s "checking for $gltype integer literal suffix... " >&6; }
18636 if eval test \${gl_cv_type_${gltype}_suffix+y}
18637 then :
18638   printf %s "(cached) " >&6
18639 else $as_nop
18640   eval gl_cv_type_${gltype}_suffix=no
18641        eval result=\$gl_cv_type_${gltype}_signed
18642        if test "$result" = yes; then
18643          glsufu=
18644        else
18645          glsufu=u
18646        fi
18647        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18648          case $glsuf in
18649            '')  gltype1='int';;
18650            l)   gltype1='long int';;
18651            ll)  gltype1='long long int';;
18652            i64) gltype1='__int64';;
18653            u)   gltype1='unsigned int';;
18654            ul)  gltype1='unsigned long int';;
18655            ull) gltype1='unsigned long long int';;
18656            ui64)gltype1='unsigned __int64';;
18657          esac
18658          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h.  */
18660
18661   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18662      included before <wchar.h>.  */
18663   #include <stddef.h>
18664   #include <signal.h>
18665   #if HAVE_WCHAR_H
18666   # include <stdio.h>
18667   # include <time.h>
18668   # include <wchar.h>
18669   #endif
18670
18671               extern $gltype foo;
18672               extern $gltype1 foo;
18673 int
18674 main (void)
18675 {
18676
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_c_try_compile "$LINENO"
18682 then :
18683   eval gl_cv_type_${gltype}_suffix=\$glsuf
18684 fi
18685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18686          eval result=\$gl_cv_type_${gltype}_suffix
18687          test "$result" != no && break
18688        done
18689 fi
18690 eval ac_res=\$gl_cv_type_${gltype}_suffix
18691                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18692 printf "%s\n" "$ac_res" >&6; }
18693     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18694     eval result=\$gl_cv_type_${gltype}_suffix
18695     test "$result" = no && result=
18696     eval ${GLTYPE}_SUFFIX=\$result
18697     printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
18698
18699   done
18700
18701
18702   fi
18703
18704
18705   for gltype in sig_atomic_t wchar_t wint_t ; do
18706     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18707 printf %s "checking for $gltype integer literal suffix... " >&6; }
18708 if eval test \${gl_cv_type_${gltype}_suffix+y}
18709 then :
18710   printf %s "(cached) " >&6
18711 else $as_nop
18712   eval gl_cv_type_${gltype}_suffix=no
18713        eval result=\$gl_cv_type_${gltype}_signed
18714        if test "$result" = yes; then
18715          glsufu=
18716        else
18717          glsufu=u
18718        fi
18719        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18720          case $glsuf in
18721            '')  gltype1='int';;
18722            l)   gltype1='long int';;
18723            ll)  gltype1='long long int';;
18724            i64) gltype1='__int64';;
18725            u)   gltype1='unsigned int';;
18726            ul)  gltype1='unsigned long int';;
18727            ull) gltype1='unsigned long long int';;
18728            ui64)gltype1='unsigned __int64';;
18729          esac
18730          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h.  */
18732
18733   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18734      included before <wchar.h>.  */
18735   #include <stddef.h>
18736   #include <signal.h>
18737   #if HAVE_WCHAR_H
18738   # include <stdio.h>
18739   # include <time.h>
18740   # include <wchar.h>
18741   #endif
18742
18743               extern $gltype foo;
18744               extern $gltype1 foo;
18745 int
18746 main (void)
18747 {
18748
18749   ;
18750   return 0;
18751 }
18752 _ACEOF
18753 if ac_fn_c_try_compile "$LINENO"
18754 then :
18755   eval gl_cv_type_${gltype}_suffix=\$glsuf
18756 fi
18757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18758          eval result=\$gl_cv_type_${gltype}_suffix
18759          test "$result" != no && break
18760        done
18761 fi
18762 eval ac_res=\$gl_cv_type_${gltype}_suffix
18763                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18764 printf "%s\n" "$ac_res" >&6; }
18765     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18766     eval result=\$gl_cv_type_${gltype}_suffix
18767     test "$result" = no && result=
18768     eval ${GLTYPE}_SUFFIX=\$result
18769     printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
18770
18771   done
18772
18773
18774
18775           if test $GNULIB_OVERRIDES_WINT_T = 1; then
18776     BITSIZEOF_WINT_T=32
18777   fi
18778
18779       ;;
18780   esac
18781
18782
18783
18784   LIMITS_H='limits.h'
18785    if test -n "$LIMITS_H"; then
18786   GL_GENERATE_LIMITS_H_TRUE=
18787   GL_GENERATE_LIMITS_H_FALSE='#'
18788 else
18789   GL_GENERATE_LIMITS_H_TRUE='#'
18790   GL_GENERATE_LIMITS_H_FALSE=
18791 fi
18792
18793
18794
18795
18796
18797
18798
18799    if test -n "$STDINT_H"; then
18800   GL_GENERATE_STDINT_H_TRUE=
18801   GL_GENERATE_STDINT_H_FALSE='#'
18802 else
18803   GL_GENERATE_STDINT_H_TRUE='#'
18804   GL_GENERATE_STDINT_H_FALSE=
18805 fi
18806
18807
18808
18809   GNULIB_IMAXABS=0;
18810   GNULIB_IMAXDIV=0;
18811   GNULIB_STRTOIMAX=0;
18812   GNULIB_STRTOUMAX=0;
18813     HAVE_DECL_IMAXABS=1;
18814   HAVE_DECL_IMAXDIV=1;
18815   HAVE_DECL_STRTOIMAX=1;
18816   HAVE_DECL_STRTOUMAX=1;
18817   HAVE_IMAXDIV_T=1;
18818   REPLACE_STRTOIMAX=0;
18819   REPLACE_STRTOUMAX=0;
18820   INT32_MAX_LT_INTMAX_MAX=1;
18821   INT64_MAX_EQ_LONG_MAX='defined _LP64';
18822   PRIPTR_PREFIX=__PRIPTR_PREFIX;
18823   UINT32_MAX_LT_UINTMAX_MAX=1;
18824   UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840      if test $gl_cv_have_include_next = yes; then
18841        gl_cv_next_inttypes_h='<'inttypes.h'>'
18842      else
18843        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18844 printf %s "checking absolute name of <inttypes.h>... " >&6; }
18845 if test ${gl_cv_next_inttypes_h+y}
18846 then :
18847   printf %s "(cached) " >&6
18848 else $as_nop
18849
18850              if test $ac_cv_header_inttypes_h = yes; then
18851
18852
18853
18854
18855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h.  */
18857 #include <inttypes.h>
18858 _ACEOF
18859                 case "$host_os" in
18860     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18861     *)    gl_absname_cpp="$ac_cpp" ;;
18862   esac
18863
18864   case "$host_os" in
18865     mingw*)
18866                                           gl_dirsep_regex='[/\\]'
18867       ;;
18868     *)
18869       gl_dirsep_regex='\/'
18870       ;;
18871   esac
18872       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18873   gl_header_literal_regex=`echo 'inttypes.h' \
18874                            | sed -e "$gl_make_literal_regex_sed"`
18875   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18876       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18877       s|^/[^/]|//&|
18878       p
18879       q
18880     }'
18881
18882         gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18883   sed -n "$gl_absolute_header_sed"`
18884
18885            gl_header=$gl_cv_absolute_inttypes_h
18886            gl_cv_next_inttypes_h='"'$gl_header'"'
18887           else
18888                gl_cv_next_inttypes_h='<'inttypes.h'>'
18889              fi
18890
18891
18892 fi
18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18894 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
18895      fi
18896      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18897
18898      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18899        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18900        gl_next_as_first_directive='<'inttypes.h'>'
18901      else
18902        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18903        gl_next_as_first_directive=$gl_cv_next_inttypes_h
18904      fi
18905      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922   gl_threads_api=none
18923   LIBTHREAD=
18924   LTLIBTHREAD=
18925   LIBMULTITHREAD=
18926   LTLIBMULTITHREAD=
18927   if test "$gl_use_threads" != no; then
18928
18929
18930   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
18931 printf %s "checking whether imported symbols can be declared weak... " >&6; }
18932 if test ${gl_cv_have_weak+y}
18933 then :
18934   printf %s "(cached) " >&6
18935 else $as_nop
18936   gl_cv_have_weak=no
18937           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h.  */
18939 extern void xyzzy ();
18940 #pragma weak xyzzy
18941 int
18942 main (void)
18943 {
18944 xyzzy();
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 if ac_fn_c_try_link "$LINENO"
18950 then :
18951   gl_cv_have_weak=maybe
18952 fi
18953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18954     conftest$ac_exeext conftest.$ac_ext
18955      if test $gl_cv_have_weak = maybe; then
18956                      if test "$cross_compiling" = yes
18957 then :
18958                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959 /* end confdefs.h.  */
18960 #ifdef __ELF__
18961              Extensible Linking Format
18962              #endif
18963
18964 _ACEOF
18965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18966   $EGREP "Extensible Linking Format" >/dev/null 2>&1
18967 then :
18968   gl_cv_have_weak="guessing yes"
18969 else $as_nop
18970   gl_cv_have_weak="guessing no"
18971 fi
18972 rm -rf conftest*
18973
18974
18975 else $as_nop
18976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h.  */
18978
18979 #include <stdio.h>
18980 #pragma weak fputs
18981 int main ()
18982 {
18983   return (fputs == NULL);
18984 }
18985 _ACEOF
18986 if ac_fn_c_try_run "$LINENO"
18987 then :
18988   gl_cv_have_weak=yes
18989 else $as_nop
18990   gl_cv_have_weak=no
18991 fi
18992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18993   conftest.$ac_objext conftest.beam conftest.$ac_ext
18994 fi
18995
18996      fi
18997           case " $LDFLAGS " in
18998        *" -static "*) gl_cv_have_weak=no ;;
18999      esac
19000                     case "$gl_cv_have_weak" in
19001        *yes)
19002          case "$host_os" in
19003            freebsd* | dragonfly*)
19004              : > conftest1.c
19005              $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1
19006              cat <<EOF > conftest2.c
19007 #include <pthread.h>
19008 #pragma weak pthread_mutexattr_gettype
19009 int main ()
19010 {
19011   return (pthread_mutexattr_gettype != NULL);
19012 }
19013 EOF
19014              $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \
19015                || gl_cv_have_weak=no
19016              rm -f conftest1.c libempty.so conftest2.c conftest
19017              ;;
19018          esac
19019          ;;
19020      esac
19021
19022 fi
19023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
19024 printf "%s\n" "$gl_cv_have_weak" >&6; }
19025   case "$gl_cv_have_weak" in
19026     *yes)
19027
19028 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
19029
19030       ;;
19031   esac
19032
19033     if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19034
19035       :
19036     fi
19037     if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then
19038
19039       gl_have_isoc_threads="$ac_cv_header_threads_h"
19040     fi
19041     if test "$gl_use_threads" = yes \
19042        || test "$gl_use_threads" = posix \
19043        || test "$gl_use_threads" = isoc+posix; then
19044
19045
19046   if test -z "$gl_pthreadlib_body_done"; then
19047     gl_pthread_api=no
19048     LIBPTHREAD=
19049     LIBPMULTITHREAD=
19050     # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19051     # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
19052     ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19053 if test "x$ac_cv_header_pthread_h" = xyes
19054 then :
19055   gl_have_pthread_h=yes
19056 else $as_nop
19057   gl_have_pthread_h=no
19058 fi
19059
19060     if test "$gl_have_pthread_h" = yes; then
19061       # Other possible tests:
19062       #   -lpthreads (FSU threads, PCthreads)
19063       #   -lgthreads
19064       # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19065       # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19066       # the second one only in libpthread, and lock.c needs it.
19067       #
19068       # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
19069       # needs -pthread for some reason.  See:
19070       # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
19071       save_LIBS=$LIBS
19072       for gl_pthread in '' '-pthread'; do
19073         LIBS="$LIBS $gl_pthread"
19074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h.  */
19076 #include <pthread.h>
19077                pthread_mutex_t m;
19078                pthread_mutexattr_t ma;
19079
19080 int
19081 main (void)
19082 {
19083 pthread_mutex_lock (&m);
19084                pthread_mutexattr_init (&ma);
19085   ;
19086   return 0;
19087 }
19088 _ACEOF
19089 if ac_fn_c_try_link "$LINENO"
19090 then :
19091   gl_pthread_api=yes
19092            LIBPTHREAD=$gl_pthread
19093            LIBPMULTITHREAD=$gl_pthread
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19096     conftest$ac_exeext conftest.$ac_ext
19097         LIBS=$save_LIBS
19098         test $gl_pthread_api = yes && break
19099       done
19100
19101       # Test for libpthread by looking for pthread_kill. (Not pthread_self,
19102       # since it is defined as a macro on OSF/1.)
19103       if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
19104         # The program links fine without libpthread. But it may actually
19105         # need to link with libpthread in order to create multiple threads.
19106         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19107 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19108 if test ${ac_cv_lib_pthread_pthread_kill+y}
19109 then :
19110   printf %s "(cached) " >&6
19111 else $as_nop
19112   ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lpthread  $LIBS"
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h.  */
19116
19117 /* Override any GCC internal prototype to avoid an error.
19118    Use char because int might match the return type of a GCC
19119    builtin and then its argument prototype would still apply.  */
19120 char pthread_kill ();
19121 int
19122 main (void)
19123 {
19124 return pthread_kill ();
19125   ;
19126   return 0;
19127 }
19128 _ACEOF
19129 if ac_fn_c_try_link "$LINENO"
19130 then :
19131   ac_cv_lib_pthread_pthread_kill=yes
19132 else $as_nop
19133   ac_cv_lib_pthread_pthread_kill=no
19134 fi
19135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19136     conftest$ac_exeext conftest.$ac_ext
19137 LIBS=$ac_check_lib_save_LIBS
19138 fi
19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19140 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19141 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19142 then :
19143   LIBPMULTITHREAD=-lpthread
19144            # On Solaris and HP-UX, most pthread functions exist also in libc.
19145            # Therefore pthread_in_use() needs to actually try to create a
19146            # thread: pthread_create from libc will fail, whereas
19147            # pthread_create will actually create a thread.
19148            # On Solaris 10 or newer, this test is no longer needed, because
19149            # libc contains the fully functional pthread functions.
19150            case "$host_os" in
19151              solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
19152
19153 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
19154
19155            esac
19156
19157 fi
19158
19159       elif test $gl_pthread_api != yes; then
19160         # Some library is needed. Try libpthread and libc_r.
19161         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19162 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19163 if test ${ac_cv_lib_pthread_pthread_kill+y}
19164 then :
19165   printf %s "(cached) " >&6
19166 else $as_nop
19167   ac_check_lib_save_LIBS=$LIBS
19168 LIBS="-lpthread  $LIBS"
19169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19170 /* end confdefs.h.  */
19171
19172 /* Override any GCC internal prototype to avoid an error.
19173    Use char because int might match the return type of a GCC
19174    builtin and then its argument prototype would still apply.  */
19175 char pthread_kill ();
19176 int
19177 main (void)
19178 {
19179 return pthread_kill ();
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 if ac_fn_c_try_link "$LINENO"
19185 then :
19186   ac_cv_lib_pthread_pthread_kill=yes
19187 else $as_nop
19188   ac_cv_lib_pthread_pthread_kill=no
19189 fi
19190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19191     conftest$ac_exeext conftest.$ac_ext
19192 LIBS=$ac_check_lib_save_LIBS
19193 fi
19194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19195 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19196 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19197 then :
19198   gl_pthread_api=yes
19199            LIBPTHREAD=-lpthread
19200            LIBPMULTITHREAD=-lpthread
19201 fi
19202
19203         if test $gl_pthread_api != yes; then
19204           # For FreeBSD 4.
19205           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
19206 printf %s "checking for pthread_kill in -lc_r... " >&6; }
19207 if test ${ac_cv_lib_c_r_pthread_kill+y}
19208 then :
19209   printf %s "(cached) " >&6
19210 else $as_nop
19211   ac_check_lib_save_LIBS=$LIBS
19212 LIBS="-lc_r  $LIBS"
19213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19214 /* end confdefs.h.  */
19215
19216 /* Override any GCC internal prototype to avoid an error.
19217    Use char because int might match the return type of a GCC
19218    builtin and then its argument prototype would still apply.  */
19219 char pthread_kill ();
19220 int
19221 main (void)
19222 {
19223 return pthread_kill ();
19224   ;
19225   return 0;
19226 }
19227 _ACEOF
19228 if ac_fn_c_try_link "$LINENO"
19229 then :
19230   ac_cv_lib_c_r_pthread_kill=yes
19231 else $as_nop
19232   ac_cv_lib_c_r_pthread_kill=no
19233 fi
19234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19235     conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19237 fi
19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
19239 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
19240 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
19241 then :
19242   gl_pthread_api=yes
19243              LIBPTHREAD=-lc_r
19244              LIBPMULTITHREAD=-lc_r
19245 fi
19246
19247         fi
19248       fi
19249     fi
19250     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
19251 printf %s "checking whether POSIX threads API is available... " >&6; }
19252     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
19253 printf "%s\n" "$gl_pthread_api" >&6; }
19254
19255
19256     if test $gl_pthread_api = yes; then
19257
19258 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
19259
19260     fi
19261
19262         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263 /* end confdefs.h.  */
19264 #include <sched.h>
19265 int
19266 main (void)
19267 {
19268 sched_yield ();
19269   ;
19270   return 0;
19271 }
19272 _ACEOF
19273 if ac_fn_c_try_link "$LINENO"
19274 then :
19275   LIB_SCHED_YIELD=
19276
19277 else $as_nop
19278          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19279 printf %s "checking for sched_yield in -lrt... " >&6; }
19280 if test ${ac_cv_lib_rt_sched_yield+y}
19281 then :
19282   printf %s "(cached) " >&6
19283 else $as_nop
19284   ac_check_lib_save_LIBS=$LIBS
19285 LIBS="-lrt  $LIBS"
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h.  */
19288
19289 /* Override any GCC internal prototype to avoid an error.
19290    Use char because int might match the return type of a GCC
19291    builtin and then its argument prototype would still apply.  */
19292 char sched_yield ();
19293 int
19294 main (void)
19295 {
19296 return sched_yield ();
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 if ac_fn_c_try_link "$LINENO"
19302 then :
19303   ac_cv_lib_rt_sched_yield=yes
19304 else $as_nop
19305   ac_cv_lib_rt_sched_yield=no
19306 fi
19307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19308     conftest$ac_exeext conftest.$ac_ext
19309 LIBS=$ac_check_lib_save_LIBS
19310 fi
19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19312 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
19313 if test "x$ac_cv_lib_rt_sched_yield" = xyes
19314 then :
19315   LIB_SCHED_YIELD=-lrt
19316 else $as_nop
19317             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
19318 printf %s "checking for sched_yield in -lposix4... " >&6; }
19319 if test ${ac_cv_lib_posix4_sched_yield+y}
19320 then :
19321   printf %s "(cached) " >&6
19322 else $as_nop
19323   ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lposix4  $LIBS"
19325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19326 /* end confdefs.h.  */
19327
19328 /* Override any GCC internal prototype to avoid an error.
19329    Use char because int might match the return type of a GCC
19330    builtin and then its argument prototype would still apply.  */
19331 char sched_yield ();
19332 int
19333 main (void)
19334 {
19335 return sched_yield ();
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 if ac_fn_c_try_link "$LINENO"
19341 then :
19342   ac_cv_lib_posix4_sched_yield=yes
19343 else $as_nop
19344   ac_cv_lib_posix4_sched_yield=no
19345 fi
19346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19347     conftest$ac_exeext conftest.$ac_ext
19348 LIBS=$ac_check_lib_save_LIBS
19349 fi
19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
19351 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
19352 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
19353 then :
19354   LIB_SCHED_YIELD=-lposix4
19355 fi
19356
19357 fi
19358
19359
19360 fi
19361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19362     conftest$ac_exeext conftest.$ac_ext
19363
19364
19365     gl_pthreadlib_body_done=done
19366   fi
19367
19368       LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD
19369       LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD
19370       if test $gl_pthread_api = yes; then
19371         if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then
19372           gl_threads_api='isoc+posix'
19373
19374 printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
19375
19376           LIBTHREAD= LTLIBTHREAD=
19377         else
19378           gl_threads_api=posix
19379
19380 printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h
19381
19382           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19383             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19384
19385 printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
19386
19387               LIBTHREAD= LTLIBTHREAD=
19388             fi
19389           fi
19390         fi
19391       fi
19392     fi
19393     if test $gl_threads_api = none; then
19394       if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then
19395
19396
19397
19398   if test -z "$gl_stdthreadlib_body_done"; then
19399
19400
19401     case "$host_os" in
19402       mingw*)
19403         LIBSTDTHREAD=
19404         ;;
19405       *)
19406
19407
19408   if test -z "$gl_pthreadlib_body_done"; then
19409     gl_pthread_api=no
19410     LIBPTHREAD=
19411     LIBPMULTITHREAD=
19412     # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19413     # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
19414     ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19415 if test "x$ac_cv_header_pthread_h" = xyes
19416 then :
19417   gl_have_pthread_h=yes
19418 else $as_nop
19419   gl_have_pthread_h=no
19420 fi
19421
19422     if test "$gl_have_pthread_h" = yes; then
19423       # Other possible tests:
19424       #   -lpthreads (FSU threads, PCthreads)
19425       #   -lgthreads
19426       # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19427       # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19428       # the second one only in libpthread, and lock.c needs it.
19429       #
19430       # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
19431       # needs -pthread for some reason.  See:
19432       # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
19433       save_LIBS=$LIBS
19434       for gl_pthread in '' '-pthread'; do
19435         LIBS="$LIBS $gl_pthread"
19436         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h.  */
19438 #include <pthread.h>
19439                pthread_mutex_t m;
19440                pthread_mutexattr_t ma;
19441
19442 int
19443 main (void)
19444 {
19445 pthread_mutex_lock (&m);
19446                pthread_mutexattr_init (&ma);
19447   ;
19448   return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_c_try_link "$LINENO"
19452 then :
19453   gl_pthread_api=yes
19454            LIBPTHREAD=$gl_pthread
19455            LIBPMULTITHREAD=$gl_pthread
19456 fi
19457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19458     conftest$ac_exeext conftest.$ac_ext
19459         LIBS=$save_LIBS
19460         test $gl_pthread_api = yes && break
19461       done
19462
19463       # Test for libpthread by looking for pthread_kill. (Not pthread_self,
19464       # since it is defined as a macro on OSF/1.)
19465       if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
19466         # The program links fine without libpthread. But it may actually
19467         # need to link with libpthread in order to create multiple threads.
19468         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19469 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19470 if test ${ac_cv_lib_pthread_pthread_kill+y}
19471 then :
19472   printf %s "(cached) " >&6
19473 else $as_nop
19474   ac_check_lib_save_LIBS=$LIBS
19475 LIBS="-lpthread  $LIBS"
19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h.  */
19478
19479 /* Override any GCC internal prototype to avoid an error.
19480    Use char because int might match the return type of a GCC
19481    builtin and then its argument prototype would still apply.  */
19482 char pthread_kill ();
19483 int
19484 main (void)
19485 {
19486 return pthread_kill ();
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 if ac_fn_c_try_link "$LINENO"
19492 then :
19493   ac_cv_lib_pthread_pthread_kill=yes
19494 else $as_nop
19495   ac_cv_lib_pthread_pthread_kill=no
19496 fi
19497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19498     conftest$ac_exeext conftest.$ac_ext
19499 LIBS=$ac_check_lib_save_LIBS
19500 fi
19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19502 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19503 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19504 then :
19505   LIBPMULTITHREAD=-lpthread
19506            # On Solaris and HP-UX, most pthread functions exist also in libc.
19507            # Therefore pthread_in_use() needs to actually try to create a
19508            # thread: pthread_create from libc will fail, whereas
19509            # pthread_create will actually create a thread.
19510            # On Solaris 10 or newer, this test is no longer needed, because
19511            # libc contains the fully functional pthread functions.
19512            case "$host_os" in
19513              solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
19514
19515 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
19516
19517            esac
19518
19519 fi
19520
19521       elif test $gl_pthread_api != yes; then
19522         # Some library is needed. Try libpthread and libc_r.
19523         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
19524 printf %s "checking for pthread_kill in -lpthread... " >&6; }
19525 if test ${ac_cv_lib_pthread_pthread_kill+y}
19526 then :
19527   printf %s "(cached) " >&6
19528 else $as_nop
19529   ac_check_lib_save_LIBS=$LIBS
19530 LIBS="-lpthread  $LIBS"
19531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532 /* end confdefs.h.  */
19533
19534 /* Override any GCC internal prototype to avoid an error.
19535    Use char because int might match the return type of a GCC
19536    builtin and then its argument prototype would still apply.  */
19537 char pthread_kill ();
19538 int
19539 main (void)
19540 {
19541 return pthread_kill ();
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 if ac_fn_c_try_link "$LINENO"
19547 then :
19548   ac_cv_lib_pthread_pthread_kill=yes
19549 else $as_nop
19550   ac_cv_lib_pthread_pthread_kill=no
19551 fi
19552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19553     conftest$ac_exeext conftest.$ac_ext
19554 LIBS=$ac_check_lib_save_LIBS
19555 fi
19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
19557 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
19558 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
19559 then :
19560   gl_pthread_api=yes
19561            LIBPTHREAD=-lpthread
19562            LIBPMULTITHREAD=-lpthread
19563 fi
19564
19565         if test $gl_pthread_api != yes; then
19566           # For FreeBSD 4.
19567           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
19568 printf %s "checking for pthread_kill in -lc_r... " >&6; }
19569 if test ${ac_cv_lib_c_r_pthread_kill+y}
19570 then :
19571   printf %s "(cached) " >&6
19572 else $as_nop
19573   ac_check_lib_save_LIBS=$LIBS
19574 LIBS="-lc_r  $LIBS"
19575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576 /* end confdefs.h.  */
19577
19578 /* Override any GCC internal prototype to avoid an error.
19579    Use char because int might match the return type of a GCC
19580    builtin and then its argument prototype would still apply.  */
19581 char pthread_kill ();
19582 int
19583 main (void)
19584 {
19585 return pthread_kill ();
19586   ;
19587   return 0;
19588 }
19589 _ACEOF
19590 if ac_fn_c_try_link "$LINENO"
19591 then :
19592   ac_cv_lib_c_r_pthread_kill=yes
19593 else $as_nop
19594   ac_cv_lib_c_r_pthread_kill=no
19595 fi
19596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19597     conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19599 fi
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
19601 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
19602 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
19603 then :
19604   gl_pthread_api=yes
19605              LIBPTHREAD=-lc_r
19606              LIBPMULTITHREAD=-lc_r
19607 fi
19608
19609         fi
19610       fi
19611     fi
19612     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
19613 printf %s "checking whether POSIX threads API is available... " >&6; }
19614     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
19615 printf "%s\n" "$gl_pthread_api" >&6; }
19616
19617
19618     if test $gl_pthread_api = yes; then
19619
19620 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h
19621
19622     fi
19623
19624         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h.  */
19626 #include <sched.h>
19627 int
19628 main (void)
19629 {
19630 sched_yield ();
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 if ac_fn_c_try_link "$LINENO"
19636 then :
19637   LIB_SCHED_YIELD=
19638
19639 else $as_nop
19640          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19641 printf %s "checking for sched_yield in -lrt... " >&6; }
19642 if test ${ac_cv_lib_rt_sched_yield+y}
19643 then :
19644   printf %s "(cached) " >&6
19645 else $as_nop
19646   ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-lrt  $LIBS"
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h.  */
19650
19651 /* Override any GCC internal prototype to avoid an error.
19652    Use char because int might match the return type of a GCC
19653    builtin and then its argument prototype would still apply.  */
19654 char sched_yield ();
19655 int
19656 main (void)
19657 {
19658 return sched_yield ();
19659   ;
19660   return 0;
19661 }
19662 _ACEOF
19663 if ac_fn_c_try_link "$LINENO"
19664 then :
19665   ac_cv_lib_rt_sched_yield=yes
19666 else $as_nop
19667   ac_cv_lib_rt_sched_yield=no
19668 fi
19669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19670     conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19672 fi
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19674 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
19675 if test "x$ac_cv_lib_rt_sched_yield" = xyes
19676 then :
19677   LIB_SCHED_YIELD=-lrt
19678 else $as_nop
19679             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
19680 printf %s "checking for sched_yield in -lposix4... " >&6; }
19681 if test ${ac_cv_lib_posix4_sched_yield+y}
19682 then :
19683   printf %s "(cached) " >&6
19684 else $as_nop
19685   ac_check_lib_save_LIBS=$LIBS
19686 LIBS="-lposix4  $LIBS"
19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h.  */
19689
19690 /* Override any GCC internal prototype to avoid an error.
19691    Use char because int might match the return type of a GCC
19692    builtin and then its argument prototype would still apply.  */
19693 char sched_yield ();
19694 int
19695 main (void)
19696 {
19697 return sched_yield ();
19698   ;
19699   return 0;
19700 }
19701 _ACEOF
19702 if ac_fn_c_try_link "$LINENO"
19703 then :
19704   ac_cv_lib_posix4_sched_yield=yes
19705 else $as_nop
19706   ac_cv_lib_posix4_sched_yield=no
19707 fi
19708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19709     conftest$ac_exeext conftest.$ac_ext
19710 LIBS=$ac_check_lib_save_LIBS
19711 fi
19712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
19713 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; }
19714 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
19715 then :
19716   LIB_SCHED_YIELD=-lposix4
19717 fi
19718
19719 fi
19720
19721
19722 fi
19723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19724     conftest$ac_exeext conftest.$ac_ext
19725
19726
19727     gl_pthreadlib_body_done=done
19728   fi
19729
19730         if test $ac_cv_header_threads_h = yes; then
19731                                                   ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create"
19732 if test "x$ac_cv_func_thrd_create" = xyes
19733 then :
19734   printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h
19735
19736 fi
19737
19738           if test $ac_cv_func_thrd_create = yes; then
19739             LIBSTDTHREAD=
19740           else
19741             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
19742 printf %s "checking for thrd_create in -lstdthreads... " >&6; }
19743 if test ${ac_cv_lib_stdthreads_thrd_create+y}
19744 then :
19745   printf %s "(cached) " >&6
19746 else $as_nop
19747   ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lstdthreads  $LIBS"
19749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750 /* end confdefs.h.  */
19751
19752 /* Override any GCC internal prototype to avoid an error.
19753    Use char because int might match the return type of a GCC
19754    builtin and then its argument prototype would still apply.  */
19755 char thrd_create ();
19756 int
19757 main (void)
19758 {
19759 return thrd_create ();
19760   ;
19761   return 0;
19762 }
19763 _ACEOF
19764 if ac_fn_c_try_link "$LINENO"
19765 then :
19766   ac_cv_lib_stdthreads_thrd_create=yes
19767 else $as_nop
19768   ac_cv_lib_stdthreads_thrd_create=no
19769 fi
19770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19771     conftest$ac_exeext conftest.$ac_ext
19772 LIBS=$ac_check_lib_save_LIBS
19773 fi
19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
19775 printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; }
19776 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
19777 then :
19778
19779               LIBSTDTHREAD='-lstdthreads -lpthread'
19780
19781 else $as_nop
19782
19783                             LIBSTDTHREAD="$LIBPMULTITHREAD"
19784
19785 fi
19786
19787           fi
19788         else
19789                     LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
19790         fi
19791         ;;
19792     esac
19793
19794
19795     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
19796 printf %s "checking whether ISO C threads API is available... " >&6; }
19797     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
19798 printf "%s\n" "$ac_cv_header_threads_h" >&6; }
19799     gl_stdthreadlib_body_done=done
19800   fi
19801
19802         LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD
19803         LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD
19804         gl_threads_api=isoc
19805
19806 printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h
19807
19808       fi
19809     fi
19810     if test $gl_threads_api = none; then
19811       case "$gl_use_threads" in
19812         yes | windows | win32) # The 'win32' is for backward compatibility.
19813           if { case "$host_os" in
19814                  mingw*) true;;
19815                  *) false;;
19816                esac
19817              }; then
19818             gl_threads_api=windows
19819
19820 printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h
19821
19822           fi
19823           ;;
19824       esac
19825     fi
19826   fi
19827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
19828 printf %s "checking for multithread API to use... " >&6; }
19829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
19830 printf "%s\n" "$gl_threads_api" >&6; }
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19843 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
19844 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
19845 then :
19846   printf %s "(cached) " >&6
19847 else $as_nop
19848   rm -f conftest.sym conftest.file
19849      echo >conftest.file
19850      if test "$cross_compiling" = yes
19851 then :
19852   case "$host_os" in
19853           linux-* | linux)
19854             # Guess yes on Linux systems.
19855             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19856           *-gnu* | gnu*)
19857             # Guess yes on glibc systems.
19858             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19859           mingw*)
19860             # Guess no on native Windows.
19861             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19862           *)
19863             # If we don't know, obey --enable-cross-guesses.
19864             gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
19865         esac
19866
19867 else $as_nop
19868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h.  */
19870 $ac_includes_default
19871 int
19872 main (void)
19873 {
19874 struct stat sbuf;
19875             if (symlink ("conftest.file", "conftest.sym") != 0)
19876               return 1;
19877             /* Linux will dereference the symlink and fail, as required by
19878                POSIX.  That is better in the sense that it means we will not
19879                have to compile and use the lstat wrapper.  */
19880             return lstat ("conftest.sym/", &sbuf) == 0;
19881
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 if ac_fn_c_try_run "$LINENO"
19887 then :
19888   gl_cv_func_lstat_dereferences_slashed_symlink=yes
19889 else $as_nop
19890   gl_cv_func_lstat_dereferences_slashed_symlink=no
19891 fi
19892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19893   conftest.$ac_objext conftest.beam conftest.$ac_ext
19894 fi
19895
19896      rm -f conftest.sym conftest.file
19897
19898 fi
19899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19900 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19901   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19902     *yes)
19903
19904 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
19905
19906       ;;
19907   esac
19908
19909
19910   GNULIB__EXIT=0;
19911   GNULIB_ALIGNED_ALLOC=0;
19912   GNULIB_ATOLL=0;
19913   GNULIB_CALLOC_POSIX=0;
19914   GNULIB_CANONICALIZE_FILE_NAME=0;
19915   GNULIB_GETLOADAVG=0;
19916   GNULIB_GETSUBOPT=0;
19917   GNULIB_GRANTPT=0;
19918   GNULIB_MALLOC_POSIX=0;
19919   GNULIB_MBTOWC=0;
19920   GNULIB_MKDTEMP=0;
19921   GNULIB_MKOSTEMP=0;
19922   GNULIB_MKOSTEMPS=0;
19923   GNULIB_MKSTEMP=0;
19924   GNULIB_MKSTEMPS=0;
19925   GNULIB_POSIX_MEMALIGN=0;
19926   GNULIB_POSIX_OPENPT=0;
19927   GNULIB_PTSNAME=0;
19928   GNULIB_PTSNAME_R=0;
19929   GNULIB_PUTENV=0;
19930   GNULIB_QSORT_R=0;
19931   GNULIB_RANDOM=0;
19932   GNULIB_RANDOM_R=0;
19933   GNULIB_REALLOCARRAY=0;
19934   GNULIB_REALLOC_POSIX=0;
19935   GNULIB_REALPATH=0;
19936   GNULIB_RPMATCH=0;
19937   GNULIB_SECURE_GETENV=0;
19938   GNULIB_SETENV=0;
19939   GNULIB_STRTOD=0;
19940   GNULIB_STRTOLD=0;
19941   GNULIB_STRTOLL=0;
19942   GNULIB_STRTOULL=0;
19943   GNULIB_SYSTEM_POSIX=0;
19944   GNULIB_UNLOCKPT=0;
19945   GNULIB_UNSETENV=0;
19946   GNULIB_WCTOMB=0;
19947     HAVE__EXIT=1;
19948   HAVE_ALIGNED_ALLOC=1;
19949   HAVE_ATOLL=1;
19950   HAVE_CANONICALIZE_FILE_NAME=1;
19951   HAVE_DECL_GETLOADAVG=1;
19952   HAVE_GETSUBOPT=1;
19953   HAVE_GRANTPT=1;
19954   HAVE_INITSTATE=1;
19955   HAVE_DECL_INITSTATE=1;
19956   HAVE_MBTOWC=1;
19957   HAVE_MKDTEMP=1;
19958   HAVE_MKOSTEMP=1;
19959   HAVE_MKOSTEMPS=1;
19960   HAVE_MKSTEMP=1;
19961   HAVE_MKSTEMPS=1;
19962   HAVE_POSIX_MEMALIGN=1;
19963   HAVE_POSIX_OPENPT=1;
19964   HAVE_PTSNAME=1;
19965   HAVE_PTSNAME_R=1;
19966   HAVE_QSORT_R=1;
19967   HAVE_RANDOM=1;
19968   HAVE_RANDOM_H=1;
19969   HAVE_RANDOM_R=1;
19970   HAVE_REALLOCARRAY=1;
19971   HAVE_REALPATH=1;
19972   HAVE_RPMATCH=1;
19973   HAVE_SECURE_GETENV=1;
19974   HAVE_SETENV=1;
19975   HAVE_DECL_SETENV=1;
19976   HAVE_SETSTATE=1;
19977   HAVE_DECL_SETSTATE=1;
19978   HAVE_STRTOD=1;
19979   HAVE_STRTOLD=1;
19980   HAVE_STRTOLL=1;
19981   HAVE_STRTOULL=1;
19982   HAVE_STRUCT_RANDOM_DATA=1;
19983   HAVE_SYS_LOADAVG_H=0;
19984   HAVE_UNLOCKPT=1;
19985   HAVE_DECL_UNSETENV=1;
19986   REPLACE_ALIGNED_ALLOC=0;
19987   REPLACE_CALLOC=0;
19988   REPLACE_CANONICALIZE_FILE_NAME=0;
19989   REPLACE_INITSTATE=0;
19990   REPLACE_MALLOC=0;
19991   REPLACE_MBTOWC=0;
19992   REPLACE_MKSTEMP=0;
19993   REPLACE_POSIX_MEMALIGN=0;
19994   REPLACE_PTSNAME=0;
19995   REPLACE_PTSNAME_R=0;
19996   REPLACE_PUTENV=0;
19997   REPLACE_QSORT_R=0;
19998   REPLACE_RANDOM=0;
19999   REPLACE_RANDOM_R=0;
20000   REPLACE_REALLOC=0;
20001   REPLACE_REALPATH=0;
20002   REPLACE_SETENV=0;
20003   REPLACE_SETSTATE=0;
20004   REPLACE_STRTOD=0;
20005   REPLACE_STRTOLD=0;
20006   REPLACE_UNSETENV=0;
20007   REPLACE_WCTOMB=0;
20008
20009
20010   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
20011 printf %s "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
20012 if test ${gl_cv_func_malloc_posix+y}
20013 then :
20014   printf %s "(cached) " >&6
20015 else $as_nop
20016
20017                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018 /* end confdefs.h.  */
20019
20020 int
20021 main (void)
20022 {
20023 #if defined _WIN32 && ! defined __CYGWIN__
20024              choke me
20025              #endif
20026
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 if ac_fn_c_try_compile "$LINENO"
20032 then :
20033   gl_cv_func_malloc_posix=yes
20034 else $as_nop
20035   gl_cv_func_malloc_posix=no
20036 fi
20037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20038
20039 fi
20040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
20041 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
20042
20043
20044
20045     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
20046 printf %s "checking for GNU libc compatible malloc... " >&6; }
20047 if test ${ac_cv_func_malloc_0_nonnull+y}
20048 then :
20049   printf %s "(cached) " >&6
20050 else $as_nop
20051   if test "$cross_compiling" = yes
20052 then :
20053   case "$host_os" in
20054           # Guess yes on platforms where we know the result.
20055           *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \
20056           | hpux* | solaris* | cygwin* | mingw*)
20057             ac_cv_func_malloc_0_nonnull="guessing yes" ;;
20058           # If we don't know, obey --enable-cross-guesses.
20059           *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
20060         esac
20061
20062 else $as_nop
20063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h.  */
20065 #include <stdlib.h>
20066
20067 int
20068 main (void)
20069 {
20070 char *p = malloc (0);
20071             int result = !p;
20072             free (p);
20073             return result;
20074   ;
20075   return 0;
20076 }
20077
20078 _ACEOF
20079 if ac_fn_c_try_run "$LINENO"
20080 then :
20081   ac_cv_func_malloc_0_nonnull=yes
20082 else $as_nop
20083   ac_cv_func_malloc_0_nonnull=no
20084 fi
20085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20086   conftest.$ac_objext conftest.beam conftest.$ac_ext
20087 fi
20088
20089
20090 fi
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
20092 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
20093   case "$ac_cv_func_malloc_0_nonnull" in
20094     *yes)
20095       gl_cv_func_malloc_0_nonnull=1
20096       ;;
20097     *)
20098       gl_cv_func_malloc_0_nonnull=0
20099       ;;
20100   esac
20101
20102
20103 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
20104
20105
20106
20107
20108
20109   GNULIB_EXPLICIT_BZERO=0;
20110   GNULIB_FFSL=0;
20111   GNULIB_FFSLL=0;
20112   GNULIB_MEMCHR=0;
20113   GNULIB_MEMMEM=0;
20114   GNULIB_MEMPCPY=0;
20115   GNULIB_MEMRCHR=0;
20116   GNULIB_RAWMEMCHR=0;
20117   GNULIB_STPCPY=0;
20118   GNULIB_STPNCPY=0;
20119   GNULIB_STRCHRNUL=0;
20120   GNULIB_STRDUP=0;
20121   GNULIB_STRNCAT=0;
20122   GNULIB_STRNDUP=0;
20123   GNULIB_STRNLEN=0;
20124   GNULIB_STRPBRK=0;
20125   GNULIB_STRSEP=0;
20126   GNULIB_STRSTR=0;
20127   GNULIB_STRCASESTR=0;
20128   GNULIB_STRTOK_R=0;
20129   GNULIB_MBSLEN=0;
20130   GNULIB_MBSNLEN=0;
20131   GNULIB_MBSCHR=0;
20132   GNULIB_MBSRCHR=0;
20133   GNULIB_MBSSTR=0;
20134   GNULIB_MBSCASECMP=0;
20135   GNULIB_MBSNCASECMP=0;
20136   GNULIB_MBSPCASECMP=0;
20137   GNULIB_MBSCASESTR=0;
20138   GNULIB_MBSCSPN=0;
20139   GNULIB_MBSPBRK=0;
20140   GNULIB_MBSSPN=0;
20141   GNULIB_MBSSEP=0;
20142   GNULIB_MBSTOK_R=0;
20143   GNULIB_STRERROR=0;
20144   GNULIB_STRERROR_R=0;
20145   GNULIB_STRERRORNAME_NP=0;
20146   GNULIB_SIGABBREV_NP=0;
20147   GNULIB_SIGDESCR_NP=0;
20148   GNULIB_STRSIGNAL=0;
20149   GNULIB_STRVERSCMP=0;
20150   HAVE_MBSLEN=0;
20151     HAVE_EXPLICIT_BZERO=1;
20152   HAVE_FFSL=1;
20153   HAVE_FFSLL=1;
20154   HAVE_DECL_MEMMEM=1;
20155   HAVE_MEMPCPY=1;
20156   HAVE_DECL_MEMRCHR=1;
20157   HAVE_RAWMEMCHR=1;
20158   HAVE_STPCPY=1;
20159   HAVE_STPNCPY=1;
20160   HAVE_STRCHRNUL=1;
20161   HAVE_DECL_STRDUP=1;
20162   HAVE_DECL_STRNDUP=1;
20163   HAVE_DECL_STRNLEN=1;
20164   HAVE_STRPBRK=1;
20165   HAVE_STRSEP=1;
20166   HAVE_STRCASESTR=1;
20167   HAVE_DECL_STRTOK_R=1;
20168   HAVE_DECL_STRERROR_R=1;
20169   HAVE_STRERRORNAME_NP=1;
20170   HAVE_SIGABBREV_NP=1;
20171   HAVE_SIGDESCR_NP=1;
20172   HAVE_DECL_STRSIGNAL=1;
20173   HAVE_STRVERSCMP=1;
20174   REPLACE_MEMCHR=0;
20175   REPLACE_MEMMEM=0;
20176   REPLACE_STPNCPY=0;
20177   REPLACE_STRCHRNUL=0;
20178   REPLACE_STRDUP=0;
20179   REPLACE_STRNCAT=0;
20180   REPLACE_STRNDUP=0;
20181   REPLACE_STRNLEN=0;
20182   REPLACE_STRSTR=0;
20183   REPLACE_STRCASESTR=0;
20184   REPLACE_STRTOK_R=0;
20185   REPLACE_STRERROR=0;
20186   REPLACE_STRERROR_R=0;
20187   REPLACE_STRERRORNAME_NP=0;
20188   REPLACE_STRSIGNAL=0;
20189   UNDEFINE_STRTOK_R=0;
20190
20191
20192
20193
20194
20195
20196   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
20197   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
20198   # irrelevant for anonymous mappings.
20199   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
20200 if test "x$ac_cv_func_mmap" = xyes
20201 then :
20202   gl_have_mmap=yes
20203 else $as_nop
20204   gl_have_mmap=no
20205 fi
20206
20207
20208   # Try to allow MAP_ANONYMOUS.
20209   gl_have_mmap_anonymous=no
20210   if test $gl_have_mmap = yes; then
20211     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
20212 printf %s "checking for MAP_ANONYMOUS... " >&6; }
20213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h.  */
20215
20216 #include <sys/mman.h>
20217 #ifdef MAP_ANONYMOUS
20218     I cannot identify this map
20219 #endif
20220
20221 _ACEOF
20222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20223   $EGREP "I cannot identify this map" >/dev/null 2>&1
20224 then :
20225   gl_have_mmap_anonymous=yes
20226 fi
20227 rm -rf conftest*
20228
20229     if test $gl_have_mmap_anonymous != yes; then
20230       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h.  */
20232
20233 #include <sys/mman.h>
20234 #ifdef MAP_ANON
20235     I cannot identify this map
20236 #endif
20237
20238 _ACEOF
20239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20240   $EGREP "I cannot identify this map" >/dev/null 2>&1
20241 then :
20242
20243 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
20244
20245          gl_have_mmap_anonymous=yes
20246 fi
20247 rm -rf conftest*
20248
20249     fi
20250     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
20251 printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
20252     if test $gl_have_mmap_anonymous = yes; then
20253
20254 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
20255
20256     fi
20257   fi
20258
20259
20260
20261
20262
20263   # Detect platform-specific bugs in some versions of glibc:
20264   # memchr should not dereference anything with length 0
20265   #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
20266   # memchr should not dereference overestimated length after a match
20267   #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
20268   #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
20269   # memchr should cast the second argument to 'unsigned char'.
20270   #   This bug exists in Android 4.3.
20271   # Assume that memchr works on platforms that lack mprotect.
20272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
20273 printf %s "checking whether memchr works... " >&6; }
20274 if test ${gl_cv_func_memchr_works+y}
20275 then :
20276   printf %s "(cached) " >&6
20277 else $as_nop
20278   if test "$cross_compiling" = yes
20279 then :
20280   case "$host_os" in
20281                            # Guess no on Android.
20282           linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
20283                            # Guess yes on native Windows.
20284           mingw*)          gl_cv_func_memchr_works="guessing yes" ;;
20285                            # If we don't know, obey --enable-cross-guesses.
20286           *)               gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
20287         esac
20288
20289 else $as_nop
20290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h.  */
20292
20293 #include <string.h>
20294 #if HAVE_SYS_MMAN_H
20295 # include <fcntl.h>
20296 # include <unistd.h>
20297 # include <sys/types.h>
20298 # include <sys/mman.h>
20299 # ifndef MAP_FILE
20300 #  define MAP_FILE 0
20301 # endif
20302 #endif
20303
20304 int
20305 main (void)
20306 {
20307
20308   int result = 0;
20309   char *fence = NULL;
20310 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
20311 # if HAVE_MAP_ANONYMOUS
20312   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20313   const int fd = -1;
20314 # else /* !HAVE_MAP_ANONYMOUS */
20315   const int flags = MAP_FILE | MAP_PRIVATE;
20316   int fd = open ("/dev/zero", O_RDONLY, 0666);
20317   if (fd >= 0)
20318 # endif
20319     {
20320       int pagesize = getpagesize ();
20321       char *two_pages =
20322         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20323                        flags, fd, 0);
20324       if (two_pages != (char *)(-1)
20325           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20326         fence = two_pages + pagesize;
20327     }
20328 #endif
20329   if (fence)
20330     {
20331       if (memchr (fence, 0, 0))
20332         result |= 1;
20333       strcpy (fence - 9, "12345678");
20334       if (memchr (fence - 9, 0, 79) != fence - 1)
20335         result |= 2;
20336       if (memchr (fence - 1, 0, 3) != fence - 1)
20337         result |= 4;
20338     }
20339   /* Test against bug on Android 4.3.  */
20340   {
20341     char input[3];
20342     input[0] = 'a';
20343     input[1] = 'b';
20344     input[2] = 'c';
20345     if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
20346       result |= 8;
20347   }
20348   return result;
20349
20350   ;
20351   return 0;
20352 }
20353 _ACEOF
20354 if ac_fn_c_try_run "$LINENO"
20355 then :
20356   gl_cv_func_memchr_works=yes
20357 else $as_nop
20358   gl_cv_func_memchr_works=no
20359 fi
20360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20361   conftest.$ac_objext conftest.beam conftest.$ac_ext
20362 fi
20363
20364
20365 fi
20366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
20367 printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
20368   case "$gl_cv_func_memchr_works" in
20369     *yes) ;;
20370     *) REPLACE_MEMCHR=1 ;;
20371   esac
20372
20373
20374
20375
20376
20377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
20378 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
20379 if test ${gl_cv_minmax_in_limits_h+y}
20380 then :
20381   printf %s "(cached) " >&6
20382 else $as_nop
20383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h.  */
20385 #include <limits.h>
20386             int x = MIN (42, 17);
20387 int
20388 main (void)
20389 {
20390
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 if ac_fn_c_try_compile "$LINENO"
20396 then :
20397   gl_cv_minmax_in_limits_h=yes
20398 else $as_nop
20399   gl_cv_minmax_in_limits_h=no
20400 fi
20401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20402 fi
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
20404 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
20405   if test $gl_cv_minmax_in_limits_h = yes; then
20406
20407 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
20408
20409   fi
20410
20411
20412
20413
20414
20415
20416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
20417 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
20418 if test ${gl_cv_minmax_in_sys_param_h+y}
20419 then :
20420   printf %s "(cached) " >&6
20421 else $as_nop
20422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h.  */
20424 #include <sys/param.h>
20425             int x = MIN (42, 17);
20426 int
20427 main (void)
20428 {
20429
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 if ac_fn_c_try_compile "$LINENO"
20435 then :
20436   gl_cv_minmax_in_sys_param_h=yes
20437 else $as_nop
20438   gl_cv_minmax_in_sys_param_h=no
20439 fi
20440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20441 fi
20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
20443 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
20444   if test $gl_cv_minmax_in_sys_param_h = yes; then
20445
20446 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
20447
20448   fi
20449
20450
20451
20452
20453
20454
20455
20456
20457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
20458 printf %s "checking for O_CLOEXEC... " >&6; }
20459 if test ${gl_cv_macro_O_CLOEXEC+y}
20460 then :
20461   printf %s "(cached) " >&6
20462 else $as_nop
20463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h.  */
20465 #include <fcntl.h>
20466                           #ifndef O_CLOEXEC
20467                             choke me;
20468                           #endif
20469
20470 int
20471 main (void)
20472 {
20473 return O_CLOEXEC;
20474   ;
20475   return 0;
20476 }
20477 _ACEOF
20478 if ac_fn_c_try_compile "$LINENO"
20479 then :
20480   gl_cv_macro_O_CLOEXEC=yes
20481 else $as_nop
20482   gl_cv_macro_O_CLOEXEC=no
20483 fi
20484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20485 fi
20486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
20487 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
20488
20489
20490
20491   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
20492 printf %s "checking for promoted mode_t type... " >&6; }
20493 if test ${gl_cv_promoted_mode_t+y}
20494 then :
20495   printf %s "(cached) " >&6
20496 else $as_nop
20497
20498                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20499 /* end confdefs.h.  */
20500 #include <sys/types.h>
20501 int
20502 main (void)
20503 {
20504 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
20505   ;
20506   return 0;
20507 }
20508 _ACEOF
20509 if ac_fn_c_try_compile "$LINENO"
20510 then :
20511   gl_cv_promoted_mode_t='int'
20512 else $as_nop
20513   gl_cv_promoted_mode_t='mode_t'
20514 fi
20515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20516
20517 fi
20518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
20519 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
20520
20521 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
20522
20523
20524
20525
20526   GNULIB_PTHREAD_SIGMASK=0;
20527   GNULIB_RAISE=0;
20528   GNULIB_SIGNAL_H_SIGPIPE=0;
20529   GNULIB_SIGPROCMASK=0;
20530   GNULIB_SIGACTION=0;
20531     HAVE_POSIX_SIGNALBLOCKING=1;
20532   HAVE_PTHREAD_SIGMASK=1;
20533   HAVE_RAISE=1;
20534   HAVE_SIGSET_T=1;
20535   HAVE_SIGINFO_T=1;
20536   HAVE_SIGACTION=1;
20537   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20538
20539   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20540
20541   HAVE_SIGHANDLER_T=1;
20542   REPLACE_PTHREAD_SIGMASK=0;
20543   REPLACE_RAISE=0;
20544
20545
20546   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20547       #include <signal.h>
20548       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
20549       #include <sys/types.h>
20550
20551 "
20552 if test "x$ac_cv_type_sigset_t" = xyes
20553 then :
20554
20555 printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
20556
20557 gl_cv_type_sigset_t=yes
20558 else $as_nop
20559   gl_cv_type_sigset_t=no
20560 fi
20561
20562   if test $gl_cv_type_sigset_t != yes; then
20563     HAVE_SIGSET_T=0
20564   fi
20565
20566
20567   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20568 printf %s "checking for ssize_t... " >&6; }
20569 if test ${gt_cv_ssize_t+y}
20570 then :
20571   printf %s "(cached) " >&6
20572 else $as_nop
20573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h.  */
20575 #include <sys/types.h>
20576 int
20577 main (void)
20578 {
20579 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20580             return !x;
20581   ;
20582   return 0;
20583 }
20584 _ACEOF
20585 if ac_fn_c_try_compile "$LINENO"
20586 then :
20587   gt_cv_ssize_t=yes
20588 else $as_nop
20589   gt_cv_ssize_t=no
20590 fi
20591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20592 fi
20593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20594 printf "%s\n" "$gt_cv_ssize_t" >&6; }
20595   if test $gt_cv_ssize_t = no; then
20596
20597 printf "%s\n" "#define ssize_t int" >>confdefs.h
20598
20599   fi
20600
20601 ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
20602 if test "x$ac_cv_have_decl_setenv" = xyes
20603 then :
20604   ac_have_decl=1
20605 else $as_nop
20606   ac_have_decl=0
20607 fi
20608 printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h
20609
20610
20611
20612
20613
20614   if test $ac_cv_have_decl_setenv = no; then
20615     HAVE_DECL_SETENV=0
20616   fi
20617
20618
20619
20620
20621
20622   ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
20623 if test "x$ac_cv_header_search_h" = xyes
20624 then :
20625   printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h
20626
20627 fi
20628
20629   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20630 if test "x$ac_cv_func_tsearch" = xyes
20631 then :
20632   printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h
20633
20634 fi
20635
20636
20637
20638
20639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20640 printf %s "checking for uid_t in sys/types.h... " >&6; }
20641 if test ${ac_cv_type_uid_t+y}
20642 then :
20643   printf %s "(cached) " >&6
20644 else $as_nop
20645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20646 /* end confdefs.h.  */
20647 #include <sys/types.h>
20648
20649 _ACEOF
20650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20651   $EGREP "uid_t" >/dev/null 2>&1
20652 then :
20653   ac_cv_type_uid_t=yes
20654 else $as_nop
20655   ac_cv_type_uid_t=no
20656 fi
20657 rm -rf conftest*
20658
20659 fi
20660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20661 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
20662 if test $ac_cv_type_uid_t = no; then
20663
20664 printf "%s\n" "#define uid_t int" >>confdefs.h
20665
20666
20667 printf "%s\n" "#define gid_t int" >>confdefs.h
20668
20669 fi
20670
20671 :
20672
20673
20674
20675   GNULIB_DPRINTF=0;
20676   GNULIB_FCLOSE=0;
20677   GNULIB_FDOPEN=0;
20678   GNULIB_FFLUSH=0;
20679   GNULIB_FGETC=0;
20680   GNULIB_FGETS=0;
20681   GNULIB_FOPEN=0;
20682   GNULIB_FPRINTF=0;
20683   GNULIB_FPRINTF_POSIX=0;
20684   GNULIB_FPURGE=0;
20685   GNULIB_FPUTC=0;
20686   GNULIB_FPUTS=0;
20687   GNULIB_FREAD=0;
20688   GNULIB_FREOPEN=0;
20689   GNULIB_FSCANF=0;
20690   GNULIB_FSEEK=0;
20691   GNULIB_FSEEKO=0;
20692   GNULIB_FTELL=0;
20693   GNULIB_FTELLO=0;
20694   GNULIB_FWRITE=0;
20695   GNULIB_GETC=0;
20696   GNULIB_GETCHAR=0;
20697   GNULIB_GETDELIM=0;
20698   GNULIB_GETLINE=0;
20699   GNULIB_OBSTACK_PRINTF=0;
20700   GNULIB_OBSTACK_PRINTF_POSIX=0;
20701   GNULIB_PCLOSE=0;
20702   GNULIB_PERROR=0;
20703   GNULIB_POPEN=0;
20704   GNULIB_PRINTF=0;
20705   GNULIB_PRINTF_POSIX=0;
20706   GNULIB_PUTC=0;
20707   GNULIB_PUTCHAR=0;
20708   GNULIB_PUTS=0;
20709   GNULIB_REMOVE=0;
20710   GNULIB_RENAME=0;
20711   GNULIB_RENAMEAT=0;
20712   GNULIB_SCANF=0;
20713   GNULIB_SNPRINTF=0;
20714   GNULIB_SPRINTF_POSIX=0;
20715   GNULIB_STDIO_H_NONBLOCKING=0;
20716   GNULIB_STDIO_H_SIGPIPE=0;
20717   GNULIB_TMPFILE=0;
20718   GNULIB_VASPRINTF=0;
20719   GNULIB_VFSCANF=0;
20720   GNULIB_VSCANF=0;
20721   GNULIB_VDPRINTF=0;
20722   GNULIB_VFPRINTF=0;
20723   GNULIB_VFPRINTF_POSIX=0;
20724   GNULIB_VPRINTF=0;
20725   GNULIB_VPRINTF_POSIX=0;
20726   GNULIB_VSNPRINTF=0;
20727   GNULIB_VSPRINTF_POSIX=0;
20728     HAVE_DECL_FPURGE=1;
20729   HAVE_DECL_FSEEKO=1;
20730   HAVE_DECL_FTELLO=1;
20731   HAVE_DECL_GETDELIM=1;
20732   HAVE_DECL_GETLINE=1;
20733   HAVE_DECL_OBSTACK_PRINTF=1;
20734   HAVE_DECL_SNPRINTF=1;
20735   HAVE_DECL_VSNPRINTF=1;
20736   HAVE_DPRINTF=1;
20737   HAVE_FSEEKO=1;
20738   HAVE_FTELLO=1;
20739   HAVE_PCLOSE=1;
20740   HAVE_POPEN=1;
20741   HAVE_RENAMEAT=1;
20742   HAVE_VASPRINTF=1;
20743   HAVE_VDPRINTF=1;
20744   REPLACE_DPRINTF=0;
20745   REPLACE_FCLOSE=0;
20746   REPLACE_FDOPEN=0;
20747   REPLACE_FFLUSH=0;
20748   REPLACE_FOPEN=0;
20749   REPLACE_FPRINTF=0;
20750   REPLACE_FPURGE=0;
20751   REPLACE_FREOPEN=0;
20752   REPLACE_FSEEK=0;
20753   REPLACE_FSEEKO=0;
20754   REPLACE_FTELL=0;
20755   REPLACE_FTELLO=0;
20756   REPLACE_GETDELIM=0;
20757   REPLACE_GETLINE=0;
20758   REPLACE_OBSTACK_PRINTF=0;
20759   REPLACE_PERROR=0;
20760   REPLACE_POPEN=0;
20761   REPLACE_PRINTF=0;
20762   REPLACE_REMOVE=0;
20763   REPLACE_RENAME=0;
20764   REPLACE_RENAMEAT=0;
20765   REPLACE_SNPRINTF=0;
20766   REPLACE_SPRINTF=0;
20767   REPLACE_STDIO_READ_FUNCS=0;
20768   REPLACE_STDIO_WRITE_FUNCS=0;
20769   REPLACE_TMPFILE=0;
20770   REPLACE_VASPRINTF=0;
20771   REPLACE_VDPRINTF=0;
20772   REPLACE_VFPRINTF=0;
20773   REPLACE_VPRINTF=0;
20774   REPLACE_VSNPRINTF=0;
20775   REPLACE_VSPRINTF=0;
20776
20777
20778
20779
20780
20781
20782
20783
20784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20785 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; }
20786 if test ${gl_cv_func_snprintf_retval_c99+y}
20787 then :
20788   printf %s "(cached) " >&6
20789 else $as_nop
20790
20791       if test "$cross_compiling" = yes
20792 then :
20793   case "$host_os" in
20794                                  # Guess yes on glibc systems.
20795            *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
20796                                  # Guess yes on musl systems.
20797            *-musl*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
20798                                  # Guess yes on FreeBSD >= 5.
20799            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
20800            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20801                                  # Guess yes on Mac OS X >= 10.3.
20802            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
20803            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
20804                                  # Guess yes on OpenBSD >= 3.9.
20805            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
20806                                  gl_cv_func_snprintf_retval_c99="guessing no";;
20807            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
20808                                  # Guess yes on Solaris >= 2.10.
20809            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
20810            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
20811                                  # Guess yes on AIX >= 4.
20812            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
20813            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
20814                                  # Guess yes on NetBSD >= 3.
20815            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
20816                                  gl_cv_func_snprintf_retval_c99="guessing no";;
20817            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
20818                                  # Guess yes on BeOS.
20819            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
20820                                  # Guess yes on Android.
20821            linux*-android*)      gl_cv_func_snprintf_retval_c99="guessing yes";;
20822                                  # Guess yes on MSVC, no on mingw.
20823            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h.  */
20825
20826 #ifdef _MSC_VER
20827  Known
20828 #endif
20829
20830 _ACEOF
20831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20832   $EGREP "Known" >/dev/null 2>&1
20833 then :
20834   gl_cv_func_snprintf_retval_c99="guessing yes"
20835 else $as_nop
20836   gl_cv_func_snprintf_retval_c99="guessing no"
20837 fi
20838 rm -rf conftest*
20839
20840                                  ;;
20841                                  # If we don't know, obey --enable-cross-guesses.
20842            *)                    gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
20843          esac
20844
20845 else $as_nop
20846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20847 /* end confdefs.h.  */
20848
20849 #include <stdio.h>
20850 #include <string.h>
20851 #if HAVE_SNPRINTF
20852 # define my_snprintf snprintf
20853 #else
20854 # include <stdarg.h>
20855 static int my_snprintf (char *buf, int size, const char *format, ...)
20856 {
20857   va_list args;
20858   int ret;
20859   va_start (args, format);
20860   ret = vsnprintf (buf, size, format, args);
20861   va_end (args);
20862   return ret;
20863 }
20864 #endif
20865 static char buf[100];
20866 int main ()
20867 {
20868   strcpy (buf, "ABCDEF");
20869   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20870     return 1;
20871   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20872     return 2;
20873   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20874     return 3;
20875   return 0;
20876 }
20877 _ACEOF
20878 if ac_fn_c_try_run "$LINENO"
20879 then :
20880   gl_cv_func_snprintf_retval_c99=yes
20881 else $as_nop
20882   gl_cv_func_snprintf_retval_c99=no
20883 fi
20884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20885   conftest.$ac_objext conftest.beam conftest.$ac_ext
20886 fi
20887
20888
20889 fi
20890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20891 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; }
20892
20893 ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
20894 if test "x$ac_cv_have_decl_snprintf" = xyes
20895 then :
20896   ac_have_decl=1
20897 else $as_nop
20898   ac_have_decl=0
20899 fi
20900 printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
20901
20902
20903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20904 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
20905 if test ${ac_cv_header_stdbool_h+y}
20906 then :
20907   printf %s "(cached) " >&6
20908 else $as_nop
20909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h.  */
20911
20912              #include <stdbool.h>
20913
20914              #ifdef __cplusplus
20915               typedef bool Bool;
20916              #else
20917               typedef _Bool Bool;
20918               #ifndef bool
20919                "error: bool is not defined"
20920               #endif
20921               #ifndef false
20922                "error: false is not defined"
20923               #endif
20924               #if false
20925                "error: false is not 0"
20926               #endif
20927               #ifndef true
20928                "error: true is not defined"
20929               #endif
20930               #if true != 1
20931                "error: true is not 1"
20932               #endif
20933              #endif
20934
20935              #ifndef __bool_true_false_are_defined
20936               "error: __bool_true_false_are_defined is not defined"
20937              #endif
20938
20939              struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
20940
20941              char a[true == 1 ? 1 : -1];
20942              char b[false == 0 ? 1 : -1];
20943              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20944              char d[(bool) 0.5 == true ? 1 : -1];
20945              /* See body of main program for 'e'.  */
20946              char f[(Bool) 0.0 == false ? 1 : -1];
20947              char g[true];
20948              char h[sizeof (Bool)];
20949              char i[sizeof s.t];
20950              enum { j = false, k = true, l = false * true, m = true * 256 };
20951              /* The following fails for
20952                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20953              Bool n[m];
20954              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20955              char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20956              /* Catch a bug in an HP-UX C compiler.  See
20957                 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20958                 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
20959               */
20960              Bool q = true;
20961              Bool *pq = &q;
20962              bool *qq = &q;
20963
20964 int
20965 main (void)
20966 {
20967
20968              bool e = &s;
20969              *pq |= q; *pq |= ! q;
20970              *qq |= q; *qq |= ! q;
20971              /* Refer to every declared value, to avoid compiler optimizations.  */
20972              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20973                      + !m + !n + !o + !p + !q + !pq + !qq);
20974
20975   ;
20976   return 0;
20977 }
20978 _ACEOF
20979 if ac_fn_c_try_compile "$LINENO"
20980 then :
20981   ac_cv_header_stdbool_h=yes
20982 else $as_nop
20983   ac_cv_header_stdbool_h=no
20984 fi
20985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20986 fi
20987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20988 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
20989    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20990 if test "x$ac_cv_type__Bool" = xyes
20991 then :
20992
20993 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
20994
20995
20996 fi
20997
20998
20999
21000     REPLACE_NULL=0;
21001   HAVE_MAX_ALIGN_T=1;
21002   HAVE_WCHAR_T=1;
21003
21004
21005   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21006 printf %s "checking for wchar_t... " >&6; }
21007 if test ${gt_cv_c_wchar_t+y}
21008 then :
21009   printf %s "(cached) " >&6
21010 else $as_nop
21011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21012 /* end confdefs.h.  */
21013 #include <stddef.h>
21014             wchar_t foo = (wchar_t)'\0';
21015 int
21016 main (void)
21017 {
21018
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 if ac_fn_c_try_compile "$LINENO"
21024 then :
21025   gt_cv_c_wchar_t=yes
21026 else $as_nop
21027   gt_cv_c_wchar_t=no
21028 fi
21029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21030 fi
21031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21032 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
21033   if test $gt_cv_c_wchar_t = yes; then
21034
21035 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
21036
21037   fi
21038
21039
21040      REPLACE_STRERROR_0=0
21041   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
21042 printf %s "checking whether strerror(0) succeeds... " >&6; }
21043 if test ${gl_cv_func_strerror_0_works+y}
21044 then :
21045   printf %s "(cached) " >&6
21046 else $as_nop
21047   if test "$cross_compiling" = yes
21048 then :
21049   case "$host_os" in
21050                         # Guess yes on glibc systems.
21051          *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
21052                         # Guess yes on musl systems.
21053          *-musl*)       gl_cv_func_strerror_0_works="guessing yes" ;;
21054                         # Guess yes on native Windows.
21055          mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
21056                         # If we don't know, obey --enable-cross-guesses.
21057          *)             gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
21058        esac
21059
21060 else $as_nop
21061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21062 /* end confdefs.h.  */
21063 #include <string.h>
21064            #include <errno.h>
21065
21066 int
21067 main (void)
21068 {
21069 int result = 0;
21070            char *str;
21071            errno = 0;
21072            str = strerror (0);
21073            if (!*str) result |= 1;
21074            if (errno) result |= 2;
21075            if (strstr (str, "nknown") || strstr (str, "ndefined"))
21076              result |= 4;
21077            return result;
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 if ac_fn_c_try_run "$LINENO"
21083 then :
21084   gl_cv_func_strerror_0_works=yes
21085 else $as_nop
21086   gl_cv_func_strerror_0_works=no
21087 fi
21088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21089   conftest.$ac_objext conftest.beam conftest.$ac_ext
21090 fi
21091
21092
21093 fi
21094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
21095 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
21096   case "$gl_cv_func_strerror_0_works" in
21097     *yes) ;;
21098     *)
21099       REPLACE_STRERROR_0=1
21100
21101 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
21102
21103       ;;
21104   esac
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116      if test $gl_cv_have_include_next = yes; then
21117        gl_cv_next_string_h='<'string.h'>'
21118      else
21119        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21120 printf %s "checking absolute name of <string.h>... " >&6; }
21121 if test ${gl_cv_next_string_h+y}
21122 then :
21123   printf %s "(cached) " >&6
21124 else $as_nop
21125
21126
21127
21128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h.  */
21130 #include <string.h>
21131 _ACEOF
21132                 case "$host_os" in
21133     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21134     *)    gl_absname_cpp="$ac_cpp" ;;
21135   esac
21136
21137   case "$host_os" in
21138     mingw*)
21139                                           gl_dirsep_regex='[/\\]'
21140       ;;
21141     *)
21142       gl_dirsep_regex='\/'
21143       ;;
21144   esac
21145       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21146   gl_header_literal_regex=`echo 'string.h' \
21147                            | sed -e "$gl_make_literal_regex_sed"`
21148   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21149       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21150       s|^/[^/]|//&|
21151       p
21152       q
21153     }'
21154
21155         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21156   sed -n "$gl_absolute_header_sed"`
21157
21158            gl_header=$gl_cv_absolute_string_h
21159            gl_cv_next_string_h='"'$gl_header'"'
21160
21161
21162 fi
21163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21164 printf "%s\n" "$gl_cv_next_string_h" >&6; }
21165      fi
21166      NEXT_STRING_H=$gl_cv_next_string_h
21167
21168      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21169        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21170        gl_next_as_first_directive='<'string.h'>'
21171      else
21172        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21173        gl_next_as_first_directive=$gl_cv_next_string_h
21174      fi
21175      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187 ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21188 if test "x$ac_cv_have_decl_strndup" = xyes
21189 then :
21190   ac_have_decl=1
21191 else $as_nop
21192   ac_have_decl=0
21193 fi
21194 printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
21195
21196
21197 ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21198 if test "x$ac_cv_have_decl_strnlen" = xyes
21199 then :
21200   ac_have_decl=1
21201 else $as_nop
21202   ac_have_decl=0
21203 fi
21204 printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
21205
21206 ac_fn_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21207 if test "x$ac_cv_have_decl_strsignal" = xyes
21208 then :
21209   ac_have_decl=1
21210 else $as_nop
21211   ac_have_decl=0
21212 fi
21213 printf "%s\n" "#define HAVE_DECL_STRSIGNAL $ac_have_decl" >>confdefs.h
21214
21215
21216
21217   GNULIB_PSELECT=0;
21218   GNULIB_SELECT=0;
21219     HAVE_PSELECT=1;
21220   REPLACE_PSELECT=0;
21221   REPLACE_SELECT=0;
21222
21223
21224
21225
21226
21227   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21228 printf %s "checking whether <sys/select.h> is self-contained... " >&6; }
21229 if test ${gl_cv_header_sys_select_h_selfcontained+y}
21230 then :
21231   printf %s "(cached) " >&6
21232 else $as_nop
21233
21234                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21235 /* end confdefs.h.  */
21236 #include <sys/select.h>
21237 int
21238 main (void)
21239 {
21240 struct timeval b;
21241   ;
21242   return 0;
21243 }
21244 _ACEOF
21245 if ac_fn_c_try_compile "$LINENO"
21246 then :
21247   gl_cv_header_sys_select_h_selfcontained=yes
21248 else $as_nop
21249   gl_cv_header_sys_select_h_selfcontained=no
21250 fi
21251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21252                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21253         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21254 /* end confdefs.h.  */
21255 #include <sys/select.h>
21256 int
21257 main (void)
21258 {
21259 int memset; int bzero;
21260   ;
21261   return 0;
21262 }
21263
21264 _ACEOF
21265 if ac_fn_c_try_compile "$LINENO"
21266 then :
21267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21268 /* end confdefs.h.  */
21269 #include <sys/select.h>
21270 int
21271 main (void)
21272 {
21273
21274                   #undef memset
21275                   #define memset nonexistent_memset
21276                   extern
21277                   #ifdef __cplusplus
21278                   "C"
21279                   #endif
21280                   void *memset (void *, int, unsigned long);
21281                   #undef bzero
21282                   #define bzero nonexistent_bzero
21283                   extern
21284                   #ifdef __cplusplus
21285                   "C"
21286                   #endif
21287                   void bzero (void *, unsigned long);
21288                   fd_set fds;
21289                   FD_ZERO (&fds);
21290
21291   ;
21292   return 0;
21293 }
21294
21295 _ACEOF
21296 if ac_fn_c_try_link "$LINENO"
21297 then :
21298
21299 else $as_nop
21300   gl_cv_header_sys_select_h_selfcontained=no
21301 fi
21302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21303     conftest$ac_exeext conftest.$ac_ext
21304
21305 fi
21306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21307       fi
21308
21309 fi
21310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21311 printf "%s\n" "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321      if test $gl_cv_have_include_next = yes; then
21322        gl_cv_next_sys_select_h='<'sys/select.h'>'
21323      else
21324        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21325 printf %s "checking absolute name of <sys/select.h>... " >&6; }
21326 if test ${gl_cv_next_sys_select_h+y}
21327 then :
21328   printf %s "(cached) " >&6
21329 else $as_nop
21330
21331              if test $ac_cv_header_sys_select_h = yes; then
21332
21333
21334
21335
21336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h.  */
21338 #include <sys/select.h>
21339 _ACEOF
21340                 case "$host_os" in
21341     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21342     *)    gl_absname_cpp="$ac_cpp" ;;
21343   esac
21344
21345   case "$host_os" in
21346     mingw*)
21347                                           gl_dirsep_regex='[/\\]'
21348       ;;
21349     *)
21350       gl_dirsep_regex='\/'
21351       ;;
21352   esac
21353       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21354   gl_header_literal_regex=`echo 'sys/select.h' \
21355                            | sed -e "$gl_make_literal_regex_sed"`
21356   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21357       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21358       s|^/[^/]|//&|
21359       p
21360       q
21361     }'
21362
21363         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21364   sed -n "$gl_absolute_header_sed"`
21365
21366            gl_header=$gl_cv_absolute_sys_select_h
21367            gl_cv_next_sys_select_h='"'$gl_header'"'
21368           else
21369                gl_cv_next_sys_select_h='<'sys/select.h'>'
21370              fi
21371
21372
21373 fi
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21375 printf "%s\n" "$gl_cv_next_sys_select_h" >&6; }
21376      fi
21377      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21378
21379      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21380        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21381        gl_next_as_first_directive='<'sys/select.h'>'
21382      else
21383        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21384        gl_next_as_first_directive=$gl_cv_next_sys_select_h
21385      fi
21386      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21387
21388
21389
21390
21391   if test $ac_cv_header_sys_select_h = yes; then
21392     HAVE_SYS_SELECT_H=1
21393   else
21394     HAVE_SYS_SELECT_H=0
21395   fi
21396
21397
21398
21399
21400
21401   if test $ac_cv_header_sys_socket_h != yes; then
21402                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21403 if test "x$ac_cv_header_winsock2_h" = xyes
21404 then :
21405   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
21406
21407 fi
21408
21409   fi
21410   if test "$ac_cv_header_winsock2_h" = yes; then
21411     HAVE_WINSOCK2_H=1
21412     UNISTD_H_HAVE_WINSOCK2_H=1
21413     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21414   else
21415     HAVE_WINSOCK2_H=0
21416   fi
21417
21418
21419
21420
21421
21422
21423
21424
21425   GNULIB_GETTIMEOFDAY=0;
21426     HAVE_GETTIMEOFDAY=1;
21427   HAVE_STRUCT_TIMEVAL=1;
21428   HAVE_SYS_TIME_H=1;
21429   REPLACE_GETTIMEOFDAY=0;
21430   REPLACE_STRUCT_TIMEVAL=0;
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445      if test $gl_cv_have_include_next = yes; then
21446        gl_cv_next_sys_time_h='<'sys/time.h'>'
21447      else
21448        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
21449 printf %s "checking absolute name of <sys/time.h>... " >&6; }
21450 if test ${gl_cv_next_sys_time_h+y}
21451 then :
21452   printf %s "(cached) " >&6
21453 else $as_nop
21454
21455              if test $ac_cv_header_sys_time_h = yes; then
21456
21457
21458
21459
21460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h.  */
21462 #include <sys/time.h>
21463 _ACEOF
21464                 case "$host_os" in
21465     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21466     *)    gl_absname_cpp="$ac_cpp" ;;
21467   esac
21468
21469   case "$host_os" in
21470     mingw*)
21471                                           gl_dirsep_regex='[/\\]'
21472       ;;
21473     *)
21474       gl_dirsep_regex='\/'
21475       ;;
21476   esac
21477       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21478   gl_header_literal_regex=`echo 'sys/time.h' \
21479                            | sed -e "$gl_make_literal_regex_sed"`
21480   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21481       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21482       s|^/[^/]|//&|
21483       p
21484       q
21485     }'
21486
21487         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21488   sed -n "$gl_absolute_header_sed"`
21489
21490            gl_header=$gl_cv_absolute_sys_time_h
21491            gl_cv_next_sys_time_h='"'$gl_header'"'
21492           else
21493                gl_cv_next_sys_time_h='<'sys/time.h'>'
21494              fi
21495
21496
21497 fi
21498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
21499 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; }
21500      fi
21501      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
21502
21503      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21504        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21505        gl_next_as_first_directive='<'sys/time.h'>'
21506      else
21507        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21508        gl_next_as_first_directive=$gl_cv_next_sys_time_h
21509      fi
21510      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
21511
21512
21513
21514
21515
21516   if test $ac_cv_header_sys_time_h != yes; then
21517     HAVE_SYS_TIME_H=0
21518   fi
21519
21520
21521
21522
21523
21524   if test $ac_cv_header_sys_socket_h != yes; then
21525                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21526 if test "x$ac_cv_header_winsock2_h" = xyes
21527 then :
21528   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
21529
21530 fi
21531
21532   fi
21533   if test "$ac_cv_header_winsock2_h" = yes; then
21534     HAVE_WINSOCK2_H=1
21535     UNISTD_H_HAVE_WINSOCK2_H=1
21536     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21537   else
21538     HAVE_WINSOCK2_H=0
21539   fi
21540
21541
21542   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
21543 printf %s "checking for struct timeval... " >&6; }
21544 if test ${gl_cv_sys_struct_timeval+y}
21545 then :
21546   printf %s "(cached) " >&6
21547 else $as_nop
21548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21549 /* end confdefs.h.  */
21550 #if HAVE_SYS_TIME_H
21551              #include <sys/time.h>
21552             #endif
21553             #include <time.h>
21554             #if HAVE_WINSOCK2_H
21555             # include <winsock2.h>
21556             #endif
21557
21558 int
21559 main (void)
21560 {
21561 static struct timeval x; x.tv_sec = x.tv_usec;
21562   ;
21563   return 0;
21564 }
21565 _ACEOF
21566 if ac_fn_c_try_compile "$LINENO"
21567 then :
21568   gl_cv_sys_struct_timeval=yes
21569 else $as_nop
21570   gl_cv_sys_struct_timeval=no
21571 fi
21572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21573
21574 fi
21575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
21576 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; }
21577   if test $gl_cv_sys_struct_timeval != yes; then
21578     HAVE_STRUCT_TIMEVAL=0
21579   else
21580                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
21581 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; }
21582 if test ${gl_cv_sys_struct_timeval_tv_sec+y}
21583 then :
21584   printf %s "(cached) " >&6
21585 else $as_nop
21586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21587 /* end confdefs.h.  */
21588 #if HAVE_SYS_TIME_H
21589                #include <sys/time.h>
21590               #endif
21591               #include <time.h>
21592               #if HAVE_WINSOCK2_H
21593               # include <winsock2.h>
21594               #endif
21595
21596 int
21597 main (void)
21598 {
21599 static struct timeval x;
21600               typedef int verify_tv_sec_type[
21601                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
21602               ];
21603
21604   ;
21605   return 0;
21606 }
21607 _ACEOF
21608 if ac_fn_c_try_compile "$LINENO"
21609 then :
21610   gl_cv_sys_struct_timeval_tv_sec=yes
21611 else $as_nop
21612   gl_cv_sys_struct_timeval_tv_sec=no
21613 fi
21614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21615
21616 fi
21617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
21618 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
21619     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
21620       REPLACE_STRUCT_TIMEVAL=1
21621     fi
21622   fi
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650      if test $gl_cv_have_include_next = yes; then
21651        gl_cv_next_sys_types_h='<'sys/types.h'>'
21652      else
21653        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
21654 printf %s "checking absolute name of <sys/types.h>... " >&6; }
21655 if test ${gl_cv_next_sys_types_h+y}
21656 then :
21657   printf %s "(cached) " >&6
21658 else $as_nop
21659
21660
21661
21662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21663 /* end confdefs.h.  */
21664 #include <sys/types.h>
21665 _ACEOF
21666                 case "$host_os" in
21667     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21668     *)    gl_absname_cpp="$ac_cpp" ;;
21669   esac
21670
21671   case "$host_os" in
21672     mingw*)
21673                                           gl_dirsep_regex='[/\\]'
21674       ;;
21675     *)
21676       gl_dirsep_regex='\/'
21677       ;;
21678   esac
21679       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21680   gl_header_literal_regex=`echo 'sys/types.h' \
21681                            | sed -e "$gl_make_literal_regex_sed"`
21682   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21683       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21684       s|^/[^/]|//&|
21685       p
21686       q
21687     }'
21688
21689         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21690   sed -n "$gl_absolute_header_sed"`
21691
21692            gl_header=$gl_cv_absolute_sys_types_h
21693            gl_cv_next_sys_types_h='"'$gl_header'"'
21694
21695
21696 fi
21697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
21698 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
21699      fi
21700      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
21701
21702      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21703        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21704        gl_next_as_first_directive='<'sys/types.h'>'
21705      else
21706        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21707        gl_next_as_first_directive=$gl_cv_next_sys_types_h
21708      fi
21709      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722     WINDOWS_STAT_INODES=0
21723
21724
21725
21726
21727   GNULIB_WAITPID=0;
21728
21729
21730
21731   GNULIB_CTIME=0;
21732   GNULIB_MKTIME=0;
21733   GNULIB_LOCALTIME=0;
21734   GNULIB_NANOSLEEP=0;
21735   GNULIB_STRFTIME=0;
21736   GNULIB_STRPTIME=0;
21737   GNULIB_TIMEGM=0;
21738   GNULIB_TIME_R=0;
21739   GNULIB_TIME_RZ=0;
21740   GNULIB_TZSET=0;
21741     HAVE_DECL_LOCALTIME_R=1;
21742   HAVE_NANOSLEEP=1;
21743   HAVE_STRPTIME=1;
21744   HAVE_TIMEGM=1;
21745     HAVE_TIMEZONE_T=0;
21746         REPLACE_CTIME=GNULIB_PORTCHECK;
21747   REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21748   REPLACE_MKTIME=GNULIB_PORTCHECK;
21749   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21750   REPLACE_STRFTIME=GNULIB_PORTCHECK;
21751   REPLACE_TIMEGM=GNULIB_PORTCHECK;
21752   REPLACE_TZSET=GNULIB_PORTCHECK;
21753
21754       : ${GNULIB_GETTIMEOFDAY=0};
21755         REPLACE_GMTIME=0;
21756   REPLACE_LOCALTIME=0;
21757
21758
21759
21760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21761 printf %s "checking for struct timespec in <time.h>... " >&6; }
21762 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
21763 then :
21764   printf %s "(cached) " >&6
21765 else $as_nop
21766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21767 /* end confdefs.h.  */
21768 #include <time.h>
21769
21770 int
21771 main (void)
21772 {
21773 static struct timespec x; x.tv_sec = x.tv_nsec;
21774   ;
21775   return 0;
21776 }
21777 _ACEOF
21778 if ac_fn_c_try_compile "$LINENO"
21779 then :
21780   gl_cv_sys_struct_timespec_in_time_h=yes
21781 else $as_nop
21782   gl_cv_sys_struct_timespec_in_time_h=no
21783 fi
21784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21785 fi
21786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21787 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21788
21789   TIME_H_DEFINES_STRUCT_TIMESPEC=0
21790   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21791   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21792   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
21793   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21794     TIME_H_DEFINES_STRUCT_TIMESPEC=1
21795   else
21796     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21797 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
21798 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
21799 then :
21800   printf %s "(cached) " >&6
21801 else $as_nop
21802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803 /* end confdefs.h.  */
21804 #include <sys/time.h>
21805
21806 int
21807 main (void)
21808 {
21809 static struct timespec x; x.tv_sec = x.tv_nsec;
21810   ;
21811   return 0;
21812 }
21813 _ACEOF
21814 if ac_fn_c_try_compile "$LINENO"
21815 then :
21816   gl_cv_sys_struct_timespec_in_sys_time_h=yes
21817 else $as_nop
21818   gl_cv_sys_struct_timespec_in_sys_time_h=no
21819 fi
21820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21821 fi
21822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21823 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21824     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21825       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21826     else
21827       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21828 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
21829 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
21830 then :
21831   printf %s "(cached) " >&6
21832 else $as_nop
21833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21834 /* end confdefs.h.  */
21835 #include <pthread.h>
21836
21837 int
21838 main (void)
21839 {
21840 static struct timespec x; x.tv_sec = x.tv_nsec;
21841   ;
21842   return 0;
21843 }
21844 _ACEOF
21845 if ac_fn_c_try_compile "$LINENO"
21846 then :
21847   gl_cv_sys_struct_timespec_in_pthread_h=yes
21848 else $as_nop
21849   gl_cv_sys_struct_timespec_in_pthread_h=no
21850 fi
21851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21852 fi
21853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21854 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21855       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21856         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21857       else
21858         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
21859 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
21860 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
21861 then :
21862   printf %s "(cached) " >&6
21863 else $as_nop
21864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865 /* end confdefs.h.  */
21866 #include <unistd.h>
21867
21868 int
21869 main (void)
21870 {
21871 static struct timespec x; x.tv_sec = x.tv_nsec;
21872   ;
21873   return 0;
21874 }
21875 _ACEOF
21876 if ac_fn_c_try_compile "$LINENO"
21877 then :
21878   gl_cv_sys_struct_timespec_in_unistd_h=yes
21879 else $as_nop
21880   gl_cv_sys_struct_timespec_in_unistd_h=no
21881 fi
21882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21883 fi
21884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
21885 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
21886         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
21887           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
21888         fi
21889       fi
21890     fi
21891   fi
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908      if test $gl_cv_have_include_next = yes; then
21909        gl_cv_next_time_h='<'time.h'>'
21910      else
21911        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21912 printf %s "checking absolute name of <time.h>... " >&6; }
21913 if test ${gl_cv_next_time_h+y}
21914 then :
21915   printf %s "(cached) " >&6
21916 else $as_nop
21917
21918
21919
21920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h.  */
21922 #include <time.h>
21923 _ACEOF
21924                 case "$host_os" in
21925     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21926     *)    gl_absname_cpp="$ac_cpp" ;;
21927   esac
21928
21929   case "$host_os" in
21930     mingw*)
21931                                           gl_dirsep_regex='[/\\]'
21932       ;;
21933     *)
21934       gl_dirsep_regex='\/'
21935       ;;
21936   esac
21937       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21938   gl_header_literal_regex=`echo 'time.h' \
21939                            | sed -e "$gl_make_literal_regex_sed"`
21940   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21941       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21942       s|^/[^/]|//&|
21943       p
21944       q
21945     }'
21946
21947         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21948   sed -n "$gl_absolute_header_sed"`
21949
21950            gl_header=$gl_cv_absolute_time_h
21951            gl_cv_next_time_h='"'$gl_header'"'
21952
21953
21954 fi
21955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21956 printf "%s\n" "$gl_cv_next_time_h" >&6; }
21957      fi
21958      NEXT_TIME_H=$gl_cv_next_time_h
21959
21960      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21961        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21962        gl_next_as_first_directive='<'time.h'>'
21963      else
21964        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21965        gl_next_as_first_directive=$gl_cv_next_time_h
21966      fi
21967      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21968
21969
21970
21971
21972
21973
21974
21975
21976 ac_fn_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21977 if test "x$ac_cv_have_decl_unsetenv" = xyes
21978 then :
21979   ac_have_decl=1
21980 else $as_nop
21981   ac_have_decl=0
21982 fi
21983 printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h
21984
21985
21986
21987
21988
21989   if test $ac_cv_header_features_h = yes; then
21990     HAVE_FEATURES_H=1
21991   else
21992     HAVE_FEATURES_H=0
21993   fi
21994
21995
21996
21997   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
21998 printf %s "checking for inttypes.h... " >&6; }
21999 if test ${gl_cv_header_inttypes_h+y}
22000 then :
22001   printf %s "(cached) " >&6
22002 else $as_nop
22003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22004 /* end confdefs.h.  */
22005
22006 #include <sys/types.h>
22007 #include <inttypes.h>
22008
22009 int
22010 main (void)
22011 {
22012 uintmax_t i = (uintmax_t) -1; return !i;
22013   ;
22014   return 0;
22015 }
22016 _ACEOF
22017 if ac_fn_c_try_compile "$LINENO"
22018 then :
22019   gl_cv_header_inttypes_h=yes
22020 else $as_nop
22021   gl_cv_header_inttypes_h=no
22022 fi
22023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22024 fi
22025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22026 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
22027   if test $gl_cv_header_inttypes_h = yes; then
22028
22029 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
22030
22031   fi
22032
22033
22034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22035 printf %s "checking for stdint.h... " >&6; }
22036 if test ${gl_cv_header_stdint_h+y}
22037 then :
22038   printf %s "(cached) " >&6
22039 else $as_nop
22040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h.  */
22042 #include <sys/types.h>
22043             #include <stdint.h>
22044 int
22045 main (void)
22046 {
22047 uintmax_t i = (uintmax_t) -1; return !i;
22048   ;
22049   return 0;
22050 }
22051 _ACEOF
22052 if ac_fn_c_try_compile "$LINENO"
22053 then :
22054   gl_cv_header_stdint_h=yes
22055 else $as_nop
22056   gl_cv_header_stdint_h=no
22057 fi
22058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22059 fi
22060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22061 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
22062   if test $gl_cv_header_stdint_h = yes; then
22063
22064 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
22065
22066   fi
22067
22068
22069
22070
22071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22072 printf %s "checking for intmax_t... " >&6; }
22073 if test ${gt_cv_c_intmax_t+y}
22074 then :
22075   printf %s "(cached) " >&6
22076 else $as_nop
22077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h.  */
22079
22080 #include <stddef.h>
22081 #include <stdlib.h>
22082 #if HAVE_STDINT_H_WITH_UINTMAX
22083 #include <stdint.h>
22084 #endif
22085 #if HAVE_INTTYPES_H_WITH_UINTMAX
22086 #include <inttypes.h>
22087 #endif
22088
22089 int
22090 main (void)
22091 {
22092 intmax_t x = -1; return !x;
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 if ac_fn_c_try_compile "$LINENO"
22098 then :
22099   gt_cv_c_intmax_t=yes
22100 else $as_nop
22101   gt_cv_c_intmax_t=no
22102 fi
22103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22104 fi
22105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22106 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
22107   if test $gt_cv_c_intmax_t = yes; then
22108
22109 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
22110
22111   else
22112
22113 printf "%s\n" "#define intmax_t long long" >>confdefs.h
22114
22115   fi
22116
22117
22118   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22119 printf %s "checking where to find the exponent in a 'double'... " >&6; }
22120 if test ${gl_cv_cc_double_expbit0+y}
22121 then :
22122   printf %s "(cached) " >&6
22123 else $as_nop
22124
22125       if test "$cross_compiling" = yes
22126 then :
22127
22128                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129 /* end confdefs.h.  */
22130
22131 #if defined arm || defined __arm || defined __arm__
22132   mixed_endianness
22133 #endif
22134
22135 _ACEOF
22136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22137   $EGREP "mixed_endianness" >/dev/null 2>&1
22138 then :
22139   gl_cv_cc_double_expbit0="unknown"
22140 else $as_nop
22141
22142                                                          :
22143 if test ${ac_cv_c_bigendian+y}
22144 then :
22145   printf %s "(cached) " >&6
22146 else $as_nop
22147   ac_cv_c_bigendian=unknown
22148     # See if we're dealing with a universal compiler.
22149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h.  */
22151 #ifndef __APPLE_CC__
22152                not a universal capable compiler
22153              #endif
22154              typedef int dummy;
22155
22156 _ACEOF
22157 if ac_fn_c_try_compile "$LINENO"
22158 then :
22159
22160         # Check for potential -arch flags.  It is not universal unless
22161         # there are at least two -arch flags with different values.
22162         ac_arch=
22163         ac_prev=
22164         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22165          if test -n "$ac_prev"; then
22166            case $ac_word in
22167              i?86 | x86_64 | ppc | ppc64)
22168                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22169                  ac_arch=$ac_word
22170                else
22171                  ac_cv_c_bigendian=universal
22172                  break
22173                fi
22174                ;;
22175            esac
22176            ac_prev=
22177          elif test "x$ac_word" = "x-arch"; then
22178            ac_prev=arch
22179          fi
22180        done
22181 fi
22182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22183     if test $ac_cv_c_bigendian = unknown; then
22184       # See if sys/param.h defines the BYTE_ORDER macro.
22185       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h.  */
22187 #include <sys/types.h>
22188              #include <sys/param.h>
22189
22190 int
22191 main (void)
22192 {
22193 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22194                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22195                      && LITTLE_ENDIAN)
22196               bogus endian macros
22197              #endif
22198
22199   ;
22200   return 0;
22201 }
22202 _ACEOF
22203 if ac_fn_c_try_compile "$LINENO"
22204 then :
22205   # It does; now see whether it defined to BIG_ENDIAN or not.
22206          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h.  */
22208 #include <sys/types.h>
22209                 #include <sys/param.h>
22210
22211 int
22212 main (void)
22213 {
22214 #if BYTE_ORDER != BIG_ENDIAN
22215                  not big endian
22216                 #endif
22217
22218   ;
22219   return 0;
22220 }
22221 _ACEOF
22222 if ac_fn_c_try_compile "$LINENO"
22223 then :
22224   ac_cv_c_bigendian=yes
22225 else $as_nop
22226   ac_cv_c_bigendian=no
22227 fi
22228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22229 fi
22230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22231     fi
22232     if test $ac_cv_c_bigendian = unknown; then
22233       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22234       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22235 /* end confdefs.h.  */
22236 #include <limits.h>
22237
22238 int
22239 main (void)
22240 {
22241 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22242               bogus endian macros
22243              #endif
22244
22245   ;
22246   return 0;
22247 }
22248 _ACEOF
22249 if ac_fn_c_try_compile "$LINENO"
22250 then :
22251   # It does; now see whether it defined to _BIG_ENDIAN or not.
22252          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h.  */
22254 #include <limits.h>
22255
22256 int
22257 main (void)
22258 {
22259 #ifndef _BIG_ENDIAN
22260                  not big endian
22261                 #endif
22262
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 if ac_fn_c_try_compile "$LINENO"
22268 then :
22269   ac_cv_c_bigendian=yes
22270 else $as_nop
22271   ac_cv_c_bigendian=no
22272 fi
22273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22274 fi
22275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22276     fi
22277     if test $ac_cv_c_bigendian = unknown; then
22278       # Compile a test program.
22279       if test "$cross_compiling" = yes
22280 then :
22281   # Try to guess by grepping values from an object file.
22282          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h.  */
22284 unsigned short int ascii_mm[] =
22285                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22286                 unsigned short int ascii_ii[] =
22287                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22288                 int use_ascii (int i) {
22289                   return ascii_mm[i] + ascii_ii[i];
22290                 }
22291                 unsigned short int ebcdic_ii[] =
22292                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22293                 unsigned short int ebcdic_mm[] =
22294                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22295                 int use_ebcdic (int i) {
22296                   return ebcdic_mm[i] + ebcdic_ii[i];
22297                 }
22298                 extern int foo;
22299
22300 int
22301 main (void)
22302 {
22303 return use_ascii (foo) == use_ebcdic (foo);
22304   ;
22305   return 0;
22306 }
22307 _ACEOF
22308 if ac_fn_c_try_compile "$LINENO"
22309 then :
22310   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22311               ac_cv_c_bigendian=yes
22312             fi
22313             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22314               if test "$ac_cv_c_bigendian" = unknown; then
22315                 ac_cv_c_bigendian=no
22316               else
22317                 # finding both strings is unlikely to happen, but who knows?
22318                 ac_cv_c_bigendian=unknown
22319               fi
22320             fi
22321 fi
22322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22323 else $as_nop
22324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h.  */
22326 $ac_includes_default
22327 int
22328 main (void)
22329 {
22330
22331              /* Are we little or big endian?  From Harbison&Steele.  */
22332              union
22333              {
22334                long int l;
22335                char c[sizeof (long int)];
22336              } u;
22337              u.l = 1;
22338              return u.c[sizeof (long int) - 1] == 1;
22339
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 if ac_fn_c_try_run "$LINENO"
22345 then :
22346   ac_cv_c_bigendian=no
22347 else $as_nop
22348   ac_cv_c_bigendian=yes
22349 fi
22350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22351   conftest.$ac_objext conftest.beam conftest.$ac_ext
22352 fi
22353
22354     fi
22355 fi
22356 :
22357  case $ac_cv_c_bigendian in #(
22358    yes)
22359      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22360    no)
22361      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22362    universal)
22363
22364 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22365
22366      ;; #(
22367    *)
22368      gl_cv_cc_double_expbit0="unknown" ;;
22369  esac
22370
22371
22372 fi
22373 rm -rf conftest*
22374
22375
22376 else $as_nop
22377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22378 /* end confdefs.h.  */
22379
22380 #include <float.h>
22381 #include <stddef.h>
22382 #include <stdio.h>
22383 #include <string.h>
22384 #define NWORDS \
22385   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22386 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22387 static unsigned int ored_words[NWORDS];
22388 static unsigned int anded_words[NWORDS];
22389 static void add_to_ored_words (double x)
22390 {
22391   memory_double m;
22392   size_t i;
22393   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
22394   memset (&m, 0, sizeof (memory_double));
22395   m.value = x;
22396   for (i = 0; i < NWORDS; i++)
22397     {
22398       ored_words[i] |= m.word[i];
22399       anded_words[i] &= m.word[i];
22400     }
22401 }
22402 int main ()
22403 {
22404   size_t j;
22405   FILE *fp = fopen ("conftest.out", "w");
22406   if (fp == NULL)
22407     return 1;
22408   for (j = 0; j < NWORDS; j++)
22409     anded_words[j] = ~ (unsigned int) 0;
22410   add_to_ored_words (0.25);
22411   add_to_ored_words (0.5);
22412   add_to_ored_words (1.0);
22413   add_to_ored_words (2.0);
22414   add_to_ored_words (4.0);
22415   /* Remove bits that are common (e.g. if representation of the first mantissa
22416      bit is explicit).  */
22417   for (j = 0; j < NWORDS; j++)
22418     ored_words[j] &= ~anded_words[j];
22419   /* Now find the nonzero word.  */
22420   for (j = 0; j < NWORDS; j++)
22421     if (ored_words[j] != 0)
22422       break;
22423   if (j < NWORDS)
22424     {
22425       size_t i;
22426       for (i = j + 1; i < NWORDS; i++)
22427         if (ored_words[i] != 0)
22428           {
22429             fprintf (fp, "unknown");
22430             return (fclose (fp) != 0);
22431           }
22432       for (i = 0; ; i++)
22433         if ((ored_words[j] >> i) & 1)
22434           {
22435             fprintf (fp, "word %d bit %d", (int) j, (int) i);
22436             return (fclose (fp) != 0);
22437           }
22438     }
22439   fprintf (fp, "unknown");
22440   return (fclose (fp) != 0);
22441 }
22442
22443 _ACEOF
22444 if ac_fn_c_try_run "$LINENO"
22445 then :
22446   gl_cv_cc_double_expbit0=`cat conftest.out`
22447 else $as_nop
22448   gl_cv_cc_double_expbit0="unknown"
22449 fi
22450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22451   conftest.$ac_objext conftest.beam conftest.$ac_ext
22452 fi
22453
22454       rm -f conftest.out
22455
22456 fi
22457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22458 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; }
22459   case "$gl_cv_cc_double_expbit0" in
22460     word*bit*)
22461       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22462       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22463
22464 printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h
22465
22466
22467 printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h
22468
22469       ;;
22470   esac
22471
22472
22473
22474
22475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
22476 printf %s "checking whether snprintf truncates the result as in C99... " >&6; }
22477 if test ${gl_cv_func_snprintf_truncation_c99+y}
22478 then :
22479   printf %s "(cached) " >&6
22480 else $as_nop
22481
22482       if test "$cross_compiling" = yes
22483 then :
22484
22485          case "$host_os" in
22486                                  # Guess yes on glibc systems.
22487            *-gnu* | gnu*)        gl_cv_func_snprintf_truncation_c99="guessing yes";;
22488                                  # Guess yes on musl systems.
22489            *-musl*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
22490                                  # Guess yes on FreeBSD >= 5.
22491            freebsd[1-4].*)       gl_cv_func_snprintf_truncation_c99="guessing no";;
22492            freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
22493                                  # Guess yes on Mac OS X >= 10.3.
22494            darwin[1-6].*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
22495            darwin*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
22496                                  # Guess yes on OpenBSD >= 3.9.
22497            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
22498                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
22499            openbsd*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
22500                                  # Guess yes on Solaris >= 2.6.
22501            solaris2.[0-5] | solaris2.[0-5].*)
22502                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
22503            solaris*)             gl_cv_func_snprintf_truncation_c99="guessing yes";;
22504                                  # Guess yes on AIX >= 4.
22505            aix[1-3]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
22506            aix*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
22507                                  # Guess yes on HP-UX >= 11.
22508            hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
22509            hpux*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
22510                                  # Guess yes on IRIX >= 6.5.
22511            irix6.5)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
22512                                  # Guess yes on OSF/1 >= 5.
22513            osf[3-4]*)            gl_cv_func_snprintf_truncation_c99="guessing no";;
22514            osf*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
22515                                  # Guess yes on NetBSD >= 3.
22516            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
22517                                  gl_cv_func_snprintf_truncation_c99="guessing no";;
22518            netbsd*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
22519                                  # Guess yes on BeOS.
22520            beos*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
22521                                  # Guess yes on Android.
22522            linux*-android*)      gl_cv_func_snprintf_truncation_c99="guessing yes";;
22523                                  # Guess no on native Windows.
22524            mingw*)               gl_cv_func_snprintf_truncation_c99="guessing no";;
22525                                  # If we don't know, obey --enable-cross-guesses.
22526            *)                    gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
22527          esac
22528
22529 else $as_nop
22530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h.  */
22532
22533 #include <stdio.h>
22534 #include <string.h>
22535 #if HAVE_SNPRINTF
22536 # define my_snprintf snprintf
22537 #else
22538 # include <stdarg.h>
22539 static int my_snprintf (char *buf, int size, const char *format, ...)
22540 {
22541   va_list args;
22542   int ret;
22543   va_start (args, format);
22544   ret = vsnprintf (buf, size, format, args);
22545   va_end (args);
22546   return ret;
22547 }
22548 #endif
22549 static char buf[100];
22550 int main ()
22551 {
22552   strcpy (buf, "ABCDEF");
22553   my_snprintf (buf, 3, "%d %d", 4567, 89);
22554   if (memcmp (buf, "45\0DEF", 6) != 0)
22555     return 1;
22556   return 0;
22557 }
22558 _ACEOF
22559 if ac_fn_c_try_run "$LINENO"
22560 then :
22561   gl_cv_func_snprintf_truncation_c99=yes
22562 else $as_nop
22563   gl_cv_func_snprintf_truncation_c99=no
22564 fi
22565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22566   conftest.$ac_objext conftest.beam conftest.$ac_ext
22567 fi
22568
22569
22570 fi
22571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
22572 printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; }
22573
22574
22575
22576
22577
22578   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22579 if test "x$ac_cv_func_snprintf" = xyes
22580 then :
22581   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
22582
22583 fi
22584 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
22585 if test "x$ac_cv_func_strnlen" = xyes
22586 then :
22587   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
22588
22589 fi
22590 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
22591 if test "x$ac_cv_func_wcslen" = xyes
22592 then :
22593   printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
22594
22595 fi
22596 ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen"
22597 if test "x$ac_cv_func_wcsnlen" = xyes
22598 then :
22599   printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h
22600
22601 fi
22602 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
22603 if test "x$ac_cv_func_mbrtowc" = xyes
22604 then :
22605   printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
22606
22607 fi
22608 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
22609 if test "x$ac_cv_func_wcrtomb" = xyes
22610 then :
22611   printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
22612
22613 fi
22614
22615       ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22616 " "$ac_c_undeclared_builtin_options" "CFLAGS"
22617 if test "x$ac_cv_have_decl__snprintf" = xyes
22618 then :
22619   ac_have_decl=1
22620 else $as_nop
22621   ac_have_decl=0
22622 fi
22623 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
22624
22625
22626
22627   case "$gl_cv_func_snprintf_retval_c99" in
22628     *yes)
22629
22630 printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22631
22632       ;;
22633   esac
22634
22635   case "$gl_cv_func_snprintf_truncation_c99" in
22636     *yes)
22637
22638 printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h
22639
22640       ;;
22641   esac
22642
22643
22644   GNULIB_BTOWC=0;
22645   GNULIB_WCTOB=0;
22646   GNULIB_MBSINIT=0;
22647   GNULIB_MBRTOWC=0;
22648   GNULIB_MBRLEN=0;
22649   GNULIB_MBSRTOWCS=0;
22650   GNULIB_MBSNRTOWCS=0;
22651   GNULIB_WCRTOMB=0;
22652   GNULIB_WCSRTOMBS=0;
22653   GNULIB_WCSNRTOMBS=0;
22654   GNULIB_WCWIDTH=0;
22655   GNULIB_WMEMCHR=0;
22656   GNULIB_WMEMCMP=0;
22657   GNULIB_WMEMCPY=0;
22658   GNULIB_WMEMMOVE=0;
22659   GNULIB_WMEMPCPY=0;
22660   GNULIB_WMEMSET=0;
22661   GNULIB_WCSLEN=0;
22662   GNULIB_WCSNLEN=0;
22663   GNULIB_WCSCPY=0;
22664   GNULIB_WCPCPY=0;
22665   GNULIB_WCSNCPY=0;
22666   GNULIB_WCPNCPY=0;
22667   GNULIB_WCSCAT=0;
22668   GNULIB_WCSNCAT=0;
22669   GNULIB_WCSCMP=0;
22670   GNULIB_WCSNCMP=0;
22671   GNULIB_WCSCASECMP=0;
22672   GNULIB_WCSNCASECMP=0;
22673   GNULIB_WCSCOLL=0;
22674   GNULIB_WCSXFRM=0;
22675   GNULIB_WCSDUP=0;
22676   GNULIB_WCSCHR=0;
22677   GNULIB_WCSRCHR=0;
22678   GNULIB_WCSCSPN=0;
22679   GNULIB_WCSSPN=0;
22680   GNULIB_WCSPBRK=0;
22681   GNULIB_WCSSTR=0;
22682   GNULIB_WCSTOK=0;
22683   GNULIB_WCSWIDTH=0;
22684   GNULIB_WCSFTIME=0;
22685     HAVE_BTOWC=1;
22686   HAVE_MBSINIT=1;
22687   HAVE_MBRTOWC=1;
22688   HAVE_MBRLEN=1;
22689   HAVE_MBSRTOWCS=1;
22690   HAVE_MBSNRTOWCS=1;
22691   HAVE_WCRTOMB=1;
22692   HAVE_WCSRTOMBS=1;
22693   HAVE_WCSNRTOMBS=1;
22694   HAVE_WMEMCHR=1;
22695   HAVE_WMEMCMP=1;
22696   HAVE_WMEMCPY=1;
22697   HAVE_WMEMMOVE=1;
22698   HAVE_WMEMPCPY=1;
22699   HAVE_WMEMSET=1;
22700   HAVE_WCSLEN=1;
22701   HAVE_WCSNLEN=1;
22702   HAVE_WCSCPY=1;
22703   HAVE_WCPCPY=1;
22704   HAVE_WCSNCPY=1;
22705   HAVE_WCPNCPY=1;
22706   HAVE_WCSCAT=1;
22707   HAVE_WCSNCAT=1;
22708   HAVE_WCSCMP=1;
22709   HAVE_WCSNCMP=1;
22710   HAVE_WCSCASECMP=1;
22711   HAVE_WCSNCASECMP=1;
22712   HAVE_WCSCOLL=1;
22713   HAVE_WCSXFRM=1;
22714   HAVE_WCSDUP=1;
22715   HAVE_WCSCHR=1;
22716   HAVE_WCSRCHR=1;
22717   HAVE_WCSCSPN=1;
22718   HAVE_WCSSPN=1;
22719   HAVE_WCSPBRK=1;
22720   HAVE_WCSSTR=1;
22721   HAVE_WCSTOK=1;
22722   HAVE_WCSWIDTH=1;
22723   HAVE_WCSFTIME=1;
22724   HAVE_DECL_WCTOB=1;
22725   HAVE_DECL_WCWIDTH=1;
22726   REPLACE_MBSTATE_T=0;
22727   REPLACE_BTOWC=0;
22728   REPLACE_WCTOB=0;
22729   REPLACE_MBSINIT=0;
22730   REPLACE_MBRTOWC=0;
22731   REPLACE_MBRLEN=0;
22732   REPLACE_MBSRTOWCS=0;
22733   REPLACE_MBSNRTOWCS=0;
22734   REPLACE_WCRTOMB=0;
22735   REPLACE_WCSRTOMBS=0;
22736   REPLACE_WCSNRTOMBS=0;
22737   REPLACE_WCWIDTH=0;
22738   REPLACE_WCSWIDTH=0;
22739   REPLACE_WCSFTIME=0;
22740   REPLACE_WCSTOK=0;
22741
22742
22743
22744   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
22745 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
22746 if test ${gl_cv_header_wchar_h_correct_inline+y}
22747 then :
22748   printf %s "(cached) " >&6
22749 else $as_nop
22750   gl_cv_header_wchar_h_correct_inline=yes
22751      case "$host_os" in
22752        *-gnu* | gnu*)
22753          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754 /* end confdefs.h.  */
22755
22756            #define wcstod renamed_wcstod
22757 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22758    <wchar.h>.
22759    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22760    included before <wchar.h>.  */
22761 #include <stddef.h>
22762 #include <stdio.h>
22763 #include <time.h>
22764 #include <wchar.h>
22765 extern int zero (void);
22766 int main () { return zero(); }
22767
22768 _ACEOF
22769                                                       save_ac_compile="$ac_compile"
22770          ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
22771          if echo '#include "conftest.c"' >conftest1.c \
22772             && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22773   (eval $ac_compile) 2>&5
22774   ac_status=$?
22775   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22776   test $ac_status = 0; }; then
22777            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22778 /* end confdefs.h.  */
22779
22780              #define wcstod renamed_wcstod
22781 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22782    <wchar.h>.
22783    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22784    included before <wchar.h>.  */
22785 #include <stddef.h>
22786 #include <stdio.h>
22787 #include <time.h>
22788 #include <wchar.h>
22789 int zero (void) { return 0; }
22790
22791 _ACEOF
22792                       ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
22793            if echo '#include "conftest.c"' >conftest2.c \
22794               && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22795   (eval $ac_compile) 2>&5
22796   ac_status=$?
22797   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22798   test $ac_status = 0; }; then
22799              if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
22800                :
22801              else
22802                gl_cv_header_wchar_h_correct_inline=no
22803              fi
22804            fi
22805          fi
22806          ac_compile="$save_ac_compile"
22807          rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
22808          ;;
22809      esac
22810
22811 fi
22812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
22813 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
22814   if test $gl_cv_header_wchar_h_correct_inline = no; then
22815     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
22816 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
22817 C99 mode. You have four options:
22818   - Add the flag -fgnu89-inline to CC and reconfigure, or
22819   - Fix your include files, using parts of
22820     <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
22821   - Use a gcc version older than 4.3, or
22822   - Don't use the flags -std=c99 or -std=gnu99.
22823 Configuration aborted." "$LINENO" 5
22824   fi
22825
22826
22827
22828
22829   if test $ac_cv_header_crtdefs_h = yes; then
22830     HAVE_CRTDEFS_H=1
22831   else
22832     HAVE_CRTDEFS_H=0
22833   fi
22834
22835
22836
22837    if true; then
22838   GL_COND_LIBTOOL_TRUE=
22839   GL_COND_LIBTOOL_FALSE='#'
22840 else
22841   GL_COND_LIBTOOL_TRUE='#'
22842   GL_COND_LIBTOOL_FALSE=
22843 fi
22844
22845   gl_cond_libtool=true
22846   gl_m4_base='gl/m4'
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857   gl_source_base='gl/lib'
22858
22859
22860   if test $ac_cv_func_alloca_works = no; then
22861     :
22862   fi
22863
22864   # Define an additional variable used in the Makefile substitution.
22865   if test $ac_cv_working_alloca_h = yes; then
22866     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22867 printf %s "checking for alloca as a compiler built-in... " >&6; }
22868 if test ${gl_cv_rpl_alloca+y}
22869 then :
22870   printf %s "(cached) " >&6
22871 else $as_nop
22872
22873       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h.  */
22875
22876 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22877         Need own alloca
22878 #endif
22879
22880 _ACEOF
22881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22882   $EGREP "Need own alloca" >/dev/null 2>&1
22883 then :
22884   gl_cv_rpl_alloca=yes
22885 else $as_nop
22886   gl_cv_rpl_alloca=no
22887 fi
22888 rm -rf conftest*
22889
22890
22891 fi
22892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22893 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
22894     if test $gl_cv_rpl_alloca = yes; then
22895
22896 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
22897
22898       ALLOCA_H=alloca.h
22899     else
22900                   ALLOCA_H=
22901     fi
22902   else
22903     ALLOCA_H=alloca.h
22904   fi
22905
22906    if test -n "$ALLOCA_H"; then
22907   GL_GENERATE_ALLOCA_H_TRUE=
22908   GL_GENERATE_ALLOCA_H_FALSE='#'
22909 else
22910   GL_GENERATE_ALLOCA_H_TRUE='#'
22911   GL_GENERATE_ALLOCA_H_FALSE=
22912 fi
22913
22914
22915   if test $ac_cv_working_alloca_h = yes; then
22916     HAVE_ALLOCA_H=1
22917   else
22918     HAVE_ALLOCA_H=0
22919   fi
22920
22921
22922
22923
22924
22925   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22926   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22927
22928   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
22929   # programs in the package would end up linked with that potentially-shared
22930   # library, inducing unnecessary run-time overhead.
22931   LIB_CLOCK_GETTIME=
22932
22933   gl_saved_libs=$LIBS
22934     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22935 printf %s "checking for library containing clock_gettime... " >&6; }
22936 if test ${ac_cv_search_clock_gettime+y}
22937 then :
22938   printf %s "(cached) " >&6
22939 else $as_nop
22940   ac_func_search_save_LIBS=$LIBS
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h.  */
22943
22944 /* Override any GCC internal prototype to avoid an error.
22945    Use char because int might match the return type of a GCC
22946    builtin and then its argument prototype would still apply.  */
22947 char clock_gettime ();
22948 int
22949 main (void)
22950 {
22951 return clock_gettime ();
22952   ;
22953   return 0;
22954 }
22955 _ACEOF
22956 for ac_lib in '' rt posix4
22957 do
22958   if test -z "$ac_lib"; then
22959     ac_res="none required"
22960   else
22961     ac_res=-l$ac_lib
22962     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22963   fi
22964   if ac_fn_c_try_link "$LINENO"
22965 then :
22966   ac_cv_search_clock_gettime=$ac_res
22967 fi
22968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22969     conftest$ac_exeext
22970   if test ${ac_cv_search_clock_gettime+y}
22971 then :
22972   break
22973 fi
22974 done
22975 if test ${ac_cv_search_clock_gettime+y}
22976 then :
22977
22978 else $as_nop
22979   ac_cv_search_clock_gettime=no
22980 fi
22981 rm conftest.$ac_ext
22982 LIBS=$ac_func_search_save_LIBS
22983 fi
22984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22985 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
22986 ac_res=$ac_cv_search_clock_gettime
22987 if test "$ac_res" != no
22988 then :
22989   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22990   test "$ac_cv_search_clock_gettime" = "none required" ||
22991                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22992 fi
22993
22994     ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22995 if test "x$ac_cv_func_clock_gettime" = xyes
22996 then :
22997   printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22998
22999 fi
23000 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
23001 if test "x$ac_cv_func_clock_settime" = xyes
23002 then :
23003   printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
23004
23005 fi
23006
23007   LIBS=$gl_saved_libs
23008
23009
23010
23011 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
23012
23013
23014
23015
23016
23017
23018     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23019       REPLACE_CLOSE=1
23020     fi
23021
23022
23023
23024
23025
23026
23027   if test $ac_cv_header_sys_socket_h != yes; then
23028                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23029 if test "x$ac_cv_header_winsock2_h" = xyes
23030 then :
23031   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23032
23033 fi
23034
23035   fi
23036   if test "$ac_cv_header_winsock2_h" = yes; then
23037     HAVE_WINSOCK2_H=1
23038     UNISTD_H_HAVE_WINSOCK2_H=1
23039     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23040   else
23041     HAVE_WINSOCK2_H=0
23042   fi
23043
23044
23045     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
23046                         REPLACE_CLOSE=1
23047     fi
23048
23049
23050
23051   if test $REPLACE_CLOSE = 1; then
23052
23053
23054
23055
23056
23057
23058
23059
23060   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
23061
23062   fi
23063
23064
23065
23066
23067
23068           GNULIB_CLOSE=1
23069
23070
23071
23072
23073
23074 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
23075
23076
23077
23078
23079
23080 printf "%s\n" "#define GNULIB_DIRNAME 1" >>confdefs.h
23081
23082
23083
23084
23085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
23086 printf %s "checking whether // is distinct from /... " >&6; }
23087 if test ${gl_cv_double_slash_root+y}
23088 then :
23089   printf %s "(cached) " >&6
23090 else $as_nop
23091    if test x"$cross_compiling" = xyes ; then
23092         # When cross-compiling, there is no way to tell whether // is special
23093         # short of a list of hosts.  However, the only known hosts to date
23094         # that have a distinct // are Apollo DomainOS (too old to port to),
23095         # Cygwin, and z/OS.  If anyone knows of another system for which // has
23096         # special semantics and is distinct from /, please report it to
23097         # <bug-gnulib@gnu.org>.
23098         case $host in
23099           *-cygwin | i370-ibm-openedition)
23100             gl_cv_double_slash_root=yes ;;
23101           *)
23102             # Be optimistic and assume that / and // are the same when we
23103             # don't know.
23104             gl_cv_double_slash_root='unknown, assuming no' ;;
23105         esac
23106       else
23107         set x `ls -di / // 2>/dev/null`
23108         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
23109           gl_cv_double_slash_root=no
23110         else
23111           gl_cv_double_slash_root=yes
23112         fi
23113       fi
23114 fi
23115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
23116 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
23117   if test "$gl_cv_double_slash_root" = yes; then
23118
23119 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
23120
23121   fi
23122
23123
23124
23125
23126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
23127 printf %s "checking whether dup2 works... " >&6; }
23128 if test ${gl_cv_func_dup2_works+y}
23129 then :
23130   printf %s "(cached) " >&6
23131 else $as_nop
23132   if test "$cross_compiling" = yes
23133 then :
23134   case "$host_os" in
23135          mingw*) # on this platform, dup2 always returns 0 for success
23136            gl_cv_func_dup2_works="guessing no" ;;
23137          cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
23138            gl_cv_func_dup2_works="guessing no" ;;
23139          aix* | freebsd*)
23140                  # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
23141                  # not EBADF.
23142            gl_cv_func_dup2_works="guessing no" ;;
23143          haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
23144            gl_cv_func_dup2_works="guessing no" ;;
23145          *-android*) # implemented using dup3(), which fails if oldfd == newfd
23146            gl_cv_func_dup2_works="guessing no" ;;
23147          os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
23148            gl_cv_func_dup2_works="guessing no" ;;
23149          *) gl_cv_func_dup2_works="guessing yes" ;;
23150        esac
23151 else $as_nop
23152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h.  */
23154
23155        #include <errno.h>
23156            #include <fcntl.h>
23157            #include <limits.h>
23158            #include <sys/resource.h>
23159            #include <unistd.h>
23160
23161
23162 $gl_mda_defines
23163
23164            #ifndef RLIM_SAVED_CUR
23165            # define RLIM_SAVED_CUR RLIM_INFINITY
23166            #endif
23167            #ifndef RLIM_SAVED_MAX
23168            # define RLIM_SAVED_MAX RLIM_INFINITY
23169            #endif
23170
23171 int
23172 main (void)
23173 {
23174 int result = 0;
23175            int bad_fd = INT_MAX;
23176            struct rlimit rlim;
23177            if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
23178                && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
23179                && rlim.rlim_cur != RLIM_INFINITY
23180                && rlim.rlim_cur != RLIM_SAVED_MAX
23181                && rlim.rlim_cur != RLIM_SAVED_CUR)
23182              bad_fd = rlim.rlim_cur;
23183            #ifdef FD_CLOEXEC
23184              if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
23185                result |= 1;
23186            #endif
23187            if (dup2 (1, 1) != 1)
23188              result |= 2;
23189            #ifdef FD_CLOEXEC
23190              if (fcntl (1, F_GETFD) != FD_CLOEXEC)
23191                result |= 4;
23192            #endif
23193            close (0);
23194            if (dup2 (0, 0) != -1)
23195              result |= 8;
23196            /* Many gnulib modules require POSIX conformance of EBADF.  */
23197            if (dup2 (2, bad_fd) == -1 && errno != EBADF)
23198              result |= 16;
23199            /* Flush out some cygwin core dumps.  */
23200            if (dup2 (2, -1) != -1 || errno != EBADF)
23201              result |= 32;
23202            dup2 (2, 255);
23203            dup2 (2, 256);
23204            /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
23205            {
23206              int fd = open (".", O_RDONLY);
23207              if (fd == -1)
23208                result |= 64;
23209              else if (dup2 (fd, fd + 1) == -1)
23210                result |= 128;
23211              close (fd);
23212            }
23213            return result;
23214   ;
23215   return 0;
23216 }
23217
23218 _ACEOF
23219 if ac_fn_c_try_run "$LINENO"
23220 then :
23221   gl_cv_func_dup2_works=yes
23222 else $as_nop
23223   gl_cv_func_dup2_works=no
23224 fi
23225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23226   conftest.$ac_objext conftest.beam conftest.$ac_ext
23227 fi
23228
23229
23230 fi
23231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
23232 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
23233   case "$gl_cv_func_dup2_works" in
23234     *yes) ;;
23235     *)
23236       REPLACE_DUP2=1
23237       ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
23238 if test "x$ac_cv_func_setdtablesize" = xyes
23239 then :
23240   printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
23241
23242 fi
23243
23244       ;;
23245   esac
23246
23247
23248   if test $REPLACE_DUP2 = 1; then
23249
23250
23251
23252
23253
23254
23255
23256
23257   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
23258
23259
23260   fi
23261
23262
23263
23264
23265
23266           GNULIB_DUP2=1
23267
23268
23269
23270
23271
23272 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282           GNULIB_ENVIRON=1
23283
23284
23285
23286
23287
23288 printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
23289
23290
23291
23292
23293
23294       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
23295 printf %s "checking for error_at_line... " >&6; }
23296 if test ${ac_cv_lib_error_at_line+y}
23297 then :
23298   printf %s "(cached) " >&6
23299 else $as_nop
23300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23301 /* end confdefs.h.  */
23302 #include <error.h>
23303 int
23304 main (void)
23305 {
23306 error_at_line (0, 0, "", 0, "an error occurred");
23307   ;
23308   return 0;
23309 }
23310 _ACEOF
23311 if ac_fn_c_try_link "$LINENO"
23312 then :
23313   ac_cv_lib_error_at_line=yes
23314 else $as_nop
23315   ac_cv_lib_error_at_line=no
23316 fi
23317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23318     conftest$ac_exeext conftest.$ac_ext
23319 fi
23320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
23321 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
23322
23323   if test $ac_cv_lib_error_at_line = no; then
23324
23325
23326
23327
23328
23329
23330
23331
23332   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
23333
23334
23335
23336   :
23337
23338   fi
23339
23340
23341   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
23342
23343
23344
23345   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
23346
23347
23348
23349
23350
23351
23352
23353   if test $ac_cv_func_fcntl = no; then
23354
23355
23356
23357   if test $ac_cv_func_fcntl = no; then
23358     HAVE_FCNTL=0
23359   else
23360     REPLACE_FCNTL=1
23361   fi
23362
23363   else
23364             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
23365 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
23366 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
23367 then :
23368   printf %s "(cached) " >&6
23369 else $as_nop
23370   if test "$cross_compiling" = yes
23371 then :
23372   case $host_os in
23373             aix* | cygwin* | haiku*)
23374                gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
23375             *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
23376           esac
23377 else $as_nop
23378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23379 /* end confdefs.h.  */
23380 #include <errno.h>
23381               #include <fcntl.h>
23382               #include <limits.h>
23383               #include <sys/resource.h>
23384               #include <unistd.h>
23385
23386
23387 $gl_mda_defines
23388
23389               #ifndef RLIM_SAVED_CUR
23390               # define RLIM_SAVED_CUR RLIM_INFINITY
23391               #endif
23392               #ifndef RLIM_SAVED_MAX
23393               # define RLIM_SAVED_MAX RLIM_INFINITY
23394               #endif
23395
23396 int
23397 main (void)
23398 {
23399 int result = 0;
23400               int bad_fd = INT_MAX;
23401               struct rlimit rlim;
23402               if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
23403                   && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
23404                   && rlim.rlim_cur != RLIM_INFINITY
23405                   && rlim.rlim_cur != RLIM_SAVED_MAX
23406                   && rlim.rlim_cur != RLIM_SAVED_CUR)
23407                 bad_fd = rlim.rlim_cur;
23408               if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
23409               if (errno != EINVAL) result |= 2;
23410               if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
23411               if (errno != EINVAL) result |= 8;
23412               /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
23413               {
23414                 int fd;
23415                 fd = open (".", O_RDONLY);
23416                 if (fd == -1)
23417                   result |= 16;
23418                 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
23419                   result |= 32;
23420
23421                 close (fd);
23422               }
23423               return result;
23424   ;
23425   return 0;
23426 }
23427 _ACEOF
23428 if ac_fn_c_try_run "$LINENO"
23429 then :
23430   gl_cv_func_fcntl_f_dupfd_works=yes
23431 else $as_nop
23432   gl_cv_func_fcntl_f_dupfd_works=no
23433 fi
23434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23435   conftest.$ac_objext conftest.beam conftest.$ac_ext
23436 fi
23437
23438 fi
23439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
23440 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
23441     case $gl_cv_func_fcntl_f_dupfd_works in
23442       *yes) ;;
23443       *)
23444
23445
23446   if test $ac_cv_func_fcntl = no; then
23447     HAVE_FCNTL=0
23448   else
23449     REPLACE_FCNTL=1
23450   fi
23451
23452
23453 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
23454  ;;
23455     esac
23456
23457         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
23458 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
23459 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
23460 then :
23461   printf %s "(cached) " >&6
23462 else $as_nop
23463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23464 /* end confdefs.h.  */
23465
23466 #include <fcntl.h>
23467 #ifndef F_DUPFD_CLOEXEC
23468 choke me
23469 #endif
23470
23471 int
23472 main (void)
23473 {
23474
23475   ;
23476   return 0;
23477 }
23478 _ACEOF
23479 if ac_fn_c_try_compile "$LINENO"
23480 then :
23481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482 /* end confdefs.h.  */
23483
23484 #ifdef __linux__
23485 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
23486    it to support the semantics on older kernels that failed with EINVAL.  */
23487 choke me
23488 #endif
23489
23490 int
23491 main (void)
23492 {
23493
23494   ;
23495   return 0;
23496 }
23497 _ACEOF
23498 if ac_fn_c_try_compile "$LINENO"
23499 then :
23500   gl_cv_func_fcntl_f_dupfd_cloexec=yes
23501 else $as_nop
23502   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
23503 fi
23504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23505 else $as_nop
23506   gl_cv_func_fcntl_f_dupfd_cloexec=no
23507 fi
23508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23509 fi
23510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
23511 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
23512     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
23513
23514
23515
23516   if test $ac_cv_func_fcntl = no; then
23517     HAVE_FCNTL=0
23518   else
23519     REPLACE_FCNTL=1
23520   fi
23521
23522           fi
23523   fi
23524
23525
23526   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
23527
23528
23529
23530
23531
23532
23533
23534
23535   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
23536
23537   fi
23538
23539
23540
23541
23542
23543           GNULIB_FCNTL=1
23544
23545
23546
23547
23548
23549 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564      if test $gl_cv_have_include_next = yes; then
23565        gl_cv_next_fcntl_h='<'fcntl.h'>'
23566      else
23567        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23568 printf %s "checking absolute name of <fcntl.h>... " >&6; }
23569 if test ${gl_cv_next_fcntl_h+y}
23570 then :
23571   printf %s "(cached) " >&6
23572 else $as_nop
23573
23574
23575
23576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h.  */
23578 #include <fcntl.h>
23579 _ACEOF
23580                 case "$host_os" in
23581     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23582     *)    gl_absname_cpp="$ac_cpp" ;;
23583   esac
23584
23585   case "$host_os" in
23586     mingw*)
23587                                           gl_dirsep_regex='[/\\]'
23588       ;;
23589     *)
23590       gl_dirsep_regex='\/'
23591       ;;
23592   esac
23593       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23594   gl_header_literal_regex=`echo 'fcntl.h' \
23595                            | sed -e "$gl_make_literal_regex_sed"`
23596   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23597       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23598       s|^/[^/]|//&|
23599       p
23600       q
23601     }'
23602
23603         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23604   sed -n "$gl_absolute_header_sed"`
23605
23606            gl_header=$gl_cv_absolute_fcntl_h
23607            gl_cv_next_fcntl_h='"'$gl_header'"'
23608
23609
23610 fi
23611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23612 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
23613      fi
23614      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23615
23616      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23617        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23618        gl_next_as_first_directive='<'fcntl.h'>'
23619      else
23620        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23621        gl_next_as_first_directive=$gl_cv_next_fcntl_h
23622      fi
23623      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640   FLOAT_H=
23641   REPLACE_FLOAT_LDBL=0
23642   case "$host_os" in
23643     aix* | beos* | openbsd* | mirbsd* | irix*)
23644       FLOAT_H=float.h
23645       ;;
23646     freebsd* | dragonfly*)
23647       case "$host_cpu" in
23648         i[34567]86 )
23649           FLOAT_H=float.h
23650           ;;
23651         x86_64 )
23652           # On x86_64 systems, the C compiler may still be generating
23653           # 32-bit code.
23654           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23655 /* end confdefs.h.  */
23656 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
23657                   int ok;
23658                  #else
23659                   error fail
23660                  #endif
23661
23662 _ACEOF
23663 if ac_fn_c_try_compile "$LINENO"
23664 then :
23665
23666 else $as_nop
23667   FLOAT_H=float.h
23668 fi
23669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23670           ;;
23671       esac
23672       ;;
23673     linux*)
23674       case "$host_cpu" in
23675         powerpc*)
23676           FLOAT_H=float.h
23677           ;;
23678       esac
23679       ;;
23680   esac
23681   case "$host_os" in
23682     aix* | freebsd* | dragonfly* | linux*)
23683       if test -n "$FLOAT_H"; then
23684         REPLACE_FLOAT_LDBL=1
23685       fi
23686       ;;
23687   esac
23688
23689     REPLACE_ITOLD=0
23690   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
23691 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; }
23692 if test ${gl_cv_func_itold_works+y}
23693 then :
23694   printf %s "(cached) " >&6
23695 else $as_nop
23696
23697       if test "$cross_compiling" = yes
23698 then :
23699   case "$host" in
23700            sparc*-*-linux*)
23701              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23702 /* end confdefs.h.  */
23703 #if defined __LP64__ || defined __arch64__
23704                     int ok;
23705                    #else
23706                     error fail
23707                    #endif
23708
23709 _ACEOF
23710 if ac_fn_c_try_compile "$LINENO"
23711 then :
23712   gl_cv_func_itold_works="guessing no"
23713 else $as_nop
23714   gl_cv_func_itold_works="guessing yes"
23715 fi
23716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23717              ;;
23718                    # Guess yes on native Windows.
23719            mingw*) gl_cv_func_itold_works="guessing yes" ;;
23720            *)      gl_cv_func_itold_works="guessing yes" ;;
23721          esac
23722
23723 else $as_nop
23724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23725 /* end confdefs.h.  */
23726
23727 int i = -1;
23728 volatile long double ld;
23729 int main ()
23730 {
23731   ld += i * 1.0L;
23732   if (ld > 0)
23733     return 1;
23734   return 0;
23735 }
23736 _ACEOF
23737 if ac_fn_c_try_run "$LINENO"
23738 then :
23739   gl_cv_func_itold_works=yes
23740 else $as_nop
23741   gl_cv_func_itold_works=no
23742 fi
23743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23744   conftest.$ac_objext conftest.beam conftest.$ac_ext
23745 fi
23746
23747
23748 fi
23749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
23750 printf "%s\n" "$gl_cv_func_itold_works" >&6; }
23751   case "$gl_cv_func_itold_works" in
23752     *no)
23753       REPLACE_ITOLD=1
23754                   FLOAT_H=float.h
23755       ;;
23756   esac
23757
23758   if test -n "$FLOAT_H"; then
23759
23760
23761
23762
23763
23764
23765
23766
23767      if test $gl_cv_have_include_next = yes; then
23768        gl_cv_next_float_h='<'float.h'>'
23769      else
23770        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
23771 printf %s "checking absolute name of <float.h>... " >&6; }
23772 if test ${gl_cv_next_float_h+y}
23773 then :
23774   printf %s "(cached) " >&6
23775 else $as_nop
23776
23777
23778
23779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23780 /* end confdefs.h.  */
23781 #include <float.h>
23782 _ACEOF
23783                 case "$host_os" in
23784     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23785     *)    gl_absname_cpp="$ac_cpp" ;;
23786   esac
23787
23788   case "$host_os" in
23789     mingw*)
23790                                           gl_dirsep_regex='[/\\]'
23791       ;;
23792     *)
23793       gl_dirsep_regex='\/'
23794       ;;
23795   esac
23796       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23797   gl_header_literal_regex=`echo 'float.h' \
23798                            | sed -e "$gl_make_literal_regex_sed"`
23799   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23800       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23801       s|^/[^/]|//&|
23802       p
23803       q
23804     }'
23805
23806         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23807   sed -n "$gl_absolute_header_sed"`
23808
23809            gl_header=$gl_cv_absolute_float_h
23810            gl_cv_next_float_h='"'$gl_header'"'
23811
23812
23813 fi
23814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
23815 printf "%s\n" "$gl_cv_next_float_h" >&6; }
23816      fi
23817      NEXT_FLOAT_H=$gl_cv_next_float_h
23818
23819      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23820        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23821        gl_next_as_first_directive='<'float.h'>'
23822      else
23823        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23824        gl_next_as_first_directive=$gl_cv_next_float_h
23825      fi
23826      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
23827
23828
23829
23830
23831   fi
23832
23833    if test -n "$FLOAT_H"; then
23834   GL_GENERATE_FLOAT_H_TRUE=
23835   GL_GENERATE_FLOAT_H_FALSE='#'
23836 else
23837   GL_GENERATE_FLOAT_H_TRUE='#'
23838   GL_GENERATE_FLOAT_H_FALSE=
23839 fi
23840
23841
23842
23843   if test $REPLACE_FLOAT_LDBL = 1; then
23844
23845
23846
23847
23848
23849
23850
23851
23852   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
23853
23854   fi
23855   if test $REPLACE_ITOLD = 1; then
23856
23857
23858
23859
23860
23861
23862
23863
23864   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
23865
23866   fi
23867
23868
23869
23870
23871   case "$host_os" in
23872     mingw* | solaris*)
23873                         REPLACE_FSTAT=1
23874       ;;
23875   esac
23876
23877
23878
23879   if test $REPLACE_FSTAT = 1; then
23880
23881
23882
23883
23884
23885
23886
23887
23888   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
23889
23890     case "$host_os" in
23891       mingw*)
23892
23893
23894
23895
23896
23897
23898
23899
23900   gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
23901
23902         ;;
23903     esac
23904
23905
23906
23907   :
23908
23909   fi
23910
23911
23912
23913
23914
23915           GNULIB_FSTAT=1
23916
23917
23918
23919
23920
23921 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
23922
23923
23924
23925
23926
23927
23928
23929
23930   if test $ac_cv_func_getdtablesize = yes &&
23931      test $ac_cv_have_decl_getdtablesize = yes; then
23932     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
23933 printf %s "checking whether getdtablesize works... " >&6; }
23934 if test ${gl_cv_func_getdtablesize_works+y}
23935 then :
23936   printf %s "(cached) " >&6
23937 else $as_nop
23938                                                    case "$host_os" in
23939          vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
23940          *)
23941                                                        if test "$cross_compiling" = yes
23942 then :
23943   case "$host_os" in
23944                 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
23945                   gl_cv_func_getdtablesize_works="guessing no" ;;
23946                 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
23947               esac
23948
23949 else $as_nop
23950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951 /* end confdefs.h.  */
23952
23953              #include <unistd.h>
23954
23955
23956 $gl_mda_defines
23957
23958
23959 int
23960 main (void)
23961 {
23962 int size = getdtablesize();
23963                  if (dup2 (0, getdtablesize()) != -1)
23964                    return 1;
23965                  if (size != getdtablesize())
23966                    return 2;
23967
23968   ;
23969   return 0;
23970 }
23971 _ACEOF
23972 if ac_fn_c_try_run "$LINENO"
23973 then :
23974   gl_cv_func_getdtablesize_works=yes
23975 else $as_nop
23976   gl_cv_func_getdtablesize_works=no
23977 fi
23978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23979   conftest.$ac_objext conftest.beam conftest.$ac_ext
23980 fi
23981
23982            ;;
23983        esac
23984
23985 fi
23986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
23987 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
23988     case "$gl_cv_func_getdtablesize_works" in
23989       *yes | "no (limitation)") ;;
23990       *) REPLACE_GETDTABLESIZE=1 ;;
23991     esac
23992   else
23993     HAVE_GETDTABLESIZE=0
23994   fi
23995
23996   if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
23997
23998
23999
24000
24001
24002
24003
24004
24005   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
24006
24007     :
24008   fi
24009
24010
24011
24012
24013
24014           GNULIB_GETDTABLESIZE=1
24015
24016
24017
24018
24019
24020 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
24021
24022
24023
24024
24025
24026
24027   ac_found=0
24028   ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
24029 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24030 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
24031 then :
24032   ac_have_decl=1
24033 else $as_nop
24034   ac_have_decl=0
24035 fi
24036 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
24037 if test $ac_have_decl = 1
24038 then :
24039   ac_found=1
24040 fi
24041
24042   ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
24043 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24044 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
24045 then :
24046   ac_have_decl=1
24047 else $as_nop
24048   ac_have_decl=0
24049 fi
24050 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
24051 if test $ac_have_decl = 1
24052 then :
24053   ac_found=1
24054 fi
24055
24056   ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
24057 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24058 if test "x$ac_cv_have_decl___argv" = xyes
24059 then :
24060   ac_have_decl=1
24061 else $as_nop
24062   ac_have_decl=0
24063 fi
24064 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
24065 if test $ac_have_decl = 1
24066 then :
24067   ac_found=1
24068 fi
24069
24070
24071   # Incur the cost of this test only if none of the above worked.
24072   if test $ac_found = 0; then
24073     # On OpenBSD 5.1, using the global __progname variable appears to be
24074     # the only way to implement getprogname.
24075     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
24076 printf %s "checking whether __progname is defined in default libraries... " >&6; }
24077 if test ${gl_cv_var___progname+y}
24078 then :
24079   printf %s "(cached) " >&6
24080 else $as_nop
24081
24082         gl_cv_var___progname=
24083         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24084 /* end confdefs.h.  */
24085 extern char *__progname;
24086 int
24087 main (void)
24088 {
24089 return *__progname;
24090
24091   ;
24092   return 0;
24093 }
24094 _ACEOF
24095 if ac_fn_c_try_link "$LINENO"
24096 then :
24097   gl_cv_var___progname=yes
24098
24099 fi
24100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24101     conftest$ac_exeext conftest.$ac_ext
24102
24103
24104 fi
24105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
24106 printf "%s\n" "$gl_cv_var___progname" >&6; }
24107     if test "$gl_cv_var___progname" = yes; then
24108
24109 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
24110
24111     fi
24112   fi
24113
24114
24115
24116
24117
24118   if test "$ac_cv_func_getrandom" != yes; then
24119     HAVE_GETRANDOM=0
24120   else
24121         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
24122 printf %s "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
24123 if test ${gl_cv_func_getrandom_ok+y}
24124 then :
24125   printf %s "(cached) " >&6
24126 else $as_nop
24127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24128 /* end confdefs.h.  */
24129 /* Additional includes are needed before <sys/random.h> on uClibc
24130                  and Mac OS X.  */
24131               #include <sys/types.h>
24132               #include <stdlib.h>
24133               #include <sys/random.h>
24134               ssize_t getrandom (void *, size_t, unsigned int);
24135
24136 int
24137 main (void)
24138 {
24139
24140   ;
24141   return 0;
24142 }
24143
24144 _ACEOF
24145 if ac_fn_c_try_compile "$LINENO"
24146 then :
24147   gl_cv_func_getrandom_ok=yes
24148 else $as_nop
24149   gl_cv_func_getrandom_ok=no
24150 fi
24151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24152
24153 fi
24154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
24155 printf "%s\n" "$gl_cv_func_getrandom_ok" >&6; }
24156     if test $gl_cv_func_getrandom_ok = no; then
24157       REPLACE_GETRANDOM=1
24158     fi
24159   fi
24160
24161   case "$host_os" in
24162     mingw*)
24163       ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
24164
24165 "
24166 if test "x$ac_cv_header_bcrypt_h" = xyes
24167 then :
24168   printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h
24169
24170 fi
24171
24172       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
24173 printf %s "checking whether the bcrypt library is guaranteed to be present... " >&6; }
24174 if test ${gl_cv_lib_assume_bcrypt+y}
24175 then :
24176   printf %s "(cached) " >&6
24177 else $as_nop
24178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24179 /* end confdefs.h.  */
24180 #include <windows.h>
24181 int
24182 main (void)
24183 {
24184 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
24185                   cannot assume it
24186                 #endif
24187
24188   ;
24189   return 0;
24190 }
24191
24192 _ACEOF
24193 if ac_fn_c_try_compile "$LINENO"
24194 then :
24195   gl_cv_lib_assume_bcrypt=yes
24196 else $as_nop
24197   gl_cv_lib_assume_bcrypt=no
24198 fi
24199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24200
24201 fi
24202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
24203 printf "%s\n" "$gl_cv_lib_assume_bcrypt" >&6; }
24204       if test $gl_cv_lib_assume_bcrypt = yes; then
24205
24206 printf "%s\n" "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
24207
24208         LIB_GETRANDOM='-lbcrypt'
24209       else
24210         LIB_GETRANDOM='-ladvapi32'
24211       fi
24212       ;;
24213     *)
24214       LIB_GETRANDOM= ;;
24215   esac
24216
24217
24218   if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
24219
24220
24221
24222
24223
24224
24225
24226
24227   gl_LIBOBJS="$gl_LIBOBJS getrandom.$ac_objext"
24228
24229   fi
24230
24231
24232
24233
24234
24235           GNULIB_GETRANDOM=1
24236
24237
24238
24239
24240
24241 printf "%s\n" "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
24242
24243
24244
24245
24246
24247
24248
24249
24250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
24251 printf %s "checking for C compiler flag to ignore unused libraries... " >&6; }
24252 if test ${gl_cv_prog_c_ignore_unused_libraries+y}
24253 then :
24254   printf %s "(cached) " >&6
24255 else $as_nop
24256   gl_cv_prog_c_ignore_unused_libraries=none
24257      gl_saved_ldflags=$LDFLAGS
24258      gl_saved_libs=$LIBS
24259      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
24260      # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
24261      LIBS="$LIBS -lm"
24262      # Use long option sequences like '-z ignore' to test for the feature,
24263      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
24264      # GCC + binutils likes '-Wl,--as-needed'.
24265      # GCC + Solaris ld likes '-Wl,-z,ignore'.
24266      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
24267      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
24268      # native cc issues annoying warnings and then ignores it,
24269      # which would cause us to incorrectly conclude that it worked.
24270      for gl_flags in  '-Wl,--as-needed' \
24271   '-Wl,-z,ignore' \
24272   '-z ignore'
24273
24274      do
24275        LDFLAGS="$gl_flags $LDFLAGS"
24276        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24277 /* end confdefs.h.  */
24278
24279 int
24280 main (void)
24281 {
24282
24283   ;
24284   return 0;
24285 }
24286 _ACEOF
24287 if ac_fn_c_try_link "$LINENO"
24288 then :
24289   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
24290 fi
24291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24292     conftest$ac_exeext conftest.$ac_ext
24293        LDFLAGS=$gl_saved_ldflags
24294        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
24295          break
24296      done
24297      LIBS=$gl_saved_libs
24298
24299 fi
24300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
24301 printf "%s\n" "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
24302   IGNORE_UNUSED_LIBRARIES_CFLAGS=
24303   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
24304     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
24305   fi
24306
24307
24308
24309   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
24310 printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
24311 if test ${gl_cv_c___inline+y}
24312 then :
24313   printf %s "(cached) " >&6
24314 else $as_nop
24315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24316 /* end confdefs.h.  */
24317 typedef int foo_t;
24318            static __inline foo_t foo (void) { return 0; }
24319 int
24320 main (void)
24321 {
24322 return foo ();
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 if ac_fn_c_try_compile "$LINENO"
24328 then :
24329   gl_cv_c___inline=yes
24330 else $as_nop
24331   gl_cv_c___inline=no
24332 fi
24333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24334 fi
24335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
24336 printf "%s\n" "$gl_cv_c___inline" >&6; }
24337   if test $gl_cv_c___inline = yes; then
24338
24339 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
24340
24341   fi
24342
24343
24344
24345
24346   if test "$gl_threads_api" = posix; then
24347     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
24348     # pthread_rwlock_* functions.
24349     has_rwlock=false
24350     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
24351 "
24352 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
24353 then :
24354   has_rwlock=true
24355
24356 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
24357
24358 fi
24359
24360     if $has_rwlock; then
24361
24362
24363      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
24364 printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
24365 if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y}
24366 then :
24367   printf %s "(cached) " >&6
24368 else $as_nop
24369   save_LIBS="$LIBS"
24370      LIBS="$LIBS $LIBMULTITHREAD"
24371      if test "$cross_compiling" = yes
24372 then :
24373   case "$host_os" in
24374                          # Guess no on glibc systems.
24375           *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
24376                          # Guess no on musl systems.
24377           *-musl*)       gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
24378                          # Guess no on bionic systems.
24379           *-android*)    gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;;
24380                          # Guess yes on native Windows with the mingw-w64 winpthreads library.
24381                          # Guess no on native Windows with the gnulib windows-rwlock module.
24382           mingw*)        if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
24383                            gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
24384                          else
24385                            gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no"
24386                          fi
24387                          ;;
24388                          # If we don't know, obey --enable-cross-guesses.
24389           *)             gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
24390          esac
24391
24392 else $as_nop
24393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h.  */
24395
24396 #include <errno.h>
24397 #include <pthread.h>
24398 #include <stdlib.h>
24399 #include <unistd.h>
24400
24401 #define SUCCEED() exit (0)
24402 #define FAILURE() exit (1)
24403 #define UNEXPECTED(n) (exit (10 + (n)))
24404
24405 /* The main thread creates the waiting writer and the requesting reader threads
24406    in the default way; this guarantees that they have the same priority.
24407    We can reuse the main thread as first reader thread.  */
24408
24409 static pthread_rwlock_t lock;
24410 static pthread_t reader1;
24411 static pthread_t writer;
24412 static pthread_t reader2;
24413 static pthread_t timer;
24414 /* Used to pass control from writer to reader2 and from reader2 to timer,
24415    as in a relay race.
24416    Passing control from one running thread to another running thread
24417    is most likely faster than to create the second thread.  */
24418 static pthread_mutex_t baton;
24419
24420 static void *
24421 timer_func (void *ignored)
24422 {
24423   /* Step 13 (can be before or after step 12):
24424      The timer thread takes the baton, then waits a moment to make sure
24425      it can tell whether the second reader thread is blocked at step 12.  */
24426   if (pthread_mutex_lock (&baton))
24427     UNEXPECTED (13);
24428   usleep (100000);
24429   /* By the time we get here, it's clear that the second reader thread is
24430      blocked at step 12.  This is the desired behaviour.  */
24431   SUCCEED ();
24432 }
24433
24434 static void *
24435 reader2_func (void *ignored)
24436 {
24437   int err;
24438
24439   /* Step 8 (can be before or after step 7):
24440      The second reader thread takes the baton, then waits a moment to make sure
24441      the writer thread has reached step 7.  */
24442   if (pthread_mutex_lock (&baton))
24443     UNEXPECTED (8);
24444   usleep (100000);
24445   /* Step 9: The second reader thread requests the lock.  */
24446   err = pthread_rwlock_tryrdlock (&lock);
24447   if (err == 0)
24448     FAILURE ();
24449   else if (err != EBUSY)
24450     UNEXPECTED (9);
24451   /* Step 10: Launch a timer, to test whether the next call blocks.  */
24452   if (pthread_create (&timer, NULL, timer_func, NULL))
24453     UNEXPECTED (10);
24454   /* Step 11: Release the baton.  */
24455   if (pthread_mutex_unlock (&baton))
24456     UNEXPECTED (11);
24457   /* Step 12: The second reader thread requests the lock.  */
24458   err = pthread_rwlock_rdlock (&lock);
24459   if (err == 0)
24460     FAILURE ();
24461   else
24462     UNEXPECTED (12);
24463 }
24464
24465 static void *
24466 writer_func (void *ignored)
24467 {
24468   /* Step 4: Take the baton, so that the second reader thread does not go ahead
24469      too early.  */
24470   if (pthread_mutex_lock (&baton))
24471     UNEXPECTED (4);
24472   /* Step 5: Create the second reader thread.  */
24473   if (pthread_create (&reader2, NULL, reader2_func, NULL))
24474     UNEXPECTED (5);
24475   /* Step 6: Release the baton.  */
24476   if (pthread_mutex_unlock (&baton))
24477     UNEXPECTED (6);
24478   /* Step 7: The writer thread requests the lock.  */
24479   if (pthread_rwlock_wrlock (&lock))
24480     UNEXPECTED (7);
24481   return NULL;
24482 }
24483
24484 int
24485 main ()
24486 {
24487   reader1 = pthread_self ();
24488
24489   /* Step 1: The main thread initializes the lock and the baton.  */
24490   if (pthread_rwlock_init (&lock, NULL))
24491     UNEXPECTED (1);
24492   if (pthread_mutex_init (&baton, NULL))
24493     UNEXPECTED (1);
24494   /* Step 2: The main thread acquires the lock as a reader.  */
24495   if (pthread_rwlock_rdlock (&lock))
24496     UNEXPECTED (2);
24497   /* Step 3: Create the writer thread.  */
24498   if (pthread_create (&writer, NULL, writer_func, NULL))
24499     UNEXPECTED (3);
24500   /* Job done.  Go to sleep.  */
24501   for (;;)
24502     {
24503       sleep (1);
24504     }
24505 }
24506
24507 _ACEOF
24508 if ac_fn_c_try_run "$LINENO"
24509 then :
24510   gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
24511 else $as_nop
24512   gl_cv_pthread_rwlock_rdlock_prefer_writer=no
24513 fi
24514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24515   conftest.$ac_objext conftest.beam conftest.$ac_ext
24516 fi
24517
24518      LIBS="$save_LIBS"
24519
24520 fi
24521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24522 printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24523   case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24524     *yes)
24525
24526 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24527
24528       ;;
24529   esac
24530
24531     fi
24532     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24533     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24534 /* end confdefs.h.  */
24535
24536       #include <pthread.h>
24537 int
24538 main (void)
24539 {
24540
24541 #if __FreeBSD__ == 4
24542 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24543 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24544        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24545 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24546 #else
24547 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24548 return !x;
24549 #endif
24550
24551   ;
24552   return 0;
24553 }
24554 _ACEOF
24555 if ac_fn_c_try_compile "$LINENO"
24556 then :
24557
24558 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24559
24560 fi
24561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24562   fi
24563   :
24564
24565
24566
24567 printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h
24568
24569
24570
24571
24572
24573
24574   if test $ac_cv_func_lstat = yes; then
24575
24576     case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
24577       solaris* | *no)
24578         REPLACE_LSTAT=1
24579         ;;
24580     esac
24581   else
24582     HAVE_LSTAT=0
24583   fi
24584
24585   if test $REPLACE_LSTAT = 1; then
24586
24587
24588
24589
24590
24591
24592
24593
24594   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24595
24596     :
24597   fi
24598
24599
24600
24601
24602
24603           GNULIB_LSTAT=1
24604
24605
24606
24607
24608
24609 printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
24610
24611
24612
24613
24614
24615
24616   if test $gl_cv_func_malloc_posix = yes; then
24617
24618 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24619
24620   else
24621     REPLACE_MALLOC=1
24622   fi
24623
24624   if test $REPLACE_MALLOC = 1; then
24625
24626
24627
24628
24629
24630
24631
24632
24633   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24634
24635   fi
24636
24637
24638
24639
24640
24641           GNULIB_MALLOC_POSIX=1
24642
24643
24644
24645
24646
24647 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24648
24649
24650
24651
24652
24653
24654
24655   if test $REPLACE_MEMCHR = 1; then
24656
24657
24658
24659
24660
24661
24662
24663
24664   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24665
24666
24667   ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24668 if test "x$ac_cv_header_bp_sym_h" = xyes
24669 then :
24670   printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
24671
24672 fi
24673
24674
24675   fi
24676
24677
24678
24679
24680
24681           GNULIB_MEMCHR=1
24682
24683
24684
24685
24686
24687 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24688
24689
24690
24691
24692
24693
24694
24695
24696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24697 printf %s "checking whether mkdir handles trailing slash... " >&6; }
24698 if test ${gl_cv_func_mkdir_trailing_slash_works+y}
24699 then :
24700   printf %s "(cached) " >&6
24701 else $as_nop
24702   rm -rf conftest.dir
24703      if test "$cross_compiling" = yes
24704 then :
24705   case "$host_os" in
24706                            # Guess yes on Linux systems.
24707           linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24708                            # Guess yes on glibc systems.
24709           *-gnu* | gnu*)   gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24710                            # Guess yes on MSVC, no on mingw.
24711           mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712 /* end confdefs.h.  */
24713
24714 #ifdef _MSC_VER
24715  Known
24716 #endif
24717
24718 _ACEOF
24719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24720   $EGREP "Known" >/dev/null 2>&1
24721 then :
24722   gl_cv_func_mkdir_trailing_slash_works="guessing yes"
24723 else $as_nop
24724   gl_cv_func_mkdir_trailing_slash_works="guessing no"
24725 fi
24726 rm -rf conftest*
24727
24728                            ;;
24729                            # If we don't know, obey --enable-cross-guesses.
24730           *)               gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
24731         esac
24732
24733 else $as_nop
24734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24735 /* end confdefs.h.  */
24736
24737           #include <sys/types.h>
24738           #include <sys/stat.h>
24739
24740
24741 $gl_mda_defines
24742
24743 int
24744 main (void)
24745 {
24746 return mkdir ("conftest.dir/", 0700);
24747   ;
24748   return 0;
24749 }
24750 _ACEOF
24751 if ac_fn_c_try_run "$LINENO"
24752 then :
24753   gl_cv_func_mkdir_trailing_slash_works=yes
24754 else $as_nop
24755   gl_cv_func_mkdir_trailing_slash_works=no
24756 fi
24757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24758   conftest.$ac_objext conftest.beam conftest.$ac_ext
24759 fi
24760
24761      rm -rf conftest.dir
24762
24763 fi
24764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24765 printf "%s\n" "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24766   case "$gl_cv_func_mkdir_trailing_slash_works" in
24767     *yes) ;;
24768     *)
24769       REPLACE_MKDIR=1
24770       ;;
24771   esac
24772
24773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24774 printf %s "checking whether mkdir handles trailing dot... " >&6; }
24775 if test ${gl_cv_func_mkdir_trailing_dot_works+y}
24776 then :
24777   printf %s "(cached) " >&6
24778 else $as_nop
24779   rm -rf conftest.dir
24780      if test "$cross_compiling" = yes
24781 then :
24782   case "$host_os" in
24783                          # Guess yes on glibc systems.
24784           *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
24785                          # Guess yes on musl systems.
24786           *-musl*)       gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
24787                          # Guess no on native Windows.
24788           mingw*)        gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24789                          # If we don't know, obey --enable-cross-guesses.
24790           *)             gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
24791         esac
24792
24793 else $as_nop
24794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h.  */
24796
24797           #include <sys/types.h>
24798           #include <sys/stat.h>
24799
24800
24801 $gl_mda_defines
24802
24803 int
24804 main (void)
24805 {
24806 return !mkdir ("conftest.dir/./", 0700);
24807   ;
24808   return 0;
24809 }
24810 _ACEOF
24811 if ac_fn_c_try_run "$LINENO"
24812 then :
24813   gl_cv_func_mkdir_trailing_dot_works=yes
24814 else $as_nop
24815   gl_cv_func_mkdir_trailing_dot_works=no
24816 fi
24817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24818   conftest.$ac_objext conftest.beam conftest.$ac_ext
24819 fi
24820
24821      rm -rf conftest.dir
24822
24823
24824 fi
24825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
24826 printf "%s\n" "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
24827   case "$gl_cv_func_mkdir_trailing_dot_works" in
24828     *yes) ;;
24829     *)
24830       REPLACE_MKDIR=1
24831
24832 printf "%s\n" "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
24833
24834       ;;
24835   esac
24836
24837   if test $REPLACE_MKDIR = 1; then
24838
24839
24840
24841
24842
24843
24844
24845
24846   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
24847
24848   fi
24849
24850
24851   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
24852 if test "x$ac_cv_func_mkdtemp" = xyes
24853 then :
24854   printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
24855
24856 fi
24857
24858   if test $ac_cv_func_mkdtemp = no; then
24859     HAVE_MKDTEMP=0
24860   fi
24861
24862   if test $HAVE_MKDTEMP = 0; then
24863
24864
24865
24866
24867
24868
24869
24870
24871   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
24872
24873     :
24874
24875   fi
24876
24877
24878
24879
24880
24881           GNULIB_MKDTEMP=1
24882
24883
24884
24885
24886
24887 printf "%s\n" "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
24888
24889
24890
24891
24892   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24893
24894
24895
24896
24897
24898
24899
24900
24901   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
24902
24903   fi
24904
24905   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24906
24907
24908
24909
24910
24911
24912
24913
24914   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24915
24916   fi
24917
24918
24919 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
24920
24921
24922
24923
24924
24925
24926   case "$host_os" in
24927     mingw* | pw*)
24928       REPLACE_OPEN=1
24929       ;;
24930     *)
24931
24932       if test "$gl_cv_macro_O_CLOEXEC" != yes; then
24933         REPLACE_OPEN=1
24934       fi
24935
24936
24937   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
24938 printf %s "checking whether open recognizes a trailing slash... " >&6; }
24939 if test ${gl_cv_func_open_slash+y}
24940 then :
24941   printf %s "(cached) " >&6
24942 else $as_nop
24943   # Assume that if we have lstat, we can also check symlinks.
24944      if test $ac_cv_func_lstat = yes; then
24945        touch conftest.tmp
24946        ln -s conftest.tmp conftest.lnk
24947      fi
24948      if test "$cross_compiling" = yes
24949 then :
24950
24951         case "$host_os" in
24952           freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
24953             gl_cv_func_open_slash="guessing no" ;;
24954           *)
24955             gl_cv_func_open_slash="guessing yes" ;;
24956         esac
24957
24958 else $as_nop
24959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24960 /* end confdefs.h.  */
24961
24962 #include <fcntl.h>
24963 #if HAVE_UNISTD_H
24964 # include <unistd.h>
24965 #endif
24966
24967
24968 $gl_mda_defines
24969
24970 int main ()
24971 {
24972   int result = 0;
24973 #if HAVE_LSTAT
24974   if (open ("conftest.lnk/", O_RDONLY) != -1)
24975     result |= 1;
24976 #endif
24977   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
24978     result |= 2;
24979   return result;
24980 }
24981 _ACEOF
24982 if ac_fn_c_try_run "$LINENO"
24983 then :
24984   gl_cv_func_open_slash=yes
24985 else $as_nop
24986   gl_cv_func_open_slash=no
24987 fi
24988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24989   conftest.$ac_objext conftest.beam conftest.$ac_ext
24990 fi
24991
24992      rm -f conftest.sl conftest.tmp conftest.lnk
24993
24994 fi
24995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
24996 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
24997   case "$gl_cv_func_open_slash" in
24998     *no)
24999
25000 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25001
25002       ;;
25003   esac
25004
25005       case "$gl_cv_func_open_slash" in
25006         *no)
25007           REPLACE_OPEN=1
25008           ;;
25009       esac
25010       ;;
25011   esac
25012
25013
25014
25015   if test $REPLACE_OPEN = 1; then
25016
25017
25018
25019
25020
25021
25022
25023
25024   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
25025
25026
25027
25028   :
25029
25030   fi
25031
25032
25033
25034
25035
25036           GNULIB_OPEN=1
25037
25038
25039
25040
25041
25042 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
25053 if test "x$ac_cv_func_raise" = xyes
25054 then :
25055   printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
25056
25057 fi
25058
25059   if test $ac_cv_func_raise = no; then
25060     HAVE_RAISE=0
25061   else
25062
25063
25064       if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25065         REPLACE_RAISE=1
25066       fi
25067
25068
25069
25070
25071
25072   HAVE_POSIX_SIGNALBLOCKING=0
25073   if test "$gl_cv_type_sigset_t" = yes; then
25074     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
25075 if test "x$ac_cv_func_sigprocmask" = xyes
25076 then :
25077   HAVE_POSIX_SIGNALBLOCKING=1
25078 fi
25079
25080   fi
25081
25082       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
25083         :
25084       fi
25085
25086   fi
25087
25088   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
25089
25090
25091
25092
25093
25094
25095
25096
25097   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
25098
25099     :
25100   fi
25101
25102
25103
25104
25105
25106           GNULIB_RAISE=1
25107
25108
25109
25110
25111
25112 printf "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h
25113
25114
25115
25116
25117
25118
25119
25120     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25121       REPLACE_READ=1
25122     fi
25123
25124
25125
25126   if test $REPLACE_READ = 1; then
25127
25128
25129
25130
25131
25132
25133
25134
25135   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
25136
25137     :
25138   fi
25139
25140
25141
25142
25143
25144           GNULIB_READ=1
25145
25146
25147
25148
25149
25150 printf "%s\n" "#define GNULIB_TEST_READ 1" >>confdefs.h
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164      if test $ac_cv_func_setenv = no; then
25165     HAVE_SETENV=0
25166   else
25167     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
25168 printf %s "checking whether setenv validates arguments... " >&6; }
25169 if test ${gl_cv_func_setenv_works+y}
25170 then :
25171   printf %s "(cached) " >&6
25172 else $as_nop
25173   if test "$cross_compiling" = yes
25174 then :
25175   case "$host_os" in
25176                         # Guess yes on glibc systems.
25177          *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
25178                         # Guess yes on musl systems.
25179          *-musl*)       gl_cv_func_setenv_works="guessing yes" ;;
25180                         # If we don't know, obey --enable-cross-guesses.
25181          *)             gl_cv_func_setenv_works="$gl_cross_guess_normal" ;;
25182        esac
25183
25184 else $as_nop
25185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186 /* end confdefs.h.  */
25187
25188        #include <stdlib.h>
25189        #include <errno.h>
25190        #include <string.h>
25191
25192 int
25193 main (void)
25194 {
25195
25196        int result = 0;
25197        {
25198          if (setenv ("", "", 0) != -1)
25199            result |= 1;
25200          else if (errno != EINVAL)
25201            result |= 2;
25202        }
25203        {
25204          if (setenv ("a", "=", 1) != 0)
25205            result |= 4;
25206          else if (strcmp (getenv ("a"), "=") != 0)
25207            result |= 8;
25208        }
25209        return result;
25210
25211   ;
25212   return 0;
25213 }
25214 _ACEOF
25215 if ac_fn_c_try_run "$LINENO"
25216 then :
25217   gl_cv_func_setenv_works=yes
25218 else $as_nop
25219   gl_cv_func_setenv_works=no
25220 fi
25221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25222   conftest.$ac_objext conftest.beam conftest.$ac_ext
25223 fi
25224
25225 fi
25226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
25227 printf "%s\n" "$gl_cv_func_setenv_works" >&6; }
25228     case "$gl_cv_func_setenv_works" in
25229       *yes) ;;
25230       *)
25231         REPLACE_SETENV=1
25232         ;;
25233     esac
25234   fi
25235
25236   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
25237
25238
25239
25240
25241
25242
25243
25244
25245   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
25246
25247   fi
25248
25249
25250
25251
25252
25253           GNULIB_SETENV=1
25254
25255
25256
25257
25258
25259 printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h
25260
25261
25262
25263
25264
25265
25266   if test $ac_cv_func_sigaction = yes; then
25267     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
25268 "
25269 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
25270 then :
25271
25272 printf "%s\n" "#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1" >>confdefs.h
25273
25274
25275 fi
25276
25277     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
25278       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
25279     fi
25280   else
25281     HAVE_SIGACTION=0
25282   fi
25283
25284   if test $HAVE_SIGACTION = 0; then
25285
25286
25287
25288
25289
25290
25291
25292
25293   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
25294
25295
25296
25297
25298
25299
25300
25301   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
25302 #include <signal.h>
25303
25304 "
25305 if test "x$ac_cv_type_siginfo_t" = xyes
25306 then :
25307
25308 printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h
25309
25310
25311 fi
25312
25313   if test $ac_cv_type_siginfo_t = no; then
25314     HAVE_SIGINFO_T=0
25315   fi
25316
25317   fi
25318
25319
25320
25321
25322
25323           GNULIB_SIGACTION=1
25324
25325
25326
25327
25328
25329 printf "%s\n" "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344      if test $gl_cv_have_include_next = yes; then
25345        gl_cv_next_signal_h='<'signal.h'>'
25346      else
25347        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25348 printf %s "checking absolute name of <signal.h>... " >&6; }
25349 if test ${gl_cv_next_signal_h+y}
25350 then :
25351   printf %s "(cached) " >&6
25352 else $as_nop
25353
25354
25355
25356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25357 /* end confdefs.h.  */
25358 #include <signal.h>
25359 _ACEOF
25360                 case "$host_os" in
25361     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25362     *)    gl_absname_cpp="$ac_cpp" ;;
25363   esac
25364
25365   case "$host_os" in
25366     mingw*)
25367                                           gl_dirsep_regex='[/\\]'
25368       ;;
25369     *)
25370       gl_dirsep_regex='\/'
25371       ;;
25372   esac
25373       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25374   gl_header_literal_regex=`echo 'signal.h' \
25375                            | sed -e "$gl_make_literal_regex_sed"`
25376   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25377       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25378       s|^/[^/]|//&|
25379       p
25380       q
25381     }'
25382
25383         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25384   sed -n "$gl_absolute_header_sed"`
25385
25386            gl_header=$gl_cv_absolute_signal_h
25387            gl_cv_next_signal_h='"'$gl_header'"'
25388
25389
25390 fi
25391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25392 printf "%s\n" "$gl_cv_next_signal_h" >&6; }
25393      fi
25394      NEXT_SIGNAL_H=$gl_cv_next_signal_h
25395
25396      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25397        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25398        gl_next_as_first_directive='<'signal.h'>'
25399      else
25400        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25401        gl_next_as_first_directive=$gl_cv_next_signal_h
25402      fi
25403      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
25404
25405
25406
25407
25408
25409 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25410 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
25411   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25412 #include <signal.h>
25413
25414 "
25415 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
25416 then :
25417
25418 else $as_nop
25419   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
25420 fi
25421
25422
25423
25424
25425
25426
25427
25428   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25429 #include <signal.h>
25430
25431 "
25432 if test "x$ac_cv_type_sighandler_t" = xyes
25433 then :
25434
25435 else $as_nop
25436   HAVE_SIGHANDLER_T=0
25437 fi
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449   HAVE_POSIX_SIGNALBLOCKING=0
25450   if test "$gl_cv_type_sigset_t" = yes; then
25451     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
25452 if test "x$ac_cv_func_sigprocmask" = xyes
25453 then :
25454   HAVE_POSIX_SIGNALBLOCKING=1
25455 fi
25456
25457   fi
25458
25459   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
25460
25461
25462
25463
25464
25465
25466
25467
25468   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
25469
25470     :
25471   fi
25472
25473
25474
25475
25476
25477           GNULIB_SIGPROCMASK=1
25478
25479
25480
25481
25482
25483 printf "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
25484
25485
25486
25487
25488   ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25489 if test "x$ac_cv_header_stdint_h" = xyes
25490 then :
25491   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
25492
25493 fi
25494
25495     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
25496 printf %s "checking for SIZE_MAX... " >&6; }
25497 if test ${gl_cv_size_max+y}
25498 then :
25499   printf %s "(cached) " >&6
25500 else $as_nop
25501
25502     gl_cv_size_max=no
25503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25504 /* end confdefs.h.  */
25505
25506 #include <limits.h>
25507 #if HAVE_STDINT_H
25508 #include <stdint.h>
25509 #endif
25510 #ifdef SIZE_MAX
25511 Found it
25512 #endif
25513
25514 _ACEOF
25515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25516   $EGREP "Found it" >/dev/null 2>&1
25517 then :
25518   gl_cv_size_max=yes
25519 fi
25520 rm -rf conftest*
25521
25522     if test $gl_cv_size_max != yes; then
25523                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
25524 #include <limits.h>"
25525 then :
25526
25527 else $as_nop
25528   size_t_bits_minus_1=
25529 fi
25530
25531       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"
25532 then :
25533
25534 else $as_nop
25535   fits_in_uint=
25536 fi
25537
25538       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
25539         if test $fits_in_uint = 1; then
25540                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541 /* end confdefs.h.  */
25542 #include <stddef.h>
25543                  extern size_t foo;
25544                  extern unsigned long foo;
25545
25546 int
25547 main (void)
25548 {
25549
25550   ;
25551   return 0;
25552 }
25553 _ACEOF
25554 if ac_fn_c_try_compile "$LINENO"
25555 then :
25556   fits_in_uint=0
25557 fi
25558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25559         fi
25560                                 if test $fits_in_uint = 1; then
25561           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
25562         else
25563           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
25564         fi
25565       else
25566                 gl_cv_size_max='((size_t)~(size_t)0)'
25567       fi
25568     fi
25569
25570 fi
25571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
25572 printf "%s\n" "$gl_cv_size_max" >&6; }
25573   if test "$gl_cv_size_max" != yes; then
25574
25575 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
25576
25577   fi
25578
25579
25580
25581
25582   gl_cv_func_snprintf_usable=no
25583   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25584 if test "x$ac_cv_func_snprintf" = xyes
25585 then :
25586   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
25587
25588 fi
25589
25590   if test $ac_cv_func_snprintf = yes; then
25591
25592
25593
25594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
25595 printf %s "checking whether snprintf respects a size of 1... " >&6; }
25596 if test ${gl_cv_func_snprintf_size1+y}
25597 then :
25598   printf %s "(cached) " >&6
25599 else $as_nop
25600
25601       if test "$cross_compiling" = yes
25602 then :
25603   case "$host_os" in
25604                             # Guess yes on Android.
25605            linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
25606                             # Guess yes on native Windows.
25607            mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
25608            *)               gl_cv_func_snprintf_size1="guessing yes" ;;
25609          esac
25610
25611 else $as_nop
25612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25613 /* end confdefs.h.  */
25614
25615 #include <stdio.h>
25616 #if HAVE_SNPRINTF
25617 # define my_snprintf snprintf
25618 #else
25619 # include <stdarg.h>
25620 static int my_snprintf (char *buf, int size, const char *format, ...)
25621 {
25622   va_list args;
25623   int ret;
25624   va_start (args, format);
25625   ret = vsnprintf (buf, size, format, args);
25626   va_end (args);
25627   return ret;
25628 }
25629 #endif
25630 int main()
25631 {
25632   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25633   my_snprintf (buf, 1, "%d", 12345);
25634   return buf[1] != 'E';
25635 }
25636 _ACEOF
25637 if ac_fn_c_try_run "$LINENO"
25638 then :
25639   gl_cv_func_snprintf_size1=yes
25640 else $as_nop
25641   gl_cv_func_snprintf_size1=no
25642 fi
25643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25644   conftest.$ac_objext conftest.beam conftest.$ac_ext
25645 fi
25646
25647
25648 fi
25649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25650 printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; }
25651
25652     case "$gl_cv_func_snprintf_size1" in
25653       *yes)
25654
25655         case "$gl_cv_func_snprintf_retval_c99" in
25656           *yes)
25657
25658
25659      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25660 printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25661 if test ${gl_cv_func_printf_positions+y}
25662 then :
25663   printf %s "(cached) " >&6
25664 else $as_nop
25665
25666       if test "$cross_compiling" = yes
25667 then :
25668
25669          case "$host_os" in
25670            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25671                             gl_cv_func_printf_positions="guessing no";;
25672            beos*)           gl_cv_func_printf_positions="guessing no";;
25673                             # Guess yes on Android.
25674            linux*-android*) gl_cv_func_printf_positions="guessing yes";;
25675                             # Guess no on native Windows.
25676            mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
25677            *)               gl_cv_func_printf_positions="guessing yes";;
25678          esac
25679
25680 else $as_nop
25681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h.  */
25683
25684 #include <stdio.h>
25685 #include <string.h>
25686 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25687    dollar expansion (possibly an autoconf bug).  */
25688 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25689 static char buf[100];
25690 int main ()
25691 {
25692   sprintf (buf, format, 33, 55);
25693   return (strcmp (buf, "55 33") != 0);
25694 }
25695 _ACEOF
25696 if ac_fn_c_try_run "$LINENO"
25697 then :
25698   gl_cv_func_printf_positions=yes
25699 else $as_nop
25700   gl_cv_func_printf_positions=no
25701 fi
25702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25703   conftest.$ac_objext conftest.beam conftest.$ac_ext
25704 fi
25705
25706
25707 fi
25708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25709 printf "%s\n" "$gl_cv_func_printf_positions" >&6; }
25710
25711             case "$gl_cv_func_printf_positions" in
25712               *yes)
25713                 gl_cv_func_snprintf_usable=yes
25714                 ;;
25715             esac
25716             ;;
25717         esac
25718         ;;
25719     esac
25720   fi
25721   if test $gl_cv_func_snprintf_usable = no; then
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
25733
25734   if test $ac_cv_func_snprintf = yes; then
25735     REPLACE_SNPRINTF=1
25736   else
25737
25738     if test $ac_cv_have_decl_snprintf = yes; then
25739                         REPLACE_SNPRINTF=1
25740     fi
25741   fi
25742   :
25743
25744   fi
25745
25746   if test $ac_cv_have_decl_snprintf = no; then
25747     HAVE_DECL_SNPRINTF=0
25748   fi
25749
25750
25751
25752
25753
25754
25755           GNULIB_SNPRINTF=1
25756
25757
25758
25759
25760
25761 printf "%s\n" "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
25762
25763
25764
25765
25766
25767 printf "%s\n" "#define GNULIB_SNPRINTF 1" >>confdefs.h
25768
25769
25770
25771   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25772 printf %s "checking for ssize_t... " >&6; }
25773 if test ${gt_cv_ssize_t+y}
25774 then :
25775   printf %s "(cached) " >&6
25776 else $as_nop
25777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778 /* end confdefs.h.  */
25779 #include <sys/types.h>
25780 int
25781 main (void)
25782 {
25783 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25784             return !x;
25785   ;
25786   return 0;
25787 }
25788 _ACEOF
25789 if ac_fn_c_try_compile "$LINENO"
25790 then :
25791   gt_cv_ssize_t=yes
25792 else $as_nop
25793   gt_cv_ssize_t=no
25794 fi
25795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25796 fi
25797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25798 printf "%s\n" "$gt_cv_ssize_t" >&6; }
25799   if test $gt_cv_ssize_t = no; then
25800
25801 printf "%s\n" "#define ssize_t int" >>confdefs.h
25802
25803   fi
25804
25805
25806
25807
25808
25809   case "$host_os" in
25810     mingw*)
25811                   REPLACE_STAT=1
25812       ;;
25813     *)
25814                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25815 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
25816 if test ${gl_cv_func_stat_file_slash+y}
25817 then :
25818   printf %s "(cached) " >&6
25819 else $as_nop
25820   touch conftest.tmp
25821          # Assume that if we have lstat, we can also check symlinks.
25822          if test $ac_cv_func_lstat = yes; then
25823            ln -s conftest.tmp conftest.lnk
25824          fi
25825          if test "$cross_compiling" = yes
25826 then :
25827   case "$host_os" in
25828                                # Guess yes on Linux systems.
25829               linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
25830                                # Guess yes on glibc systems.
25831               *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
25832                                # If we don't know, obey --enable-cross-guesses.
25833               *)               gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
25834             esac
25835
25836 else $as_nop
25837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h.  */
25839 #include <sys/stat.h>
25840
25841 int
25842 main (void)
25843 {
25844 int result = 0;
25845                struct stat st;
25846                if (!stat ("conftest.tmp/", &st))
25847                  result |= 1;
25848 #if HAVE_LSTAT
25849                if (!stat ("conftest.lnk/", &st))
25850                  result |= 2;
25851 #endif
25852                return result;
25853
25854   ;
25855   return 0;
25856 }
25857 _ACEOF
25858 if ac_fn_c_try_run "$LINENO"
25859 then :
25860   gl_cv_func_stat_file_slash=yes
25861 else $as_nop
25862   gl_cv_func_stat_file_slash=no
25863 fi
25864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25865   conftest.$ac_objext conftest.beam conftest.$ac_ext
25866 fi
25867
25868          rm -f conftest.tmp conftest.lnk
25869 fi
25870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25871 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
25872       case $gl_cv_func_stat_file_slash in
25873         *no)
25874           REPLACE_STAT=1
25875
25876 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25877 ;;
25878       esac
25879       case $host_os in
25880                 solaris*)
25881           REPLACE_FSTAT=1 ;;
25882       esac
25883       ;;
25884   esac
25885
25886   if test $REPLACE_STAT = 1; then
25887
25888
25889
25890
25891
25892
25893
25894
25895   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25896
25897     case "$host_os" in
25898       mingw*)
25899
25900
25901
25902
25903
25904
25905
25906
25907   gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
25908
25909         ;;
25910     esac
25911
25912
25913
25914   :
25915
25916   fi
25917
25918
25919
25920
25921
25922           GNULIB_STAT=1
25923
25924
25925
25926
25927
25928 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
25929
25930
25931
25932
25933
25934
25935
25936   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
25937      #include <sys/stat.h>
25938 "
25939 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
25940 then :
25941
25942 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
25943
25944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25945 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25946 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
25947 then :
25948   printf %s "(cached) " >&6
25949 else $as_nop
25950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h.  */
25952
25953             #include <sys/types.h>
25954             #include <sys/stat.h>
25955             #if HAVE_SYS_TIME_H
25956             # include <sys/time.h>
25957             #endif
25958             #include <time.h>
25959             struct timespec ts;
25960             struct stat st;
25961
25962 int
25963 main (void)
25964 {
25965
25966             st.st_atim = ts;
25967
25968   ;
25969   return 0;
25970 }
25971 _ACEOF
25972 if ac_fn_c_try_compile "$LINENO"
25973 then :
25974   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25975 else $as_nop
25976   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25977 fi
25978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25979 fi
25980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25981 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25982      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25983
25984 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25985
25986      fi
25987 else $as_nop
25988   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
25989         #include <sys/stat.h>
25990 "
25991 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
25992 then :
25993
25994 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
25995
25996
25997 else $as_nop
25998   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25999            #include <sys/stat.h>
26000 "
26001 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
26002 then :
26003
26004 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
26005
26006
26007 else $as_nop
26008   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
26009               #include <sys/stat.h>
26010 "
26011 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
26012 then :
26013
26014 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
26015
26016
26017 fi
26018
26019 fi
26020
26021 fi
26022
26023 fi
26024
26025
26026
26027
26028
26029   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
26030      #include <sys/stat.h>
26031 "
26032 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
26033 then :
26034
26035 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
26036
26037
26038 else $as_nop
26039   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26040         #include <sys/stat.h>
26041 "
26042 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
26043 then :
26044
26045 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
26046
26047
26048 else $as_nop
26049   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
26050           #include <sys/stat.h>
26051 "
26052 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
26053 then :
26054
26055 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
26056
26057
26058 fi
26059
26060 fi
26061
26062 fi
26063
26064
26065
26066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26067 printf %s "checking for working stdalign.h... " >&6; }
26068 if test ${gl_cv_header_working_stdalign_h+y}
26069 then :
26070   printf %s "(cached) " >&6
26071 else $as_nop
26072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26073 /* end confdefs.h.  */
26074 #include <stdalign.h>
26075             #include <stddef.h>
26076
26077             /* Test that alignof yields a result consistent with offsetof.
26078                This catches GCC bug 52023
26079                <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
26080             #ifdef __cplusplus
26081                template <class t> struct alignof_helper { char a; t b; };
26082             # define ao(type) offsetof (alignof_helper<type>, b)
26083             #else
26084             # define ao(type) offsetof (struct { char a; type b; }, b)
26085             #endif
26086             char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26087             char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26088             char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26089
26090             /* Test _Alignas only on platforms where gnulib can help.  */
26091             #if \
26092                 ((defined __cplusplus && 201103 <= __cplusplus) \
26093                  || (defined __APPLE__ && defined __MACH__ \
26094                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
26095                      : __GNUC__) \
26096                  || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
26097                  || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
26098                  || 1300 <= _MSC_VER)
26099               struct alignas_test { char c; char alignas (8) alignas_8; };
26100               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26101                                 ? 1 : -1];
26102             #endif
26103
26104 int
26105 main (void)
26106 {
26107
26108   ;
26109   return 0;
26110 }
26111 _ACEOF
26112 if ac_fn_c_try_compile "$LINENO"
26113 then :
26114   gl_cv_header_working_stdalign_h=yes
26115 else $as_nop
26116   gl_cv_header_working_stdalign_h=no
26117 fi
26118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26119 fi
26120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26121 printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; }
26122
26123   if test $gl_cv_header_working_stdalign_h = yes; then
26124     STDALIGN_H=''
26125   else
26126     STDALIGN_H='stdalign.h'
26127   fi
26128
26129
26130    if test -n "$STDALIGN_H"; then
26131   GL_GENERATE_STDALIGN_H_TRUE=
26132   GL_GENERATE_STDALIGN_H_FALSE='#'
26133 else
26134   GL_GENERATE_STDALIGN_H_TRUE='#'
26135   GL_GENERATE_STDALIGN_H_FALSE=
26136 fi
26137
26138
26139
26140   STDARG_H=''
26141   NEXT_STDARG_H='<stdarg.h>'
26142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26143 printf %s "checking for va_copy... " >&6; }
26144 if test ${gl_cv_func_va_copy+y}
26145 then :
26146   printf %s "(cached) " >&6
26147 else $as_nop
26148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26149 /* end confdefs.h.  */
26150 #include <stdarg.h>
26151 int
26152 main (void)
26153 {
26154
26155 #ifndef va_copy
26156 void (*func) (va_list, va_list) = va_copy;
26157 #endif
26158
26159   ;
26160   return 0;
26161 }
26162 _ACEOF
26163 if ac_fn_c_try_compile "$LINENO"
26164 then :
26165   gl_cv_func_va_copy=yes
26166 else $as_nop
26167   gl_cv_func_va_copy=no
26168 fi
26169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26170
26171 fi
26172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26173 printf "%s\n" "$gl_cv_func_va_copy" >&6; }
26174   if test $gl_cv_func_va_copy = no; then
26175                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176 /* end confdefs.h.  */
26177 #if defined _AIX && !defined __GNUC__
26178         AIX vaccine
26179        #endif
26180
26181 _ACEOF
26182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26183   $EGREP "vaccine" >/dev/null 2>&1
26184 then :
26185   gl_aixcc=yes
26186 else $as_nop
26187   gl_aixcc=no
26188 fi
26189 rm -rf conftest*
26190
26191     if test $gl_aixcc = yes; then
26192             STDARG_H=stdarg.h
26193
26194
26195
26196
26197
26198
26199
26200
26201      if test $gl_cv_have_include_next = yes; then
26202        gl_cv_next_stdarg_h='<'stdarg.h'>'
26203      else
26204        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26205 printf %s "checking absolute name of <stdarg.h>... " >&6; }
26206 if test ${gl_cv_next_stdarg_h+y}
26207 then :
26208   printf %s "(cached) " >&6
26209 else $as_nop
26210
26211
26212
26213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214 /* end confdefs.h.  */
26215 #include <stdarg.h>
26216 _ACEOF
26217                 case "$host_os" in
26218     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26219     *)    gl_absname_cpp="$ac_cpp" ;;
26220   esac
26221
26222   case "$host_os" in
26223     mingw*)
26224                                           gl_dirsep_regex='[/\\]'
26225       ;;
26226     *)
26227       gl_dirsep_regex='\/'
26228       ;;
26229   esac
26230       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26231   gl_header_literal_regex=`echo 'stdarg.h' \
26232                            | sed -e "$gl_make_literal_regex_sed"`
26233   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26234       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26235       s|^/[^/]|//&|
26236       p
26237       q
26238     }'
26239
26240         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26241   sed -n "$gl_absolute_header_sed"`
26242
26243            gl_header=$gl_cv_absolute_stdarg_h
26244            gl_cv_next_stdarg_h='"'$gl_header'"'
26245
26246
26247 fi
26248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26249 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; }
26250      fi
26251      NEXT_STDARG_H=$gl_cv_next_stdarg_h
26252
26253      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26254        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26255        gl_next_as_first_directive='<'stdarg.h'>'
26256      else
26257        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26258        gl_next_as_first_directive=$gl_cv_next_stdarg_h
26259      fi
26260      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26261
26262
26263
26264
26265             if test "$gl_cv_next_stdarg_h" = '""'; then
26266         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26267         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26268       fi
26269     else
26270
26271
26272   exec 9>&6 6>/dev/null
26273
26274     if test ${gl_cv_func___va_copy+y}
26275 then :
26276   printf %s "(cached) " >&6
26277 else $as_nop
26278
26279         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26280 /* end confdefs.h.  */
26281 #include <stdarg.h>
26282 int
26283 main (void)
26284 {
26285
26286 #ifndef __va_copy
26287 error, bail out
26288 #endif
26289
26290   ;
26291   return 0;
26292 }
26293 _ACEOF
26294 if ac_fn_c_try_compile "$LINENO"
26295 then :
26296   gl_cv_func___va_copy=yes
26297 else $as_nop
26298   gl_cv_func___va_copy=no
26299 fi
26300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26301 fi
26302
26303
26304   exec 6>&9 9>&-
26305
26306
26307       if test $gl_cv_func___va_copy = yes; then
26308
26309 printf "%s\n" "#define va_copy __va_copy" >>confdefs.h
26310
26311       else
26312
26313
26314 printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h
26315
26316       fi
26317     fi
26318   fi
26319
26320    if test -n "$STDARG_H"; then
26321   GL_GENERATE_STDARG_H_TRUE=
26322   GL_GENERATE_STDARG_H_FALSE='#'
26323 else
26324   GL_GENERATE_STDARG_H_TRUE='#'
26325   GL_GENERATE_STDARG_H_FALSE=
26326 fi
26327
26328
26329
26330
26331
26332
26333
26334           if test "$ac_cv_header_stdbool_h" = yes; then
26335     case "$host_os" in
26336       solaris*)
26337         if test -z "$GCC"; then
26338           STDBOOL_H='stdbool.h'
26339         else
26340           STDBOOL_H=''
26341         fi
26342         ;;
26343       *)
26344         STDBOOL_H=''
26345         ;;
26346     esac
26347   else
26348     STDBOOL_H='stdbool.h'
26349   fi
26350
26351    if test -n "$STDBOOL_H"; then
26352   GL_GENERATE_STDBOOL_H_TRUE=
26353   GL_GENERATE_STDBOOL_H_FALSE='#'
26354 else
26355   GL_GENERATE_STDBOOL_H_TRUE='#'
26356   GL_GENERATE_STDBOOL_H_FALSE=
26357 fi
26358
26359
26360   if test "$ac_cv_type__Bool" = yes; then
26361     HAVE__BOOL=1
26362   else
26363     HAVE__BOOL=0
26364   fi
26365
26366
26367
26368
26369
26370   STDDEF_H=
26371
26372       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
26373 printf %s "checking for good max_align_t... " >&6; }
26374 if test ${gl_cv_type_max_align_t+y}
26375 then :
26376   printf %s "(cached) " >&6
26377 else $as_nop
26378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26379 /* end confdefs.h.  */
26380 #include <stddef.h>
26381             unsigned int s = sizeof (max_align_t);
26382             #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
26383             int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
26384             int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
26385             #endif
26386
26387 int
26388 main (void)
26389 {
26390
26391   ;
26392   return 0;
26393 }
26394 _ACEOF
26395 if ac_fn_c_try_compile "$LINENO"
26396 then :
26397   gl_cv_type_max_align_t=yes
26398 else $as_nop
26399   gl_cv_type_max_align_t=no
26400 fi
26401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26402
26403 fi
26404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
26405 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
26406   if test $gl_cv_type_max_align_t = no; then
26407     HAVE_MAX_ALIGN_T=0
26408     STDDEF_H=stddef.h
26409   fi
26410
26411   if test $gt_cv_c_wchar_t = no; then
26412     HAVE_WCHAR_T=0
26413     STDDEF_H=stddef.h
26414   fi
26415
26416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26417 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
26418 if test ${gl_cv_decl_null_works+y}
26419 then :
26420   printf %s "(cached) " >&6
26421 else $as_nop
26422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26423 /* end confdefs.h.  */
26424 #include <stddef.h>
26425       int test[2 * (sizeof NULL == sizeof (void *)) -1];
26426
26427 int
26428 main (void)
26429 {
26430
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 if ac_fn_c_try_compile "$LINENO"
26436 then :
26437   gl_cv_decl_null_works=yes
26438 else $as_nop
26439   gl_cv_decl_null_works=no
26440 fi
26441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26442 fi
26443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26444 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
26445   if test $gl_cv_decl_null_works = no; then
26446     REPLACE_NULL=1
26447     STDDEF_H=stddef.h
26448   fi
26449
26450
26451    if test -n "$STDDEF_H"; then
26452   GL_GENERATE_STDDEF_H_TRUE=
26453   GL_GENERATE_STDDEF_H_FALSE='#'
26454 else
26455   GL_GENERATE_STDDEF_H_TRUE='#'
26456   GL_GENERATE_STDDEF_H_FALSE=
26457 fi
26458
26459   if test -n "$STDDEF_H"; then
26460
26461
26462
26463
26464
26465
26466
26467
26468      if test $gl_cv_have_include_next = yes; then
26469        gl_cv_next_stddef_h='<'stddef.h'>'
26470      else
26471        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26472 printf %s "checking absolute name of <stddef.h>... " >&6; }
26473 if test ${gl_cv_next_stddef_h+y}
26474 then :
26475   printf %s "(cached) " >&6
26476 else $as_nop
26477
26478
26479
26480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481 /* end confdefs.h.  */
26482 #include <stddef.h>
26483 _ACEOF
26484                 case "$host_os" in
26485     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26486     *)    gl_absname_cpp="$ac_cpp" ;;
26487   esac
26488
26489   case "$host_os" in
26490     mingw*)
26491                                           gl_dirsep_regex='[/\\]'
26492       ;;
26493     *)
26494       gl_dirsep_regex='\/'
26495       ;;
26496   esac
26497       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26498   gl_header_literal_regex=`echo 'stddef.h' \
26499                            | sed -e "$gl_make_literal_regex_sed"`
26500   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26501       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26502       s|^/[^/]|//&|
26503       p
26504       q
26505     }'
26506
26507         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26508   sed -n "$gl_absolute_header_sed"`
26509
26510            gl_header=$gl_cv_absolute_stddef_h
26511            gl_cv_next_stddef_h='"'$gl_header'"'
26512
26513
26514 fi
26515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26516 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
26517      fi
26518      NEXT_STDDEF_H=$gl_cv_next_stddef_h
26519
26520      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26521        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26522        gl_next_as_first_directive='<'stddef.h'>'
26523      else
26524        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26525        gl_next_as_first_directive=$gl_cv_next_stddef_h
26526      fi
26527      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26528
26529
26530
26531
26532   fi
26533
26534
26535
26536
26537   printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548      if test $gl_cv_have_include_next = yes; then
26549        gl_cv_next_stdio_h='<'stdio.h'>'
26550      else
26551        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26552 printf %s "checking absolute name of <stdio.h>... " >&6; }
26553 if test ${gl_cv_next_stdio_h+y}
26554 then :
26555   printf %s "(cached) " >&6
26556 else $as_nop
26557
26558
26559
26560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26561 /* end confdefs.h.  */
26562 #include <stdio.h>
26563 _ACEOF
26564                 case "$host_os" in
26565     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26566     *)    gl_absname_cpp="$ac_cpp" ;;
26567   esac
26568
26569   case "$host_os" in
26570     mingw*)
26571                                           gl_dirsep_regex='[/\\]'
26572       ;;
26573     *)
26574       gl_dirsep_regex='\/'
26575       ;;
26576   esac
26577       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26578   gl_header_literal_regex=`echo 'stdio.h' \
26579                            | sed -e "$gl_make_literal_regex_sed"`
26580   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26581       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26582       s|^/[^/]|//&|
26583       p
26584       q
26585     }'
26586
26587         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26588   sed -n "$gl_absolute_header_sed"`
26589
26590            gl_header=$gl_cv_absolute_stdio_h
26591            gl_cv_next_stdio_h='"'$gl_header'"'
26592
26593
26594 fi
26595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26596 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
26597      fi
26598      NEXT_STDIO_H=$gl_cv_next_stdio_h
26599
26600      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26601        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26602        gl_next_as_first_directive='<'stdio.h'>'
26603      else
26604        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26605        gl_next_as_first_directive=$gl_cv_next_stdio_h
26606      fi
26607      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26608
26609
26610
26611
26612
26613         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
26614 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
26615 if test ${gl_cv_func_printf_attribute_flavor+y}
26616 then :
26617   printf %s "(cached) " >&6
26618 else $as_nop
26619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h.  */
26621
26622        #define __STDC_FORMAT_MACROS 1
26623        #include <stdio.h>
26624        #include <inttypes.h>
26625        /* For non-mingw systems, compilation will trivially succeed.
26626           For mingw, compilation will succeed for older mingw (system
26627           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
26628        #if (defined _WIN32 && ! defined __CYGWIN__) && \
26629          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
26630        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
26631        #endif
26632
26633 int
26634 main (void)
26635 {
26636
26637   ;
26638   return 0;
26639 }
26640 _ACEOF
26641 if ac_fn_c_try_compile "$LINENO"
26642 then :
26643   gl_cv_func_printf_attribute_flavor=system
26644 else $as_nop
26645   gl_cv_func_printf_attribute_flavor=gnu
26646 fi
26647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26648 fi
26649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
26650 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
26651   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
26652
26653 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
26654
26655   fi
26656
26657       GNULIB_FSCANF=1
26658
26659
26660 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
26661
26662
26663   GNULIB_SCANF=1
26664
26665
26666 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
26667
26668
26669   GNULIB_FGETC=1
26670   GNULIB_GETC=1
26671   GNULIB_GETCHAR=1
26672   GNULIB_FGETS=1
26673   GNULIB_FREAD=1
26674
26675
26676       GNULIB_FPRINTF=1
26677   GNULIB_PRINTF=1
26678   GNULIB_VFPRINTF=1
26679   GNULIB_VPRINTF=1
26680   GNULIB_FPUTC=1
26681   GNULIB_PUTC=1
26682   GNULIB_PUTCHAR=1
26683   GNULIB_FPUTS=1
26684   GNULIB_PUTS=1
26685   GNULIB_FWRITE=1
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705      if test $gl_cv_have_include_next = yes; then
26706        gl_cv_next_stdlib_h='<'stdlib.h'>'
26707      else
26708        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26709 printf %s "checking absolute name of <stdlib.h>... " >&6; }
26710 if test ${gl_cv_next_stdlib_h+y}
26711 then :
26712   printf %s "(cached) " >&6
26713 else $as_nop
26714
26715
26716
26717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26718 /* end confdefs.h.  */
26719 #include <stdlib.h>
26720 _ACEOF
26721                 case "$host_os" in
26722     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26723     *)    gl_absname_cpp="$ac_cpp" ;;
26724   esac
26725
26726   case "$host_os" in
26727     mingw*)
26728                                           gl_dirsep_regex='[/\\]'
26729       ;;
26730     *)
26731       gl_dirsep_regex='\/'
26732       ;;
26733   esac
26734       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26735   gl_header_literal_regex=`echo 'stdlib.h' \
26736                            | sed -e "$gl_make_literal_regex_sed"`
26737   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26738       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26739       s|^/[^/]|//&|
26740       p
26741       q
26742     }'
26743
26744         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26745   sed -n "$gl_absolute_header_sed"`
26746
26747            gl_header=$gl_cv_absolute_stdlib_h
26748            gl_cv_next_stdlib_h='"'$gl_header'"'
26749
26750
26751 fi
26752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26753 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
26754      fi
26755      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26756
26757      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26758        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26759        gl_next_as_first_directive='<'stdlib.h'>'
26760      else
26761        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26762        gl_next_as_first_directive=$gl_cv_next_stdlib_h
26763      fi
26764      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26782     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26783 printf %s "checking for working strerror function... " >&6; }
26784 if test ${gl_cv_func_working_strerror+y}
26785 then :
26786   printf %s "(cached) " >&6
26787 else $as_nop
26788   if test "$cross_compiling" = yes
26789 then :
26790   case "$host_os" in
26791                           # Guess yes on glibc systems.
26792            *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
26793                           # Guess yes on musl systems.
26794            *-musl*)       gl_cv_func_working_strerror="guessing yes" ;;
26795                           # If we don't know, obey --enable-cross-guesses.
26796            *)             gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
26797          esac
26798
26799 else $as_nop
26800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26801 /* end confdefs.h.  */
26802 #include <string.h>
26803
26804 int
26805 main (void)
26806 {
26807 if (!*strerror (-2)) return 1;
26808   ;
26809   return 0;
26810 }
26811 _ACEOF
26812 if ac_fn_c_try_run "$LINENO"
26813 then :
26814   gl_cv_func_working_strerror=yes
26815 else $as_nop
26816   gl_cv_func_working_strerror=no
26817 fi
26818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26819   conftest.$ac_objext conftest.beam conftest.$ac_ext
26820 fi
26821
26822
26823 fi
26824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26825 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
26826     case "$gl_cv_func_working_strerror" in
26827       *yes) ;;
26828       *)
26829                         REPLACE_STRERROR=1
26830         ;;
26831     esac
26832
26833   else
26834             REPLACE_STRERROR=1
26835   fi
26836
26837   if test $REPLACE_STRERROR = 1; then
26838
26839
26840
26841
26842
26843
26844
26845
26846   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
26847
26848   fi
26849
26850
26851 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
26852
26853
26854
26855
26856
26857
26858
26859           GNULIB_STRERROR=1
26860
26861
26862
26863
26864
26865 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26866
26867
26868
26869
26870
26871   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
26872
26873
26874
26875
26876
26877
26878
26879
26880   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
26881
26882
26883
26884
26885
26886   if test $ac_cv_header_sys_socket_h != yes; then
26887                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26888 if test "x$ac_cv_header_winsock2_h" = xyes
26889 then :
26890   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
26891
26892 fi
26893
26894   fi
26895   if test "$ac_cv_header_winsock2_h" = yes; then
26896     HAVE_WINSOCK2_H=1
26897     UNISTD_H_HAVE_WINSOCK2_H=1
26898     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26899   else
26900     HAVE_WINSOCK2_H=0
26901   fi
26902
26903
26904   fi
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914   if test $ac_cv_have_decl_strndup = no; then
26915     HAVE_DECL_STRNDUP=0
26916   fi
26917
26918   if test $ac_cv_func_strndup = yes; then
26919     HAVE_STRNDUP=1
26920     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
26921     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
26922 printf %s "checking for working strndup... " >&6; }
26923 if test ${gl_cv_func_strndup_works+y}
26924 then :
26925   printf %s "(cached) " >&6
26926 else $as_nop
26927   if test "$cross_compiling" = yes
26928 then :
26929
26930           case $host_os in
26931             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
26932             *)               gl_cv_func_strndup_works="guessing yes";;
26933           esac
26934
26935 else $as_nop
26936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26937 /* end confdefs.h.  */
26938
26939          #include <string.h>
26940                            #include <stdlib.h>
26941 int
26942 main (void)
26943 {
26944
26945 #if !HAVE_DECL_STRNDUP
26946   extern
26947   #ifdef __cplusplus
26948   "C"
26949   #endif
26950   char *strndup (const char *, size_t);
26951 #endif
26952   int result;
26953   char *s;
26954   s = strndup ("some longer string", 15);
26955   free (s);
26956   s = strndup ("shorter string", 13);
26957   result = s[13] != '\0';
26958   free (s);
26959   return result;
26960   ;
26961   return 0;
26962 }
26963 _ACEOF
26964 if ac_fn_c_try_run "$LINENO"
26965 then :
26966   gl_cv_func_strndup_works=yes
26967 else $as_nop
26968   gl_cv_func_strndup_works=no
26969 fi
26970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26971   conftest.$ac_objext conftest.beam conftest.$ac_ext
26972 fi
26973
26974 fi
26975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
26976 printf "%s\n" "$gl_cv_func_strndup_works" >&6; }
26977     case $gl_cv_func_strndup_works in
26978       *no) REPLACE_STRNDUP=1 ;;
26979     esac
26980   else
26981     HAVE_STRNDUP=0
26982   fi
26983
26984   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
26985
26986
26987
26988
26989
26990
26991
26992
26993   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
26994
26995   fi
26996
26997
26998
26999
27000
27001           GNULIB_STRNDUP=1
27002
27003
27004
27005
27006
27007 printf "%s\n" "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017   if test $ac_cv_have_decl_strnlen = no; then
27018     HAVE_DECL_STRNLEN=0
27019   else
27020
27021          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
27022 printf %s "checking for working strnlen... " >&6; }
27023 if test ${ac_cv_func_strnlen_working+y}
27024 then :
27025   printf %s "(cached) " >&6
27026 else $as_nop
27027   if test "$cross_compiling" = yes
27028 then :
27029   # Guess no on AIX systems, yes otherwise.
27030                 case "$host_os" in
27031                   aix*) ac_cv_func_strnlen_working=no;;
27032                   *)    ac_cv_func_strnlen_working=yes;;
27033                 esac
27034 else $as_nop
27035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h.  */
27037 $ac_includes_default
27038 int
27039 main (void)
27040 {
27041
27042 #define S "foobar"
27043 #define S_LEN (sizeof S - 1)
27044
27045   /* At least one implementation is buggy: that of AIX 4.3 would
27046      give strnlen (S, 1) == 3.  */
27047
27048   int i;
27049   for (i = 0; i < S_LEN + 1; ++i)
27050     {
27051       int expected = i <= S_LEN ? i : S_LEN;
27052       if (strnlen (S, i) != expected)
27053         return 1;
27054     }
27055   return 0;
27056
27057   ;
27058   return 0;
27059 }
27060 _ACEOF
27061 if ac_fn_c_try_run "$LINENO"
27062 then :
27063   ac_cv_func_strnlen_working=yes
27064 else $as_nop
27065   ac_cv_func_strnlen_working=no
27066 fi
27067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27068   conftest.$ac_objext conftest.beam conftest.$ac_ext
27069 fi
27070
27071 fi
27072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
27073 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
27074 test $ac_cv_func_strnlen_working = no && :
27075
27076
27077     if test $ac_cv_func_strnlen_working = no; then
27078       REPLACE_STRNLEN=1
27079     fi
27080   fi
27081
27082   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
27083
27084
27085
27086
27087
27088
27089
27090
27091   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
27092
27093     :
27094   fi
27095
27096
27097
27098
27099
27100           GNULIB_STRNLEN=1
27101
27102
27103
27104
27105
27106 printf "%s\n" "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116   if test $ac_cv_have_decl_strsignal = no; then
27117     HAVE_DECL_STRSIGNAL=0
27118   fi
27119
27120   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
27121 if test "x$ac_cv_func_strsignal" = xyes
27122 then :
27123   printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
27124
27125 fi
27126
27127   if test $ac_cv_func_strsignal = yes; then
27128     HAVE_STRSIGNAL=1
27129             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
27130 printf %s "checking whether strsignal always returns a string... " >&6; }
27131 if test ${gl_cv_func_working_strsignal+y}
27132 then :
27133   printf %s "(cached) " >&6
27134 else $as_nop
27135   if test "$cross_compiling" = yes
27136 then :
27137   case "$host_os" in
27138             solaris* | aix*) gl_cv_func_working_strsignal=no;;
27139             *)               gl_cv_func_working_strsignal="guessing yes";;
27140           esac
27141 else $as_nop
27142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27143 /* end confdefs.h.  */
27144 #include <string.h>
27145 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
27146
27147 int
27148 main (void)
27149 {
27150 int result = 0;
27151               char *s = strsignal (-1);
27152               if (s == (char *) 0)
27153                 result |= 1;
27154               if (s == (char *) -1)
27155                 result |= 2;
27156               return result;
27157
27158   ;
27159   return 0;
27160 }
27161 _ACEOF
27162 if ac_fn_c_try_run "$LINENO"
27163 then :
27164   gl_cv_func_working_strsignal=yes
27165 else $as_nop
27166   gl_cv_func_working_strsignal=no
27167 fi
27168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27169   conftest.$ac_objext conftest.beam conftest.$ac_ext
27170 fi
27171
27172 fi
27173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
27174 printf "%s\n" "$gl_cv_func_working_strsignal" >&6; }
27175     if test "$gl_cv_func_working_strsignal" = no; then
27176       REPLACE_STRSIGNAL=1
27177     fi
27178   else
27179     HAVE_STRSIGNAL=0
27180   fi
27181
27182   if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
27183
27184
27185
27186
27187
27188
27189
27190
27191   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
27192
27193
27194
27195   ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
27196 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27197 if test "x$ac_cv_have_decl_sys_siglist" = xyes
27198 then :
27199   ac_have_decl=1
27200 else $as_nop
27201   ac_have_decl=0
27202 fi
27203 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
27204
27205   ac_fn_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
27206 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27207 if test "x$ac_cv_have_decl__sys_siglist" = xyes
27208 then :
27209   ac_have_decl=1
27210 else $as_nop
27211   ac_have_decl=0
27212 fi
27213 printf "%s\n" "#define HAVE_DECL__SYS_SIGLIST $ac_have_decl" >>confdefs.h
27214
27215
27216   fi
27217
27218
27219
27220
27221
27222           GNULIB_STRSIGNAL=1
27223
27224
27225
27226
27227
27228 printf "%s\n" "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243      if test $gl_cv_have_include_next = yes; then
27244        gl_cv_next_sys_random_h='<'sys/random.h'>'
27245      else
27246        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
27247 printf %s "checking absolute name of <sys/random.h>... " >&6; }
27248 if test ${gl_cv_next_sys_random_h+y}
27249 then :
27250   printf %s "(cached) " >&6
27251 else $as_nop
27252
27253              if test $ac_cv_header_sys_random_h = yes; then
27254
27255
27256
27257
27258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27259 /* end confdefs.h.  */
27260 #include <sys/random.h>
27261 _ACEOF
27262                 case "$host_os" in
27263     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27264     *)    gl_absname_cpp="$ac_cpp" ;;
27265   esac
27266
27267   case "$host_os" in
27268     mingw*)
27269                                           gl_dirsep_regex='[/\\]'
27270       ;;
27271     *)
27272       gl_dirsep_regex='\/'
27273       ;;
27274   esac
27275       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27276   gl_header_literal_regex=`echo 'sys/random.h' \
27277                            | sed -e "$gl_make_literal_regex_sed"`
27278   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27279       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27280       s|^/[^/]|//&|
27281       p
27282       q
27283     }'
27284
27285         gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27286   sed -n "$gl_absolute_header_sed"`
27287
27288            gl_header=$gl_cv_absolute_sys_random_h
27289            gl_cv_next_sys_random_h='"'$gl_header'"'
27290           else
27291                gl_cv_next_sys_random_h='<'sys/random.h'>'
27292              fi
27293
27294
27295 fi
27296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
27297 printf "%s\n" "$gl_cv_next_sys_random_h" >&6; }
27298      fi
27299      NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h
27300
27301      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27302        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27303        gl_next_as_first_directive='<'sys/random.h'>'
27304      else
27305        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27306        gl_next_as_first_directive=$gl_cv_next_sys_random_h
27307      fi
27308      NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive
27309
27310
27311
27312
27313   if test $ac_cv_header_sys_random_h = yes; then
27314     HAVE_SYS_RANDOM_H=1
27315   else
27316     HAVE_SYS_RANDOM_H=0
27317   fi
27318
27319
27320
27321   if test $ac_cv_header_sys_random_h = yes; then
27322     UNISTD_H_HAVE_SYS_RANDOM_H=1
27323   fi
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346      if test $gl_cv_have_include_next = yes; then
27347        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27348      else
27349        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27350 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
27351 if test ${gl_cv_next_sys_stat_h+y}
27352 then :
27353   printf %s "(cached) " >&6
27354 else $as_nop
27355
27356              if test $ac_cv_header_sys_stat_h = yes; then
27357
27358
27359
27360
27361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27362 /* end confdefs.h.  */
27363 #include <sys/stat.h>
27364 _ACEOF
27365                 case "$host_os" in
27366     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27367     *)    gl_absname_cpp="$ac_cpp" ;;
27368   esac
27369
27370   case "$host_os" in
27371     mingw*)
27372                                           gl_dirsep_regex='[/\\]'
27373       ;;
27374     *)
27375       gl_dirsep_regex='\/'
27376       ;;
27377   esac
27378       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27379   gl_header_literal_regex=`echo 'sys/stat.h' \
27380                            | sed -e "$gl_make_literal_regex_sed"`
27381   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27382       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27383       s|^/[^/]|//&|
27384       p
27385       q
27386     }'
27387
27388         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27389   sed -n "$gl_absolute_header_sed"`
27390
27391            gl_header=$gl_cv_absolute_sys_stat_h
27392            gl_cv_next_sys_stat_h='"'$gl_header'"'
27393           else
27394                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27395              fi
27396
27397
27398 fi
27399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27400 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
27401      fi
27402      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27403
27404      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27405        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27406        gl_next_as_first_directive='<'sys/stat.h'>'
27407      else
27408        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27409        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27410      fi
27411      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27412
27413
27414
27415
27416
27417
27418
27419
27420     WINDOWS_STAT_TIMESPEC=0
27421
27422
27423
27424
27425
27426
27427
27428
27429       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27430      #include <sys/stat.h>
27431 "
27432 if test "x$ac_cv_type_nlink_t" = xyes
27433 then :
27434
27435 else $as_nop
27436
27437 printf "%s\n" "#define nlink_t int" >>confdefs.h
27438
27439 fi
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467      if test $gl_cv_have_include_next = yes; then
27468        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
27469      else
27470        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
27471 printf %s "checking absolute name of <sys/wait.h>... " >&6; }
27472 if test ${gl_cv_next_sys_wait_h+y}
27473 then :
27474   printf %s "(cached) " >&6
27475 else $as_nop
27476
27477              if test $ac_cv_header_sys_wait_h = yes; then
27478
27479
27480
27481
27482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483 /* end confdefs.h.  */
27484 #include <sys/wait.h>
27485 _ACEOF
27486                 case "$host_os" in
27487     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27488     *)    gl_absname_cpp="$ac_cpp" ;;
27489   esac
27490
27491   case "$host_os" in
27492     mingw*)
27493                                           gl_dirsep_regex='[/\\]'
27494       ;;
27495     *)
27496       gl_dirsep_regex='\/'
27497       ;;
27498   esac
27499       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27500   gl_header_literal_regex=`echo 'sys/wait.h' \
27501                            | sed -e "$gl_make_literal_regex_sed"`
27502   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27503       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27504       s|^/[^/]|//&|
27505       p
27506       q
27507     }'
27508
27509         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27510   sed -n "$gl_absolute_header_sed"`
27511
27512            gl_header=$gl_cv_absolute_sys_wait_h
27513            gl_cv_next_sys_wait_h='"'$gl_header'"'
27514           else
27515                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
27516              fi
27517
27518
27519 fi
27520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
27521 printf "%s\n" "$gl_cv_next_sys_wait_h" >&6; }
27522      fi
27523      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
27524
27525      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27526        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27527        gl_next_as_first_directive='<'sys/wait.h'>'
27528      else
27529        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27530        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
27531      fi
27532      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547   :
27548
27549
27550
27551
27552 printf "%s\n" "#define GNULIB_TEMPNAME 1" >>confdefs.h
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574      if test $gl_cv_have_include_next = yes; then
27575        gl_cv_next_unistd_h='<'unistd.h'>'
27576      else
27577        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27578 printf %s "checking absolute name of <unistd.h>... " >&6; }
27579 if test ${gl_cv_next_unistd_h+y}
27580 then :
27581   printf %s "(cached) " >&6
27582 else $as_nop
27583
27584              if test $ac_cv_header_unistd_h = yes; then
27585
27586
27587
27588
27589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27590 /* end confdefs.h.  */
27591 #include <unistd.h>
27592 _ACEOF
27593                 case "$host_os" in
27594     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27595     *)    gl_absname_cpp="$ac_cpp" ;;
27596   esac
27597
27598   case "$host_os" in
27599     mingw*)
27600                                           gl_dirsep_regex='[/\\]'
27601       ;;
27602     *)
27603       gl_dirsep_regex='\/'
27604       ;;
27605   esac
27606       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27607   gl_header_literal_regex=`echo 'unistd.h' \
27608                            | sed -e "$gl_make_literal_regex_sed"`
27609   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27610       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27611       s|^/[^/]|//&|
27612       p
27613       q
27614     }'
27615
27616         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27617   sed -n "$gl_absolute_header_sed"`
27618
27619            gl_header=$gl_cv_absolute_unistd_h
27620            gl_cv_next_unistd_h='"'$gl_header'"'
27621           else
27622                gl_cv_next_unistd_h='<'unistd.h'>'
27623              fi
27624
27625
27626 fi
27627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27628 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
27629      fi
27630      NEXT_UNISTD_H=$gl_cv_next_unistd_h
27631
27632      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27633        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27634        gl_next_as_first_directive='<'unistd.h'>'
27635      else
27636        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27637        gl_next_as_first_directive=$gl_cv_next_unistd_h
27638      fi
27639      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27640
27641
27642
27643
27644   if test $ac_cv_header_unistd_h = yes; then
27645     HAVE_UNISTD_H=1
27646   else
27647     HAVE_UNISTD_H=0
27648   fi
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664   if test $ac_cv_have_decl_unsetenv = no; then
27665     HAVE_DECL_UNSETENV=0
27666   fi
27667   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27668 if test "x$ac_cv_func_unsetenv" = xyes
27669 then :
27670   printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
27671
27672 fi
27673
27674   if test $ac_cv_func_unsetenv = no; then
27675     HAVE_UNSETENV=0
27676   else
27677     HAVE_UNSETENV=1
27678         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27679 printf %s "checking for unsetenv() return type... " >&6; }
27680 if test ${gt_cv_func_unsetenv_ret+y}
27681 then :
27682   printf %s "(cached) " >&6
27683 else $as_nop
27684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27685 /* end confdefs.h.  */
27686
27687 #undef _BSD
27688 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27689 #include <stdlib.h>
27690 extern
27691 #ifdef __cplusplus
27692 "C"
27693 #endif
27694 int unsetenv (const char *name);
27695
27696 int
27697 main (void)
27698 {
27699
27700   ;
27701   return 0;
27702 }
27703 _ACEOF
27704 if ac_fn_c_try_compile "$LINENO"
27705 then :
27706   gt_cv_func_unsetenv_ret='int'
27707 else $as_nop
27708   gt_cv_func_unsetenv_ret='void'
27709 fi
27710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27711 fi
27712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27713 printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; }
27714     if test $gt_cv_func_unsetenv_ret = 'void'; then
27715
27716 printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h
27717
27718       REPLACE_UNSETENV=1
27719     fi
27720
27721                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27722 printf %s "checking whether unsetenv obeys POSIX... " >&6; }
27723 if test ${gl_cv_func_unsetenv_works+y}
27724 then :
27725   printf %s "(cached) " >&6
27726 else $as_nop
27727   if test "$cross_compiling" = yes
27728 then :
27729   case "$host_os" in
27730                     # Guess yes on glibc systems.
27731             *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27732                     # If we don't know, obey --enable-cross-guesses.
27733             *)      gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;;
27734           esac
27735
27736 else $as_nop
27737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27738 /* end confdefs.h.  */
27739
27740             #include <stdlib.h>
27741             #include <errno.h>
27742             extern char **environ;
27743
27744
27745 $gl_mda_defines
27746
27747 int
27748 main (void)
27749 {
27750
27751             char entry1[] = "a=1";
27752             char entry2[] = "b=2";
27753             char *env[] = { entry1, entry2, NULL };
27754             if (putenv ((char *) "a=1")) return 1;
27755             if (putenv (entry2)) return 2;
27756             entry2[0] = 'a';
27757             unsetenv ("a");
27758             if (getenv ("a")) return 3;
27759             if (!unsetenv ("") || errno != EINVAL) return 4;
27760             entry2[0] = 'b';
27761             environ = env;
27762             if (!getenv ("a")) return 5;
27763             entry2[0] = 'a';
27764             unsetenv ("a");
27765             if (getenv ("a")) return 6;
27766
27767   ;
27768   return 0;
27769 }
27770 _ACEOF
27771 if ac_fn_c_try_run "$LINENO"
27772 then :
27773   gl_cv_func_unsetenv_works=yes
27774 else $as_nop
27775   gl_cv_func_unsetenv_works=no
27776 fi
27777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27778   conftest.$ac_objext conftest.beam conftest.$ac_ext
27779 fi
27780
27781
27782 fi
27783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27784 printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; }
27785     case "$gl_cv_func_unsetenv_works" in
27786       *yes) ;;
27787       *)
27788         REPLACE_UNSETENV=1
27789         ;;
27790     esac
27791   fi
27792
27793   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27794
27795
27796
27797
27798
27799
27800
27801
27802   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27803
27804
27805
27806
27807
27808   fi
27809
27810
27811
27812
27813
27814           GNULIB_UNSETENV=1
27815
27816
27817
27818
27819
27820 printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
27821
27822
27823
27824
27825
27826
27827   if test $ac_cv_func_vasnprintf = no; then
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
27869
27870   if test $ac_cv_func_vasnprintf = yes; then
27871
27872 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
27873
27874   fi
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
27885 if test "x$ac_cv_type_ptrdiff_t" = xyes
27886 then :
27887
27888 else $as_nop
27889
27890 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
27891
27892
27893 fi
27894
27895
27896
27897
27898
27899
27900
27901   fi
27902
27903
27904   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
27905 if test "x$ac_cv_func_vasprintf" = xyes
27906 then :
27907   printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
27908
27909 fi
27910
27911   if test $ac_cv_func_vasprintf = no; then
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
27932
27933
27934   if test $ac_cv_func_vasprintf = yes; then
27935     REPLACE_VASPRINTF=1
27936   else
27937     HAVE_VASPRINTF=0
27938   fi
27939
27940
27941
27942
27943
27944
27945
27946
27947   fi
27948
27949
27950
27951
27952
27953
27954           GNULIB_VASPRINTF=1
27955
27956
27957
27958
27959
27960 printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
27961
27962
27963
27964
27965
27966   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
27967
27968
27969
27970   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
27971
27972
27973
27974   HAVE_WAITPID=1
27975   case $host_os in
27976     mingw*) HAVE_WAITPID=0 ;;
27977   esac
27978
27979   if test $HAVE_WAITPID = 0; then
27980
27981
27982
27983
27984
27985
27986
27987
27988   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
27989
27990   fi
27991
27992
27993
27994
27995
27996           GNULIB_WAITPID=1
27997
27998
27999
28000
28001
28002 printf "%s\n" "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018      if test $gl_cv_have_include_next = yes; then
28019        gl_cv_next_wchar_h='<'wchar.h'>'
28020      else
28021        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
28022 printf %s "checking absolute name of <wchar.h>... " >&6; }
28023 if test ${gl_cv_next_wchar_h+y}
28024 then :
28025   printf %s "(cached) " >&6
28026 else $as_nop
28027
28028              if test $ac_cv_header_wchar_h = yes; then
28029
28030
28031
28032
28033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h.  */
28035 #include <wchar.h>
28036 _ACEOF
28037                 case "$host_os" in
28038     aix*) gl_absname_cpp="$ac_cpp -C" ;;
28039     *)    gl_absname_cpp="$ac_cpp" ;;
28040   esac
28041
28042   case "$host_os" in
28043     mingw*)
28044                                           gl_dirsep_regex='[/\\]'
28045       ;;
28046     *)
28047       gl_dirsep_regex='\/'
28048       ;;
28049   esac
28050       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28051   gl_header_literal_regex=`echo 'wchar.h' \
28052                            | sed -e "$gl_make_literal_regex_sed"`
28053   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28054       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28055       s|^/[^/]|//&|
28056       p
28057       q
28058     }'
28059
28060         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28061   sed -n "$gl_absolute_header_sed"`
28062
28063            gl_header=$gl_cv_absolute_wchar_h
28064            gl_cv_next_wchar_h='"'$gl_header'"'
28065           else
28066                gl_cv_next_wchar_h='<'wchar.h'>'
28067              fi
28068
28069
28070 fi
28071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
28072 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
28073      fi
28074      NEXT_WCHAR_H=$gl_cv_next_wchar_h
28075
28076      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28077        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28078        gl_next_as_first_directive='<'wchar.h'>'
28079      else
28080        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28081        gl_next_as_first_directive=$gl_cv_next_wchar_h
28082      fi
28083      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
28084
28085
28086
28087
28088   if test $ac_cv_header_wchar_h = yes; then
28089     HAVE_WCHAR_H=1
28090   else
28091     HAVE_WCHAR_H=0
28092   fi
28093
28094
28095
28096
28097
28098   if test $gt_cv_c_wint_t = yes; then
28099     HAVE_WINT_T=1
28100   else
28101     HAVE_WINT_T=0
28102   fi
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114   case "$host_os" in
28115     mingw*)
28116
28117
28118
28119
28120
28121
28122
28123
28124   gl_LIBOBJS="$gl_LIBOBJS windows-mutex.$ac_objext"
28125
28126       ;;
28127   esac
28128
28129   case "$host_os" in
28130     mingw*)
28131
28132
28133
28134
28135
28136
28137
28138
28139   gl_LIBOBJS="$gl_LIBOBJS windows-once.$ac_objext"
28140
28141       ;;
28142   esac
28143
28144   case "$host_os" in
28145     mingw*)
28146
28147
28148
28149
28150
28151
28152
28153
28154   gl_LIBOBJS="$gl_LIBOBJS windows-recmutex.$ac_objext"
28155
28156       ;;
28157   esac
28158
28159   case "$host_os" in
28160     mingw*)
28161
28162
28163
28164
28165
28166
28167
28168
28169   gl_LIBOBJS="$gl_LIBOBJS windows-rwlock.$ac_objext"
28170
28171       ;;
28172   esac
28173
28174   case "$host_os" in
28175     mingw*)
28176
28177
28178
28179
28180
28181
28182
28183
28184   gl_LIBOBJS="$gl_LIBOBJS windows-tls.$ac_objext"
28185
28186       ;;
28187   esac
28188
28189
28190
28191
28192     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
28193       REPLACE_WRITE=1
28194     fi
28195
28196
28197
28198
28199   if test $REPLACE_WRITE = 1; then
28200
28201
28202
28203
28204
28205
28206
28207
28208   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
28209
28210     :
28211   fi
28212
28213
28214
28215
28216
28217           GNULIB_WRITE=1
28218
28219
28220
28221
28222
28223 printf "%s\n" "#define GNULIB_TEST_WRITE 1" >>confdefs.h
28224
28225
28226
28227   :
28228
28229
28230 printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h
28231
28232
28233
28234
28235 printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
28236
28237
28238
28239
28240   ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
28241 if test "x$ac_cv_header_stdint_h" = xyes
28242 then :
28243   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
28244
28245 fi
28246
28247
28248
28249
28250   :
28251
28252
28253   :
28254
28255
28256   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
28257
28258   # End of code from modules
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268   gltests_libdeps=
28269   gltests_ltlibdeps=
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280   gl_source_base='tests'
28281   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
28282
28283   gl_module_indicator_condition=$gltests_WITNESS
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
28295 if test "x$ac_cv_header_fcntl_h" = xyes
28296 then :
28297   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
28298
28299 fi
28300
28301 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
28302 if test "x$ac_cv_func_clearenv" = xyes
28303 then :
28304   printf "%s\n" "#define HAVE_CLEARENV 1" >>confdefs.h
28305
28306 fi
28307
28308
28309 # Checks for structures and compiler characteristics.
28310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28311 printf %s "checking for an ANSI C-conforming const... " >&6; }
28312 if test ${ac_cv_c_const+y}
28313 then :
28314   printf %s "(cached) " >&6
28315 else $as_nop
28316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28317 /* end confdefs.h.  */
28318
28319 int
28320 main (void)
28321 {
28322
28323 #ifndef __cplusplus
28324   /* Ultrix mips cc rejects this sort of thing.  */
28325   typedef int charset[2];
28326   const charset cs = { 0, 0 };
28327   /* SunOS 4.1.1 cc rejects this.  */
28328   char const *const *pcpcc;
28329   char **ppc;
28330   /* NEC SVR4.0.2 mips cc rejects this.  */
28331   struct point {int x, y;};
28332   static struct point const zero = {0,0};
28333   /* IBM XL C 1.02.0.0 rejects this.
28334      It does not let you subtract one const X* pointer from another in
28335      an arm of an if-expression whose if-part is not a constant
28336      expression */
28337   const char *g = "string";
28338   pcpcc = &g + (g ? g-g : 0);
28339   /* HPUX 7.0 cc rejects these. */
28340   ++pcpcc;
28341   ppc = (char**) pcpcc;
28342   pcpcc = (char const *const *) ppc;
28343   { /* SCO 3.2v4 cc rejects this sort of thing.  */
28344     char tx;
28345     char *t = &tx;
28346     char const *s = 0 ? (char *) 0 : (char const *) 0;
28347
28348     *t++ = 0;
28349     if (s) return 0;
28350   }
28351   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28352     int x[] = {25, 17};
28353     const int *foo = &x[0];
28354     ++foo;
28355   }
28356   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28357     typedef const int *iptr;
28358     iptr p = 0;
28359     ++p;
28360   }
28361   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
28362        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28363     struct s { int j; const int *ap[3]; } bx;
28364     struct s *b = &bx; b->j = 5;
28365   }
28366   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28367     const int foo = 10;
28368     if (!foo) return 0;
28369   }
28370   return !cs[0] && !zero.x;
28371 #endif
28372
28373   ;
28374   return 0;
28375 }
28376 _ACEOF
28377 if ac_fn_c_try_compile "$LINENO"
28378 then :
28379   ac_cv_c_const=yes
28380 else $as_nop
28381   ac_cv_c_const=no
28382 fi
28383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28384 fi
28385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28386 printf "%s\n" "$ac_cv_c_const" >&6; }
28387 if test $ac_cv_c_const = no; then
28388
28389 printf "%s\n" "#define const /**/" >>confdefs.h
28390
28391 fi
28392
28393
28394   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
28395 "
28396 if test "x$ac_cv_type_pid_t" = xyes
28397 then :
28398
28399 else $as_nop
28400                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28401 /* end confdefs.h.  */
28402
28403           #if defined _WIN64 && !defined __CYGWIN__
28404           LLP64
28405           #endif
28406
28407 int
28408 main (void)
28409 {
28410
28411   ;
28412   return 0;
28413 }
28414
28415 _ACEOF
28416 if ac_fn_c_try_compile "$LINENO"
28417 then :
28418   ac_pid_type='int'
28419 else $as_nop
28420   ac_pid_type='__int64'
28421 fi
28422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28423
28424 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
28425
28426
28427 fi
28428
28429
28430 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28431 if test "x$ac_cv_type_size_t" = xyes
28432 then :
28433
28434 else $as_nop
28435
28436 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
28437
28438 fi
28439
28440
28441 # We must have fork(2) support.
28442
28443
28444
28445
28446
28447 if test "x$ac_cv_func_fork" = xyes; then
28448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
28449 printf %s "checking for working fork... " >&6; }
28450 if test ${ac_cv_func_fork_works+y}
28451 then :
28452   printf %s "(cached) " >&6
28453 else $as_nop
28454   if test "$cross_compiling" = yes
28455 then :
28456   ac_cv_func_fork_works=cross
28457 else $as_nop
28458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28459 /* end confdefs.h.  */
28460 $ac_includes_default
28461 int
28462 main (void)
28463 {
28464
28465           /* By Ruediger Kuhlmann. */
28466           return fork () < 0;
28467
28468   ;
28469   return 0;
28470 }
28471 _ACEOF
28472 if ac_fn_c_try_run "$LINENO"
28473 then :
28474   ac_cv_func_fork_works=yes
28475 else $as_nop
28476   ac_cv_func_fork_works=no
28477 fi
28478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28479   conftest.$ac_objext conftest.beam conftest.$ac_ext
28480 fi
28481
28482 fi
28483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
28484 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
28485
28486 else
28487   ac_cv_func_fork_works=$ac_cv_func_fork
28488 fi
28489 if test "x$ac_cv_func_fork_works" = xcross; then
28490   case $host in
28491     *-*-amigaos* | *-*-msdosdjgpp*)
28492       # Override, as these systems have only a dummy fork() stub
28493       ac_cv_func_fork_works=no
28494       ;;
28495     *)
28496       ac_cv_func_fork_works=yes
28497       ;;
28498   esac
28499   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
28500 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
28501 fi
28502 ac_cv_func_vfork_works=$ac_cv_func_vfork
28503 if test "x$ac_cv_func_vfork" = xyes; then
28504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
28505 printf %s "checking for working vfork... " >&6; }
28506 if test ${ac_cv_func_vfork_works+y}
28507 then :
28508   printf %s "(cached) " >&6
28509 else $as_nop
28510   if test "$cross_compiling" = yes
28511 then :
28512   ac_cv_func_vfork_works=cross
28513 else $as_nop
28514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28515 /* end confdefs.h.  */
28516 /* Thanks to Paul Eggert for this test.  */
28517 $ac_includes_default
28518 #include <signal.h>
28519 #include <sys/wait.h>
28520 #ifdef HAVE_VFORK_H
28521 # include <vfork.h>
28522 #endif
28523
28524 static void
28525 do_nothing (int sig)
28526 {
28527   (void) sig;
28528 }
28529
28530 /* On some sparc systems, changes by the child to local and incoming
28531    argument registers are propagated back to the parent.  The compiler
28532    is told about this with #include <vfork.h>, but some compilers
28533    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
28534    static variable whose address is put into a register that is
28535    clobbered by the vfork.  */
28536 static void
28537 sparc_address_test (int arg)
28538 {
28539   static pid_t child;
28540   if (!child) {
28541     child = vfork ();
28542     if (child < 0) {
28543       perror ("vfork");
28544       _exit(2);
28545     }
28546     if (!child) {
28547       arg = getpid();
28548       write(-1, "", 0);
28549       _exit (arg);
28550     }
28551   }
28552 }
28553
28554 int
28555 main (void)
28556 {
28557   pid_t parent = getpid ();
28558   pid_t child;
28559
28560   sparc_address_test (0);
28561
28562   /* On Solaris 2.4, changes by the child to the signal handler
28563      also munge signal handlers in the parent.  To detect this,
28564      start by putting the parent's handler in a known state.  */
28565   signal (SIGTERM, SIG_DFL);
28566
28567   child = vfork ();
28568
28569   if (child == 0) {
28570     /* Here is another test for sparc vfork register problems.  This
28571        test uses lots of local variables, at least as many local
28572        variables as main has allocated so far including compiler
28573        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
28574        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
28575        reuse the register of parent for one of the local variables,
28576        since it will think that parent can't possibly be used any more
28577        in this routine.  Assigning to the local variable will thus
28578        munge parent in the parent process.  */
28579     pid_t
28580       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
28581       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
28582     /* Convince the compiler that p..p7 are live; otherwise, it might
28583        use the same hardware register for all 8 local variables.  */
28584     if (p != p1 || p != p2 || p != p3 || p != p4
28585         || p != p5 || p != p6 || p != p7)
28586       _exit(1);
28587
28588     /* Alter the child's signal handler.  */
28589     if (signal (SIGTERM, do_nothing) != SIG_DFL)
28590       _exit(1);
28591
28592     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
28593        from child file descriptors.  If the child closes a descriptor
28594        before it execs or exits, this munges the parent's descriptor
28595        as well.  Test for this by closing stdout in the child.  */
28596     _exit(close(fileno(stdout)) != 0);
28597   } else {
28598     int status;
28599     struct stat st;
28600
28601     while (wait(&status) != child)
28602       ;
28603     return (
28604          /* Was there some problem with vforking?  */
28605          child < 0
28606
28607          /* Did the child munge the parent's signal handler?  */
28608          || signal (SIGTERM, SIG_DFL) != SIG_DFL
28609
28610          /* Did the child fail?  (This shouldn't happen.)  */
28611          || status
28612
28613          /* Did the vfork/compiler bug occur?  */
28614          || parent != getpid()
28615
28616          /* Did the file descriptor bug occur?  */
28617          || fstat(fileno(stdout), &st) != 0
28618          );
28619   }
28620 }
28621 _ACEOF
28622 if ac_fn_c_try_run "$LINENO"
28623 then :
28624   ac_cv_func_vfork_works=yes
28625 else $as_nop
28626   ac_cv_func_vfork_works=no
28627 fi
28628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28629   conftest.$ac_objext conftest.beam conftest.$ac_ext
28630 fi
28631
28632 fi
28633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
28634 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
28635
28636 fi;
28637 if test "x$ac_cv_func_fork_works" = xcross; then
28638   ac_cv_func_vfork_works=$ac_cv_func_vfork
28639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
28640 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
28641 fi
28642
28643 if test "x$ac_cv_func_vfork_works" = xyes; then
28644
28645 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
28646
28647 else
28648
28649 printf "%s\n" "#define vfork fork" >>confdefs.h
28650
28651 fi
28652 if test "x$ac_cv_func_fork_works" = xyes; then
28653
28654 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
28655
28656 fi
28657
28658 if test "x$ac_cv_func_fork_works" != xyes; then
28659   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28661 as_fn_error $? "cannot use libpipeline on systems without fork
28662 See \`config.log' for more details" "$LINENO" 5; }
28663 fi
28664
28665 # Check for socketpair(2) as fast replacement for pipe(2).
28666 # Check whether --enable-socketpair-pipe was given.
28667 if test ${enable_socketpair_pipe+y}
28668 then :
28669   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
28670     then
28671        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
28672 printf %s "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
28673   if test ${pipeline_cv_socketpair_pipe+y}
28674 then :
28675   printf %s "(cached) " >&6
28676 else $as_nop
28677
28678     if test "$cross_compiling" = yes
28679 then :
28680   pipeline_cv_socketpair_pipe=no
28681 else $as_nop
28682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28683 /* end confdefs.h.  */
28684
28685 #include <netdb.h>
28686 #include <netinet/in.h>
28687 #include <signal.h>
28688 #include <sys/socket.h>
28689 #include <sys/types.h>
28690 #include <sys/wait.h>
28691 #include <unistd.h>
28692 #ifndef SHUT_RD
28693 #       define SHUT_RD  0
28694 #endif
28695 #ifndef SHUT_WR
28696 #       define SHUT_WR  1
28697 #endif
28698
28699 static void sigpipe(int sig)
28700 {
28701         _exit(0);
28702 }
28703
28704 int main()
28705 {
28706         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
28707         char buf[256];
28708         int sfd[2], s;
28709         pid_t pid;
28710         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
28711                 return 1;
28712         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
28713                 return 1;
28714         if ((pid = fork()) < 0)
28715                 return 1;
28716         if (pid) {
28717                 close(sfd[1]);
28718                 waitpid(-1,&s,0);
28719                 if (read(sfd[0],buf,sizeof(buf)) < 0)
28720                         return 1;
28721         } else {
28722                 close(sfd[0]);
28723                 write(sfd[1],test,sizeof(test) - 1);
28724                 return 0;
28725         }
28726         close(sfd[0]);
28727         signal(SIGPIPE, sigpipe);
28728         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
28729                 return 1;
28730         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
28731                 return 1;
28732         close(sfd[0]);
28733         write(sfd[1],test,sizeof(test) - 1);
28734         return 1;
28735 }
28736 _ACEOF
28737 if ac_fn_c_try_run "$LINENO"
28738 then :
28739   pipeline_cv_socketpair_pipe=yes
28740 else $as_nop
28741   pipeline_cv_socketpair_pipe=no
28742 fi
28743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28744   conftest.$ac_objext conftest.beam conftest.$ac_ext
28745 fi
28746
28747
28748 fi
28749
28750   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
28751 printf "%s\n" "$pipeline_cv_socketpair_pipe" >&6; }
28752   if test "$pipeline_cv_socketpair_pipe" = yes; then
28753
28754 printf "%s\n" "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
28755
28756   fi
28757
28758       if test "$pipeline_cv_socketpair_pipe" = yes; then
28759          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
28760 printf %s "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
28761   if test ${pipeline_cv_socketpair_mode+y}
28762 then :
28763   printf %s "(cached) " >&6
28764 else $as_nop
28765
28766     if test "$cross_compiling" = yes
28767 then :
28768   pipeline_cv_socketpair_mode=no
28769 else $as_nop
28770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28771 /* end confdefs.h.  */
28772
28773 #include <netdb.h>
28774 #include <netinet/in.h>
28775 #include <sys/stat.h>
28776 #include <sys/socket.h>
28777 #include <sys/types.h>
28778 #include <unistd.h>
28779 #ifndef SHUT_RD
28780 #       define SHUT_RD  0
28781 #endif
28782 #ifndef SHUT_WR
28783 #       define SHUT_WR  1
28784 #endif
28785
28786 int main()
28787 {
28788         int sfd[2];
28789         struct stat st[2];
28790         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
28791                 return 1;
28792         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
28793                 return 1;
28794         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
28795                 return 1;
28796         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
28797                 return 1;
28798         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
28799                 return 1;
28800         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
28801                 return 1;
28802         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
28803                 return 1;
28804         return 0;
28805 }
28806 _ACEOF
28807 if ac_fn_c_try_run "$LINENO"
28808 then :
28809   pipeline_cv_socketpair_mode=yes
28810 else $as_nop
28811   pipeline_cv_socketpair_mode=no
28812 fi
28813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28814   conftest.$ac_objext conftest.beam conftest.$ac_ext
28815 fi
28816
28817
28818 fi
28819
28820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
28821 printf "%s\n" "$pipeline_cv_socketpair_mode" >&6; }
28822   if test "$pipeline_cv_socketpair_mode" = yes; then
28823
28824 printf "%s\n" "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
28825
28826   fi
28827
28828       fi
28829     fi
28830
28831 fi
28832
28833
28834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
28835 printf "%s\n" "$as_me: default CC = \"$CC\"" >&6;}
28836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
28837 printf "%s\n" "$as_me: default CPP = \"$CPP\"" >&6;}
28838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
28839 printf "%s\n" "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
28840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
28841 printf "%s\n" "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
28842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
28843 printf "%s\n" "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
28844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
28845 printf "%s\n" "$as_me: default LIBS = \"$LIBS\"" >&6;}
28846
28847 ac_config_files="$ac_config_files Makefile gl/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
28848
28849 cat >confcache <<\_ACEOF
28850 # This file is a shell script that caches the results of configure
28851 # tests run on this system so they can be shared between configure
28852 # scripts and configure runs, see configure's option --config-cache.
28853 # It is not useful on other systems.  If it contains results you don't
28854 # want to keep, you may remove or edit it.
28855 #
28856 # config.status only pays attention to the cache file if you give it
28857 # the --recheck option to rerun configure.
28858 #
28859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28861 # following values.
28862
28863 _ACEOF
28864
28865 # The following way of writing the cache mishandles newlines in values,
28866 # but we know of no workaround that is simple, portable, and efficient.
28867 # So, we kill variables containing newlines.
28868 # Ultrix sh set writes to stderr and can't be redirected directly,
28869 # and sets the high bit in the cache file unless we assign to the vars.
28870 (
28871   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28872     eval ac_val=\$$ac_var
28873     case $ac_val in #(
28874     *${as_nl}*)
28875       case $ac_var in #(
28876       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28877 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28878       esac
28879       case $ac_var in #(
28880       _ | IFS | as_nl) ;; #(
28881       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28882       *) { eval $ac_var=; unset $ac_var;} ;;
28883       esac ;;
28884     esac
28885   done
28886
28887   (set) 2>&1 |
28888     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28889     *${as_nl}ac_space=\ *)
28890       # `set' does not quote correctly, so add quotes: double-quote
28891       # substitution turns \\\\ into \\, and sed turns \\ into \.
28892       sed -n \
28893         "s/'/'\\\\''/g;
28894           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28895       ;; #(
28896     *)
28897       # `set' quotes correctly as required by POSIX, so do not add quotes.
28898       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28899       ;;
28900     esac |
28901     sort
28902 ) |
28903   sed '
28904      /^ac_cv_env_/b end
28905      t clear
28906      :clear
28907      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
28908      t end
28909      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28910      :end' >>confcache
28911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28912   if test -w "$cache_file"; then
28913     if test "x$cache_file" != "x/dev/null"; then
28914       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28915 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
28916       if test ! -f "$cache_file" || test -h "$cache_file"; then
28917         cat confcache >"$cache_file"
28918       else
28919         case $cache_file in #(
28920         */* | ?:*)
28921           mv -f confcache "$cache_file"$$ &&
28922           mv -f "$cache_file"$$ "$cache_file" ;; #(
28923         *)
28924           mv -f confcache "$cache_file" ;;
28925         esac
28926       fi
28927     fi
28928   else
28929     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28930 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
28931   fi
28932 fi
28933 rm -f confcache
28934
28935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28936 # Let make expand exec_prefix.
28937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28938
28939 DEFS=-DHAVE_CONFIG_H
28940
28941 ac_libobjs=
28942 ac_ltlibobjs=
28943 U=
28944 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28945   # 1. Remove the extension, and $U if already installed.
28946   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28947   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
28948   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28949   #    will be set to the directory where LIBOBJS objects are built.
28950   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28951   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28952 done
28953 LIBOBJS=$ac_libobjs
28954
28955 LTLIBOBJS=$ac_ltlibobjs
28956
28957
28958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28959 printf %s "checking that generated files are newer than configure... " >&6; }
28960    if test -n "$am_sleep_pid"; then
28961      # Hide warnings about reused PIDs.
28962      wait $am_sleep_pid 2>/dev/null
28963    fi
28964    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
28965 printf "%s\n" "done" >&6; }
28966  if test -n "$EXEEXT"; then
28967   am__EXEEXT_TRUE=
28968   am__EXEEXT_FALSE='#'
28969 else
28970   am__EXEEXT_TRUE='#'
28971   am__EXEEXT_FALSE=
28972 fi
28973
28974 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28975   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28977 fi
28978 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28979   as_fn_error $? "conditional \"AMDEP\" was never defined.
28980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28981 fi
28982 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28983   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28985 fi
28986 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
28987   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
28988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28989 fi
28990 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28991   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28993 fi
28994 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28995   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28997 fi
28998 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28999   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29001 fi
29002 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
29003   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
29004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29005 fi
29006 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29007   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29009 fi
29010 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29011   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29013 fi
29014 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29015   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29017 fi
29018 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29019   as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29021 fi
29022 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29023   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29025 fi
29026 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29027   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29029 fi
29030 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29031   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29033 fi
29034
29035
29036     gl_libobjs=
29037     gl_ltlibobjs=
29038     if test -n "$gl_LIBOBJS"; then
29039       # Remove the extension.
29040       sed_drop_objext='s/\.o$//;s/\.obj$//'
29041       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29042         gl_libobjs="$gl_libobjs $i.$ac_objext"
29043         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29044       done
29045     fi
29046     gl_LIBOBJS=$gl_libobjs
29047
29048     gl_LTLIBOBJS=$gl_ltlibobjs
29049
29050
29051
29052     gltests_libobjs=
29053     gltests_ltlibobjs=
29054     if test -n "$gltests_LIBOBJS"; then
29055       # Remove the extension.
29056       sed_drop_objext='s/\.o$//;s/\.obj$//'
29057       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29058         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29059         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29060       done
29061     fi
29062     gltests_LIBOBJS=$gltests_libobjs
29063
29064     gltests_LTLIBOBJS=$gltests_ltlibobjs
29065
29066
29067
29068 : "${CONFIG_STATUS=./config.status}"
29069 ac_write_fail=0
29070 ac_clean_files_save=$ac_clean_files
29071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29073 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
29074 as_write_fail=0
29075 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29076 #! $SHELL
29077 # Generated by $as_me.
29078 # Run this file to recreate the current configuration.
29079 # Compiler output produced by configure, useful for debugging
29080 # configure, is in config.log if it exists.
29081
29082 debug=false
29083 ac_cs_recheck=false
29084 ac_cs_silent=false
29085
29086 SHELL=\${CONFIG_SHELL-$SHELL}
29087 export SHELL
29088 _ASEOF
29089 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29090 ## -------------------- ##
29091 ## M4sh Initialization. ##
29092 ## -------------------- ##
29093
29094 # Be more Bourne compatible
29095 DUALCASE=1; export DUALCASE # for MKS sh
29096 as_nop=:
29097 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
29098 then :
29099   emulate sh
29100   NULLCMD=:
29101   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29102   # is contrary to our usage.  Disable this feature.
29103   alias -g '${1+"$@"}'='"$@"'
29104   setopt NO_GLOB_SUBST
29105 else $as_nop
29106   case `(set -o) 2>/dev/null` in #(
29107   *posix*) :
29108     set -o posix ;; #(
29109   *) :
29110      ;;
29111 esac
29112 fi
29113
29114
29115
29116 # Reset variables that may have inherited troublesome values from
29117 # the environment.
29118
29119 # IFS needs to be set, to space, tab, and newline, in precisely that order.
29120 # (If _AS_PATH_WALK were called with IFS unset, it would have the
29121 # side effect of setting IFS to empty, thus disabling word splitting.)
29122 # Quoting is to prevent editors from complaining about space-tab.
29123 as_nl='
29124 '
29125 export as_nl
29126 IFS=" ""        $as_nl"
29127
29128 PS1='$ '
29129 PS2='> '
29130 PS4='+ '
29131
29132 # Ensure predictable behavior from utilities with locale-dependent output.
29133 LC_ALL=C
29134 export LC_ALL
29135 LANGUAGE=C
29136 export LANGUAGE
29137
29138 # We cannot yet rely on "unset" to work, but we need these variables
29139 # to be unset--not just set to an empty or harmless value--now, to
29140 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
29141 # also avoids known problems related to "unset" and subshell syntax
29142 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
29143 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
29144 do eval test \${$as_var+y} \
29145   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29146 done
29147
29148 # Ensure that fds 0, 1, and 2 are open.
29149 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
29150 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
29151 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
29152
29153 # The user is always right.
29154 if ${PATH_SEPARATOR+false} :; then
29155   PATH_SEPARATOR=:
29156   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29157     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29158       PATH_SEPARATOR=';'
29159   }
29160 fi
29161
29162
29163 # Find who we are.  Look in the path if we contain no directory separator.
29164 as_myself=
29165 case $0 in #((
29166   *[\\/]* ) as_myself=$0 ;;
29167   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29168 for as_dir in $PATH
29169 do
29170   IFS=$as_save_IFS
29171   case $as_dir in #(((
29172     '') as_dir=./ ;;
29173     */) ;;
29174     *) as_dir=$as_dir/ ;;
29175   esac
29176     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
29177   done
29178 IFS=$as_save_IFS
29179
29180      ;;
29181 esac
29182 # We did not find ourselves, most probably we were run as `sh COMMAND'
29183 # in which case we are not to be found in the path.
29184 if test "x$as_myself" = x; then
29185   as_myself=$0
29186 fi
29187 if test ! -f "$as_myself"; then
29188   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29189   exit 1
29190 fi
29191
29192
29193
29194 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29195 # ----------------------------------------
29196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29198 # script with STATUS, using 1 if that was 0.
29199 as_fn_error ()
29200 {
29201   as_status=$1; test $as_status -eq 0 && as_status=1
29202   if test "$4"; then
29203     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29204     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29205   fi
29206   printf "%s\n" "$as_me: error: $2" >&2
29207   as_fn_exit $as_status
29208 } # as_fn_error
29209
29210
29211
29212 # as_fn_set_status STATUS
29213 # -----------------------
29214 # Set $? to STATUS, without forking.
29215 as_fn_set_status ()
29216 {
29217   return $1
29218 } # as_fn_set_status
29219
29220 # as_fn_exit STATUS
29221 # -----------------
29222 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29223 as_fn_exit ()
29224 {
29225   set +e
29226   as_fn_set_status $1
29227   exit $1
29228 } # as_fn_exit
29229
29230 # as_fn_unset VAR
29231 # ---------------
29232 # Portably unset VAR.
29233 as_fn_unset ()
29234 {
29235   { eval $1=; unset $1;}
29236 }
29237 as_unset=as_fn_unset
29238
29239 # as_fn_append VAR VALUE
29240 # ----------------------
29241 # Append the text in VALUE to the end of the definition contained in VAR. Take
29242 # advantage of any shell optimizations that allow amortized linear growth over
29243 # repeated appends, instead of the typical quadratic growth present in naive
29244 # implementations.
29245 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
29246 then :
29247   eval 'as_fn_append ()
29248   {
29249     eval $1+=\$2
29250   }'
29251 else $as_nop
29252   as_fn_append ()
29253   {
29254     eval $1=\$$1\$2
29255   }
29256 fi # as_fn_append
29257
29258 # as_fn_arith ARG...
29259 # ------------------
29260 # Perform arithmetic evaluation on the ARGs, and store the result in the
29261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29262 # must be portable across $(()) and expr.
29263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
29264 then :
29265   eval 'as_fn_arith ()
29266   {
29267     as_val=$(( $* ))
29268   }'
29269 else $as_nop
29270   as_fn_arith ()
29271   {
29272     as_val=`expr "$@" || test $? -eq 1`
29273   }
29274 fi # as_fn_arith
29275
29276
29277 if expr a : '\(a\)' >/dev/null 2>&1 &&
29278    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29279   as_expr=expr
29280 else
29281   as_expr=false
29282 fi
29283
29284 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29285   as_basename=basename
29286 else
29287   as_basename=false
29288 fi
29289
29290 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29291   as_dirname=dirname
29292 else
29293   as_dirname=false
29294 fi
29295
29296 as_me=`$as_basename -- "$0" ||
29297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29298          X"$0" : 'X\(//\)$' \| \
29299          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29300 printf "%s\n" X/"$0" |
29301     sed '/^.*\/\([^/][^/]*\)\/*$/{
29302             s//\1/
29303             q
29304           }
29305           /^X\/\(\/\/\)$/{
29306             s//\1/
29307             q
29308           }
29309           /^X\/\(\/\).*/{
29310             s//\1/
29311             q
29312           }
29313           s/.*/./; q'`
29314
29315 # Avoid depending upon Character Ranges.
29316 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29317 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29318 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29319 as_cr_digits='0123456789'
29320 as_cr_alnum=$as_cr_Letters$as_cr_digits
29321
29322
29323 # Determine whether it's possible to make 'echo' print without a newline.
29324 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
29325 # for compatibility with existing Makefiles.
29326 ECHO_C= ECHO_N= ECHO_T=
29327 case `echo -n x` in #(((((
29328 -n*)
29329   case `echo 'xy\c'` in
29330   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29331   xy)  ECHO_C='\c';;
29332   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29333        ECHO_T=' ';;
29334   esac;;
29335 *)
29336   ECHO_N='-n';;
29337 esac
29338
29339 # For backward compatibility with old third-party macros, we provide
29340 # the shell variables $as_echo and $as_echo_n.  New code should use
29341 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
29342 as_echo='printf %s\n'
29343 as_echo_n='printf %s'
29344
29345 rm -f conf$$ conf$$.exe conf$$.file
29346 if test -d conf$$.dir; then
29347   rm -f conf$$.dir/conf$$.file
29348 else
29349   rm -f conf$$.dir
29350   mkdir conf$$.dir 2>/dev/null
29351 fi
29352 if (echo >conf$$.file) 2>/dev/null; then
29353   if ln -s conf$$.file conf$$ 2>/dev/null; then
29354     as_ln_s='ln -s'
29355     # ... but there are two gotchas:
29356     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29357     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29358     # In both cases, we have to default to `cp -pR'.
29359     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29360       as_ln_s='cp -pR'
29361   elif ln conf$$.file conf$$ 2>/dev/null; then
29362     as_ln_s=ln
29363   else
29364     as_ln_s='cp -pR'
29365   fi
29366 else
29367   as_ln_s='cp -pR'
29368 fi
29369 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29370 rmdir conf$$.dir 2>/dev/null
29371
29372
29373 # as_fn_mkdir_p
29374 # -------------
29375 # Create "$as_dir" as a directory, including parents if necessary.
29376 as_fn_mkdir_p ()
29377 {
29378
29379   case $as_dir in #(
29380   -*) as_dir=./$as_dir;;
29381   esac
29382   test -d "$as_dir" || eval $as_mkdir_p || {
29383     as_dirs=
29384     while :; do
29385       case $as_dir in #(
29386       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29387       *) as_qdir=$as_dir;;
29388       esac
29389       as_dirs="'$as_qdir' $as_dirs"
29390       as_dir=`$as_dirname -- "$as_dir" ||
29391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29392          X"$as_dir" : 'X\(//\)[^/]' \| \
29393          X"$as_dir" : 'X\(//\)$' \| \
29394          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29395 printf "%s\n" X"$as_dir" |
29396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29397             s//\1/
29398             q
29399           }
29400           /^X\(\/\/\)[^/].*/{
29401             s//\1/
29402             q
29403           }
29404           /^X\(\/\/\)$/{
29405             s//\1/
29406             q
29407           }
29408           /^X\(\/\).*/{
29409             s//\1/
29410             q
29411           }
29412           s/.*/./; q'`
29413       test -d "$as_dir" && break
29414     done
29415     test -z "$as_dirs" || eval "mkdir $as_dirs"
29416   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29417
29418
29419 } # as_fn_mkdir_p
29420 if mkdir -p . 2>/dev/null; then
29421   as_mkdir_p='mkdir -p "$as_dir"'
29422 else
29423   test -d ./-p && rmdir ./-p
29424   as_mkdir_p=false
29425 fi
29426
29427
29428 # as_fn_executable_p FILE
29429 # -----------------------
29430 # Test if FILE is an executable regular file.
29431 as_fn_executable_p ()
29432 {
29433   test -f "$1" && test -x "$1"
29434 } # as_fn_executable_p
29435 as_test_x='test -x'
29436 as_executable_p=as_fn_executable_p
29437
29438 # Sed expression to map a string onto a valid CPP name.
29439 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29440
29441 # Sed expression to map a string onto a valid variable name.
29442 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29443
29444
29445 exec 6>&1
29446 ## ----------------------------------- ##
29447 ## Main body of $CONFIG_STATUS script. ##
29448 ## ----------------------------------- ##
29449 _ASEOF
29450 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29451
29452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29453 # Save the log message, to keep $0 and so on meaningful, and to
29454 # report actual input values of CONFIG_FILES etc. instead of their
29455 # values after options handling.
29456 ac_log="
29457 This file was extended by libpipeline $as_me 1.5.4, which was
29458 generated by GNU Autoconf 2.71.  Invocation command line was
29459
29460   CONFIG_FILES    = $CONFIG_FILES
29461   CONFIG_HEADERS  = $CONFIG_HEADERS
29462   CONFIG_LINKS    = $CONFIG_LINKS
29463   CONFIG_COMMANDS = $CONFIG_COMMANDS
29464   $ $0 $@
29465
29466 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29467 "
29468
29469 _ACEOF
29470
29471 case $ac_config_files in *"
29472 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29473 esac
29474
29475 case $ac_config_headers in *"
29476 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29477 esac
29478
29479
29480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29481 # Files that config.status was made for.
29482 config_files="$ac_config_files"
29483 config_headers="$ac_config_headers"
29484 config_commands="$ac_config_commands"
29485
29486 _ACEOF
29487
29488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29489 ac_cs_usage="\
29490 \`$as_me' instantiates files and other configuration actions
29491 from templates according to the current configuration.  Unless the files
29492 and actions are specified as TAGs, all are instantiated by default.
29493
29494 Usage: $0 [OPTION]... [TAG]...
29495
29496   -h, --help       print this help, then exit
29497   -V, --version    print version number and configuration settings, then exit
29498       --config     print configuration, then exit
29499   -q, --quiet, --silent
29500                    do not print progress messages
29501   -d, --debug      don't remove temporary files
29502       --recheck    update $as_me by reconfiguring in the same conditions
29503       --file=FILE[:TEMPLATE]
29504                    instantiate the configuration file FILE
29505       --header=FILE[:TEMPLATE]
29506                    instantiate the configuration header FILE
29507
29508 Configuration files:
29509 $config_files
29510
29511 Configuration headers:
29512 $config_headers
29513
29514 Configuration commands:
29515 $config_commands
29516
29517 Report bugs to <cjwatson@debian.org>."
29518
29519 _ACEOF
29520 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
29521 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
29522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29523 ac_cs_config='$ac_cs_config_escaped'
29524 ac_cs_version="\\
29525 libpipeline config.status 1.5.4
29526 configured by $0, generated by GNU Autoconf 2.71,
29527   with options \\"\$ac_cs_config\\"
29528
29529 Copyright (C) 2021 Free Software Foundation, Inc.
29530 This config.status script is free software; the Free Software Foundation
29531 gives unlimited permission to copy, distribute and modify it."
29532
29533 ac_pwd='$ac_pwd'
29534 srcdir='$srcdir'
29535 INSTALL='$INSTALL'
29536 MKDIR_P='$MKDIR_P'
29537 AWK='$AWK'
29538 test -n "\$AWK" || AWK=awk
29539 _ACEOF
29540
29541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29542 # The default lists apply if the user does not specify any file.
29543 ac_need_defaults=:
29544 while test $# != 0
29545 do
29546   case $1 in
29547   --*=?*)
29548     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29549     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29550     ac_shift=:
29551     ;;
29552   --*=)
29553     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29554     ac_optarg=
29555     ac_shift=:
29556     ;;
29557   *)
29558     ac_option=$1
29559     ac_optarg=$2
29560     ac_shift=shift
29561     ;;
29562   esac
29563
29564   case $ac_option in
29565   # Handling of the options.
29566   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29567     ac_cs_recheck=: ;;
29568   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29569     printf "%s\n" "$ac_cs_version"; exit ;;
29570   --config | --confi | --conf | --con | --co | --c )
29571     printf "%s\n" "$ac_cs_config"; exit ;;
29572   --debug | --debu | --deb | --de | --d | -d )
29573     debug=: ;;
29574   --file | --fil | --fi | --f )
29575     $ac_shift
29576     case $ac_optarg in
29577     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29578     '') as_fn_error $? "missing file argument" ;;
29579     esac
29580     as_fn_append CONFIG_FILES " '$ac_optarg'"
29581     ac_need_defaults=false;;
29582   --header | --heade | --head | --hea )
29583     $ac_shift
29584     case $ac_optarg in
29585     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29586     esac
29587     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29588     ac_need_defaults=false;;
29589   --he | --h)
29590     # Conflict between --help and --header
29591     as_fn_error $? "ambiguous option: \`$1'
29592 Try \`$0 --help' for more information.";;
29593   --help | --hel | -h )
29594     printf "%s\n" "$ac_cs_usage"; exit ;;
29595   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29596   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29597     ac_cs_silent=: ;;
29598
29599   # This is an error.
29600   -*) as_fn_error $? "unrecognized option: \`$1'
29601 Try \`$0 --help' for more information." ;;
29602
29603   *) as_fn_append ac_config_targets " $1"
29604      ac_need_defaults=false ;;
29605
29606   esac
29607   shift
29608 done
29609
29610 ac_configure_extra_args=
29611
29612 if $ac_cs_silent; then
29613   exec 6>/dev/null
29614   ac_configure_extra_args="$ac_configure_extra_args --silent"
29615 fi
29616
29617 _ACEOF
29618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29619 if \$ac_cs_recheck; then
29620   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29621   shift
29622   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
29623   CONFIG_SHELL='$SHELL'
29624   export CONFIG_SHELL
29625   exec "\$@"
29626 fi
29627
29628 _ACEOF
29629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29630 exec 5>>config.log
29631 {
29632   echo
29633   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29634 ## Running $as_me. ##
29635 _ASBOX
29636   printf "%s\n" "$ac_log"
29637 } >&5
29638
29639 _ACEOF
29640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29641 #
29642 # INIT-COMMANDS
29643 #
29644 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
29645
29646
29647 # The HP-UX ksh and POSIX shell print the target directory to stdout
29648 # if CDPATH is set.
29649 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29650
29651 sed_quote_subst='$sed_quote_subst'
29652 double_quote_subst='$double_quote_subst'
29653 delay_variable_subst='$delay_variable_subst'
29654 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29655 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29656 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29657 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29658 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29659 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29660 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
29661 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29662 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29663 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29664 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29665 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29666 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29667 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29668 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29669 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29670 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29671 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29672 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29673 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29674 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29675 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29676 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29677 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29678 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29679 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29680 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29681 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29682 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29683 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29684 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29685 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29686 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29687 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29688 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29689 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29690 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29691 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29692 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29693 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29694 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29695 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29696 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29697 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29698 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29699 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29700 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29701 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29702 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29703 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29704 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29705 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29706 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29707 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29708 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29709 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29710 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
29711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29712 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"`'
29713 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
29714 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29715 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29716 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
29717 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29718 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29719 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29720 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29721 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29722 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29723 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29724 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29725 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29726 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29727 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29728 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29729 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29730 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29731 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29732 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29733 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29734 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29735 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29736 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29737 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29738 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29739 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29740 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29741 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29742 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29743 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29744 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29745 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29746 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29747 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29748 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29749 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29750 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29751 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29752 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29753 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29754 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29755 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29756 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29757 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29758 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29759 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29760 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29761 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29762 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29763 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29764 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29765 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29766 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29767 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29768 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29769 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29770 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29771 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29772 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29773 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29774 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29775 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29776 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29777 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29778 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29779 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29780 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29781 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
29782 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
29783 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29784 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29785 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29786 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29787 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29788 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29789
29790 LTCC='$LTCC'
29791 LTCFLAGS='$LTCFLAGS'
29792 compiler='$compiler_DEFAULT'
29793
29794 # A function that is used when there is no print builtin or printf.
29795 func_fallback_echo ()
29796 {
29797   eval 'cat <<_LTECHO_EOF
29798 \$1
29799 _LTECHO_EOF'
29800 }
29801
29802 # Quote evaled strings.
29803 for var in SHELL \
29804 ECHO \
29805 PATH_SEPARATOR \
29806 SED \
29807 GREP \
29808 EGREP \
29809 FGREP \
29810 LD \
29811 NM \
29812 LN_S \
29813 lt_SP2NL \
29814 lt_NL2SP \
29815 reload_flag \
29816 OBJDUMP \
29817 deplibs_check_method \
29818 file_magic_cmd \
29819 file_magic_glob \
29820 want_nocaseglob \
29821 DLLTOOL \
29822 sharedlib_from_linklib_cmd \
29823 AR \
29824 AR_FLAGS \
29825 archiver_list_spec \
29826 STRIP \
29827 RANLIB \
29828 CC \
29829 CFLAGS \
29830 compiler \
29831 lt_cv_sys_global_symbol_pipe \
29832 lt_cv_sys_global_symbol_to_cdecl \
29833 lt_cv_sys_global_symbol_to_import \
29834 lt_cv_sys_global_symbol_to_c_name_address \
29835 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29836 lt_cv_nm_interface \
29837 nm_file_list_spec \
29838 lt_cv_truncate_bin \
29839 lt_prog_compiler_no_builtin_flag \
29840 lt_prog_compiler_pic \
29841 lt_prog_compiler_wl \
29842 lt_prog_compiler_static \
29843 lt_cv_prog_compiler_c_o \
29844 need_locks \
29845 MANIFEST_TOOL \
29846 DSYMUTIL \
29847 NMEDIT \
29848 LIPO \
29849 OTOOL \
29850 OTOOL64 \
29851 shrext_cmds \
29852 export_dynamic_flag_spec \
29853 whole_archive_flag_spec \
29854 compiler_needs_object \
29855 with_gnu_ld \
29856 allow_undefined_flag \
29857 no_undefined_flag \
29858 hardcode_libdir_flag_spec \
29859 hardcode_libdir_separator \
29860 exclude_expsyms \
29861 include_expsyms \
29862 file_list_spec \
29863 variables_saved_for_relink \
29864 libname_spec \
29865 library_names_spec \
29866 soname_spec \
29867 install_override_mode \
29868 finish_eval \
29869 old_striplib \
29870 striplib; do
29871     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29872     *[\\\\\\\`\\"\\\$]*)
29873       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29874       ;;
29875     *)
29876       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29877       ;;
29878     esac
29879 done
29880
29881 # Double-quote double-evaled strings.
29882 for var in reload_cmds \
29883 old_postinstall_cmds \
29884 old_postuninstall_cmds \
29885 old_archive_cmds \
29886 extract_expsyms_cmds \
29887 old_archive_from_new_cmds \
29888 old_archive_from_expsyms_cmds \
29889 archive_cmds \
29890 archive_expsym_cmds \
29891 module_cmds \
29892 module_expsym_cmds \
29893 export_symbols_cmds \
29894 prelink_cmds \
29895 postlink_cmds \
29896 postinstall_cmds \
29897 postuninstall_cmds \
29898 finish_cmds \
29899 sys_lib_search_path_spec \
29900 configure_time_dlsearch_path \
29901 configure_time_lt_sys_library_path; do
29902     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29903     *[\\\\\\\`\\"\\\$]*)
29904       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29905       ;;
29906     *)
29907       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29908       ;;
29909     esac
29910 done
29911
29912 ac_aux_dir='$ac_aux_dir'
29913
29914 # See if we are running on zsh, and set the options that allow our
29915 # commands through without removal of \ escapes INIT.
29916 if test -n "\${ZSH_VERSION+set}"; then
29917    setopt NO_GLOB_SUBST
29918 fi
29919
29920
29921     PACKAGE='$PACKAGE'
29922     VERSION='$VERSION'
29923     RM='$RM'
29924     ofile='$ofile'
29925
29926
29927
29928
29929 _ACEOF
29930
29931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29932
29933 # Handling of arguments.
29934 for ac_config_target in $ac_config_targets
29935 do
29936   case $ac_config_target in
29937     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29938     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29939     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29940     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29941     "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;;
29942     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29943     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
29944     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
29945     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29946
29947   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29948   esac
29949 done
29950
29951
29952 # If the user did not use the arguments to specify the items to instantiate,
29953 # then the envvar interface is used.  Set only those that are not.
29954 # We use the long form for the default assignment because of an extremely
29955 # bizarre bug on SunOS 4.1.3.
29956 if $ac_need_defaults; then
29957   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
29958   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
29959   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
29960 fi
29961
29962 # Have a temporary directory for convenience.  Make it in the build tree
29963 # simply because there is no reason against having it here, and in addition,
29964 # creating and moving files from /tmp can sometimes cause problems.
29965 # Hook for its removal unless debugging.
29966 # Note that there is a small window in which the directory will not be cleaned:
29967 # after its creation but before its name has been assigned to `$tmp'.
29968 $debug ||
29969 {
29970   tmp= ac_tmp=
29971   trap 'exit_status=$?
29972   : "${ac_tmp:=$tmp}"
29973   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29974 ' 0
29975   trap 'as_fn_exit 1' 1 2 13 15
29976 }
29977 # Create a (secure) tmp directory for tmp files.
29978
29979 {
29980   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29981   test -d "$tmp"
29982 }  ||
29983 {
29984   tmp=./conf$$-$RANDOM
29985   (umask 077 && mkdir "$tmp")
29986 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29987 ac_tmp=$tmp
29988
29989 # Set up the scripts for CONFIG_FILES section.
29990 # No need to generate them if there are no CONFIG_FILES.
29991 # This happens for instance with `./config.status config.h'.
29992 if test -n "$CONFIG_FILES"; then
29993
29994
29995 ac_cr=`echo X | tr X '\015'`
29996 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29997 # But we know of no other shell where ac_cr would be empty at this
29998 # point, so we can use a bashism as a fallback.
29999 if test "x$ac_cr" = x; then
30000   eval ac_cr=\$\'\\r\'
30001 fi
30002 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30003 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30004   ac_cs_awk_cr='\\r'
30005 else
30006   ac_cs_awk_cr=$ac_cr
30007 fi
30008
30009 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30010 _ACEOF
30011
30012
30013 {
30014   echo "cat >conf$$subs.awk <<_ACEOF" &&
30015   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30016   echo "_ACEOF"
30017 } >conf$$subs.sh ||
30018   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30019 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30020 ac_delim='%!_!# '
30021 for ac_last_try in false false false false false :; do
30022   . ./conf$$subs.sh ||
30023     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30024
30025   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30026   if test $ac_delim_n = $ac_delim_num; then
30027     break
30028   elif $ac_last_try; then
30029     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30030   else
30031     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30032   fi
30033 done
30034 rm -f conf$$subs.sh
30035
30036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30037 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30038 _ACEOF
30039 sed -n '
30040 h
30041 s/^/S["/; s/!.*/"]=/
30042 p
30043 g
30044 s/^[^!]*!//
30045 :repl
30046 t repl
30047 s/'"$ac_delim"'$//
30048 t delim
30049 :nl
30050 h
30051 s/\(.\{148\}\)..*/\1/
30052 t more1
30053 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30054 p
30055 n
30056 b repl
30057 :more1
30058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30059 p
30060 g
30061 s/.\{148\}//
30062 t nl
30063 :delim
30064 h
30065 s/\(.\{148\}\)..*/\1/
30066 t more2
30067 s/["\\]/\\&/g; s/^/"/; s/$/"/
30068 p
30069 b
30070 :more2
30071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30072 p
30073 g
30074 s/.\{148\}//
30075 t delim
30076 ' <conf$$subs.awk | sed '
30077 /^[^""]/{
30078   N
30079   s/\n//
30080 }
30081 ' >>$CONFIG_STATUS || ac_write_fail=1
30082 rm -f conf$$subs.awk
30083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30084 _ACAWK
30085 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30086   for (key in S) S_is_set[key] = 1
30087   FS = "\a"
30088
30089 }
30090 {
30091   line = $ 0
30092   nfields = split(line, field, "@")
30093   substed = 0
30094   len = length(field[1])
30095   for (i = 2; i < nfields; i++) {
30096     key = field[i]
30097     keylen = length(key)
30098     if (S_is_set[key]) {
30099       value = S[key]
30100       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30101       len += length(value) + length(field[++i])
30102       substed = 1
30103     } else
30104       len += 1 + keylen
30105   }
30106
30107   print line
30108 }
30109
30110 _ACAWK
30111 _ACEOF
30112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30113 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30114   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30115 else
30116   cat
30117 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30118   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30119 _ACEOF
30120
30121 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30122 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30123 # trailing colons and then remove the whole line if VPATH becomes empty
30124 # (actually we leave an empty line to preserve line numbers).
30125 if test "x$srcdir" = x.; then
30126   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
30127 h
30128 s///
30129 s/^/:/
30130 s/[      ]*$/:/
30131 s/:\$(srcdir):/:/g
30132 s/:\${srcdir}:/:/g
30133 s/:@srcdir@:/:/g
30134 s/^:*//
30135 s/:*$//
30136 x
30137 s/\(=[   ]*\).*/\1/
30138 G
30139 s/\n//
30140 s/^[^=]*=[       ]*$//
30141 }'
30142 fi
30143
30144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30145 fi # test -n "$CONFIG_FILES"
30146
30147 # Set up the scripts for CONFIG_HEADERS section.
30148 # No need to generate them if there are no CONFIG_HEADERS.
30149 # This happens for instance with `./config.status Makefile'.
30150 if test -n "$CONFIG_HEADERS"; then
30151 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30152 BEGIN {
30153 _ACEOF
30154
30155 # Transform confdefs.h into an awk script `defines.awk', embedded as
30156 # here-document in config.status, that substitutes the proper values into
30157 # config.h.in to produce config.h.
30158
30159 # Create a delimiter string that does not exist in confdefs.h, to ease
30160 # handling of long lines.
30161 ac_delim='%!_!# '
30162 for ac_last_try in false false :; do
30163   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30164   if test -z "$ac_tt"; then
30165     break
30166   elif $ac_last_try; then
30167     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30168   else
30169     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30170   fi
30171 done
30172
30173 # For the awk script, D is an array of macro values keyed by name,
30174 # likewise P contains macro parameters if any.  Preserve backslash
30175 # newline sequences.
30176
30177 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30178 sed -n '
30179 s/.\{148\}/&'"$ac_delim"'/g
30180 t rset
30181 :rset
30182 s/^[     ]*#[    ]*define[       ][      ]*/ /
30183 t def
30184 d
30185 :def
30186 s/\\$//
30187 t bsnl
30188 s/["\\]/\\&/g
30189 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30190 D["\1"]=" \3"/p
30191 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30192 d
30193 :bsnl
30194 s/["\\]/\\&/g
30195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30196 D["\1"]=" \3\\\\\\n"\\/p
30197 t cont
30198 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30199 t cont
30200 d
30201 :cont
30202 n
30203 s/.\{148\}/&'"$ac_delim"'/g
30204 t clear
30205 :clear
30206 s/\\$//
30207 t bsnlc
30208 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30209 d
30210 :bsnlc
30211 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30212 b cont
30213 ' <confdefs.h | sed '
30214 s/'"$ac_delim"'/"\\\
30215 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30216
30217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30218   for (key in D) D_is_set[key] = 1
30219   FS = "\a"
30220 }
30221 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30222   line = \$ 0
30223   split(line, arg, " ")
30224   if (arg[1] == "#") {
30225     defundef = arg[2]
30226     mac1 = arg[3]
30227   } else {
30228     defundef = substr(arg[1], 2)
30229     mac1 = arg[2]
30230   }
30231   split(mac1, mac2, "(") #)
30232   macro = mac2[1]
30233   prefix = substr(line, 1, index(line, defundef) - 1)
30234   if (D_is_set[macro]) {
30235     # Preserve the white space surrounding the "#".
30236     print prefix "define", macro P[macro] D[macro]
30237     next
30238   } else {
30239     # Replace #undef with comments.  This is necessary, for example,
30240     # in the case of _POSIX_SOURCE, which is predefined and required
30241     # on some systems where configure will not decide to define it.
30242     if (defundef == "undef") {
30243       print "/*", prefix defundef, macro, "*/"
30244       next
30245     }
30246   }
30247 }
30248 { print }
30249 _ACAWK
30250 _ACEOF
30251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30252   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30253 fi # test -n "$CONFIG_HEADERS"
30254
30255
30256 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30257 shift
30258 for ac_tag
30259 do
30260   case $ac_tag in
30261   :[FHLC]) ac_mode=$ac_tag; continue;;
30262   esac
30263   case $ac_mode$ac_tag in
30264   :[FHL]*:*);;
30265   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30266   :[FH]-) ac_tag=-:-;;
30267   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30268   esac
30269   ac_save_IFS=$IFS
30270   IFS=:
30271   set x $ac_tag
30272   IFS=$ac_save_IFS
30273   shift
30274   ac_file=$1
30275   shift
30276
30277   case $ac_mode in
30278   :L) ac_source=$1;;
30279   :[FH])
30280     ac_file_inputs=
30281     for ac_f
30282     do
30283       case $ac_f in
30284       -) ac_f="$ac_tmp/stdin";;
30285       *) # Look for the file first in the build tree, then in the source tree
30286          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30287          # because $ac_f cannot contain `:'.
30288          test -f "$ac_f" ||
30289            case $ac_f in
30290            [\\/$]*) false;;
30291            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30292            esac ||
30293            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30294       esac
30295       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30296       as_fn_append ac_file_inputs " '$ac_f'"
30297     done
30298
30299     # Let's still pretend it is `configure' which instantiates (i.e., don't
30300     # use $as_me), people would be surprised to read:
30301     #    /* config.h.  Generated by config.status.  */
30302     configure_input='Generated from '`
30303           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30304         `' by configure.'
30305     if test x"$ac_file" != x-; then
30306       configure_input="$ac_file.  $configure_input"
30307       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30308 printf "%s\n" "$as_me: creating $ac_file" >&6;}
30309     fi
30310     # Neutralize special characters interpreted by sed in replacement strings.
30311     case $configure_input in #(
30312     *\&* | *\|* | *\\* )
30313        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
30314        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30315     *) ac_sed_conf_input=$configure_input;;
30316     esac
30317
30318     case $ac_tag in
30319     *:-:* | *:-) cat >"$ac_tmp/stdin" \
30320       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30321     esac
30322     ;;
30323   esac
30324
30325   ac_dir=`$as_dirname -- "$ac_file" ||
30326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30327          X"$ac_file" : 'X\(//\)[^/]' \| \
30328          X"$ac_file" : 'X\(//\)$' \| \
30329          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30330 printf "%s\n" X"$ac_file" |
30331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30332             s//\1/
30333             q
30334           }
30335           /^X\(\/\/\)[^/].*/{
30336             s//\1/
30337             q
30338           }
30339           /^X\(\/\/\)$/{
30340             s//\1/
30341             q
30342           }
30343           /^X\(\/\).*/{
30344             s//\1/
30345             q
30346           }
30347           s/.*/./; q'`
30348   as_dir="$ac_dir"; as_fn_mkdir_p
30349   ac_builddir=.
30350
30351 case "$ac_dir" in
30352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30353 *)
30354   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
30355   # A ".." for each directory in $ac_dir_suffix.
30356   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30357   case $ac_top_builddir_sub in
30358   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30359   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30360   esac ;;
30361 esac
30362 ac_abs_top_builddir=$ac_pwd
30363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30364 # for backward compatibility:
30365 ac_top_builddir=$ac_top_build_prefix
30366
30367 case $srcdir in
30368   .)  # We are building in place.
30369     ac_srcdir=.
30370     ac_top_srcdir=$ac_top_builddir_sub
30371     ac_abs_top_srcdir=$ac_pwd ;;
30372   [\\/]* | ?:[\\/]* )  # Absolute name.
30373     ac_srcdir=$srcdir$ac_dir_suffix;
30374     ac_top_srcdir=$srcdir
30375     ac_abs_top_srcdir=$srcdir ;;
30376   *) # Relative name.
30377     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30378     ac_top_srcdir=$ac_top_build_prefix$srcdir
30379     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30380 esac
30381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30382
30383
30384   case $ac_mode in
30385   :F)
30386   #
30387   # CONFIG_FILE
30388   #
30389
30390   case $INSTALL in
30391   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30392   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30393   esac
30394   ac_MKDIR_P=$MKDIR_P
30395   case $MKDIR_P in
30396   [\\/$]* | ?:[\\/]* ) ;;
30397   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30398   esac
30399 _ACEOF
30400
30401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30402 # If the template does not know about datarootdir, expand it.
30403 # FIXME: This hack should be removed a few years after 2.60.
30404 ac_datarootdir_hack=; ac_datarootdir_seen=
30405 ac_sed_dataroot='
30406 /datarootdir/ {
30407   p
30408   q
30409 }
30410 /@datadir@/p
30411 /@docdir@/p
30412 /@infodir@/p
30413 /@localedir@/p
30414 /@mandir@/p'
30415 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30416 *datarootdir*) ac_datarootdir_seen=yes;;
30417 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30418   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30419 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30420 _ACEOF
30421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30422   ac_datarootdir_hack='
30423   s&@datadir@&$datadir&g
30424   s&@docdir@&$docdir&g
30425   s&@infodir@&$infodir&g
30426   s&@localedir@&$localedir&g
30427   s&@mandir@&$mandir&g
30428   s&\\\${datarootdir}&$datarootdir&g' ;;
30429 esac
30430 _ACEOF
30431
30432 # Neutralize VPATH when `$srcdir' = `.'.
30433 # Shell code in configure.ac might set extrasub.
30434 # FIXME: do we really want to maintain this feature?
30435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30436 ac_sed_extra="$ac_vpsub
30437 $extrasub
30438 _ACEOF
30439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30440 :t
30441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30442 s|@configure_input@|$ac_sed_conf_input|;t t
30443 s&@top_builddir@&$ac_top_builddir_sub&;t t
30444 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30445 s&@srcdir@&$ac_srcdir&;t t
30446 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30447 s&@top_srcdir@&$ac_top_srcdir&;t t
30448 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30449 s&@builddir@&$ac_builddir&;t t
30450 s&@abs_builddir@&$ac_abs_builddir&;t t
30451 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30452 s&@INSTALL@&$ac_INSTALL&;t t
30453 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30454 $ac_datarootdir_hack
30455 "
30456 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30457   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30458
30459 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30460   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30461   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
30462       "$ac_tmp/out"`; test -z "$ac_out"; } &&
30463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30464 which seems to be undefined.  Please make sure it is defined" >&5
30465 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30466 which seems to be undefined.  Please make sure it is defined" >&2;}
30467
30468   rm -f "$ac_tmp/stdin"
30469   case $ac_file in
30470   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30471   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30472   esac \
30473   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30474  ;;
30475   :H)
30476   #
30477   # CONFIG_HEADER
30478   #
30479   if test x"$ac_file" != x-; then
30480     {
30481       printf "%s\n" "/* $configure_input  */" >&1 \
30482       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30483     } >"$ac_tmp/config.h" \
30484       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30485     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30486       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30487 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
30488     else
30489       rm -f "$ac_file"
30490       mv "$ac_tmp/config.h" "$ac_file" \
30491         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30492     fi
30493   else
30494     printf "%s\n" "/* $configure_input  */" >&1 \
30495       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30496       || as_fn_error $? "could not create -" "$LINENO" 5
30497   fi
30498 # Compute "$ac_file"'s index in $config_headers.
30499 _am_arg="$ac_file"
30500 _am_stamp_count=1
30501 for _am_header in $config_headers :; do
30502   case $_am_header in
30503     $_am_arg | $_am_arg:* )
30504       break ;;
30505     * )
30506       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30507   esac
30508 done
30509 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30510 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30511          X"$_am_arg" : 'X\(//\)[^/]' \| \
30512          X"$_am_arg" : 'X\(//\)$' \| \
30513          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30514 printf "%s\n" X"$_am_arg" |
30515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30516             s//\1/
30517             q
30518           }
30519           /^X\(\/\/\)[^/].*/{
30520             s//\1/
30521             q
30522           }
30523           /^X\(\/\/\)$/{
30524             s//\1/
30525             q
30526           }
30527           /^X\(\/\).*/{
30528             s//\1/
30529             q
30530           }
30531           s/.*/./; q'`/stamp-h$_am_stamp_count
30532  ;;
30533
30534   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30535 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
30536  ;;
30537   esac
30538
30539
30540   case $ac_file$ac_mode in
30541     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30542   # Older Autoconf quotes --file arguments for eval, but not when files
30543   # are listed without --file.  Let's play safe and only enable the eval
30544   # if we detect the quoting.
30545   # TODO: see whether this extra hack can be removed once we start
30546   # requiring Autoconf 2.70 or later.
30547   case $CONFIG_FILES in #(
30548   *\'*) :
30549     eval set x "$CONFIG_FILES" ;; #(
30550   *) :
30551     set x $CONFIG_FILES ;; #(
30552   *) :
30553      ;;
30554 esac
30555   shift
30556   # Used to flag and report bootstrapping failures.
30557   am_rc=0
30558   for am_mf
30559   do
30560     # Strip MF so we end up with the name of the file.
30561     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
30562     # Check whether this is an Automake generated Makefile which includes
30563     # dependency-tracking related rules and includes.
30564     # Grep'ing the whole file directly is not great: AIX grep has a line
30565     # limit of 2048, but all sed's we know have understand at least 4000.
30566     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
30567       || continue
30568     am_dirpart=`$as_dirname -- "$am_mf" ||
30569 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30570          X"$am_mf" : 'X\(//\)[^/]' \| \
30571          X"$am_mf" : 'X\(//\)$' \| \
30572          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30573 printf "%s\n" X"$am_mf" |
30574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30575             s//\1/
30576             q
30577           }
30578           /^X\(\/\/\)[^/].*/{
30579             s//\1/
30580             q
30581           }
30582           /^X\(\/\/\)$/{
30583             s//\1/
30584             q
30585           }
30586           /^X\(\/\).*/{
30587             s//\1/
30588             q
30589           }
30590           s/.*/./; q'`
30591     am_filepart=`$as_basename -- "$am_mf" ||
30592 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
30593          X"$am_mf" : 'X\(//\)$' \| \
30594          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
30595 printf "%s\n" X/"$am_mf" |
30596     sed '/^.*\/\([^/][^/]*\)\/*$/{
30597             s//\1/
30598             q
30599           }
30600           /^X\/\(\/\/\)$/{
30601             s//\1/
30602             q
30603           }
30604           /^X\/\(\/\).*/{
30605             s//\1/
30606             q
30607           }
30608           s/.*/./; q'`
30609     { echo "$as_me:$LINENO: cd "$am_dirpart" \
30610       && sed -e '/# am--include-marker/d' "$am_filepart" \
30611         | $MAKE -f - am--depfiles" >&5
30612    (cd "$am_dirpart" \
30613       && sed -e '/# am--include-marker/d' "$am_filepart" \
30614         | $MAKE -f - am--depfiles) >&5 2>&5
30615    ac_status=$?
30616    echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617    (exit $ac_status); } || am_rc=$?
30618   done
30619   if test $am_rc -ne 0; then
30620     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30621 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
30622 as_fn_error $? "Something went wrong bootstrapping makefile fragments
30623     for automatic dependency tracking.  If GNU make was not used, consider
30624     re-running the configure script with MAKE=\"gmake\" (or whatever is
30625     necessary).  You can also try re-running configure with the
30626     '--disable-dependency-tracking' option to at least be able to build
30627     the package (albeit without support for automatic dependency tracking).
30628 See \`config.log' for more details" "$LINENO" 5; }
30629   fi
30630   { am_dirpart=; unset am_dirpart;}
30631   { am_filepart=; unset am_filepart;}
30632   { am_mf=; unset am_mf;}
30633   { am_rc=; unset am_rc;}
30634   rm -f conftest-deps.mk
30635 }
30636  ;;
30637     "libtool":C)
30638
30639     # See if we are running on zsh, and set the options that allow our
30640     # commands through without removal of \ escapes.
30641     if test -n "${ZSH_VERSION+set}"; then
30642       setopt NO_GLOB_SUBST
30643     fi
30644
30645     cfgfile=${ofile}T
30646     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30647     $RM "$cfgfile"
30648
30649     cat <<_LT_EOF >> "$cfgfile"
30650 #! $SHELL
30651 # Generated automatically by $as_me ($PACKAGE) $VERSION
30652 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30653
30654 # Provide generalized library-building support services.
30655 # Written by Gordon Matzigkeit, 1996
30656
30657 # Copyright (C) 2014 Free Software Foundation, Inc.
30658 # This is free software; see the source for copying conditions.  There is NO
30659 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30660
30661 # GNU Libtool is free software; you can redistribute it and/or modify
30662 # it under the terms of the GNU General Public License as published by
30663 # the Free Software Foundation; either version 2 of of the License, or
30664 # (at your option) any later version.
30665 #
30666 # As a special exception to the GNU General Public License, if you
30667 # distribute this file as part of a program or library that is built
30668 # using GNU Libtool, you may include this file under the  same
30669 # distribution terms that you use for the rest of that program.
30670 #
30671 # GNU Libtool is distributed in the hope that it will be useful, but
30672 # WITHOUT ANY WARRANTY; without even the implied warranty of
30673 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30674 # GNU General Public License for more details.
30675 #
30676 # You should have received a copy of the GNU General Public License
30677 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
30678
30679
30680 # The names of the tagged configurations supported by this script.
30681 available_tags=''
30682
30683 # Configured defaults for sys_lib_dlsearch_path munging.
30684 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
30685
30686 # ### BEGIN LIBTOOL CONFIG
30687
30688 # Which release of libtool.m4 was used?
30689 macro_version=$macro_version
30690 macro_revision=$macro_revision
30691
30692 # Whether or not to build static libraries.
30693 build_old_libs=$enable_static
30694
30695 # Whether or not to build shared libraries.
30696 build_libtool_libs=$enable_shared
30697
30698 # What type of objects to build.
30699 pic_mode=$pic_mode
30700
30701 # Whether or not to optimize for fast installation.
30702 fast_install=$enable_fast_install
30703
30704 # Shared archive member basename,for filename based shared library versioning on AIX.
30705 shared_archive_member_spec=$shared_archive_member_spec
30706
30707 # Shell to use when invoking shell scripts.
30708 SHELL=$lt_SHELL
30709
30710 # An echo program that protects backslashes.
30711 ECHO=$lt_ECHO
30712
30713 # The PATH separator for the build system.
30714 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30715
30716 # The host system.
30717 host_alias=$host_alias
30718 host=$host
30719 host_os=$host_os
30720
30721 # The build system.
30722 build_alias=$build_alias
30723 build=$build
30724 build_os=$build_os
30725
30726 # A sed program that does not truncate output.
30727 SED=$lt_SED
30728
30729 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30730 Xsed="\$SED -e 1s/^X//"
30731
30732 # A grep program that handles long lines.
30733 GREP=$lt_GREP
30734
30735 # An ERE matcher.
30736 EGREP=$lt_EGREP
30737
30738 # A literal string matcher.
30739 FGREP=$lt_FGREP
30740
30741 # A BSD- or MS-compatible name lister.
30742 NM=$lt_NM
30743
30744 # Whether we need soft or hard links.
30745 LN_S=$lt_LN_S
30746
30747 # What is the maximum length of a command?
30748 max_cmd_len=$max_cmd_len
30749
30750 # Object file suffix (normally "o").
30751 objext=$ac_objext
30752
30753 # Executable file suffix (normally "").
30754 exeext=$exeext
30755
30756 # whether the shell understands "unset".
30757 lt_unset=$lt_unset
30758
30759 # turn spaces into newlines.
30760 SP2NL=$lt_lt_SP2NL
30761
30762 # turn newlines into spaces.
30763 NL2SP=$lt_lt_NL2SP
30764
30765 # convert \$build file names to \$host format.
30766 to_host_file_cmd=$lt_cv_to_host_file_cmd
30767
30768 # convert \$build files to toolchain format.
30769 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30770
30771 # An object symbol dumper.
30772 OBJDUMP=$lt_OBJDUMP
30773
30774 # Method to check whether dependent libraries are shared objects.
30775 deplibs_check_method=$lt_deplibs_check_method
30776
30777 # Command to use when deplibs_check_method = "file_magic".
30778 file_magic_cmd=$lt_file_magic_cmd
30779
30780 # How to find potential files when deplibs_check_method = "file_magic".
30781 file_magic_glob=$lt_file_magic_glob
30782
30783 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30784 want_nocaseglob=$lt_want_nocaseglob
30785
30786 # DLL creation program.
30787 DLLTOOL=$lt_DLLTOOL
30788
30789 # Command to associate shared and link libraries.
30790 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30791
30792 # The archiver.
30793 AR=$lt_AR
30794
30795 # Flags to create an archive.
30796 AR_FLAGS=$lt_AR_FLAGS
30797
30798 # How to feed a file listing to the archiver.
30799 archiver_list_spec=$lt_archiver_list_spec
30800
30801 # A symbol stripping program.
30802 STRIP=$lt_STRIP
30803
30804 # Commands used to install an old-style archive.
30805 RANLIB=$lt_RANLIB
30806 old_postinstall_cmds=$lt_old_postinstall_cmds
30807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30808
30809 # Whether to use a lock for old archive extraction.
30810 lock_old_archive_extraction=$lock_old_archive_extraction
30811
30812 # A C compiler.
30813 LTCC=$lt_CC
30814
30815 # LTCC compiler flags.
30816 LTCFLAGS=$lt_CFLAGS
30817
30818 # Take the output of nm and produce a listing of raw symbols and C names.
30819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30820
30821 # Transform the output of nm in a proper C declaration.
30822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30823
30824 # Transform the output of nm into a list of symbols to manually relocate.
30825 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30826
30827 # Transform the output of nm in a C name address pair.
30828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30829
30830 # Transform the output of nm in a C name address pair when lib prefix is needed.
30831 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30832
30833 # The name lister interface.
30834 nm_interface=$lt_lt_cv_nm_interface
30835
30836 # Specify filename containing input files for \$NM.
30837 nm_file_list_spec=$lt_nm_file_list_spec
30838
30839 # The root where to search for dependent libraries,and where our libraries should be installed.
30840 lt_sysroot=$lt_sysroot
30841
30842 # Command to truncate a binary pipe.
30843 lt_truncate_bin=$lt_lt_cv_truncate_bin
30844
30845 # The name of the directory that contains temporary libtool files.
30846 objdir=$objdir
30847
30848 # Used to examine libraries when file_magic_cmd begins with "file".
30849 MAGIC_CMD=$MAGIC_CMD
30850
30851 # Must we lock files when doing compilation?
30852 need_locks=$lt_need_locks
30853
30854 # Manifest tool.
30855 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30856
30857 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30858 DSYMUTIL=$lt_DSYMUTIL
30859
30860 # Tool to change global to local symbols on Mac OS X.
30861 NMEDIT=$lt_NMEDIT
30862
30863 # Tool to manipulate fat objects and archives on Mac OS X.
30864 LIPO=$lt_LIPO
30865
30866 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30867 OTOOL=$lt_OTOOL
30868
30869 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30870 OTOOL64=$lt_OTOOL64
30871
30872 # Old archive suffix (normally "a").
30873 libext=$libext
30874
30875 # Shared library suffix (normally ".so").
30876 shrext_cmds=$lt_shrext_cmds
30877
30878 # The commands to extract the exported symbol list from a shared archive.
30879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30880
30881 # Variables whose values should be saved in libtool wrapper scripts and
30882 # restored at link time.
30883 variables_saved_for_relink=$lt_variables_saved_for_relink
30884
30885 # Do we need the "lib" prefix for modules?
30886 need_lib_prefix=$need_lib_prefix
30887
30888 # Do we need a version for libraries?
30889 need_version=$need_version
30890
30891 # Library versioning type.
30892 version_type=$version_type
30893
30894 # Shared library runtime path variable.
30895 runpath_var=$runpath_var
30896
30897 # Shared library path variable.
30898 shlibpath_var=$shlibpath_var
30899
30900 # Is shlibpath searched before the hard-coded library search path?
30901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30902
30903 # Format of library name prefix.
30904 libname_spec=$lt_libname_spec
30905
30906 # List of archive names.  First name is the real one, the rest are links.
30907 # The last name is the one that the linker finds with -lNAME
30908 library_names_spec=$lt_library_names_spec
30909
30910 # The coded name of the library, if different from the real name.
30911 soname_spec=$lt_soname_spec
30912
30913 # Permission mode override for installation of shared libraries.
30914 install_override_mode=$lt_install_override_mode
30915
30916 # Command to use after installation of a shared archive.
30917 postinstall_cmds=$lt_postinstall_cmds
30918
30919 # Command to use after uninstallation of a shared archive.
30920 postuninstall_cmds=$lt_postuninstall_cmds
30921
30922 # Commands used to finish a libtool library installation in a directory.
30923 finish_cmds=$lt_finish_cmds
30924
30925 # As "finish_cmds", except a single script fragment to be evaled but
30926 # not shown.
30927 finish_eval=$lt_finish_eval
30928
30929 # Whether we should hardcode library paths into libraries.
30930 hardcode_into_libs=$hardcode_into_libs
30931
30932 # Compile-time system search path for libraries.
30933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30934
30935 # Detected run-time system search path for libraries.
30936 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30937
30938 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30939 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30940
30941 # Whether dlopen is supported.
30942 dlopen_support=$enable_dlopen
30943
30944 # Whether dlopen of programs is supported.
30945 dlopen_self=$enable_dlopen_self
30946
30947 # Whether dlopen of statically linked programs is supported.
30948 dlopen_self_static=$enable_dlopen_self_static
30949
30950 # Commands to strip libraries.
30951 old_striplib=$lt_old_striplib
30952 striplib=$lt_striplib
30953
30954
30955 # The linker used to build libraries.
30956 LD=$lt_LD
30957
30958 # How to create reloadable object files.
30959 reload_flag=$lt_reload_flag
30960 reload_cmds=$lt_reload_cmds
30961
30962 # Commands used to build an old-style archive.
30963 old_archive_cmds=$lt_old_archive_cmds
30964
30965 # A language specific compiler.
30966 CC=$lt_compiler
30967
30968 # Is the compiler the GNU compiler?
30969 with_gcc=$GCC
30970
30971 # Compiler flag to turn off builtin functions.
30972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30973
30974 # Additional compiler flags for building library objects.
30975 pic_flag=$lt_lt_prog_compiler_pic
30976
30977 # How to pass a linker flag through the compiler.
30978 wl=$lt_lt_prog_compiler_wl
30979
30980 # Compiler flag to prevent dynamic linking.
30981 link_static_flag=$lt_lt_prog_compiler_static
30982
30983 # Does compiler simultaneously support -c and -o options?
30984 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30985
30986 # Whether or not to add -lc for building shared libraries.
30987 build_libtool_need_lc=$archive_cmds_need_lc
30988
30989 # Whether or not to disallow shared libs when runtime libs are static.
30990 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30991
30992 # Compiler flag to allow reflexive dlopens.
30993 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30994
30995 # Compiler flag to generate shared objects directly from archives.
30996 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30997
30998 # Whether the compiler copes with passing no objects directly.
30999 compiler_needs_object=$lt_compiler_needs_object
31000
31001 # Create an old-style archive from a shared archive.
31002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31003
31004 # Create a temporary old-style archive to link instead of a shared archive.
31005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31006
31007 # Commands used to build a shared archive.
31008 archive_cmds=$lt_archive_cmds
31009 archive_expsym_cmds=$lt_archive_expsym_cmds
31010
31011 # Commands used to build a loadable module if different from building
31012 # a shared archive.
31013 module_cmds=$lt_module_cmds
31014 module_expsym_cmds=$lt_module_expsym_cmds
31015
31016 # Whether we are building with GNU ld or not.
31017 with_gnu_ld=$lt_with_gnu_ld
31018
31019 # Flag that allows shared libraries with undefined symbols to be built.
31020 allow_undefined_flag=$lt_allow_undefined_flag
31021
31022 # Flag that enforces no undefined symbols.
31023 no_undefined_flag=$lt_no_undefined_flag
31024
31025 # Flag to hardcode \$libdir into a binary during linking.
31026 # This must work even if \$libdir does not exist
31027 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31028
31029 # Whether we need a single "-rpath" flag with a separated argument.
31030 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31031
31032 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31033 # DIR into the resulting binary.
31034 hardcode_direct=$hardcode_direct
31035
31036 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
31037 # DIR into the resulting binary and the resulting library dependency is
31038 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
31039 # library is relocated.
31040 hardcode_direct_absolute=$hardcode_direct_absolute
31041
31042 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31043 # into the resulting binary.
31044 hardcode_minus_L=$hardcode_minus_L
31045
31046 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31047 # into the resulting binary.
31048 hardcode_shlibpath_var=$hardcode_shlibpath_var
31049
31050 # Set to "yes" if building a shared library automatically hardcodes DIR
31051 # into the library and all subsequent libraries and executables linked
31052 # against it.
31053 hardcode_automatic=$hardcode_automatic
31054
31055 # Set to yes if linker adds runtime paths of dependent libraries
31056 # to runtime path list.
31057 inherit_rpath=$inherit_rpath
31058
31059 # Whether libtool must link a program against all its dependency libraries.
31060 link_all_deplibs=$link_all_deplibs
31061
31062 # Set to "yes" if exported symbols are required.
31063 always_export_symbols=$always_export_symbols
31064
31065 # The commands to list exported symbols.
31066 export_symbols_cmds=$lt_export_symbols_cmds
31067
31068 # Symbols that should not be listed in the preloaded symbols.
31069 exclude_expsyms=$lt_exclude_expsyms
31070
31071 # Symbols that must always be exported.
31072 include_expsyms=$lt_include_expsyms
31073
31074 # Commands necessary for linking programs (against libraries) with templates.
31075 prelink_cmds=$lt_prelink_cmds
31076
31077 # Commands necessary for finishing linking programs.
31078 postlink_cmds=$lt_postlink_cmds
31079
31080 # Specify filename containing input files.
31081 file_list_spec=$lt_file_list_spec
31082
31083 # How to hardcode a shared library path into an executable.
31084 hardcode_action=$hardcode_action
31085
31086 # ### END LIBTOOL CONFIG
31087
31088 _LT_EOF
31089
31090     cat <<'_LT_EOF' >> "$cfgfile"
31091
31092 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
31093
31094 # func_munge_path_list VARIABLE PATH
31095 # -----------------------------------
31096 # VARIABLE is name of variable containing _space_ separated list of
31097 # directories to be munged by the contents of PATH, which is string
31098 # having a format:
31099 # "DIR[:DIR]:"
31100 #       string "DIR[ DIR]" will be prepended to VARIABLE
31101 # ":DIR[:DIR]"
31102 #       string "DIR[ DIR]" will be appended to VARIABLE
31103 # "DIRP[:DIRP]::[DIRA:]DIRA"
31104 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
31105 #       "DIRA[ DIRA]" will be appended to VARIABLE
31106 # "DIR[:DIR]"
31107 #       VARIABLE will be replaced by "DIR[ DIR]"
31108 func_munge_path_list ()
31109 {
31110     case x$2 in
31111     x)
31112         ;;
31113     *:)
31114         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
31115         ;;
31116     x:*)
31117         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
31118         ;;
31119     *::*)
31120         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
31121         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
31122         ;;
31123     *)
31124         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
31125         ;;
31126     esac
31127 }
31128
31129
31130 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
31131 func_cc_basename ()
31132 {
31133     for cc_temp in $*""; do
31134       case $cc_temp in
31135         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
31136         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
31137         \-*) ;;
31138         *) break;;
31139       esac
31140     done
31141     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
31142 }
31143
31144
31145 # ### END FUNCTIONS SHARED WITH CONFIGURE
31146
31147 _LT_EOF
31148
31149   case $host_os in
31150   aix3*)
31151     cat <<\_LT_EOF >> "$cfgfile"
31152 # AIX sometimes has problems with the GCC collect2 program.  For some
31153 # reason, if we set the COLLECT_NAMES environment variable, the problems
31154 # vanish in a puff of smoke.
31155 if test set != "${COLLECT_NAMES+set}"; then
31156   COLLECT_NAMES=
31157   export COLLECT_NAMES
31158 fi
31159 _LT_EOF
31160     ;;
31161   esac
31162
31163
31164
31165 ltmain=$ac_aux_dir/ltmain.sh
31166
31167
31168   # We use sed instead of cat because bash on DJGPP gets confused if
31169   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31170   # text mode, it properly converts lines to CR/LF.  This bash problem
31171   # is reportedly fixed, but why not run on old versions too?
31172   sed '$q' "$ltmain" >> "$cfgfile" \
31173      || (rm -f "$cfgfile"; exit 1)
31174
31175    mv -f "$cfgfile" "$ofile" ||
31176     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31177   chmod +x "$ofile"
31178
31179  ;;
31180
31181   esac
31182 done # for ac_tag
31183
31184
31185 as_fn_exit 0
31186 _ACEOF
31187 ac_clean_files=$ac_clean_files_save
31188
31189 test $ac_write_fail = 0 ||
31190   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31191
31192
31193 # configure is writing to config.log, and then calls config.status.
31194 # config.status does its own redirection, appending to config.log.
31195 # Unfortunately, on DOS this fails, as config.log is still kept open
31196 # by configure, so config.status won't be able to write to it; its
31197 # output is simply discarded.  So we exec the FD to /dev/null,
31198 # effectively closing config.log, so it can be properly (re)opened and
31199 # appended to by config.status.  When coming back to configure, we
31200 # need to make the FD available again.
31201 if test "$no_create" != yes; then
31202   ac_cs_success=:
31203   ac_config_status_args=
31204   test "$silent" = yes &&
31205     ac_config_status_args="$ac_config_status_args --quiet"
31206   exec 5>/dev/null
31207   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31208   exec 5>>config.log
31209   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31210   # would make configure fail if this is the last instruction.
31211   $ac_cs_success || as_fn_exit 1
31212 fi
31213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31215 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31216 fi
31217
31218