Imported Upstream version 1.5.1
[platform/upstream/libpipeline.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.5.1.
4 #
5 # Report bugs to <cjwatson@debian.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: cjwatson@debian.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libpipeline'
592 PACKAGE_TARNAME='libpipeline'
593 PACKAGE_VERSION='1.5.1'
594 PACKAGE_STRING='libpipeline 1.5.1'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="lib/pipeline.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gl_use_threads_default=
636 ac_header_list=
637 ac_func_list=
638 ac_subst_vars='gltests_LTLIBOBJS
639 gltests_LIBOBJS
640 gl_LTLIBOBJS
641 gl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 gltests_WITNESS
647 HAVE_CRTDEFS_H
648 HAVE_WINT_T
649 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
650 NEXT_WCHAR_H
651 REPLACE_WCSFTIME
652 REPLACE_WCSWIDTH
653 REPLACE_WCWIDTH
654 REPLACE_WCSNRTOMBS
655 REPLACE_WCSRTOMBS
656 REPLACE_WCRTOMB
657 REPLACE_MBSNRTOWCS
658 REPLACE_MBSRTOWCS
659 REPLACE_MBRLEN
660 REPLACE_MBRTOWC
661 REPLACE_MBSINIT
662 REPLACE_WCTOB
663 REPLACE_BTOWC
664 REPLACE_MBSTATE_T
665 HAVE_DECL_WCWIDTH
666 HAVE_DECL_WCTOB
667 HAVE_WCSFTIME
668 HAVE_WCSWIDTH
669 HAVE_WCSTOK
670 HAVE_WCSSTR
671 HAVE_WCSPBRK
672 HAVE_WCSSPN
673 HAVE_WCSCSPN
674 HAVE_WCSRCHR
675 HAVE_WCSCHR
676 HAVE_WCSDUP
677 HAVE_WCSXFRM
678 HAVE_WCSCOLL
679 HAVE_WCSNCASECMP
680 HAVE_WCSCASECMP
681 HAVE_WCSNCMP
682 HAVE_WCSCMP
683 HAVE_WCSNCAT
684 HAVE_WCSCAT
685 HAVE_WCPNCPY
686 HAVE_WCSNCPY
687 HAVE_WCPCPY
688 HAVE_WCSCPY
689 HAVE_WCSNLEN
690 HAVE_WCSLEN
691 HAVE_WMEMSET
692 HAVE_WMEMMOVE
693 HAVE_WMEMCPY
694 HAVE_WMEMCMP
695 HAVE_WMEMCHR
696 HAVE_WCSNRTOMBS
697 HAVE_WCSRTOMBS
698 HAVE_WCRTOMB
699 HAVE_MBSNRTOWCS
700 HAVE_MBSRTOWCS
701 HAVE_MBRLEN
702 HAVE_MBRTOWC
703 HAVE_MBSINIT
704 HAVE_BTOWC
705 GNULIB_WCSFTIME
706 GNULIB_WCSWIDTH
707 GNULIB_WCSTOK
708 GNULIB_WCSSTR
709 GNULIB_WCSPBRK
710 GNULIB_WCSSPN
711 GNULIB_WCSCSPN
712 GNULIB_WCSRCHR
713 GNULIB_WCSCHR
714 GNULIB_WCSDUP
715 GNULIB_WCSXFRM
716 GNULIB_WCSCOLL
717 GNULIB_WCSNCASECMP
718 GNULIB_WCSCASECMP
719 GNULIB_WCSNCMP
720 GNULIB_WCSCMP
721 GNULIB_WCSNCAT
722 GNULIB_WCSCAT
723 GNULIB_WCPNCPY
724 GNULIB_WCSNCPY
725 GNULIB_WCPCPY
726 GNULIB_WCSCPY
727 GNULIB_WCSNLEN
728 GNULIB_WCSLEN
729 GNULIB_WMEMSET
730 GNULIB_WMEMMOVE
731 GNULIB_WMEMCPY
732 GNULIB_WMEMCMP
733 GNULIB_WMEMCHR
734 GNULIB_WCWIDTH
735 GNULIB_WCSNRTOMBS
736 GNULIB_WCSRTOMBS
737 GNULIB_WCRTOMB
738 GNULIB_MBSNRTOWCS
739 GNULIB_MBSRTOWCS
740 GNULIB_MBRLEN
741 GNULIB_MBRTOWC
742 GNULIB_MBSINIT
743 GNULIB_WCTOB
744 GNULIB_BTOWC
745 HAVE_FEATURES_H
746 HAVE_UNISTD_H
747 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
748 NEXT_UNISTD_H
749 UNISTD_H_DEFINES_STRUCT_TIMESPEC
750 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
751 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
752 TIME_H_DEFINES_STRUCT_TIMESPEC
753 NEXT_AS_FIRST_DIRECTIVE_TIME_H
754 NEXT_TIME_H
755 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
756 NEXT_SYS_WAIT_H
757 GNULIB_WAITPID
758 WINDOWS_STAT_INODES
759 WINDOWS_64_BIT_OFF_T
760 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
761 NEXT_SYS_TYPES_H
762 HAVE_SYS_SELECT_H
763 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
764 NEXT_SYS_SELECT_H
765 REPLACE_SELECT
766 REPLACE_PSELECT
767 HAVE_PSELECT
768 GNULIB_SELECT
769 GNULIB_PSELECT
770 NEXT_AS_FIRST_DIRECTIVE_STRING_H
771 NEXT_STRING_H
772 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
773 NEXT_STDLIB_H
774 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
775 NEXT_STDIO_H
776 GL_GENERATE_STDINT_H_FALSE
777 GL_GENERATE_STDINT_H_TRUE
778 STDINT_H
779 HAVE_SYS_INTTYPES_H
780 HAVE_SYS_BITYPES_H
781 HAVE_C99_STDINT_H
782 WINT_T_SUFFIX
783 WCHAR_T_SUFFIX
784 SIG_ATOMIC_T_SUFFIX
785 SIZE_T_SUFFIX
786 PTRDIFF_T_SUFFIX
787 HAVE_SIGNED_WINT_T
788 HAVE_SIGNED_WCHAR_T
789 HAVE_SIGNED_SIG_ATOMIC_T
790 BITSIZEOF_WINT_T
791 BITSIZEOF_WCHAR_T
792 BITSIZEOF_SIG_ATOMIC_T
793 BITSIZEOF_SIZE_T
794 BITSIZEOF_PTRDIFF_T
795 HAVE_STDINT_H
796 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
797 NEXT_STDINT_H
798 HAVE_SYS_TYPES_H
799 HAVE_INTTYPES_H
800 HAVE_WCHAR_H
801 HAVE_UNSIGNED_LONG_LONG_INT
802 HAVE_LONG_LONG_INT
803 GNULIB_OVERRIDES_WINT_T
804 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
805 NEXT_STDDEF_H
806 GL_GENERATE_STDDEF_H_FALSE
807 GL_GENERATE_STDDEF_H_TRUE
808 STDDEF_H
809 HAVE_WCHAR_T
810 HAVE_MAX_ALIGN_T
811 REPLACE_NULL
812 HAVE__BOOL
813 GL_GENERATE_STDBOOL_H_FALSE
814 GL_GENERATE_STDBOOL_H_TRUE
815 STDBOOL_H
816 GL_GENERATE_STDARG_H_FALSE
817 GL_GENERATE_STDARG_H_TRUE
818 STDARG_H
819 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
820 NEXT_STDARG_H
821 WINDOWS_64_BIT_ST_SIZE
822 WINDOWS_STAT_TIMESPEC
823 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
824 NEXT_SYS_STAT_H
825 REPLACE_VSPRINTF
826 REPLACE_VSNPRINTF
827 REPLACE_VPRINTF
828 REPLACE_VFPRINTF
829 REPLACE_VDPRINTF
830 REPLACE_VASPRINTF
831 REPLACE_TMPFILE
832 REPLACE_STDIO_WRITE_FUNCS
833 REPLACE_STDIO_READ_FUNCS
834 REPLACE_SPRINTF
835 REPLACE_SNPRINTF
836 REPLACE_RENAMEAT
837 REPLACE_RENAME
838 REPLACE_REMOVE
839 REPLACE_PRINTF
840 REPLACE_POPEN
841 REPLACE_PERROR
842 REPLACE_OBSTACK_PRINTF
843 REPLACE_GETLINE
844 REPLACE_GETDELIM
845 REPLACE_FTELLO
846 REPLACE_FTELL
847 REPLACE_FSEEKO
848 REPLACE_FSEEK
849 REPLACE_FREOPEN
850 REPLACE_FPURGE
851 REPLACE_FPRINTF
852 REPLACE_FOPEN
853 REPLACE_FFLUSH
854 REPLACE_FDOPEN
855 REPLACE_FCLOSE
856 REPLACE_DPRINTF
857 HAVE_VDPRINTF
858 HAVE_VASPRINTF
859 HAVE_RENAMEAT
860 HAVE_POPEN
861 HAVE_PCLOSE
862 HAVE_FTELLO
863 HAVE_FSEEKO
864 HAVE_DPRINTF
865 HAVE_DECL_VSNPRINTF
866 HAVE_DECL_SNPRINTF
867 HAVE_DECL_OBSTACK_PRINTF
868 HAVE_DECL_GETLINE
869 HAVE_DECL_GETDELIM
870 HAVE_DECL_FTELLO
871 HAVE_DECL_FSEEKO
872 HAVE_DECL_FPURGE
873 GNULIB_VSPRINTF_POSIX
874 GNULIB_VSNPRINTF
875 GNULIB_VPRINTF_POSIX
876 GNULIB_VPRINTF
877 GNULIB_VFPRINTF_POSIX
878 GNULIB_VFPRINTF
879 GNULIB_VDPRINTF
880 GNULIB_VSCANF
881 GNULIB_VFSCANF
882 GNULIB_VASPRINTF
883 GNULIB_TMPFILE
884 GNULIB_STDIO_H_SIGPIPE
885 GNULIB_STDIO_H_NONBLOCKING
886 GNULIB_SPRINTF_POSIX
887 GNULIB_SNPRINTF
888 GNULIB_SCANF
889 GNULIB_RENAMEAT
890 GNULIB_RENAME
891 GNULIB_REMOVE
892 GNULIB_PUTS
893 GNULIB_PUTCHAR
894 GNULIB_PUTC
895 GNULIB_PRINTF_POSIX
896 GNULIB_PRINTF
897 GNULIB_POPEN
898 GNULIB_PERROR
899 GNULIB_PCLOSE
900 GNULIB_OBSTACK_PRINTF_POSIX
901 GNULIB_OBSTACK_PRINTF
902 GNULIB_GETLINE
903 GNULIB_GETDELIM
904 GNULIB_GETCHAR
905 GNULIB_GETC
906 GNULIB_FWRITE
907 GNULIB_FTELLO
908 GNULIB_FTELL
909 GNULIB_FSEEKO
910 GNULIB_FSEEK
911 GNULIB_FSCANF
912 GNULIB_FREOPEN
913 GNULIB_FREAD
914 GNULIB_FPUTS
915 GNULIB_FPUTC
916 GNULIB_FPURGE
917 GNULIB_FPRINTF_POSIX
918 GNULIB_FPRINTF
919 GNULIB_FOPEN
920 GNULIB_FGETS
921 GNULIB_FGETC
922 GNULIB_FFLUSH
923 GNULIB_FDOPEN
924 GNULIB_FCLOSE
925 GNULIB_DPRINTF
926 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
927 NEXT_SIGNAL_H
928 REPLACE_RAISE
929 REPLACE_PTHREAD_SIGMASK
930 HAVE_SIGHANDLER_T
931 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
932 HAVE_STRUCT_SIGACTION_SA_SIGACTION
933 HAVE_SIGACTION
934 HAVE_SIGINFO_T
935 HAVE_SIGSET_T
936 HAVE_RAISE
937 HAVE_PTHREAD_SIGMASK
938 HAVE_POSIX_SIGNALBLOCKING
939 GNULIB_SIGACTION
940 GNULIB_SIGPROCMASK
941 GNULIB_SIGNAL_H_SIGPIPE
942 GNULIB_RAISE
943 GNULIB_PTHREAD_SIGMASK
944 APPLE_UNIVERSAL_BUILD
945 HAVE_MSVC_INVALID_PARAMETER_HANDLER
946 UNDEFINE_STRTOK_R
947 REPLACE_STRSIGNAL
948 REPLACE_STRERROR_R
949 REPLACE_STRERROR
950 REPLACE_STRTOK_R
951 REPLACE_STRCASESTR
952 REPLACE_STRSTR
953 REPLACE_STRNLEN
954 REPLACE_STRNDUP
955 REPLACE_STRNCAT
956 REPLACE_STRDUP
957 REPLACE_STRCHRNUL
958 REPLACE_STPNCPY
959 REPLACE_MEMMEM
960 REPLACE_MEMCHR
961 HAVE_STRVERSCMP
962 HAVE_DECL_STRSIGNAL
963 HAVE_DECL_STRERROR_R
964 HAVE_DECL_STRTOK_R
965 HAVE_STRCASESTR
966 HAVE_STRSEP
967 HAVE_STRPBRK
968 HAVE_DECL_STRNLEN
969 HAVE_DECL_STRNDUP
970 HAVE_DECL_STRDUP
971 HAVE_STRCHRNUL
972 HAVE_STPNCPY
973 HAVE_STPCPY
974 HAVE_RAWMEMCHR
975 HAVE_DECL_MEMRCHR
976 HAVE_MEMPCPY
977 HAVE_DECL_MEMMEM
978 HAVE_MEMCHR
979 HAVE_FFSLL
980 HAVE_FFSL
981 HAVE_EXPLICIT_BZERO
982 HAVE_MBSLEN
983 GNULIB_STRVERSCMP
984 GNULIB_STRSIGNAL
985 GNULIB_STRERROR_R
986 GNULIB_STRERROR
987 GNULIB_MBSTOK_R
988 GNULIB_MBSSEP
989 GNULIB_MBSSPN
990 GNULIB_MBSPBRK
991 GNULIB_MBSCSPN
992 GNULIB_MBSCASESTR
993 GNULIB_MBSPCASECMP
994 GNULIB_MBSNCASECMP
995 GNULIB_MBSCASECMP
996 GNULIB_MBSSTR
997 GNULIB_MBSRCHR
998 GNULIB_MBSCHR
999 GNULIB_MBSNLEN
1000 GNULIB_MBSLEN
1001 GNULIB_STRTOK_R
1002 GNULIB_STRCASESTR
1003 GNULIB_STRSTR
1004 GNULIB_STRSEP
1005 GNULIB_STRPBRK
1006 GNULIB_STRNLEN
1007 GNULIB_STRNDUP
1008 GNULIB_STRNCAT
1009 GNULIB_STRDUP
1010 GNULIB_STRCHRNUL
1011 GNULIB_STPNCPY
1012 GNULIB_STPCPY
1013 GNULIB_RAWMEMCHR
1014 GNULIB_MEMRCHR
1015 GNULIB_MEMPCPY
1016 GNULIB_MEMMEM
1017 GNULIB_MEMCHR
1018 GNULIB_FFSLL
1019 GNULIB_FFSL
1020 GNULIB_EXPLICIT_BZERO
1021 REPLACE_WCTOMB
1022 REPLACE_UNSETENV
1023 REPLACE_STRTOD
1024 REPLACE_SETENV
1025 REPLACE_REALPATH
1026 REPLACE_REALLOC
1027 REPLACE_RANDOM_R
1028 REPLACE_QSORT_R
1029 REPLACE_PUTENV
1030 REPLACE_PTSNAME_R
1031 REPLACE_PTSNAME
1032 REPLACE_MKSTEMP
1033 REPLACE_MBTOWC
1034 REPLACE_MALLOC
1035 REPLACE_CANONICALIZE_FILE_NAME
1036 REPLACE_CALLOC
1037 HAVE_DECL_UNSETENV
1038 HAVE_UNLOCKPT
1039 HAVE_SYS_LOADAVG_H
1040 HAVE_STRUCT_RANDOM_DATA
1041 HAVE_STRTOULL
1042 HAVE_STRTOLL
1043 HAVE_STRTOD
1044 HAVE_DECL_SETSTATE
1045 HAVE_DECL_SETENV
1046 HAVE_SETENV
1047 HAVE_SECURE_GETENV
1048 HAVE_RPMATCH
1049 HAVE_REALPATH
1050 HAVE_REALLOCARRAY
1051 HAVE_RANDOM_R
1052 HAVE_RANDOM_H
1053 HAVE_RANDOM
1054 HAVE_QSORT_R
1055 HAVE_PTSNAME_R
1056 HAVE_PTSNAME
1057 HAVE_POSIX_OPENPT
1058 HAVE_MKSTEMPS
1059 HAVE_MKSTEMP
1060 HAVE_MKOSTEMPS
1061 HAVE_MKOSTEMP
1062 HAVE_MKDTEMP
1063 HAVE_DECL_INITSTATE
1064 HAVE_GRANTPT
1065 HAVE_GETSUBOPT
1066 HAVE_DECL_GETLOADAVG
1067 HAVE_CANONICALIZE_FILE_NAME
1068 HAVE_ATOLL
1069 HAVE__EXIT
1070 GNULIB_WCTOMB
1071 GNULIB_UNSETENV
1072 GNULIB_UNLOCKPT
1073 GNULIB_SYSTEM_POSIX
1074 GNULIB_STRTOULL
1075 GNULIB_STRTOLL
1076 GNULIB_STRTOD
1077 GNULIB_SETENV
1078 GNULIB_SECURE_GETENV
1079 GNULIB_RPMATCH
1080 GNULIB_REALPATH
1081 GNULIB_REALLOC_POSIX
1082 GNULIB_REALLOCARRAY
1083 GNULIB_RANDOM_R
1084 GNULIB_RANDOM
1085 GNULIB_QSORT_R
1086 GNULIB_PUTENV
1087 GNULIB_PTSNAME_R
1088 GNULIB_PTSNAME
1089 GNULIB_POSIX_OPENPT
1090 GNULIB_MKSTEMPS
1091 GNULIB_MKSTEMP
1092 GNULIB_MKOSTEMPS
1093 GNULIB_MKOSTEMP
1094 GNULIB_MKDTEMP
1095 GNULIB_MBTOWC
1096 GNULIB_MALLOC_POSIX
1097 GNULIB_GRANTPT
1098 GNULIB_GETSUBOPT
1099 GNULIB_GETLOADAVG
1100 GNULIB_CANONICALIZE_FILE_NAME
1101 GNULIB_CALLOC_POSIX
1102 GNULIB_ATOLL
1103 GNULIB__EXIT
1104 REPLACE_UTIMENSAT
1105 REPLACE_STAT
1106 REPLACE_MKNOD
1107 REPLACE_MKFIFO
1108 REPLACE_MKDIR
1109 REPLACE_LSTAT
1110 REPLACE_FUTIMENS
1111 REPLACE_FSTATAT
1112 REPLACE_FSTAT
1113 HAVE_UTIMENSAT
1114 HAVE_MKNODAT
1115 HAVE_MKNOD
1116 HAVE_MKFIFOAT
1117 HAVE_MKFIFO
1118 HAVE_MKDIRAT
1119 HAVE_LSTAT
1120 HAVE_LCHMOD
1121 HAVE_FUTIMENS
1122 HAVE_FSTATAT
1123 HAVE_FCHMODAT
1124 GNULIB_OVERRIDES_STRUCT_STAT
1125 GNULIB_UTIMENSAT
1126 GNULIB_STAT
1127 GNULIB_MKNODAT
1128 GNULIB_MKNOD
1129 GNULIB_MKFIFOAT
1130 GNULIB_MKFIFO
1131 GNULIB_MKDIRAT
1132 GNULIB_LSTAT
1133 GNULIB_LCHMOD
1134 GNULIB_FUTIMENS
1135 GNULIB_FSTATAT
1136 GNULIB_FSTAT
1137 GNULIB_FCHMODAT
1138 LTLIBMULTITHREAD
1139 LIBMULTITHREAD
1140 LTLIBTHREAD
1141 LIBTHREAD
1142 LIBPTH_PREFIX
1143 LTLIBPTH
1144 LIBPTH
1145 GL_GENERATE_LIMITS_H_FALSE
1146 GL_GENERATE_LIMITS_H_TRUE
1147 LIMITS_H
1148 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1149 NEXT_LIMITS_H
1150 IGNORE_UNUSED_LIBRARIES_CFLAGS
1151 REPLACE_LOCALTIME
1152 REPLACE_GMTIME
1153 REPLACE_TZSET
1154 REPLACE_TIMEGM
1155 REPLACE_STRFTIME
1156 REPLACE_NANOSLEEP
1157 REPLACE_MKTIME
1158 REPLACE_LOCALTIME_R
1159 REPLACE_CTIME
1160 HAVE_TIMEZONE_T
1161 HAVE_TZSET
1162 HAVE_TIMEGM
1163 HAVE_STRPTIME
1164 HAVE_NANOSLEEP
1165 HAVE_DECL_LOCALTIME_R
1166 GNULIB_TZSET
1167 GNULIB_TIME_RZ
1168 GNULIB_TIME_R
1169 GNULIB_TIMEGM
1170 GNULIB_STRPTIME
1171 GNULIB_STRFTIME
1172 GNULIB_NANOSLEEP
1173 GNULIB_LOCALTIME
1174 GNULIB_MKTIME
1175 GNULIB_CTIME
1176 HAVE_WINSOCK2_H
1177 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1178 NEXT_SYS_TIME_H
1179 REPLACE_STRUCT_TIMEVAL
1180 REPLACE_GETTIMEOFDAY
1181 HAVE_SYS_TIME_H
1182 HAVE_STRUCT_TIMEVAL
1183 HAVE_GETTIMEOFDAY
1184 GNULIB_GETTIMEOFDAY
1185 LTLIBINTL
1186 LIBINTL
1187 REPLACE_ITOLD
1188 GL_GENERATE_FLOAT_H_FALSE
1189 GL_GENERATE_FLOAT_H_TRUE
1190 FLOAT_H
1191 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1192 NEXT_FLOAT_H
1193 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1194 NEXT_FCNTL_H
1195 REPLACE_OPENAT
1196 REPLACE_OPEN
1197 REPLACE_FCNTL
1198 HAVE_OPENAT
1199 HAVE_FCNTL
1200 GNULIB_OPENAT
1201 GNULIB_OPEN
1202 GNULIB_NONBLOCKING
1203 GNULIB_FCNTL
1204 EOVERFLOW_VALUE
1205 EOVERFLOW_HIDDEN
1206 ENOLINK_VALUE
1207 ENOLINK_HIDDEN
1208 EMULTIHOP_VALUE
1209 EMULTIHOP_HIDDEN
1210 GL_GENERATE_ERRNO_H_FALSE
1211 GL_GENERATE_ERRNO_H_TRUE
1212 ERRNO_H
1213 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1214 NEXT_ERRNO_H
1215 PRAGMA_COLUMNS
1216 PRAGMA_SYSTEM_HEADER
1217 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1218 INCLUDE_NEXT
1219 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1220 UNISTD_H_HAVE_WINSOCK2_H
1221 REPLACE_WRITE
1222 REPLACE_USLEEP
1223 REPLACE_UNLINKAT
1224 REPLACE_UNLINK
1225 REPLACE_TTYNAME_R
1226 REPLACE_TRUNCATE
1227 REPLACE_SYMLINKAT
1228 REPLACE_SYMLINK
1229 REPLACE_SLEEP
1230 REPLACE_RMDIR
1231 REPLACE_READLINKAT
1232 REPLACE_READLINK
1233 REPLACE_READ
1234 REPLACE_PWRITE
1235 REPLACE_PREAD
1236 REPLACE_LSEEK
1237 REPLACE_LINKAT
1238 REPLACE_LINK
1239 REPLACE_LCHOWN
1240 REPLACE_ISATTY
1241 REPLACE_GETPASS
1242 REPLACE_GETPAGESIZE
1243 REPLACE_GETGROUPS
1244 REPLACE_GETLOGIN_R
1245 REPLACE_GETDTABLESIZE
1246 REPLACE_GETDOMAINNAME
1247 REPLACE_GETCWD
1248 REPLACE_FTRUNCATE
1249 REPLACE_FCHOWNAT
1250 REPLACE_FACCESSAT
1251 REPLACE_DUP2
1252 REPLACE_DUP
1253 REPLACE_CLOSE
1254 REPLACE_CHOWN
1255 HAVE_SYS_PARAM_H
1256 HAVE_OS_H
1257 HAVE_DECL_TTYNAME_R
1258 HAVE_DECL_TRUNCATE
1259 HAVE_DECL_SETHOSTNAME
1260 HAVE_DECL_GETUSERSHELL
1261 HAVE_DECL_GETPAGESIZE
1262 HAVE_DECL_GETLOGIN_R
1263 HAVE_DECL_GETLOGIN
1264 HAVE_DECL_GETDOMAINNAME
1265 HAVE_DECL_FDATASYNC
1266 HAVE_DECL_FCHDIR
1267 HAVE_DECL_ENVIRON
1268 HAVE_USLEEP
1269 HAVE_UNLINKAT
1270 HAVE_SYMLINKAT
1271 HAVE_SYMLINK
1272 HAVE_SLEEP
1273 HAVE_SETHOSTNAME
1274 HAVE_READLINKAT
1275 HAVE_READLINK
1276 HAVE_PWRITE
1277 HAVE_PREAD
1278 HAVE_PIPE2
1279 HAVE_PIPE
1280 HAVE_LINKAT
1281 HAVE_LINK
1282 HAVE_LCHOWN
1283 HAVE_GROUP_MEMBER
1284 HAVE_GETPASS
1285 HAVE_GETPAGESIZE
1286 HAVE_GETLOGIN
1287 HAVE_GETHOSTNAME
1288 HAVE_GETGROUPS
1289 HAVE_GETDTABLESIZE
1290 HAVE_FTRUNCATE
1291 HAVE_FSYNC
1292 HAVE_FDATASYNC
1293 HAVE_FCHOWNAT
1294 HAVE_FCHDIR
1295 HAVE_FACCESSAT
1296 HAVE_EUIDACCESS
1297 HAVE_DUP3
1298 HAVE_DUP2
1299 HAVE_CHOWN
1300 GNULIB_WRITE
1301 GNULIB_USLEEP
1302 GNULIB_UNLINKAT
1303 GNULIB_UNLINK
1304 GNULIB_UNISTD_H_SIGPIPE
1305 GNULIB_UNISTD_H_NONBLOCKING
1306 GNULIB_TTYNAME_R
1307 GNULIB_TRUNCATE
1308 GNULIB_SYMLINKAT
1309 GNULIB_SYMLINK
1310 GNULIB_SLEEP
1311 GNULIB_SETHOSTNAME
1312 GNULIB_RMDIR
1313 GNULIB_READLINKAT
1314 GNULIB_READLINK
1315 GNULIB_READ
1316 GNULIB_PWRITE
1317 GNULIB_PREAD
1318 GNULIB_PIPE2
1319 GNULIB_PIPE
1320 GNULIB_LSEEK
1321 GNULIB_LINKAT
1322 GNULIB_LINK
1323 GNULIB_LCHOWN
1324 GNULIB_ISATTY
1325 GNULIB_GROUP_MEMBER
1326 GNULIB_GETUSERSHELL
1327 GNULIB_GETPASS
1328 GNULIB_GETPAGESIZE
1329 GNULIB_GETLOGIN_R
1330 GNULIB_GETLOGIN
1331 GNULIB_GETHOSTNAME
1332 GNULIB_GETGROUPS
1333 GNULIB_GETDTABLESIZE
1334 GNULIB_GETDOMAINNAME
1335 GNULIB_GETCWD
1336 GNULIB_FTRUNCATE
1337 GNULIB_FSYNC
1338 GNULIB_FDATASYNC
1339 GNULIB_FCHOWNAT
1340 GNULIB_FCHDIR
1341 GNULIB_FACCESSAT
1342 GNULIB_EUIDACCESS
1343 GNULIB_ENVIRON
1344 GNULIB_DUP3
1345 GNULIB_DUP2
1346 GNULIB_DUP
1347 GNULIB_CLOSE
1348 GNULIB_CHOWN
1349 GNULIB_CHDIR
1350 GL_GENERATE_ALLOCA_H_FALSE
1351 GL_GENERATE_ALLOCA_H_TRUE
1352 ALLOCA_H
1353 ALLOCA
1354 GL_COND_LIBTOOL_FALSE
1355 GL_COND_LIBTOOL_TRUE
1356 RUN_TESTS_FALSE
1357 RUN_TESTS_TRUE
1358 CHECK_LIBS
1359 CHECK_CFLAGS
1360 PKG_CONFIG_LIBDIR
1361 PKG_CONFIG_PATH
1362 PKG_CONFIG
1363 LT_SYS_LIBRARY_PATH
1364 OTOOL64
1365 OTOOL
1366 LIPO
1367 NMEDIT
1368 DSYMUTIL
1369 MANIFEST_TOOL
1370 DLLTOOL
1371 OBJDUMP
1372 NM
1373 ac_ct_DUMPBIN
1374 DUMPBIN
1375 LD
1376 FGREP
1377 SED
1378 LIBTOOL
1379 LN_S
1380 WARN_CFLAGS
1381 RANLIB
1382 ARFLAGS
1383 ac_ct_AR
1384 AR
1385 host_os
1386 host_vendor
1387 host_cpu
1388 host
1389 build_os
1390 build_vendor
1391 build_cpu
1392 build
1393 EGREP
1394 GREP
1395 CPP
1396 am__fastdepCC_FALSE
1397 am__fastdepCC_TRUE
1398 CCDEPMODE
1399 am__nodep
1400 AMDEPBACKSLASH
1401 AMDEP_FALSE
1402 AMDEP_TRUE
1403 am__include
1404 DEPDIR
1405 OBJEXT
1406 EXEEXT
1407 ac_ct_CC
1408 CPPFLAGS
1409 LDFLAGS
1410 CFLAGS
1411 CC
1412 MAINT
1413 MAINTAINER_MODE_FALSE
1414 MAINTAINER_MODE_TRUE
1415 AM_BACKSLASH
1416 AM_DEFAULT_VERBOSITY
1417 AM_DEFAULT_V
1418 AM_V
1419 am__untar
1420 am__tar
1421 AMTAR
1422 am__leading_dot
1423 SET_MAKE
1424 AWK
1425 mkdir_p
1426 MKDIR_P
1427 INSTALL_STRIP_PROGRAM
1428 STRIP
1429 install_sh
1430 MAKEINFO
1431 AUTOHEADER
1432 AUTOMAKE
1433 AUTOCONF
1434 ACLOCAL
1435 VERSION
1436 PACKAGE
1437 CYGPATH_W
1438 am__isrc
1439 INSTALL_DATA
1440 INSTALL_SCRIPT
1441 INSTALL_PROGRAM
1442 target_alias
1443 host_alias
1444 build_alias
1445 LIBS
1446 ECHO_T
1447 ECHO_N
1448 ECHO_C
1449 DEFS
1450 mandir
1451 localedir
1452 libdir
1453 psdir
1454 pdfdir
1455 dvidir
1456 htmldir
1457 infodir
1458 docdir
1459 oldincludedir
1460 includedir
1461 runstatedir
1462 localstatedir
1463 sharedstatedir
1464 sysconfdir
1465 datadir
1466 datarootdir
1467 libexecdir
1468 sbindir
1469 bindir
1470 program_transform_name
1471 prefix
1472 exec_prefix
1473 PACKAGE_URL
1474 PACKAGE_BUGREPORT
1475 PACKAGE_STRING
1476 PACKAGE_VERSION
1477 PACKAGE_TARNAME
1478 PACKAGE_NAME
1479 PATH_SEPARATOR
1480 SHELL
1481 am__quote'
1482 ac_subst_files=''
1483 ac_user_opts='
1484 enable_option_checking
1485 enable_silent_rules
1486 enable_maintainer_mode
1487 enable_dependency_tracking
1488 enable_largefile
1489 enable_threads
1490 enable_static
1491 enable_shared
1492 with_pic
1493 enable_fast_install
1494 with_aix_soname
1495 with_gnu_ld
1496 with_sysroot
1497 enable_libtool_lock
1498 enable_rpath
1499 with_libpth_prefix
1500 enable_socketpair_pipe
1501 '
1502       ac_precious_vars='build_alias
1503 host_alias
1504 target_alias
1505 CC
1506 CFLAGS
1507 LDFLAGS
1508 LIBS
1509 CPPFLAGS
1510 CPP
1511 LT_SYS_LIBRARY_PATH
1512 PKG_CONFIG
1513 PKG_CONFIG_PATH
1514 PKG_CONFIG_LIBDIR
1515 CHECK_CFLAGS
1516 CHECK_LIBS'
1517
1518
1519 # Initialize some variables set by options.
1520 ac_init_help=
1521 ac_init_version=false
1522 ac_unrecognized_opts=
1523 ac_unrecognized_sep=
1524 # The variables have the same names as the options, with
1525 # dashes changed to underlines.
1526 cache_file=/dev/null
1527 exec_prefix=NONE
1528 no_create=
1529 no_recursion=
1530 prefix=NONE
1531 program_prefix=NONE
1532 program_suffix=NONE
1533 program_transform_name=s,x,x,
1534 silent=
1535 site=
1536 srcdir=
1537 verbose=
1538 x_includes=NONE
1539 x_libraries=NONE
1540
1541 # Installation directory options.
1542 # These are left unexpanded so users can "make install exec_prefix=/foo"
1543 # and all the variables that are supposed to be based on exec_prefix
1544 # by default will actually change.
1545 # Use braces instead of parens because sh, perl, etc. also accept them.
1546 # (The list follows the same order as the GNU Coding Standards.)
1547 bindir='${exec_prefix}/bin'
1548 sbindir='${exec_prefix}/sbin'
1549 libexecdir='${exec_prefix}/libexec'
1550 datarootdir='${prefix}/share'
1551 datadir='${datarootdir}'
1552 sysconfdir='${prefix}/etc'
1553 sharedstatedir='${prefix}/com'
1554 localstatedir='${prefix}/var'
1555 runstatedir='${localstatedir}/run'
1556 includedir='${prefix}/include'
1557 oldincludedir='/usr/include'
1558 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1559 infodir='${datarootdir}/info'
1560 htmldir='${docdir}'
1561 dvidir='${docdir}'
1562 pdfdir='${docdir}'
1563 psdir='${docdir}'
1564 libdir='${exec_prefix}/lib'
1565 localedir='${datarootdir}/locale'
1566 mandir='${datarootdir}/man'
1567
1568 ac_prev=
1569 ac_dashdash=
1570 for ac_option
1571 do
1572   # If the previous option needs an argument, assign it.
1573   if test -n "$ac_prev"; then
1574     eval $ac_prev=\$ac_option
1575     ac_prev=
1576     continue
1577   fi
1578
1579   case $ac_option in
1580   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1581   *=)   ac_optarg= ;;
1582   *)    ac_optarg=yes ;;
1583   esac
1584
1585   # Accept the important Cygnus configure options, so we can diagnose typos.
1586
1587   case $ac_dashdash$ac_option in
1588   --)
1589     ac_dashdash=yes ;;
1590
1591   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1592     ac_prev=bindir ;;
1593   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1594     bindir=$ac_optarg ;;
1595
1596   -build | --build | --buil | --bui | --bu)
1597     ac_prev=build_alias ;;
1598   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1599     build_alias=$ac_optarg ;;
1600
1601   -cache-file | --cache-file | --cache-fil | --cache-fi \
1602   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1603     ac_prev=cache_file ;;
1604   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1605   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1606     cache_file=$ac_optarg ;;
1607
1608   --config-cache | -C)
1609     cache_file=config.cache ;;
1610
1611   -datadir | --datadir | --datadi | --datad)
1612     ac_prev=datadir ;;
1613   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1614     datadir=$ac_optarg ;;
1615
1616   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1617   | --dataroo | --dataro | --datar)
1618     ac_prev=datarootdir ;;
1619   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1620   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1621     datarootdir=$ac_optarg ;;
1622
1623   -disable-* | --disable-*)
1624     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1625     # Reject names that are not valid shell variable names.
1626     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1627       as_fn_error $? "invalid feature name: $ac_useropt"
1628     ac_useropt_orig=$ac_useropt
1629     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630     case $ac_user_opts in
1631       *"
1632 "enable_$ac_useropt"
1633 "*) ;;
1634       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1635          ac_unrecognized_sep=', ';;
1636     esac
1637     eval enable_$ac_useropt=no ;;
1638
1639   -docdir | --docdir | --docdi | --doc | --do)
1640     ac_prev=docdir ;;
1641   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1642     docdir=$ac_optarg ;;
1643
1644   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1645     ac_prev=dvidir ;;
1646   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1647     dvidir=$ac_optarg ;;
1648
1649   -enable-* | --enable-*)
1650     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1651     # Reject names that are not valid shell variable names.
1652     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1653       as_fn_error $? "invalid feature name: $ac_useropt"
1654     ac_useropt_orig=$ac_useropt
1655     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1656     case $ac_user_opts in
1657       *"
1658 "enable_$ac_useropt"
1659 "*) ;;
1660       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1661          ac_unrecognized_sep=', ';;
1662     esac
1663     eval enable_$ac_useropt=\$ac_optarg ;;
1664
1665   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1666   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1667   | --exec | --exe | --ex)
1668     ac_prev=exec_prefix ;;
1669   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1670   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1671   | --exec=* | --exe=* | --ex=*)
1672     exec_prefix=$ac_optarg ;;
1673
1674   -gas | --gas | --ga | --g)
1675     # Obsolete; use --with-gas.
1676     with_gas=yes ;;
1677
1678   -help | --help | --hel | --he | -h)
1679     ac_init_help=long ;;
1680   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1681     ac_init_help=recursive ;;
1682   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1683     ac_init_help=short ;;
1684
1685   -host | --host | --hos | --ho)
1686     ac_prev=host_alias ;;
1687   -host=* | --host=* | --hos=* | --ho=*)
1688     host_alias=$ac_optarg ;;
1689
1690   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1691     ac_prev=htmldir ;;
1692   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1693   | --ht=*)
1694     htmldir=$ac_optarg ;;
1695
1696   -includedir | --includedir | --includedi | --included | --include \
1697   | --includ | --inclu | --incl | --inc)
1698     ac_prev=includedir ;;
1699   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1700   | --includ=* | --inclu=* | --incl=* | --inc=*)
1701     includedir=$ac_optarg ;;
1702
1703   -infodir | --infodir | --infodi | --infod | --info | --inf)
1704     ac_prev=infodir ;;
1705   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1706     infodir=$ac_optarg ;;
1707
1708   -libdir | --libdir | --libdi | --libd)
1709     ac_prev=libdir ;;
1710   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1711     libdir=$ac_optarg ;;
1712
1713   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1714   | --libexe | --libex | --libe)
1715     ac_prev=libexecdir ;;
1716   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1717   | --libexe=* | --libex=* | --libe=*)
1718     libexecdir=$ac_optarg ;;
1719
1720   -localedir | --localedir | --localedi | --localed | --locale)
1721     ac_prev=localedir ;;
1722   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1723     localedir=$ac_optarg ;;
1724
1725   -localstatedir | --localstatedir | --localstatedi | --localstated \
1726   | --localstate | --localstat | --localsta | --localst | --locals)
1727     ac_prev=localstatedir ;;
1728   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1729   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1730     localstatedir=$ac_optarg ;;
1731
1732   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1733     ac_prev=mandir ;;
1734   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1735     mandir=$ac_optarg ;;
1736
1737   -nfp | --nfp | --nf)
1738     # Obsolete; use --without-fp.
1739     with_fp=no ;;
1740
1741   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1742   | --no-cr | --no-c | -n)
1743     no_create=yes ;;
1744
1745   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1746   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1747     no_recursion=yes ;;
1748
1749   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1750   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1751   | --oldin | --oldi | --old | --ol | --o)
1752     ac_prev=oldincludedir ;;
1753   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1754   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1755   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1756     oldincludedir=$ac_optarg ;;
1757
1758   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1759     ac_prev=prefix ;;
1760   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1761     prefix=$ac_optarg ;;
1762
1763   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1764   | --program-pre | --program-pr | --program-p)
1765     ac_prev=program_prefix ;;
1766   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1767   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1768     program_prefix=$ac_optarg ;;
1769
1770   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1771   | --program-suf | --program-su | --program-s)
1772     ac_prev=program_suffix ;;
1773   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1774   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1775     program_suffix=$ac_optarg ;;
1776
1777   -program-transform-name | --program-transform-name \
1778   | --program-transform-nam | --program-transform-na \
1779   | --program-transform-n | --program-transform- \
1780   | --program-transform | --program-transfor \
1781   | --program-transfo | --program-transf \
1782   | --program-trans | --program-tran \
1783   | --progr-tra | --program-tr | --program-t)
1784     ac_prev=program_transform_name ;;
1785   -program-transform-name=* | --program-transform-name=* \
1786   | --program-transform-nam=* | --program-transform-na=* \
1787   | --program-transform-n=* | --program-transform-=* \
1788   | --program-transform=* | --program-transfor=* \
1789   | --program-transfo=* | --program-transf=* \
1790   | --program-trans=* | --program-tran=* \
1791   | --progr-tra=* | --program-tr=* | --program-t=*)
1792     program_transform_name=$ac_optarg ;;
1793
1794   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1795     ac_prev=pdfdir ;;
1796   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1797     pdfdir=$ac_optarg ;;
1798
1799   -psdir | --psdir | --psdi | --psd | --ps)
1800     ac_prev=psdir ;;
1801   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1802     psdir=$ac_optarg ;;
1803
1804   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805   | -silent | --silent | --silen | --sile | --sil)
1806     silent=yes ;;
1807
1808   -runstatedir | --runstatedir | --runstatedi | --runstated \
1809   | --runstate | --runstat | --runsta | --runst | --runs \
1810   | --run | --ru | --r)
1811     ac_prev=runstatedir ;;
1812   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1813   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1814   | --run=* | --ru=* | --r=*)
1815     runstatedir=$ac_optarg ;;
1816
1817   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1818     ac_prev=sbindir ;;
1819   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1820   | --sbi=* | --sb=*)
1821     sbindir=$ac_optarg ;;
1822
1823   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1824   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1825   | --sharedst | --shareds | --shared | --share | --shar \
1826   | --sha | --sh)
1827     ac_prev=sharedstatedir ;;
1828   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1829   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1830   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1831   | --sha=* | --sh=*)
1832     sharedstatedir=$ac_optarg ;;
1833
1834   -site | --site | --sit)
1835     ac_prev=site ;;
1836   -site=* | --site=* | --sit=*)
1837     site=$ac_optarg ;;
1838
1839   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1840     ac_prev=srcdir ;;
1841   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1842     srcdir=$ac_optarg ;;
1843
1844   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1845   | --syscon | --sysco | --sysc | --sys | --sy)
1846     ac_prev=sysconfdir ;;
1847   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1848   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1849     sysconfdir=$ac_optarg ;;
1850
1851   -target | --target | --targe | --targ | --tar | --ta | --t)
1852     ac_prev=target_alias ;;
1853   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1854     target_alias=$ac_optarg ;;
1855
1856   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1857     verbose=yes ;;
1858
1859   -version | --version | --versio | --versi | --vers | -V)
1860     ac_init_version=: ;;
1861
1862   -with-* | --with-*)
1863     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1864     # Reject names that are not valid shell variable names.
1865     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1866       as_fn_error $? "invalid package name: $ac_useropt"
1867     ac_useropt_orig=$ac_useropt
1868     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1869     case $ac_user_opts in
1870       *"
1871 "with_$ac_useropt"
1872 "*) ;;
1873       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1874          ac_unrecognized_sep=', ';;
1875     esac
1876     eval with_$ac_useropt=\$ac_optarg ;;
1877
1878   -without-* | --without-*)
1879     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1880     # Reject names that are not valid shell variable names.
1881     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1882       as_fn_error $? "invalid package name: $ac_useropt"
1883     ac_useropt_orig=$ac_useropt
1884     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1885     case $ac_user_opts in
1886       *"
1887 "with_$ac_useropt"
1888 "*) ;;
1889       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1890          ac_unrecognized_sep=', ';;
1891     esac
1892     eval with_$ac_useropt=no ;;
1893
1894   --x)
1895     # Obsolete; use --with-x.
1896     with_x=yes ;;
1897
1898   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1899   | --x-incl | --x-inc | --x-in | --x-i)
1900     ac_prev=x_includes ;;
1901   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1902   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1903     x_includes=$ac_optarg ;;
1904
1905   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1906   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1907     ac_prev=x_libraries ;;
1908   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1909   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1910     x_libraries=$ac_optarg ;;
1911
1912   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1913 Try \`$0 --help' for more information"
1914     ;;
1915
1916   *=*)
1917     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1918     # Reject names that are not valid shell variable names.
1919     case $ac_envvar in #(
1920       '' | [0-9]* | *[!_$as_cr_alnum]* )
1921       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1922     esac
1923     eval $ac_envvar=\$ac_optarg
1924     export $ac_envvar ;;
1925
1926   *)
1927     # FIXME: should be removed in autoconf 3.0.
1928     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1929     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1930       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1931     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1932     ;;
1933
1934   esac
1935 done
1936
1937 if test -n "$ac_prev"; then
1938   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1939   as_fn_error $? "missing argument to $ac_option"
1940 fi
1941
1942 if test -n "$ac_unrecognized_opts"; then
1943   case $enable_option_checking in
1944     no) ;;
1945     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1946     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1947   esac
1948 fi
1949
1950 # Check all directory arguments for consistency.
1951 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1952                 datadir sysconfdir sharedstatedir localstatedir includedir \
1953                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1954                 libdir localedir mandir runstatedir
1955 do
1956   eval ac_val=\$$ac_var
1957   # Remove trailing slashes.
1958   case $ac_val in
1959     */ )
1960       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1961       eval $ac_var=\$ac_val;;
1962   esac
1963   # Be sure to have absolute directory names.
1964   case $ac_val in
1965     [\\/$]* | ?:[\\/]* )  continue;;
1966     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1967   esac
1968   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1969 done
1970
1971 # There might be people who depend on the old broken behavior: `$host'
1972 # used to hold the argument of --host etc.
1973 # FIXME: To remove some day.
1974 build=$build_alias
1975 host=$host_alias
1976 target=$target_alias
1977
1978 # FIXME: To remove some day.
1979 if test "x$host_alias" != x; then
1980   if test "x$build_alias" = x; then
1981     cross_compiling=maybe
1982   elif test "x$build_alias" != "x$host_alias"; then
1983     cross_compiling=yes
1984   fi
1985 fi
1986
1987 ac_tool_prefix=
1988 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1989
1990 test "$silent" = yes && exec 6>/dev/null
1991
1992
1993 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1994 ac_ls_di=`ls -di .` &&
1995 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1996   as_fn_error $? "working directory cannot be determined"
1997 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1998   as_fn_error $? "pwd does not report name of working directory"
1999
2000
2001 # Find the source files, if location was not specified.
2002 if test -z "$srcdir"; then
2003   ac_srcdir_defaulted=yes
2004   # Try the directory containing this script, then the parent directory.
2005   ac_confdir=`$as_dirname -- "$as_myself" ||
2006 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2007          X"$as_myself" : 'X\(//\)[^/]' \| \
2008          X"$as_myself" : 'X\(//\)$' \| \
2009          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2010 $as_echo X"$as_myself" |
2011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2012             s//\1/
2013             q
2014           }
2015           /^X\(\/\/\)[^/].*/{
2016             s//\1/
2017             q
2018           }
2019           /^X\(\/\/\)$/{
2020             s//\1/
2021             q
2022           }
2023           /^X\(\/\).*/{
2024             s//\1/
2025             q
2026           }
2027           s/.*/./; q'`
2028   srcdir=$ac_confdir
2029   if test ! -r "$srcdir/$ac_unique_file"; then
2030     srcdir=..
2031   fi
2032 else
2033   ac_srcdir_defaulted=no
2034 fi
2035 if test ! -r "$srcdir/$ac_unique_file"; then
2036   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2037   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2038 fi
2039 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2040 ac_abs_confdir=`(
2041         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2042         pwd)`
2043 # When building in place, set srcdir=.
2044 if test "$ac_abs_confdir" = "$ac_pwd"; then
2045   srcdir=.
2046 fi
2047 # Remove unnecessary trailing slashes from srcdir.
2048 # Double slashes in file names in object file debugging info
2049 # mess up M-x gdb in Emacs.
2050 case $srcdir in
2051 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2052 esac
2053 for ac_var in $ac_precious_vars; do
2054   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2055   eval ac_env_${ac_var}_value=\$${ac_var}
2056   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2057   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2058 done
2059
2060 #
2061 # Report the --help message.
2062 #
2063 if test "$ac_init_help" = "long"; then
2064   # Omit some internal or obsolete options to make the list less imposing.
2065   # This message is too long to be a string in the A/UX 3.1 sh.
2066   cat <<_ACEOF
2067 \`configure' configures libpipeline 1.5.1 to adapt to many kinds of systems.
2068
2069 Usage: $0 [OPTION]... [VAR=VALUE]...
2070
2071 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2072 VAR=VALUE.  See below for descriptions of some of the useful variables.
2073
2074 Defaults for the options are specified in brackets.
2075
2076 Configuration:
2077   -h, --help              display this help and exit
2078       --help=short        display options specific to this package
2079       --help=recursive    display the short help of all the included packages
2080   -V, --version           display version information and exit
2081   -q, --quiet, --silent   do not print \`checking ...' messages
2082       --cache-file=FILE   cache test results in FILE [disabled]
2083   -C, --config-cache      alias for \`--cache-file=config.cache'
2084   -n, --no-create         do not create output files
2085       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2086
2087 Installation directories:
2088   --prefix=PREFIX         install architecture-independent files in PREFIX
2089                           [$ac_default_prefix]
2090   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2091                           [PREFIX]
2092
2093 By default, \`make install' will install all the files in
2094 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2095 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2096 for instance \`--prefix=\$HOME'.
2097
2098 For better control, use the options below.
2099
2100 Fine tuning of the installation directories:
2101   --bindir=DIR            user executables [EPREFIX/bin]
2102   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2103   --libexecdir=DIR        program executables [EPREFIX/libexec]
2104   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2105   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2106   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2107   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2108   --libdir=DIR            object code libraries [EPREFIX/lib]
2109   --includedir=DIR        C header files [PREFIX/include]
2110   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2111   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2112   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2113   --infodir=DIR           info documentation [DATAROOTDIR/info]
2114   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2115   --mandir=DIR            man documentation [DATAROOTDIR/man]
2116   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2117   --htmldir=DIR           html documentation [DOCDIR]
2118   --dvidir=DIR            dvi documentation [DOCDIR]
2119   --pdfdir=DIR            pdf documentation [DOCDIR]
2120   --psdir=DIR             ps documentation [DOCDIR]
2121 _ACEOF
2122
2123   cat <<\_ACEOF
2124
2125 Program names:
2126   --program-prefix=PREFIX            prepend PREFIX to installed program names
2127   --program-suffix=SUFFIX            append SUFFIX to installed program names
2128   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2129
2130 System types:
2131   --build=BUILD     configure for building on BUILD [guessed]
2132   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2133 _ACEOF
2134 fi
2135
2136 if test -n "$ac_init_help"; then
2137   case $ac_init_help in
2138      short | recursive ) echo "Configuration of libpipeline 1.5.1:";;
2139    esac
2140   cat <<\_ACEOF
2141
2142 Optional Features:
2143   --disable-option-checking  ignore unrecognized --enable/--with options
2144   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2145   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2146   --enable-silent-rules   less verbose build output (undo: "make V=1")
2147   --disable-silent-rules  verbose build output (undo: "make V=0")
2148   --enable-maintainer-mode
2149                           enable make rules and dependencies not useful (and
2150                           sometimes confusing) to the casual installer
2151   --enable-dependency-tracking
2152                           do not reject slow dependency extractors
2153   --disable-dependency-tracking
2154                           speeds up one-time build
2155   --disable-largefile     omit support for large files
2156   --enable-threads={posix|solaris|pth|windows}
2157                           specify multithreading API
2158   --disable-threads       build without multithread safety
2159   --enable-static[=PKGS]  build static libraries [default=no]
2160   --enable-shared[=PKGS]  build shared libraries [default=yes]
2161   --enable-fast-install[=PKGS]
2162                           optimize for fast installation [default=yes]
2163   --disable-libtool-lock  avoid locking (might break parallel builds)
2164   --disable-rpath         do not hardcode runtime library paths
2165   --enable-socketpair-pipe
2166                           Use socketpair(2) as fast replacement for pipe(2)
2167
2168 Optional Packages:
2169   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2170   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2171   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2172                           both]
2173   --with-aix-soname=aix|svr4|both
2174                           shared library versioning (aka "SONAME") variant to
2175                           provide on AIX, [default=aix].
2176   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2177   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2178                           compiler's sysroot if not specified).
2179   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2180   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2181   --without-libpth-prefix     don't search for libpth in includedir and libdir
2182
2183 Some influential environment variables:
2184   CC          C compiler command
2185   CFLAGS      C compiler flags
2186   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2187               nonstandard directory <lib dir>
2188   LIBS        libraries to pass to the linker, e.g. -l<library>
2189   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2190               you have headers in a nonstandard directory <include dir>
2191   CPP         C preprocessor
2192   LT_SYS_LIBRARY_PATH
2193               User-defined run-time library search path.
2194   PKG_CONFIG  path to pkg-config utility
2195   PKG_CONFIG_PATH
2196               directories to add to pkg-config's search path
2197   PKG_CONFIG_LIBDIR
2198               path overriding pkg-config's built-in search path
2199   CHECK_CFLAGS
2200               C compiler flags for CHECK, overriding pkg-config
2201   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2202
2203 Use these variables to override the choices made by `configure' or to help
2204 it to find libraries and programs with nonstandard names/locations.
2205
2206 Report bugs to <cjwatson@debian.org>.
2207 _ACEOF
2208 ac_status=$?
2209 fi
2210
2211 if test "$ac_init_help" = "recursive"; then
2212   # If there are subdirs, report their specific --help.
2213   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2214     test -d "$ac_dir" ||
2215       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2216       continue
2217     ac_builddir=.
2218
2219 case "$ac_dir" in
2220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2221 *)
2222   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2223   # A ".." for each directory in $ac_dir_suffix.
2224   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2225   case $ac_top_builddir_sub in
2226   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2227   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2228   esac ;;
2229 esac
2230 ac_abs_top_builddir=$ac_pwd
2231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2232 # for backward compatibility:
2233 ac_top_builddir=$ac_top_build_prefix
2234
2235 case $srcdir in
2236   .)  # We are building in place.
2237     ac_srcdir=.
2238     ac_top_srcdir=$ac_top_builddir_sub
2239     ac_abs_top_srcdir=$ac_pwd ;;
2240   [\\/]* | ?:[\\/]* )  # Absolute name.
2241     ac_srcdir=$srcdir$ac_dir_suffix;
2242     ac_top_srcdir=$srcdir
2243     ac_abs_top_srcdir=$srcdir ;;
2244   *) # Relative name.
2245     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2246     ac_top_srcdir=$ac_top_build_prefix$srcdir
2247     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2248 esac
2249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2250
2251     cd "$ac_dir" || { ac_status=$?; continue; }
2252     # Check for guested configure.
2253     if test -f "$ac_srcdir/configure.gnu"; then
2254       echo &&
2255       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2256     elif test -f "$ac_srcdir/configure"; then
2257       echo &&
2258       $SHELL "$ac_srcdir/configure" --help=recursive
2259     else
2260       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2261     fi || ac_status=$?
2262     cd "$ac_pwd" || { ac_status=$?; break; }
2263   done
2264 fi
2265
2266 test -n "$ac_init_help" && exit $ac_status
2267 if $ac_init_version; then
2268   cat <<\_ACEOF
2269 libpipeline configure 1.5.1
2270 generated by GNU Autoconf 2.69
2271
2272 Copyright (C) 2012 Free Software Foundation, Inc.
2273 This configure script is free software; the Free Software Foundation
2274 gives unlimited permission to copy, distribute and modify it.
2275 _ACEOF
2276   exit
2277 fi
2278
2279 ## ------------------------ ##
2280 ## Autoconf initialization. ##
2281 ## ------------------------ ##
2282
2283 # ac_fn_c_try_compile LINENO
2284 # --------------------------
2285 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2286 ac_fn_c_try_compile ()
2287 {
2288   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289   rm -f conftest.$ac_objext
2290   if { { ac_try="$ac_compile"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 $as_echo "$ac_try_echo"; } >&5
2297   (eval "$ac_compile") 2>conftest.err
2298   ac_status=$?
2299   if test -s conftest.err; then
2300     grep -v '^ *+' conftest.err >conftest.er1
2301     cat conftest.er1 >&5
2302     mv -f conftest.er1 conftest.err
2303   fi
2304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305   test $ac_status = 0; } && {
2306          test -z "$ac_c_werror_flag" ||
2307          test ! -s conftest.err
2308        } && test -s conftest.$ac_objext; then :
2309   ac_retval=0
2310 else
2311   $as_echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314         ac_retval=1
2315 fi
2316   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317   as_fn_set_status $ac_retval
2318
2319 } # ac_fn_c_try_compile
2320
2321 # ac_fn_c_try_cpp LINENO
2322 # ----------------------
2323 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2324 ac_fn_c_try_cpp ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   if { { ac_try="$ac_cpp conftest.$ac_ext"
2328 case "(($ac_try" in
2329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330   *) ac_try_echo=$ac_try;;
2331 esac
2332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333 $as_echo "$ac_try_echo"; } >&5
2334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2335   ac_status=$?
2336   if test -s conftest.err; then
2337     grep -v '^ *+' conftest.err >conftest.er1
2338     cat conftest.er1 >&5
2339     mv -f conftest.er1 conftest.err
2340   fi
2341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2342   test $ac_status = 0; } > conftest.i && {
2343          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2344          test ! -s conftest.err
2345        }; then :
2346   ac_retval=0
2347 else
2348   $as_echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351     ac_retval=1
2352 fi
2353   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354   as_fn_set_status $ac_retval
2355
2356 } # ac_fn_c_try_cpp
2357
2358 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2359 # -------------------------------------------------------
2360 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2361 # the include files in INCLUDES and setting the cache variable VAR
2362 # accordingly.
2363 ac_fn_c_check_header_mongrel ()
2364 {
2365   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366   if eval \${$3+:} false; then :
2367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval \${$3+:} false; then :
2370   $as_echo_n "(cached) " >&6
2371 fi
2372 eval ac_res=\$$3
2373                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2375 else
2376   # Is the header compilable?
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2378 $as_echo_n "checking $2 usability... " >&6; }
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h.  */
2381 $4
2382 #include <$2>
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385   ac_header_compiler=yes
2386 else
2387   ac_header_compiler=no
2388 fi
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2391 $as_echo "$ac_header_compiler" >&6; }
2392
2393 # Is the header present?
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2395 $as_echo_n "checking $2 presence... " >&6; }
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h.  */
2398 #include <$2>
2399 _ACEOF
2400 if ac_fn_c_try_cpp "$LINENO"; then :
2401   ac_header_preproc=yes
2402 else
2403   ac_header_preproc=no
2404 fi
2405 rm -f conftest.err conftest.i conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2407 $as_echo "$ac_header_preproc" >&6; }
2408
2409 # So?  What about this header?
2410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2411   yes:no: )
2412     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2413 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2415 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2416     ;;
2417   no:yes:* )
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2419 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2420     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2421 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2422     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2423 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2424     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2425 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2426     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2427 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2428 ( $as_echo "## ---------------------------------- ##
2429 ## Report this to cjwatson@debian.org ##
2430 ## ---------------------------------- ##"
2431      ) | sed "s/^/$as_me: WARNING:     /" >&2
2432     ;;
2433 esac
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2435 $as_echo_n "checking for $2... " >&6; }
2436 if eval \${$3+:} false; then :
2437   $as_echo_n "(cached) " >&6
2438 else
2439   eval "$3=\$ac_header_compiler"
2440 fi
2441 eval ac_res=\$$3
2442                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 fi
2445   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446
2447 } # ac_fn_c_check_header_mongrel
2448
2449 # ac_fn_c_try_run LINENO
2450 # ----------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2452 # that executables *can* be run.
2453 ac_fn_c_try_run ()
2454 {
2455   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456   if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459   *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463   (eval "$ac_link") 2>&5
2464   ac_status=$?
2465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2467   { { case "(($ac_try" in
2468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469   *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473   (eval "$ac_try") 2>&5
2474   ac_status=$?
2475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476   test $ac_status = 0; }; }; then :
2477   ac_retval=0
2478 else
2479   $as_echo "$as_me: program exited with status $ac_status" >&5
2480        $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483        ac_retval=$ac_status
2484 fi
2485   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487   as_fn_set_status $ac_retval
2488
2489 } # ac_fn_c_try_run
2490
2491 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2492 # -------------------------------------------------------
2493 # Tests whether HEADER exists and can be compiled using the include files in
2494 # INCLUDES, setting the cache variable VAR accordingly.
2495 ac_fn_c_check_header_compile ()
2496 {
2497   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2499 $as_echo_n "checking for $2... " >&6; }
2500 if eval \${$3+:} false; then :
2501   $as_echo_n "(cached) " >&6
2502 else
2503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h.  */
2505 $4
2506 #include <$2>
2507 _ACEOF
2508 if ac_fn_c_try_compile "$LINENO"; then :
2509   eval "$3=yes"
2510 else
2511   eval "$3=no"
2512 fi
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 fi
2515 eval ac_res=\$$3
2516                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519
2520 } # ac_fn_c_check_header_compile
2521
2522 # ac_fn_c_try_link LINENO
2523 # -----------------------
2524 # Try to link conftest.$ac_ext, and return whether this succeeded.
2525 ac_fn_c_try_link ()
2526 {
2527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528   rm -f conftest.$ac_objext conftest$ac_exeext
2529   if { { ac_try="$ac_link"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536   (eval "$ac_link") 2>conftest.err
2537   ac_status=$?
2538   if test -s conftest.err; then
2539     grep -v '^ *+' conftest.err >conftest.er1
2540     cat conftest.er1 >&5
2541     mv -f conftest.er1 conftest.err
2542   fi
2543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544   test $ac_status = 0; } && {
2545          test -z "$ac_c_werror_flag" ||
2546          test ! -s conftest.err
2547        } && test -s conftest$ac_exeext && {
2548          test "$cross_compiling" = yes ||
2549          test -x conftest$ac_exeext
2550        }; then :
2551   ac_retval=0
2552 else
2553   $as_echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2555
2556         ac_retval=1
2557 fi
2558   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2559   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2560   # interfere with the next link command; also delete a directory that is
2561   # left behind by Apple's compiler.  We do this before executing the actions.
2562   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2563   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564   as_fn_set_status $ac_retval
2565
2566 } # ac_fn_c_try_link
2567
2568 # ac_fn_c_check_func LINENO FUNC VAR
2569 # ----------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_c_check_func ()
2572 {
2573   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if eval \${$3+:} false; then :
2577   $as_echo_n "(cached) " >&6
2578 else
2579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h.  */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2583 #define $2 innocuous_$2
2584
2585 /* System header to define __stub macros and hopefully few prototypes,
2586     which can conflict with char $2 (); below.
2587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588     <limits.h> exists even on freestanding compilers.  */
2589
2590 #ifdef __STDC__
2591 # include <limits.h>
2592 #else
2593 # include <assert.h>
2594 #endif
2595
2596 #undef $2
2597
2598 /* Override any GCC internal prototype to avoid an error.
2599    Use char because int might match the return type of a GCC
2600    builtin and then its argument prototype would still apply.  */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 char $2 ();
2605 /* The GNU C library defines this for functions which it implements
2606     to always fail with ENOSYS.  Some functions are actually named
2607     something starting with __ and the normal name is an alias.  */
2608 #if defined __stub_$2 || defined __stub___$2
2609 choke me
2610 #endif
2611
2612 int
2613 main ()
2614 {
2615 return $2 ();
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_link "$LINENO"; then :
2621   eval "$3=yes"
2622 else
2623   eval "$3=no"
2624 fi
2625 rm -f core conftest.err conftest.$ac_objext \
2626     conftest$ac_exeext conftest.$ac_ext
2627 fi
2628 eval ac_res=\$$3
2629                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2632
2633 } # ac_fn_c_check_func
2634
2635 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2636 # -------------------------------------------
2637 # Tests whether TYPE exists after having included INCLUDES, setting cache
2638 # variable VAR accordingly.
2639 ac_fn_c_check_type ()
2640 {
2641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2643 $as_echo_n "checking for $2... " >&6; }
2644 if eval \${$3+:} false; then :
2645   $as_echo_n "(cached) " >&6
2646 else
2647   eval "$3=no"
2648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h.  */
2650 $4
2651 int
2652 main ()
2653 {
2654 if (sizeof ($2))
2655          return 0;
2656   ;
2657   return 0;
2658 }
2659 _ACEOF
2660 if ac_fn_c_try_compile "$LINENO"; then :
2661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h.  */
2663 $4
2664 int
2665 main ()
2666 {
2667 if (sizeof (($2)))
2668             return 0;
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 if ac_fn_c_try_compile "$LINENO"; then :
2674
2675 else
2676   eval "$3=yes"
2677 fi
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 fi
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 fi
2682 eval ac_res=\$$3
2683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2686
2687 } # ac_fn_c_check_type
2688
2689 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2690 # --------------------------------------------
2691 # Tries to find the compile-time value of EXPR in a program that includes
2692 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2693 # computed
2694 ac_fn_c_compute_int ()
2695 {
2696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697   if test "$cross_compiling" = yes; then
2698     # Depending upon the size, compute the lo and hi bounds.
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h.  */
2701 $4
2702 int
2703 main ()
2704 {
2705 static int test_array [1 - 2 * !(($2) >= 0)];
2706 test_array [0] = 0;
2707 return test_array [0];
2708
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 if ac_fn_c_try_compile "$LINENO"; then :
2714   ac_lo=0 ac_mid=0
2715   while :; do
2716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h.  */
2718 $4
2719 int
2720 main ()
2721 {
2722 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2723 test_array [0] = 0;
2724 return test_array [0];
2725
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731   ac_hi=$ac_mid; break
2732 else
2733   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2734                         if test $ac_lo -le $ac_mid; then
2735                           ac_lo= ac_hi=
2736                           break
2737                         fi
2738                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2739 fi
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741   done
2742 else
2743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h.  */
2745 $4
2746 int
2747 main ()
2748 {
2749 static int test_array [1 - 2 * !(($2) < 0)];
2750 test_array [0] = 0;
2751 return test_array [0];
2752
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_c_try_compile "$LINENO"; then :
2758   ac_hi=-1 ac_mid=-1
2759   while :; do
2760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h.  */
2762 $4
2763 int
2764 main ()
2765 {
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2767 test_array [0] = 0;
2768 return test_array [0];
2769
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 if ac_fn_c_try_compile "$LINENO"; then :
2775   ac_lo=$ac_mid; break
2776 else
2777   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2778                         if test $ac_mid -le $ac_hi; then
2779                           ac_lo= ac_hi=
2780                           break
2781                         fi
2782                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2783 fi
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785   done
2786 else
2787   ac_lo= ac_hi=
2788 fi
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 fi
2791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 # Binary search between lo and hi bounds.
2793 while test "x$ac_lo" != "x$ac_hi"; do
2794   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h.  */
2797 $4
2798 int
2799 main ()
2800 {
2801 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2802 test_array [0] = 0;
2803 return test_array [0];
2804
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 if ac_fn_c_try_compile "$LINENO"; then :
2810   ac_hi=$ac_mid
2811 else
2812   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2813 fi
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 done
2816 case $ac_lo in #((
2817 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2818 '') ac_retval=1 ;;
2819 esac
2820   else
2821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h.  */
2823 $4
2824 static long int longval () { return $2; }
2825 static unsigned long int ulongval () { return $2; }
2826 #include <stdio.h>
2827 #include <stdlib.h>
2828 int
2829 main ()
2830 {
2831
2832   FILE *f = fopen ("conftest.val", "w");
2833   if (! f)
2834     return 1;
2835   if (($2) < 0)
2836     {
2837       long int i = longval ();
2838       if (i != ($2))
2839         return 1;
2840       fprintf (f, "%ld", i);
2841     }
2842   else
2843     {
2844       unsigned long int i = ulongval ();
2845       if (i != ($2))
2846         return 1;
2847       fprintf (f, "%lu", i);
2848     }
2849   /* Do not output a trailing newline, as this causes \r\n confusion
2850      on some platforms.  */
2851   return ferror (f) || fclose (f) != 0;
2852
2853   ;
2854   return 0;
2855 }
2856 _ACEOF
2857 if ac_fn_c_try_run "$LINENO"; then :
2858   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2859 else
2860   ac_retval=1
2861 fi
2862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2863   conftest.$ac_objext conftest.beam conftest.$ac_ext
2864 rm -f conftest.val
2865
2866   fi
2867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2868   as_fn_set_status $ac_retval
2869
2870 } # ac_fn_c_compute_int
2871
2872 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2873 # ---------------------------------------------
2874 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2875 # accordingly.
2876 ac_fn_c_check_decl ()
2877 {
2878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879   as_decl_name=`echo $2|sed 's/ *(.*//'`
2880   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2882 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2883 if eval \${$3+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h.  */
2888 $4
2889 int
2890 main ()
2891 {
2892 #ifndef $as_decl_name
2893 #ifdef __cplusplus
2894   (void) $as_decl_use;
2895 #else
2896   (void) $as_decl_name;
2897 #endif
2898 #endif
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 if ac_fn_c_try_compile "$LINENO"; then :
2905   eval "$3=yes"
2906 else
2907   eval "$3=no"
2908 fi
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911 eval ac_res=\$$3
2912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2915
2916 } # ac_fn_c_check_decl
2917
2918 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2919 # ----------------------------------------------------
2920 # Tries to find if the field MEMBER exists in type AGGR, after including
2921 # INCLUDES, setting cache variable VAR accordingly.
2922 ac_fn_c_check_member ()
2923 {
2924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2926 $as_echo_n "checking for $2.$3... " >&6; }
2927 if eval \${$4+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h.  */
2932 $5
2933 int
2934 main ()
2935 {
2936 static $2 ac_aggr;
2937 if (ac_aggr.$3)
2938 return 0;
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 if ac_fn_c_try_compile "$LINENO"; then :
2944   eval "$4=yes"
2945 else
2946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h.  */
2948 $5
2949 int
2950 main ()
2951 {
2952 static $2 ac_aggr;
2953 if (sizeof ac_aggr.$3)
2954 return 0;
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 if ac_fn_c_try_compile "$LINENO"; then :
2960   eval "$4=yes"
2961 else
2962   eval "$4=no"
2963 fi
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 fi
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 fi
2968 eval ac_res=\$$4
2969                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2970 $as_echo "$ac_res" >&6; }
2971   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2972
2973 } # ac_fn_c_check_member
2974 cat >config.log <<_ACEOF
2975 This file contains any messages produced by compilers while
2976 running configure, to aid debugging if configure makes a mistake.
2977
2978 It was created by libpipeline $as_me 1.5.1, which was
2979 generated by GNU Autoconf 2.69.  Invocation command line was
2980
2981   $ $0 $@
2982
2983 _ACEOF
2984 exec 5>>config.log
2985 {
2986 cat <<_ASUNAME
2987 ## --------- ##
2988 ## Platform. ##
2989 ## --------- ##
2990
2991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2996
2997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2998 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2999
3000 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3001 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3003 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3004 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3005 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3006 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3007
3008 _ASUNAME
3009
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     $as_echo "PATH: $as_dir"
3016   done
3017 IFS=$as_save_IFS
3018
3019 } >&5
3020
3021 cat >&5 <<_ACEOF
3022
3023
3024 ## ----------- ##
3025 ## Core tests. ##
3026 ## ----------- ##
3027
3028 _ACEOF
3029
3030
3031 # Keep a trace of the command line.
3032 # Strip out --no-create and --no-recursion so they do not pile up.
3033 # Strip out --silent because we don't want to record it for future runs.
3034 # Also quote any args containing shell meta-characters.
3035 # Make two passes to allow for proper duplicate-argument suppression.
3036 ac_configure_args=
3037 ac_configure_args0=
3038 ac_configure_args1=
3039 ac_must_keep_next=false
3040 for ac_pass in 1 2
3041 do
3042   for ac_arg
3043   do
3044     case $ac_arg in
3045     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3046     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3047     | -silent | --silent | --silen | --sile | --sil)
3048       continue ;;
3049     *\'*)
3050       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3051     esac
3052     case $ac_pass in
3053     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3054     2)
3055       as_fn_append ac_configure_args1 " '$ac_arg'"
3056       if test $ac_must_keep_next = true; then
3057         ac_must_keep_next=false # Got value, back to normal.
3058       else
3059         case $ac_arg in
3060           *=* | --config-cache | -C | -disable-* | --disable-* \
3061           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3062           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3063           | -with-* | --with-* | -without-* | --without-* | --x)
3064             case "$ac_configure_args0 " in
3065               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3066             esac
3067             ;;
3068           -* ) ac_must_keep_next=true ;;
3069         esac
3070       fi
3071       as_fn_append ac_configure_args " '$ac_arg'"
3072       ;;
3073     esac
3074   done
3075 done
3076 { ac_configure_args0=; unset ac_configure_args0;}
3077 { ac_configure_args1=; unset ac_configure_args1;}
3078
3079 # When interrupted or exit'd, cleanup temporary files, and complete
3080 # config.log.  We remove comments because anyway the quotes in there
3081 # would cause problems or look ugly.
3082 # WARNING: Use '\'' to represent an apostrophe within the trap.
3083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3084 trap 'exit_status=$?
3085   # Save into config.log some information that might help in debugging.
3086   {
3087     echo
3088
3089     $as_echo "## ---------------- ##
3090 ## Cache variables. ##
3091 ## ---------------- ##"
3092     echo
3093     # The following way of writing the cache mishandles newlines in values,
3094 (
3095   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3096     eval ac_val=\$$ac_var
3097     case $ac_val in #(
3098     *${as_nl}*)
3099       case $ac_var in #(
3100       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3102       esac
3103       case $ac_var in #(
3104       _ | IFS | as_nl) ;; #(
3105       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3106       *) { eval $ac_var=; unset $ac_var;} ;;
3107       esac ;;
3108     esac
3109   done
3110   (set) 2>&1 |
3111     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3112     *${as_nl}ac_space=\ *)
3113       sed -n \
3114         "s/'\''/'\''\\\\'\'''\''/g;
3115           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3116       ;; #(
3117     *)
3118       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3119       ;;
3120     esac |
3121     sort
3122 )
3123     echo
3124
3125     $as_echo "## ----------------- ##
3126 ## Output variables. ##
3127 ## ----------------- ##"
3128     echo
3129     for ac_var in $ac_subst_vars
3130     do
3131       eval ac_val=\$$ac_var
3132       case $ac_val in
3133       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3134       esac
3135       $as_echo "$ac_var='\''$ac_val'\''"
3136     done | sort
3137     echo
3138
3139     if test -n "$ac_subst_files"; then
3140       $as_echo "## ------------------- ##
3141 ## File substitutions. ##
3142 ## ------------------- ##"
3143       echo
3144       for ac_var in $ac_subst_files
3145       do
3146         eval ac_val=\$$ac_var
3147         case $ac_val in
3148         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3149         esac
3150         $as_echo "$ac_var='\''$ac_val'\''"
3151       done | sort
3152       echo
3153     fi
3154
3155     if test -s confdefs.h; then
3156       $as_echo "## ----------- ##
3157 ## confdefs.h. ##
3158 ## ----------- ##"
3159       echo
3160       cat confdefs.h
3161       echo
3162     fi
3163     test "$ac_signal" != 0 &&
3164       $as_echo "$as_me: caught signal $ac_signal"
3165     $as_echo "$as_me: exit $exit_status"
3166   } >&5
3167   rm -f core *.core core.conftest.* &&
3168     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3169     exit $exit_status
3170 ' 0
3171 for ac_signal in 1 2 13 15; do
3172   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3173 done
3174 ac_signal=0
3175
3176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3177 rm -f -r conftest* confdefs.h
3178
3179 $as_echo "/* confdefs.h */" > confdefs.h
3180
3181 # Predefined preprocessor variables.
3182
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_NAME "$PACKAGE_NAME"
3185 _ACEOF
3186
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3189 _ACEOF
3190
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3193 _ACEOF
3194
3195 cat >>confdefs.h <<_ACEOF
3196 #define PACKAGE_STRING "$PACKAGE_STRING"
3197 _ACEOF
3198
3199 cat >>confdefs.h <<_ACEOF
3200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3201 _ACEOF
3202
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE_URL "$PACKAGE_URL"
3205 _ACEOF
3206
3207
3208 # Let the site file select an alternate cache file if it wants to.
3209 # Prefer an explicitly selected file to automatically selected ones.
3210 ac_site_file1=NONE
3211 ac_site_file2=NONE
3212 if test -n "$CONFIG_SITE"; then
3213   # We do not want a PATH search for config.site.
3214   case $CONFIG_SITE in #((
3215     -*)  ac_site_file1=./$CONFIG_SITE;;
3216     */*) ac_site_file1=$CONFIG_SITE;;
3217     *)   ac_site_file1=./$CONFIG_SITE;;
3218   esac
3219 elif test "x$prefix" != xNONE; then
3220   ac_site_file1=$prefix/share/config.site
3221   ac_site_file2=$prefix/etc/config.site
3222 else
3223   ac_site_file1=$ac_default_prefix/share/config.site
3224   ac_site_file2=$ac_default_prefix/etc/config.site
3225 fi
3226 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3227 do
3228   test "x$ac_site_file" = xNONE && continue
3229   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3230     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3232     sed 's/^/| /' "$ac_site_file" >&5
3233     . "$ac_site_file" \
3234       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "failed to load site script $ac_site_file
3237 See \`config.log' for more details" "$LINENO" 5; }
3238   fi
3239 done
3240
3241 if test -r "$cache_file"; then
3242   # Some versions of bash will fail to source /dev/null (special files
3243   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3244   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3245     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3246 $as_echo "$as_me: loading cache $cache_file" >&6;}
3247     case $cache_file in
3248       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3249       *)                      . "./$cache_file";;
3250     esac
3251   fi
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3254 $as_echo "$as_me: creating cache $cache_file" >&6;}
3255   >$cache_file
3256 fi
3257
3258 as_fn_append ac_header_list " unistd.h"
3259 as_fn_append ac_func_list " symlink"
3260 as_fn_append ac_func_list " getprogname"
3261 as_fn_append ac_func_list " getexecname"
3262 as_fn_append ac_header_list " sys/time.h"
3263 as_fn_append ac_header_list " sys/socket.h"
3264 as_fn_append ac_func_list " gettimeofday"
3265 as_fn_append ac_header_list " limits.h"
3266 as_fn_append ac_func_list " lstat"
3267 as_fn_append ac_header_list " sys/mman.h"
3268 as_fn_append ac_func_list " mprotect"
3269 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3270 as_fn_append ac_header_list " sys/param.h"
3271 as_fn_append ac_func_list " setenv"
3272 as_fn_append ac_func_list " sigaction"
3273 as_fn_append ac_func_list " sigaltstack"
3274 as_fn_append ac_func_list " siginterrupt"
3275 as_fn_append ac_func_list " snprintf"
3276 as_fn_append ac_header_list " sys/stat.h"
3277 as_fn_append ac_header_list " wchar.h"
3278 as_fn_append ac_header_list " stdint.h"
3279 as_fn_append ac_func_list " strndup"
3280 as_fn_append ac_header_list " sys/select.h"
3281 as_fn_append ac_header_list " sys/wait.h"
3282 as_fn_append ac_func_list " vasnprintf"
3283 as_fn_append ac_header_list " features.h"
3284 as_fn_append ac_header_list " crtdefs.h"
3285 # Check that the precious variables saved in the cache have kept the same
3286 # value.
3287 ac_cache_corrupted=false
3288 for ac_var in $ac_precious_vars; do
3289   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3290   eval ac_new_set=\$ac_env_${ac_var}_set
3291   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3292   eval ac_new_val=\$ac_env_${ac_var}_value
3293   case $ac_old_set,$ac_new_set in
3294     set,)
3295       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3297       ac_cache_corrupted=: ;;
3298     ,set)
3299       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3301       ac_cache_corrupted=: ;;
3302     ,);;
3303     *)
3304       if test "x$ac_old_val" != "x$ac_new_val"; then
3305         # differences in whitespace do not lead to failure.
3306         ac_old_val_w=`echo x $ac_old_val`
3307         ac_new_val_w=`echo x $ac_new_val`
3308         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3309           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3311           ac_cache_corrupted=:
3312         else
3313           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3315           eval $ac_var=\$ac_old_val
3316         fi
3317         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3318 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3319         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3320 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3321       fi;;
3322   esac
3323   # Pass precious variables to config.status.
3324   if test "$ac_new_set" = set; then
3325     case $ac_new_val in
3326     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3327     *) ac_arg=$ac_var=$ac_new_val ;;
3328     esac
3329     case " $ac_configure_args " in
3330       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3331       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3332     esac
3333   fi
3334 done
3335 if $ac_cache_corrupted; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3340   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3341 fi
3342 ## -------------------- ##
3343 ## Main body of script. ##
3344 ## -------------------- ##
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351
3352
3353 ac_aux_dir=
3354 for ac_dir in build-aux "$srcdir"/build-aux; do
3355   if test -f "$ac_dir/install-sh"; then
3356     ac_aux_dir=$ac_dir
3357     ac_install_sh="$ac_aux_dir/install-sh -c"
3358     break
3359   elif test -f "$ac_dir/install.sh"; then
3360     ac_aux_dir=$ac_dir
3361     ac_install_sh="$ac_aux_dir/install.sh -c"
3362     break
3363   elif test -f "$ac_dir/shtool"; then
3364     ac_aux_dir=$ac_dir
3365     ac_install_sh="$ac_aux_dir/shtool install -c"
3366     break
3367   fi
3368 done
3369 if test -z "$ac_aux_dir"; then
3370   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3371 fi
3372
3373 # These three variables are undocumented and unsupported,
3374 # and are intended to be withdrawn in a future Autoconf release.
3375 # They can cause serious problems if a builder's source tree is in a directory
3376 # whose full name contains unusual characters.
3377 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3378 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3379 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3380
3381
3382 am__api_version='1.16'
3383
3384 # Find a good install program.  We prefer a C program (faster),
3385 # so one script is as good as another.  But avoid the broken or
3386 # incompatible versions:
3387 # SysV /etc/install, /usr/sbin/install
3388 # SunOS /usr/etc/install
3389 # IRIX /sbin/install
3390 # AIX /bin/install
3391 # AmigaOS /C/install, which installs bootblocks on floppy discs
3392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3395 # OS/2's system install, which has a completely different semantic
3396 # ./install, which can be erroneously created by make from ./install.sh.
3397 # Reject install programs that cannot install multiple files.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3400 if test -z "$INSTALL"; then
3401 if ${ac_cv_path_install+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407   IFS=$as_save_IFS
3408   test -z "$as_dir" && as_dir=.
3409     # Account for people who put trailing slashes in PATH elements.
3410 case $as_dir/ in #((
3411   ./ | .// | /[cC]/* | \
3412   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3413   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3414   /usr/ucb/* ) ;;
3415   *)
3416     # OSF1 and SCO ODT 3.0 have their own names for install.
3417     # Don't use installbsd from OSF since it installs stuff as root
3418     # by default.
3419     for ac_prog in ginstall scoinst install; do
3420       for ac_exec_ext in '' $ac_executable_extensions; do
3421         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3422           if test $ac_prog = install &&
3423             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3424             # AIX install.  It has an incompatible calling convention.
3425             :
3426           elif test $ac_prog = install &&
3427             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3428             # program-specific install script used by HP pwplus--don't use.
3429             :
3430           else
3431             rm -rf conftest.one conftest.two conftest.dir
3432             echo one > conftest.one
3433             echo two > conftest.two
3434             mkdir conftest.dir
3435             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3436               test -s conftest.one && test -s conftest.two &&
3437               test -s conftest.dir/conftest.one &&
3438               test -s conftest.dir/conftest.two
3439             then
3440               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3441               break 3
3442             fi
3443           fi
3444         fi
3445       done
3446     done
3447     ;;
3448 esac
3449
3450   done
3451 IFS=$as_save_IFS
3452
3453 rm -rf conftest.one conftest.two conftest.dir
3454
3455 fi
3456   if test "${ac_cv_path_install+set}" = set; then
3457     INSTALL=$ac_cv_path_install
3458   else
3459     # As a last resort, use the slow shell script.  Don't cache a
3460     # value for INSTALL within a source directory, because that will
3461     # break other packages using the cache if that directory is
3462     # removed, or if the value is a relative name.
3463     INSTALL=$ac_install_sh
3464   fi
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3467 $as_echo "$INSTALL" >&6; }
3468
3469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3470 # It thinks the first close brace ends the variable substitution.
3471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3472
3473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3474
3475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3476
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3478 $as_echo_n "checking whether build environment is sane... " >&6; }
3479 # Reject unsafe characters in $srcdir or the absolute working directory
3480 # name.  Accept space and tab only in the latter.
3481 am_lf='
3482 '
3483 case `pwd` in
3484   *[\\\"\#\$\&\'\`$am_lf]*)
3485     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3486 esac
3487 case $srcdir in
3488   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3489     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3490 esac
3491
3492 # Do 'set' in a subshell so we don't clobber the current shell's
3493 # arguments.  Must try -L first in case configure is actually a
3494 # symlink; some systems play weird games with the mod time of symlinks
3495 # (eg FreeBSD returns the mod time of the symlink's containing
3496 # directory).
3497 if (
3498    am_has_slept=no
3499    for am_try in 1 2; do
3500      echo "timestamp, slept: $am_has_slept" > conftest.file
3501      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3502      if test "$*" = "X"; then
3503         # -L didn't work.
3504         set X `ls -t "$srcdir/configure" conftest.file`
3505      fi
3506      if test "$*" != "X $srcdir/configure conftest.file" \
3507         && test "$*" != "X conftest.file $srcdir/configure"; then
3508
3509         # If neither matched, then we have a broken ls.  This can happen
3510         # if, for instance, CONFIG_SHELL is bash and it inherits a
3511         # broken ls alias from the environment.  This has actually
3512         # happened.  Such a system could not be considered "sane".
3513         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3514   alias in your environment" "$LINENO" 5
3515      fi
3516      if test "$2" = conftest.file || test $am_try -eq 2; then
3517        break
3518      fi
3519      # Just in case.
3520      sleep 1
3521      am_has_slept=yes
3522    done
3523    test "$2" = conftest.file
3524    )
3525 then
3526    # Ok.
3527    :
3528 else
3529    as_fn_error $? "newly created file is older than distributed files!
3530 Check your system clock" "$LINENO" 5
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534 # If we didn't sleep, we still need to ensure time stamps of config.status and
3535 # generated files are strictly newer.
3536 am_sleep_pid=
3537 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3538   ( sleep 1 ) &
3539   am_sleep_pid=$!
3540 fi
3541
3542 rm -f conftest.file
3543
3544 test "$program_prefix" != NONE &&
3545   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3546 # Use a double $ so make ignores it.
3547 test "$program_suffix" != NONE &&
3548   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3549 # Double any \ or $.
3550 # By default was `s,x,x', remove it if useless.
3551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553
3554 # Expand $ac_aux_dir to an absolute path.
3555 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3556
3557 if test x"${MISSING+set}" != xset; then
3558   case $am_aux_dir in
3559   *\ * | *\     *)
3560     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3561   *)
3562     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3563   esac
3564 fi
3565 # Use eval to expand $SHELL
3566 if eval "$MISSING --is-lightweight"; then
3567   am_missing_run="$MISSING "
3568 else
3569   am_missing_run=
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3571 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3572 fi
3573
3574 if test x"${install_sh+set}" != xset; then
3575   case $am_aux_dir in
3576   *\ * | *\     *)
3577     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3578   *)
3579     install_sh="\${SHELL} $am_aux_dir/install-sh"
3580   esac
3581 fi
3582
3583 # Installed binaries are usually stripped using 'strip' when the user
3584 # run "make install-strip".  However 'strip' might not be the right
3585 # tool to use in cross-compilation environments, therefore Automake
3586 # will honor the 'STRIP' environment variable to overrule this program.
3587 if test "$cross_compiling" != no; then
3588   if test -n "$ac_tool_prefix"; then
3589   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}strip; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_STRIP+:} false; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   if test -n "$STRIP"; then
3597   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604     for ac_exec_ext in '' $ac_executable_extensions; do
3605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608     break 2
3609   fi
3610 done
3611   done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 STRIP=$ac_cv_prog_STRIP
3617 if test -n "$STRIP"; then
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3619 $as_echo "$STRIP" >&6; }
3620 else
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 fi
3624
3625
3626 fi
3627 if test -z "$ac_cv_prog_STRIP"; then
3628   ac_ct_STRIP=$STRIP
3629   # Extract the first word of "strip", so it can be a program name with args.
3630 set dummy strip; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3634   $as_echo_n "(cached) " >&6
3635 else
3636   if test -n "$ac_ct_STRIP"; then
3637   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646     ac_cv_prog_ac_ct_STRIP="strip"
3647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648     break 2
3649   fi
3650 done
3651   done
3652 IFS=$as_save_IFS
3653
3654 fi
3655 fi
3656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3657 if test -n "$ac_ct_STRIP"; then
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3659 $as_echo "$ac_ct_STRIP" >&6; }
3660 else
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 fi
3664
3665   if test "x$ac_ct_STRIP" = x; then
3666     STRIP=":"
3667   else
3668     case $cross_compiling:$ac_tool_warned in
3669 yes:)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3672 ac_tool_warned=yes ;;
3673 esac
3674     STRIP=$ac_ct_STRIP
3675   fi
3676 else
3677   STRIP="$ac_cv_prog_STRIP"
3678 fi
3679
3680 fi
3681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3682
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3685 if test -z "$MKDIR_P"; then
3686   if ${ac_cv_path_mkdir+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694     for ac_prog in mkdir gmkdir; do
3695          for ac_exec_ext in '' $ac_executable_extensions; do
3696            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3697            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3698              'mkdir (GNU coreutils) '* | \
3699              'mkdir (coreutils) '* | \
3700              'mkdir (fileutils) '4.1*)
3701                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3702                break 3;;
3703            esac
3704          done
3705        done
3706   done
3707 IFS=$as_save_IFS
3708
3709 fi
3710
3711   test -d ./--version && rmdir ./--version
3712   if test "${ac_cv_path_mkdir+set}" = set; then
3713     MKDIR_P="$ac_cv_path_mkdir -p"
3714   else
3715     # As a last resort, use the slow shell script.  Don't cache a
3716     # value for MKDIR_P within a source directory, because that will
3717     # break other packages using the cache if that directory is
3718     # removed, or if the value is a relative name.
3719     MKDIR_P="$ac_install_sh -d"
3720   fi
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3723 $as_echo "$MKDIR_P" >&6; }
3724
3725 for ac_prog in gawk mawk nawk awk
3726 do
3727   # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_AWK+:} false; then :
3732   $as_echo_n "(cached) " >&6
3733 else
3734   if test -n "$AWK"; then
3735   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742     for ac_exec_ext in '' $ac_executable_extensions; do
3743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744     ac_cv_prog_AWK="$ac_prog"
3745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747   fi
3748 done
3749   done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 AWK=$ac_cv_prog_AWK
3755 if test -n "$AWK"; then
3756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3757 $as_echo "$AWK" >&6; }
3758 else
3759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764   test -n "$AWK" && break
3765 done
3766
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3769 set x ${MAKE-make}
3770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3771 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   cat >conftest.make <<\_ACEOF
3775 SHELL = /bin/sh
3776 all:
3777         @echo '@@@%%%=$(MAKE)=@@@%%%'
3778 _ACEOF
3779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3781   *@@@%%%=?*=@@@%%%*)
3782     eval ac_cv_prog_make_${ac_make}_set=yes;;
3783   *)
3784     eval ac_cv_prog_make_${ac_make}_set=no;;
3785 esac
3786 rm -f conftest.make
3787 fi
3788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 $as_echo "yes" >&6; }
3791   SET_MAKE=
3792 else
3793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795   SET_MAKE="MAKE=${MAKE-make}"
3796 fi
3797
3798 rm -rf .tst 2>/dev/null
3799 mkdir .tst 2>/dev/null
3800 if test -d .tst; then
3801   am__leading_dot=.
3802 else
3803   am__leading_dot=_
3804 fi
3805 rmdir .tst 2>/dev/null
3806
3807 # Check whether --enable-silent-rules was given.
3808 if test "${enable_silent_rules+set}" = set; then :
3809   enableval=$enable_silent_rules;
3810 fi
3811
3812 case $enable_silent_rules in # (((
3813   yes) AM_DEFAULT_VERBOSITY=0;;
3814    no) AM_DEFAULT_VERBOSITY=1;;
3815     *) AM_DEFAULT_VERBOSITY=1;;
3816 esac
3817 am_make=${MAKE-make}
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3819 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3820 if ${am_cv_make_support_nested_variables+:} false; then :
3821   $as_echo_n "(cached) " >&6
3822 else
3823   if $as_echo 'TRUE=$(BAR$(V))
3824 BAR0=false
3825 BAR1=true
3826 V=1
3827 am__doit:
3828         @$(TRUE)
3829 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3830   am_cv_make_support_nested_variables=yes
3831 else
3832   am_cv_make_support_nested_variables=no
3833 fi
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3836 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3837 if test $am_cv_make_support_nested_variables = yes; then
3838     AM_V='$(V)'
3839   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3840 else
3841   AM_V=$AM_DEFAULT_VERBOSITY
3842   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3843 fi
3844 AM_BACKSLASH='\'
3845
3846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3847   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3848   # is not polluted with repeated "-I."
3849   am__isrc=' -I$(srcdir)'
3850   # test to see if srcdir already configured
3851   if test -f $srcdir/config.status; then
3852     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3853   fi
3854 fi
3855
3856 # test whether we have cygpath
3857 if test -z "$CYGPATH_W"; then
3858   if (cygpath --version) >/dev/null 2>/dev/null; then
3859     CYGPATH_W='cygpath -w'
3860   else
3861     CYGPATH_W=echo
3862   fi
3863 fi
3864
3865
3866 # Define the identity of the package.
3867  PACKAGE='libpipeline'
3868  VERSION='1.5.1'
3869
3870
3871 cat >>confdefs.h <<_ACEOF
3872 #define PACKAGE "$PACKAGE"
3873 _ACEOF
3874
3875
3876 cat >>confdefs.h <<_ACEOF
3877 #define VERSION "$VERSION"
3878 _ACEOF
3879
3880 # Some tools Automake needs.
3881
3882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3883
3884
3885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3886
3887
3888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3889
3890
3891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3892
3893
3894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3895
3896 # For better backward compatibility.  To be removed once Automake 1.9.x
3897 # dies out for good.  For more background, see:
3898 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3899 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3900 mkdir_p='$(MKDIR_P)'
3901
3902 # We need awk for the "check" target (and possibly the TAP driver).  The
3903 # system "awk" is bad on some platforms.
3904 # Always define AMTAR for backward compatibility.  Yes, it's still used
3905 # in the wild :-(  We should find a proper way to deprecate it ...
3906 AMTAR='$${TAR-tar}'
3907
3908
3909 # We'll loop over all known methods to create a tar archive until one works.
3910 _am_tools='gnutar  pax cpio none'
3911
3912 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3913
3914
3915
3916
3917
3918
3919 # POSIX will say in a future version that running "rm -f" with no argument
3920 # is OK; and we want to be able to make that assumption in our Makefile
3921 # recipes.  So use an aggressive probe to check that the usage we want is
3922 # actually supported "in the wild" to an acceptable degree.
3923 # See automake bug#10828.
3924 # To make any issue more visible, cause the running configure to be aborted
3925 # by default if the 'rm' program in use doesn't match our expectations; the
3926 # user can still override this though.
3927 if rm -f && rm -fr && rm -rf; then : OK; else
3928   cat >&2 <<'END'
3929 Oops!
3930
3931 Your 'rm' program seems unable to run without file operands specified
3932 on the command line, even when the '-f' option is present.  This is contrary
3933 to the behaviour of most rm programs out there, and not conforming with
3934 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3935
3936 Please tell bug-automake@gnu.org about your system, including the value
3937 of your $PATH and any error possibly output before this message.  This
3938 can help us improve future automake versions.
3939
3940 END
3941   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3942     echo 'Configuration will proceed anyway, since you have set the' >&2
3943     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3944     echo >&2
3945   else
3946     cat >&2 <<'END'
3947 Aborting the configuration process, to ensure you take notice of the issue.
3948
3949 You can download and install GNU coreutils to get an 'rm' implementation
3950 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3951
3952 If you want to complete the configuration process using your problematic
3953 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3954 to "yes", and re-run configure.
3955
3956 END
3957     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3958   fi
3959 fi
3960
3961
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3964     # Check whether --enable-maintainer-mode was given.
3965 if test "${enable_maintainer_mode+set}" = set; then :
3966   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3967 else
3968   USE_MAINTAINER_MODE=no
3969 fi
3970
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3972 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3973    if test $USE_MAINTAINER_MODE = yes; then
3974   MAINTAINER_MODE_TRUE=
3975   MAINTAINER_MODE_FALSE='#'
3976 else
3977   MAINTAINER_MODE_TRUE='#'
3978   MAINTAINER_MODE_FALSE=
3979 fi
3980
3981   MAINT=$MAINTAINER_MODE_TRUE
3982
3983
3984 # Check whether --enable-silent-rules was given.
3985 if test "${enable_silent_rules+set}" = set; then :
3986   enableval=$enable_silent_rules;
3987 fi
3988
3989 case $enable_silent_rules in # (((
3990   yes) AM_DEFAULT_VERBOSITY=0;;
3991    no) AM_DEFAULT_VERBOSITY=1;;
3992     *) AM_DEFAULT_VERBOSITY=0;;
3993 esac
3994 am_make=${MAKE-make}
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3996 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3997 if ${am_cv_make_support_nested_variables+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if $as_echo 'TRUE=$(BAR$(V))
4001 BAR0=false
4002 BAR1=true
4003 V=1
4004 am__doit:
4005         @$(TRUE)
4006 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4007   am_cv_make_support_nested_variables=yes
4008 else
4009   am_cv_make_support_nested_variables=no
4010 fi
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4013 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4014 if test $am_cv_make_support_nested_variables = yes; then
4015     AM_V='$(V)'
4016   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4017 else
4018   AM_V=$AM_DEFAULT_VERBOSITY
4019   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4020 fi
4021 AM_BACKSLASH='\'
4022
4023
4024
4025 DEPDIR="${am__leading_dot}deps"
4026
4027 ac_config_commands="$ac_config_commands depfiles"
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4030 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4031 cat > confinc.mk << 'END'
4032 am__doit:
4033         @echo this is the am__doit target >confinc.out
4034 .PHONY: am__doit
4035 END
4036 am__include="#"
4037 am__quote=
4038 # BSD make does it like this.
4039 echo '.include "confinc.mk" # ignored' > confmf.BSD
4040 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4041 echo 'include confinc.mk # ignored' > confmf.GNU
4042 _am_result=no
4043 for s in GNU BSD; do
4044   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4045    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4046    ac_status=$?
4047    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048    (exit $ac_status); }
4049   case $?:`cat confinc.out 2>/dev/null` in #(
4050   '0:this is the am__doit target') :
4051     case $s in #(
4052   BSD) :
4053     am__include='.include' am__quote='"' ;; #(
4054   *) :
4055     am__include='include' am__quote='' ;;
4056 esac ;; #(
4057   *) :
4058      ;;
4059 esac
4060   if test "$am__include" != "#"; then
4061     _am_result="yes ($s style)"
4062     break
4063   fi
4064 done
4065 rm -f confinc.* confmf.*
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4067 $as_echo "${_am_result}" >&6; }
4068
4069 # Check whether --enable-dependency-tracking was given.
4070 if test "${enable_dependency_tracking+set}" = set; then :
4071   enableval=$enable_dependency_tracking;
4072 fi
4073
4074 if test "x$enable_dependency_tracking" != xno; then
4075   am_depcomp="$ac_aux_dir/depcomp"
4076   AMDEPBACKSLASH='\'
4077   am__nodep='_no'
4078 fi
4079  if test "x$enable_dependency_tracking" != xno; then
4080   AMDEP_TRUE=
4081   AMDEP_FALSE='#'
4082 else
4083   AMDEP_TRUE='#'
4084   AMDEP_FALSE=
4085 fi
4086
4087
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 if test -n "$ac_tool_prefix"; then
4094   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test -n "$CC"; then
4102   ac_cv_prog_CC="$CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109     for ac_exec_ext in '' $ac_executable_extensions; do
4110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116   done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 CC=$ac_cv_prog_CC
4122 if test -n "$CC"; then
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4125 else
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 fi
4132 if test -z "$ac_cv_prog_CC"; then
4133   ac_ct_CC=$CC
4134   # Extract the first word of "gcc", so it can be a program name with args.
4135 set dummy gcc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   if test -n "$ac_ct_CC"; then
4142   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149     for ac_exec_ext in '' $ac_executable_extensions; do
4150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151     ac_cv_prog_ac_ct_CC="gcc"
4152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156   done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 $as_echo "$ac_ct_CC" >&6; }
4165 else
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170   if test "x$ac_ct_CC" = x; then
4171     CC=""
4172   else
4173     case $cross_compiling:$ac_tool_warned in
4174 yes:)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned=yes ;;
4178 esac
4179     CC=$ac_ct_CC
4180   fi
4181 else
4182   CC="$ac_cv_prog_CC"
4183 fi
4184
4185 if test -z "$CC"; then
4186           if test -n "$ac_tool_prefix"; then
4187     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}cc; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_CC+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if test -n "$CC"; then
4195   ac_cv_prog_CC="$CC" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204     ac_cv_prog_CC="${ac_tool_prefix}cc"
4205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209   done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 CC=$ac_cv_prog_CC
4215 if test -n "$CC"; then
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4218 else
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223
4224   fi
4225 fi
4226 if test -z "$CC"; then
4227   # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   if test -n "$CC"; then
4235   ac_cv_prog_CC="$CC" # Let the user override the test.
4236 else
4237   ac_prog_rejected=no
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243     for ac_exec_ext in '' $ac_executable_extensions; do
4244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246        ac_prog_rejected=yes
4247        continue
4248      fi
4249     ac_cv_prog_CC="cc"
4250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254   done
4255 IFS=$as_save_IFS
4256
4257 if test $ac_prog_rejected = yes; then
4258   # We found a bogon in the path, so make sure we never use it.
4259   set dummy $ac_cv_prog_CC
4260   shift
4261   if test $# != 0; then
4262     # We chose a different compiler from the bogus one.
4263     # However, it has the same basename, so the bogon will be chosen
4264     # first if we set CC to just the basename; use the full file name.
4265     shift
4266     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4267   fi
4268 fi
4269 fi
4270 fi
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281 fi
4282 if test -z "$CC"; then
4283   if test -n "$ac_tool_prefix"; then
4284   for ac_prog in cl.exe
4285   do
4286     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_CC+:} false; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   if test -n "$CC"; then
4294   ac_cv_prog_CC="$CC" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299   IFS=$as_save_IFS
4300   test -z "$as_dir" && as_dir=.
4301     for ac_exec_ext in '' $ac_executable_extensions; do
4302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305     break 2
4306   fi
4307 done
4308   done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 CC=$ac_cv_prog_CC
4314 if test -n "$CC"; then
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 $as_echo "$CC" >&6; }
4317 else
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322
4323     test -n "$CC" && break
4324   done
4325 fi
4326 if test -z "$CC"; then
4327   ac_ct_CC=$CC
4328   for ac_prog in cl.exe
4329 do
4330   # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337   if test -n "$ac_ct_CC"; then
4338   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345     for ac_exec_ext in '' $ac_executable_extensions; do
4346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347     ac_cv_prog_ac_ct_CC="$ac_prog"
4348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352   done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 $as_echo "$ac_ct_CC" >&6; }
4361 else
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367   test -n "$ac_ct_CC" && break
4368 done
4369
4370   if test "x$ac_ct_CC" = x; then
4371     CC=""
4372   else
4373     case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379     CC=$ac_ct_CC
4380   fi
4381 fi
4382
4383 fi
4384
4385
4386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error $? "no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details" "$LINENO" 5; }
4390
4391 # Provide some information about the compiler.
4392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4393 set X $ac_compile
4394 ac_compiler=$2
4395 for ac_option in --version -v -V -qversion; do
4396   { { ac_try="$ac_compiler $ac_option >&5"
4397 case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4404   ac_status=$?
4405   if test -s conftest.err; then
4406     sed '10a\
4407 ... rest of stderr output deleted ...
4408          10q' conftest.err >conftest.er1
4409     cat conftest.er1 >&5
4410   fi
4411   rm -f conftest.er1 conftest.err
4412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413   test $ac_status = 0; }
4414 done
4415
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h.  */
4418
4419 int
4420 main ()
4421 {
4422
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4431 # of exeext.
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433 $as_echo_n "checking whether the C compiler works... " >&6; }
4434 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4435
4436 # The possible output files:
4437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4438
4439 ac_rmfiles=
4440 for ac_file in $ac_files
4441 do
4442   case $ac_file in
4443     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4445   esac
4446 done
4447 rm -f $ac_rmfiles
4448
4449 if { { ac_try="$ac_link_default"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456   (eval "$ac_link_default") 2>&5
4457   ac_status=$?
4458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459   test $ac_status = 0; }; then :
4460   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4463 # so that the user can short-circuit this test for compilers unknown to
4464 # Autoconf.
4465 for ac_file in $ac_files ''
4466 do
4467   test -f "$ac_file" || continue
4468   case $ac_file in
4469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4470         ;;
4471     [ab].out )
4472         # We found the default executable, but exeext='' is most
4473         # certainly right.
4474         break;;
4475     *.* )
4476         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4477         then :; else
4478            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479         fi
4480         # We set ac_cv_exeext here because the later test for it is not
4481         # safe: cross compilers may not add the suffix if given an `-o'
4482         # argument, so we may need to know it at that point already.
4483         # Even if this section looks crufty: it has the advantage of
4484         # actually working.
4485         break;;
4486     * )
4487         break;;
4488   esac
4489 done
4490 test "$ac_cv_exeext" = no && ac_cv_exeext=
4491
4492 else
4493   ac_file=''
4494 fi
4495 if test -z "$ac_file"; then :
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error 77 "C compiler cannot create executables
4504 See \`config.log' for more details" "$LINENO" 5; }
4505 else
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510 $as_echo_n "checking for C compiler default output file name... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512 $as_echo "$ac_file" >&6; }
4513 ac_exeext=$ac_cv_exeext
4514
4515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4516 ac_clean_files=$ac_clean_files_save
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518 $as_echo_n "checking for suffix of executables... " >&6; }
4519 if { { ac_try="$ac_link"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526   (eval "$ac_link") 2>&5
4527   ac_status=$?
4528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529   test $ac_status = 0; }; then :
4530   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4531 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4532 # work properly (i.e., refer to `conftest.exe'), while it won't with
4533 # `rm'.
4534 for ac_file in conftest.exe conftest conftest.*; do
4535   test -f "$ac_file" || continue
4536   case $ac_file in
4537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539           break;;
4540     * ) break;;
4541   esac
4542 done
4543 else
4544   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4547 See \`config.log' for more details" "$LINENO" 5; }
4548 fi
4549 rm -f conftest conftest$ac_cv_exeext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551 $as_echo "$ac_cv_exeext" >&6; }
4552
4553 rm -f conftest.$ac_ext
4554 EXEEXT=$ac_cv_exeext
4555 ac_exeext=$EXEEXT
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558 #include <stdio.h>
4559 int
4560 main ()
4561 {
4562 FILE *f = fopen ("conftest.out", "w");
4563  return ferror (f) || fclose (f) != 0;
4564
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 ac_clean_files="$ac_clean_files conftest.out"
4570 # Check that the compiler produces executables we can run.  If not, either
4571 # the compiler is broken, or we cross compile.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573 $as_echo_n "checking whether we are cross compiling... " >&6; }
4574 if test "$cross_compiling" != yes; then
4575   { { ac_try="$ac_link"
4576 case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582   (eval "$ac_link") 2>&5
4583   ac_status=$?
4584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585   test $ac_status = 0; }
4586   if { ac_try='./conftest$ac_cv_exeext'
4587   { { case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596   test $ac_status = 0; }; }; then
4597     cross_compiling=no
4598   else
4599     if test "$cross_compiling" = maybe; then
4600         cross_compiling=yes
4601     else
4602         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot run C compiled programs.
4605 If you meant to cross compile, use \`--host'.
4606 See \`config.log' for more details" "$LINENO" 5; }
4607     fi
4608   fi
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611 $as_echo "$cross_compiling" >&6; }
4612
4613 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4614 ac_clean_files=$ac_clean_files_save
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616 $as_echo_n "checking for suffix of object files... " >&6; }
4617 if ${ac_cv_objext+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.o conftest.obj
4632 if { { ac_try="$ac_compile"
4633 case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639   (eval "$ac_compile") 2>&5
4640   ac_status=$?
4641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642   test $ac_status = 0; }; then :
4643   for ac_file in conftest.o conftest.obj conftest.*; do
4644   test -f "$ac_file" || continue;
4645   case $ac_file in
4646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4648        break;;
4649   esac
4650 done
4651 else
4652   $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of object files: cannot compile
4658 See \`config.log' for more details" "$LINENO" 5; }
4659 fi
4660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663 $as_echo "$ac_cv_objext" >&6; }
4664 OBJEXT=$ac_cv_objext
4665 ac_objext=$OBJEXT
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669   $as_echo_n "(cached) " >&6
4670 else
4671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677 #ifndef __GNUC__
4678        choke me
4679 #endif
4680
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686   ac_compiler_gnu=yes
4687 else
4688   ac_compiler_gnu=no
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4697   GCC=yes
4698 else
4699   GCC=
4700 fi
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   ac_save_c_werror_flag=$ac_c_werror_flag
4709    ac_c_werror_flag=yes
4710    ac_cv_prog_cc_g=no
4711    CFLAGS="-g"
4712    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h.  */
4714
4715 int
4716 main ()
4717 {
4718
4719   ;
4720   return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724   ac_cv_prog_cc_g=yes
4725 else
4726   CFLAGS=""
4727       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729
4730 int
4731 main ()
4732 {
4733
4734   ;
4735   return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739
4740 else
4741   ac_c_werror_flag=$ac_save_c_werror_flag
4742          CFLAGS="-g"
4743          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745
4746 int
4747 main ()
4748 {
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755   ac_cv_prog_cc_g=yes
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762    ac_c_werror_flag=$ac_save_c_werror_flag
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767   CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769   if test "$GCC" = yes; then
4770     CFLAGS="-g -O2"
4771   else
4772     CFLAGS="-g"
4773   fi
4774 else
4775   if test "$GCC" = yes; then
4776     CFLAGS="-O2"
4777   else
4778     CFLAGS=
4779   fi
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   ac_cv_prog_cc_c89=no
4787 ac_save_CC=$CC
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h.  */
4790 #include <stdarg.h>
4791 #include <stdio.h>
4792 struct stat;
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4797      char **p;
4798      int i;
4799 {
4800   return p[i];
4801 }
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4803 {
4804   char *s;
4805   va_list v;
4806   va_start (v,p);
4807   s = g (p, va_arg (v,int));
4808   va_end (v);
4809   return s;
4810 }
4811
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4813    function prototypes and stuff, but not '\xHH' hex character constants.
4814    These don't provoke an error unfortunately, instead are silently treated
4815    as 'x'.  The following induces an error, until -std is added to get
4816    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4817    array size at least.  It's necessary to write '\x00'==0 to get something
4818    that's true only with -std.  */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4820
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822    inside strings and character constants.  */
4823 #define FOO(x) 'x'
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4825
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4830 int argc;
4831 char **argv;
4832 int
4833 main ()
4834 {
4835 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4836   ;
4837   return 0;
4838 }
4839 _ACEOF
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4842 do
4843   CC="$ac_save_CC $ac_arg"
4844   if ac_fn_c_try_compile "$LINENO"; then :
4845   ac_cv_prog_cc_c89=$ac_arg
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext
4848   test "x$ac_cv_prog_cc_c89" != "xno" && break
4849 done
4850 rm -f conftest.$ac_ext
4851 CC=$ac_save_CC
4852
4853 fi
4854 # AC_CACHE_VAL
4855 case "x$ac_cv_prog_cc_c89" in
4856   x)
4857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4859   xno)
4860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4862   *)
4863     CC="$CC $ac_cv_prog_cc_c89"
4864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4866 esac
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4868
4869 fi
4870
4871 ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4883 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4884 if ${am_cv_prog_cc_c_o+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h.  */
4889
4890 int
4891 main ()
4892 {
4893
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898   # Make sure it works both with $CC and with simple cc.
4899   # Following AC_PROG_CC_C_O, we do the test twice because some
4900   # compilers refuse to overwrite an existing .o file with -o,
4901   # though they will create one.
4902   am_cv_prog_cc_c_o=yes
4903   for am_i in 1 2; do
4904     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4905    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4906    ac_status=$?
4907    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908    (exit $ac_status); } \
4909          && test -f conftest2.$ac_objext; then
4910       : OK
4911     else
4912       am_cv_prog_cc_c_o=no
4913       break
4914     fi
4915   done
4916   rm -f core conftest*
4917   unset am_i
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4920 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4921 if test "$am_cv_prog_cc_c_o" != yes; then
4922    # Losing compiler, so override with the script.
4923    # FIXME: It is wrong to rewrite CC.
4924    # But if we don't then we get into trouble of one sort or another.
4925    # A longer-term fix would be to have automake use am__CC in this case,
4926    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4927    CC="$am_aux_dir/compile $CC"
4928 fi
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934
4935
4936 depcc="$CC"   am_compiler_list=
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4939 $as_echo_n "checking dependency style of $depcc... " >&6; }
4940 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944   # We make a subdir and do the tests there.  Otherwise we can end up
4945   # making bogus files that we don't know about and never remove.  For
4946   # instance it was reported that on HP-UX the gcc test will end up
4947   # making a dummy file named 'D' -- because '-MD' means "put the output
4948   # in D".
4949   rm -rf conftest.dir
4950   mkdir conftest.dir
4951   # Copy depcomp to subdir because otherwise we won't find it if we're
4952   # using a relative directory.
4953   cp "$am_depcomp" conftest.dir
4954   cd conftest.dir
4955   # We will build objects and dependencies in a subdirectory because
4956   # it helps to detect inapplicable dependency modes.  For instance
4957   # both Tru64's cc and ICC support -MD to output dependencies as a
4958   # side effect of compilation, but ICC will put the dependencies in
4959   # the current directory while Tru64 will put them in the object
4960   # directory.
4961   mkdir sub
4962
4963   am_cv_CC_dependencies_compiler_type=none
4964   if test "$am_compiler_list" = ""; then
4965      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4966   fi
4967   am__universal=false
4968   case " $depcc " in #(
4969      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4970      esac
4971
4972   for depmode in $am_compiler_list; do
4973     # Setup a source with many dependencies, because some compilers
4974     # like to wrap large dependency lists on column 80 (with \), and
4975     # we should not choose a depcomp mode which is confused by this.
4976     #
4977     # We need to recreate these files for each test, as the compiler may
4978     # overwrite some of them when testing with obscure command lines.
4979     # This happens at least with the AIX C compiler.
4980     : > sub/conftest.c
4981     for i in 1 2 3 4 5 6; do
4982       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4984       # Solaris 10 /bin/sh.
4985       echo '/* dummy */' > sub/conftst$i.h
4986     done
4987     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988
4989     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4990     # mode.  It turns out that the SunPro C++ compiler does not properly
4991     # handle '-M -o', and we need to detect this.  Also, some Intel
4992     # versions had trouble with output in subdirs.
4993     am__obj=sub/conftest.${OBJEXT-o}
4994     am__minus_obj="-o $am__obj"
4995     case $depmode in
4996     gcc)
4997       # This depmode causes a compiler race in universal mode.
4998       test "$am__universal" = false || continue
4999       ;;
5000     nosideeffect)
5001       # After this tag, mechanisms are not by side-effect, so they'll
5002       # only be used when explicitly requested.
5003       if test "x$enable_dependency_tracking" = xyes; then
5004         continue
5005       else
5006         break
5007       fi
5008       ;;
5009     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5010       # This compiler won't grok '-c -o', but also, the minuso test has
5011       # not run yet.  These depmodes are late enough in the game, and
5012       # so weak that their functioning should not be impacted.
5013       am__obj=conftest.${OBJEXT-o}
5014       am__minus_obj=
5015       ;;
5016     none) break ;;
5017     esac
5018     if depmode=$depmode \
5019        source=sub/conftest.c object=$am__obj \
5020        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022          >/dev/null 2>conftest.err &&
5023        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027       # icc doesn't choke on unknown options, it will just issue warnings
5028       # or remarks (even with -Werror).  So we grep stderr for any message
5029       # that says an option was ignored or not supported.
5030       # When given -MP, icc 7.0 and 7.1 complain thusly:
5031       #   icc: Command line warning: ignoring option '-M'; no argument required
5032       # The diagnosis changed in icc 8.0:
5033       #   icc: Command line remark: option '-MP' not supported
5034       if (grep 'ignoring option' conftest.err ||
5035           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036         am_cv_CC_dependencies_compiler_type=$depmode
5037         break
5038       fi
5039     fi
5040   done
5041
5042   cd ..
5043   rm -rf conftest.dir
5044 else
5045   am_cv_CC_dependencies_compiler_type=none
5046 fi
5047
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5052
5053  if
5054   test "x$enable_dependency_tracking" != xno \
5055   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5056   am__fastdepCC_TRUE=
5057   am__fastdepCC_FALSE='#'
5058 else
5059   am__fastdepCC_TRUE='#'
5060   am__fastdepCC_FALSE=
5061 fi
5062
5063
5064
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5074   CPP=
5075 fi
5076 if test -z "$CPP"; then
5077   if ${ac_cv_prog_CPP+:} false; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080       # Double quotes because CPP needs to be expanded
5081     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082     do
5083       ac_preproc_ok=false
5084 for ac_c_preproc_warn_flag in '' yes
5085 do
5086   # Use a header file that comes with gcc, so configuring glibc
5087   # with a fresh cross-compiler works.
5088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089   # <limits.h> exists even on freestanding compilers.
5090   # On the NeXT, cc -E runs the code through the compiler's parser,
5091   # not just through cpp. "Syntax error" is here to catch this case.
5092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094 #ifdef __STDC__
5095 # include <limits.h>
5096 #else
5097 # include <assert.h>
5098 #endif
5099                      Syntax error
5100 _ACEOF
5101 if ac_fn_c_try_cpp "$LINENO"; then :
5102
5103 else
5104   # Broken: fails on valid input.
5105 continue
5106 fi
5107 rm -f conftest.err conftest.i conftest.$ac_ext
5108
5109   # OK, works on sane cases.  Now check whether nonexistent headers
5110   # can be detected and how.
5111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h.  */
5113 #include <ac_nonexistent.h>
5114 _ACEOF
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116   # Broken: success on invalid input.
5117 continue
5118 else
5119   # Passes both tests.
5120 ac_preproc_ok=:
5121 break
5122 fi
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5124
5125 done
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.i conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then :
5129   break
5130 fi
5131
5132     done
5133     ac_cv_prog_CPP=$CPP
5134
5135 fi
5136   CPP=$ac_cv_prog_CPP
5137 else
5138   ac_cv_prog_CPP=$CPP
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5141 $as_echo "$CPP" >&6; }
5142 ac_preproc_ok=false
5143 for ac_c_preproc_warn_flag in '' yes
5144 do
5145   # Use a header file that comes with gcc, so configuring glibc
5146   # with a fresh cross-compiler works.
5147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148   # <limits.h> exists even on freestanding compilers.
5149   # On the NeXT, cc -E runs the code through the compiler's parser,
5150   # not just through cpp. "Syntax error" is here to catch this case.
5151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h.  */
5153 #ifdef __STDC__
5154 # include <limits.h>
5155 #else
5156 # include <assert.h>
5157 #endif
5158                      Syntax error
5159 _ACEOF
5160 if ac_fn_c_try_cpp "$LINENO"; then :
5161
5162 else
5163   # Broken: fails on valid input.
5164 continue
5165 fi
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5167
5168   # OK, works on sane cases.  Now check whether nonexistent headers
5169   # can be detected and how.
5170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h.  */
5172 #include <ac_nonexistent.h>
5173 _ACEOF
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5175   # Broken: success on invalid input.
5176 continue
5177 else
5178   # Passes both tests.
5179 ac_preproc_ok=:
5180 break
5181 fi
5182 rm -f conftest.err conftest.i conftest.$ac_ext
5183
5184 done
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.i conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then :
5188
5189 else
5190   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details" "$LINENO" 5; }
5194 fi
5195
5196 ac_ext=c
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5205 if ${ac_cv_path_GREP+:} false; then :
5206   $as_echo_n "(cached) " >&6
5207 else
5208   if test -z "$GREP"; then
5209   ac_path_GREP_found=false
5210   # Loop through the user's path and test for each of PROGNAME-LIST
5211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5213 do
5214   IFS=$as_save_IFS
5215   test -z "$as_dir" && as_dir=.
5216     for ac_prog in grep ggrep; do
5217     for ac_exec_ext in '' $ac_executable_extensions; do
5218       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5219       as_fn_executable_p "$ac_path_GREP" || continue
5220 # Check for GNU ac_path_GREP and select it if it is found.
5221   # Check for GNU $ac_path_GREP
5222 case `"$ac_path_GREP" --version 2>&1` in
5223 *GNU*)
5224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5225 *)
5226   ac_count=0
5227   $as_echo_n 0123456789 >"conftest.in"
5228   while :
5229   do
5230     cat "conftest.in" "conftest.in" >"conftest.tmp"
5231     mv "conftest.tmp" "conftest.in"
5232     cp "conftest.in" "conftest.nl"
5233     $as_echo 'GREP' >> "conftest.nl"
5234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5236     as_fn_arith $ac_count + 1 && ac_count=$as_val
5237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5238       # Best one so far, save it but keep looking for a better one
5239       ac_cv_path_GREP="$ac_path_GREP"
5240       ac_path_GREP_max=$ac_count
5241     fi
5242     # 10*(2^10) chars as input seems more than enough
5243     test $ac_count -gt 10 && break
5244   done
5245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5246 esac
5247
5248       $ac_path_GREP_found && break 3
5249     done
5250   done
5251   done
5252 IFS=$as_save_IFS
5253   if test -z "$ac_cv_path_GREP"; then
5254     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5255   fi
5256 else
5257   ac_cv_path_GREP=$GREP
5258 fi
5259
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5262 $as_echo "$ac_cv_path_GREP" >&6; }
5263  GREP="$ac_cv_path_GREP"
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5267 $as_echo_n "checking for egrep... " >&6; }
5268 if ${ac_cv_path_EGREP+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5272    then ac_cv_path_EGREP="$GREP -E"
5273    else
5274      if test -z "$EGREP"; then
5275   ac_path_EGREP_found=false
5276   # Loop through the user's path and test for each of PROGNAME-LIST
5277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_prog in egrep; do
5283     for ac_exec_ext in '' $ac_executable_extensions; do
5284       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5285       as_fn_executable_p "$ac_path_EGREP" || continue
5286 # Check for GNU ac_path_EGREP and select it if it is found.
5287   # Check for GNU $ac_path_EGREP
5288 case `"$ac_path_EGREP" --version 2>&1` in
5289 *GNU*)
5290   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5291 *)
5292   ac_count=0
5293   $as_echo_n 0123456789 >"conftest.in"
5294   while :
5295   do
5296     cat "conftest.in" "conftest.in" >"conftest.tmp"
5297     mv "conftest.tmp" "conftest.in"
5298     cp "conftest.in" "conftest.nl"
5299     $as_echo 'EGREP' >> "conftest.nl"
5300     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302     as_fn_arith $ac_count + 1 && ac_count=$as_val
5303     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5304       # Best one so far, save it but keep looking for a better one
5305       ac_cv_path_EGREP="$ac_path_EGREP"
5306       ac_path_EGREP_max=$ac_count
5307     fi
5308     # 10*(2^10) chars as input seems more than enough
5309     test $ac_count -gt 10 && break
5310   done
5311   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312 esac
5313
5314       $ac_path_EGREP_found && break 3
5315     done
5316   done
5317   done
5318 IFS=$as_save_IFS
5319   if test -z "$ac_cv_path_EGREP"; then
5320     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5321   fi
5322 else
5323   ac_cv_path_EGREP=$EGREP
5324 fi
5325
5326    fi
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5329 $as_echo "$ac_cv_path_EGREP" >&6; }
5330  EGREP="$ac_cv_path_EGREP"
5331
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5334 $as_echo_n "checking for ANSI C header files... " >&6; }
5335 if ${ac_cv_header_stdc+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h.  */
5340 #include <stdlib.h>
5341 #include <stdarg.h>
5342 #include <string.h>
5343 #include <float.h>
5344
5345 int
5346 main ()
5347 {
5348
5349   ;
5350   return 0;
5351 }
5352 _ACEOF
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354   ac_cv_header_stdc=yes
5355 else
5356   ac_cv_header_stdc=no
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359
5360 if test $ac_cv_header_stdc = yes; then
5361   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h.  */
5364 #include <string.h>
5365
5366 _ACEOF
5367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368   $EGREP "memchr" >/dev/null 2>&1; then :
5369
5370 else
5371   ac_cv_header_stdc=no
5372 fi
5373 rm -f conftest*
5374
5375 fi
5376
5377 if test $ac_cv_header_stdc = yes; then
5378   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h.  */
5381 #include <stdlib.h>
5382
5383 _ACEOF
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385   $EGREP "free" >/dev/null 2>&1; then :
5386
5387 else
5388   ac_cv_header_stdc=no
5389 fi
5390 rm -f conftest*
5391
5392 fi
5393
5394 if test $ac_cv_header_stdc = yes; then
5395   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5396   if test "$cross_compiling" = yes; then :
5397   :
5398 else
5399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h.  */
5401 #include <ctype.h>
5402 #include <stdlib.h>
5403 #if ((' ' & 0x0FF) == 0x020)
5404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5406 #else
5407 # define ISLOWER(c) \
5408                    (('a' <= (c) && (c) <= 'i') \
5409                      || ('j' <= (c) && (c) <= 'r') \
5410                      || ('s' <= (c) && (c) <= 'z'))
5411 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5412 #endif
5413
5414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5415 int
5416 main ()
5417 {
5418   int i;
5419   for (i = 0; i < 256; i++)
5420     if (XOR (islower (i), ISLOWER (i))
5421         || toupper (i) != TOUPPER (i))
5422       return 2;
5423   return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_run "$LINENO"; then :
5427
5428 else
5429   ac_cv_header_stdc=no
5430 fi
5431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5432   conftest.$ac_objext conftest.beam conftest.$ac_ext
5433 fi
5434
5435 fi
5436 fi
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5438 $as_echo "$ac_cv_header_stdc" >&6; }
5439 if test $ac_cv_header_stdc = yes; then
5440
5441 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5442
5443 fi
5444
5445 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5446 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5447                   inttypes.h stdint.h unistd.h
5448 do :
5449   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5451 "
5452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5453   cat >>confdefs.h <<_ACEOF
5454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455 _ACEOF
5456
5457 fi
5458
5459 done
5460
5461
5462
5463   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5464 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5465   MINIX=yes
5466 else
5467   MINIX=
5468 fi
5469
5470
5471   if test "$MINIX" = yes; then
5472
5473 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5474
5475
5476 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5477
5478
5479 $as_echo "#define _MINIX 1" >>confdefs.h
5480
5481
5482 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5483
5484   fi
5485
5486
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5489 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h.  */
5494
5495 #         define __EXTENSIONS__ 1
5496           $ac_includes_default
5497 int
5498 main ()
5499 {
5500
5501   ;
5502   return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506   ac_cv_safe_to_define___extensions__=yes
5507 else
5508   ac_cv_safe_to_define___extensions__=no
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 fi
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5514   test $ac_cv_safe_to_define___extensions__ = yes &&
5515     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5516
5517   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5518
5519   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5520
5521   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5522
5523   $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5524
5525   $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5526
5527   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5528
5529   $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5530
5531   $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5532
5533   $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5534
5535   $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5536
5537   $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5538
5539   $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5540
5541   $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5542
5543   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5544
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5546 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5547 if ${ac_cv_should_define__xopen_source+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   ac_cv_should_define__xopen_source=no
5551      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h.  */
5553
5554           #include <wchar.h>
5555           mbstate_t x;
5556 int
5557 main ()
5558 {
5559
5560   ;
5561   return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565
5566 else
5567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h.  */
5569
5570              #define _XOPEN_SOURCE 500
5571              #include <wchar.h>
5572              mbstate_t x;
5573 int
5574 main ()
5575 {
5576
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582   ac_cv_should_define__xopen_source=yes
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5589 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5590   test $ac_cv_should_define__xopen_source = yes &&
5591     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5592
5593   $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5594
5595
5596
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tar --sort=name works" >&5
5600 $as_echo_n "checking if tar --sort=name works... " >&6; }
5601 rm -rf conftest.dir
5602 mkdir conftest.dir
5603 echo GrepMe > conftest.dir/file
5604 { echo "$as_me:$LINENO: ${TAR-tar} chof - conftest.dir --sort=name >conftest.tar" >&5
5605    (${TAR-tar} chof - conftest.dir --sort=name >conftest.tar) >&5 2>&5
5606    ac_status=$?
5607    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608    (exit $ac_status); }
5609 if test -s conftest.tar; then
5610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 $as_echo "yes" >&6; }
5612        am__tar="$am__tar --sort=name"
5613 else
5614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617 rm -rf conftest.dir
5618
5619
5620 ac_config_headers="$ac_config_headers config.h"
5621
5622 # Make sure we can run config.sub.
5623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5624   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5627 $as_echo_n "checking build system type... " >&6; }
5628 if ${ac_cv_build+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   ac_build_alias=$build_alias
5632 test "x$ac_build_alias" = x &&
5633   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5634 test "x$ac_build_alias" = x &&
5635   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5637   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5638
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5641 $as_echo "$ac_cv_build" >&6; }
5642 case $ac_cv_build in
5643 *-*-*) ;;
5644 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5645 esac
5646 build=$ac_cv_build
5647 ac_save_IFS=$IFS; IFS='-'
5648 set x $ac_cv_build
5649 shift
5650 build_cpu=$1
5651 build_vendor=$2
5652 shift; shift
5653 # Remember, the first character of IFS is used to create $*,
5654 # except with old shells:
5655 build_os=$*
5656 IFS=$ac_save_IFS
5657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5658
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5661 $as_echo_n "checking host system type... " >&6; }
5662 if ${ac_cv_host+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   if test "x$host_alias" = x; then
5666   ac_cv_host=$ac_cv_build
5667 else
5668   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5669     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5670 fi
5671
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5674 $as_echo "$ac_cv_host" >&6; }
5675 case $ac_cv_host in
5676 *-*-*) ;;
5677 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5678 esac
5679 host=$ac_cv_host
5680 ac_save_IFS=$IFS; IFS='-'
5681 set x $ac_cv_host
5682 shift
5683 host_cpu=$1
5684 host_vendor=$2
5685 shift; shift
5686 # Remember, the first character of IFS is used to create $*,
5687 # except with old shells:
5688 host_os=$*
5689 IFS=$ac_save_IFS
5690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5691
5692
5693
5694 # Check $PATH for the following programs and append suitable options.
5695 ac_ext=c
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 if test -n "$ac_tool_prefix"; then
5701   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_CC+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   if test -n "$CC"; then
5709   ac_cv_prog_CC="$CC" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 CC=$ac_cv_prog_CC
5729 if test -n "$CC"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5731 $as_echo "$CC" >&6; }
5732 else
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738 fi
5739 if test -z "$ac_cv_prog_CC"; then
5740   ac_ct_CC=$CC
5741   # Extract the first word of "gcc", so it can be a program name with args.
5742 set dummy gcc; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test -n "$ac_ct_CC"; then
5749   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_prog_ac_ct_CC="gcc"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5769 if test -n "$ac_ct_CC"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771 $as_echo "$ac_ct_CC" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777   if test "x$ac_ct_CC" = x; then
5778     CC=""
5779   else
5780     case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786     CC=$ac_ct_CC
5787   fi
5788 else
5789   CC="$ac_cv_prog_CC"
5790 fi
5791
5792 if test -z "$CC"; then
5793           if test -n "$ac_tool_prefix"; then
5794     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}cc; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_CC+:} false; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   if test -n "$CC"; then
5802   ac_cv_prog_CC="$CC" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809     for ac_exec_ext in '' $ac_executable_extensions; do
5810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_prog_CC="${ac_tool_prefix}cc"
5812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816   done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 CC=$ac_cv_prog_CC
5822 if test -n "$CC"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824 $as_echo "$CC" >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830
5831   fi
5832 fi
5833 if test -z "$CC"; then
5834   # Extract the first word of "cc", so it can be a program name with args.
5835 set dummy cc; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_CC+:} false; then :
5839   $as_echo_n "(cached) " >&6
5840 else
5841   if test -n "$CC"; then
5842   ac_cv_prog_CC="$CC" # Let the user override the test.
5843 else
5844   ac_prog_rejected=no
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850     for ac_exec_ext in '' $ac_executable_extensions; do
5851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5853        ac_prog_rejected=yes
5854        continue
5855      fi
5856     ac_cv_prog_CC="cc"
5857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861   done
5862 IFS=$as_save_IFS
5863
5864 if test $ac_prog_rejected = yes; then
5865   # We found a bogon in the path, so make sure we never use it.
5866   set dummy $ac_cv_prog_CC
5867   shift
5868   if test $# != 0; then
5869     # We chose a different compiler from the bogus one.
5870     # However, it has the same basename, so the bogon will be chosen
5871     # first if we set CC to just the basename; use the full file name.
5872     shift
5873     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5874   fi
5875 fi
5876 fi
5877 fi
5878 CC=$ac_cv_prog_CC
5879 if test -n "$CC"; then
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5881 $as_echo "$CC" >&6; }
5882 else
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887
5888 fi
5889 if test -z "$CC"; then
5890   if test -n "$ac_tool_prefix"; then
5891   for ac_prog in cl.exe
5892   do
5893     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_CC+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   if test -n "$CC"; then
5901   ac_cv_prog_CC="$CC" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908     for ac_exec_ext in '' $ac_executable_extensions; do
5909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915   done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 CC=$ac_cv_prog_CC
5921 if test -n "$CC"; then
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5923 $as_echo "$CC" >&6; }
5924 else
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929
5930     test -n "$CC" && break
5931   done
5932 fi
5933 if test -z "$CC"; then
5934   ac_ct_CC=$CC
5935   for ac_prog in cl.exe
5936 do
5937   # Extract the first word of "$ac_prog", so it can be a program name with args.
5938 set dummy $ac_prog; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   if test -n "$ac_ct_CC"; then
5945   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954     ac_cv_prog_ac_ct_CC="$ac_prog"
5955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959   done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5965 if test -n "$ac_ct_CC"; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5967 $as_echo "$ac_ct_CC" >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973
5974   test -n "$ac_ct_CC" && break
5975 done
5976
5977   if test "x$ac_ct_CC" = x; then
5978     CC=""
5979   else
5980     case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5985 esac
5986     CC=$ac_ct_CC
5987   fi
5988 fi
5989
5990 fi
5991
5992
5993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5995 as_fn_error $? "no acceptable C compiler found in \$PATH
5996 See \`config.log' for more details" "$LINENO" 5; }
5997
5998 # Provide some information about the compiler.
5999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6000 set X $ac_compile
6001 ac_compiler=$2
6002 for ac_option in --version -v -V -qversion; do
6003   { { ac_try="$ac_compiler $ac_option >&5"
6004 case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6009 $as_echo "$ac_try_echo"; } >&5
6010   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6011   ac_status=$?
6012   if test -s conftest.err; then
6013     sed '10a\
6014 ... rest of stderr output deleted ...
6015          10q' conftest.err >conftest.er1
6016     cat conftest.er1 >&5
6017   fi
6018   rm -f conftest.er1 conftest.err
6019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020   test $ac_status = 0; }
6021 done
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6025 if ${ac_cv_c_compiler_gnu+:} false; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h.  */
6030
6031 int
6032 main ()
6033 {
6034 #ifndef __GNUC__
6035        choke me
6036 #endif
6037
6038   ;
6039   return 0;
6040 }
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043   ac_compiler_gnu=yes
6044 else
6045   ac_compiler_gnu=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6049
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6053 if test $ac_compiler_gnu = yes; then
6054   GCC=yes
6055 else
6056   GCC=
6057 fi
6058 ac_test_CFLAGS=${CFLAGS+set}
6059 ac_save_CFLAGS=$CFLAGS
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6062 if ${ac_cv_prog_cc_g+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   ac_save_c_werror_flag=$ac_c_werror_flag
6066    ac_c_werror_flag=yes
6067    ac_cv_prog_cc_g=no
6068    CFLAGS="-g"
6069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h.  */
6071
6072 int
6073 main ()
6074 {
6075
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081   ac_cv_prog_cc_g=yes
6082 else
6083   CFLAGS=""
6084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h.  */
6086
6087 int
6088 main ()
6089 {
6090
6091   ;
6092   return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096
6097 else
6098   ac_c_werror_flag=$ac_save_c_werror_flag
6099          CFLAGS="-g"
6100          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h.  */
6102
6103 int
6104 main ()
6105 {
6106
6107   ;
6108   return 0;
6109 }
6110 _ACEOF
6111 if ac_fn_c_try_compile "$LINENO"; then :
6112   ac_cv_prog_cc_g=yes
6113 fi
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 fi
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119    ac_c_werror_flag=$ac_save_c_werror_flag
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6122 $as_echo "$ac_cv_prog_cc_g" >&6; }
6123 if test "$ac_test_CFLAGS" = set; then
6124   CFLAGS=$ac_save_CFLAGS
6125 elif test $ac_cv_prog_cc_g = yes; then
6126   if test "$GCC" = yes; then
6127     CFLAGS="-g -O2"
6128   else
6129     CFLAGS="-g"
6130   fi
6131 else
6132   if test "$GCC" = yes; then
6133     CFLAGS="-O2"
6134   else
6135     CFLAGS=
6136   fi
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6140 if ${ac_cv_prog_cc_c89+:} false; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   ac_cv_prog_cc_c89=no
6144 ac_save_CC=$CC
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h.  */
6147 #include <stdarg.h>
6148 #include <stdio.h>
6149 struct stat;
6150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6151 struct buf { int x; };
6152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6153 static char *e (p, i)
6154      char **p;
6155      int i;
6156 {
6157   return p[i];
6158 }
6159 static char *f (char * (*g) (char **, int), char **p, ...)
6160 {
6161   char *s;
6162   va_list v;
6163   va_start (v,p);
6164   s = g (p, va_arg (v,int));
6165   va_end (v);
6166   return s;
6167 }
6168
6169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6170    function prototypes and stuff, but not '\xHH' hex character constants.
6171    These don't provoke an error unfortunately, instead are silently treated
6172    as 'x'.  The following induces an error, until -std is added to get
6173    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6174    array size at least.  It's necessary to write '\x00'==0 to get something
6175    that's true only with -std.  */
6176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6177
6178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6179    inside strings and character constants.  */
6180 #define FOO(x) 'x'
6181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6182
6183 int test (int i, double x);
6184 struct s1 {int (*f) (int a);};
6185 struct s2 {int (*f) (double a);};
6186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6187 int argc;
6188 char **argv;
6189 int
6190 main ()
6191 {
6192 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6198         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6199 do
6200   CC="$ac_save_CC $ac_arg"
6201   if ac_fn_c_try_compile "$LINENO"; then :
6202   ac_cv_prog_cc_c89=$ac_arg
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext
6205   test "x$ac_cv_prog_cc_c89" != "xno" && break
6206 done
6207 rm -f conftest.$ac_ext
6208 CC=$ac_save_CC
6209
6210 fi
6211 # AC_CACHE_VAL
6212 case "x$ac_cv_prog_cc_c89" in
6213   x)
6214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6215 $as_echo "none needed" >&6; } ;;
6216   xno)
6217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6218 $as_echo "unsupported" >&6; } ;;
6219   *)
6220     CC="$CC $ac_cv_prog_cc_c89"
6221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6223 esac
6224 if test "x$ac_cv_prog_cc_c89" != xno; then :
6225
6226 fi
6227
6228 ac_ext=c
6229 ac_cpp='$CPP $CPPFLAGS'
6230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6233
6234 ac_ext=c
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6240 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6241 if ${am_cv_prog_cc_c_o+:} false; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h.  */
6246
6247 int
6248 main ()
6249 {
6250
6251   ;
6252   return 0;
6253 }
6254 _ACEOF
6255   # Make sure it works both with $CC and with simple cc.
6256   # Following AC_PROG_CC_C_O, we do the test twice because some
6257   # compilers refuse to overwrite an existing .o file with -o,
6258   # though they will create one.
6259   am_cv_prog_cc_c_o=yes
6260   for am_i in 1 2; do
6261     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6262    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6263    ac_status=$?
6264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265    (exit $ac_status); } \
6266          && test -f conftest2.$ac_objext; then
6267       : OK
6268     else
6269       am_cv_prog_cc_c_o=no
6270       break
6271     fi
6272   done
6273   rm -f core conftest*
6274   unset am_i
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6277 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6278 if test "$am_cv_prog_cc_c_o" != yes; then
6279    # Losing compiler, so override with the script.
6280    # FIXME: It is wrong to rewrite CC.
6281    # But if we don't then we get into trouble of one sort or another.
6282    # A longer-term fix would be to have automake use am__CC in this case,
6283    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6284    CC="$am_aux_dir/compile $CC"
6285 fi
6286 ac_ext=c
6287 ac_cpp='$CPP $CPPFLAGS'
6288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291
6292
6293 depcc="$CC"   am_compiler_list=
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6296 $as_echo_n "checking dependency style of $depcc... " >&6; }
6297 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6301   # We make a subdir and do the tests there.  Otherwise we can end up
6302   # making bogus files that we don't know about and never remove.  For
6303   # instance it was reported that on HP-UX the gcc test will end up
6304   # making a dummy file named 'D' -- because '-MD' means "put the output
6305   # in D".
6306   rm -rf conftest.dir
6307   mkdir conftest.dir
6308   # Copy depcomp to subdir because otherwise we won't find it if we're
6309   # using a relative directory.
6310   cp "$am_depcomp" conftest.dir
6311   cd conftest.dir
6312   # We will build objects and dependencies in a subdirectory because
6313   # it helps to detect inapplicable dependency modes.  For instance
6314   # both Tru64's cc and ICC support -MD to output dependencies as a
6315   # side effect of compilation, but ICC will put the dependencies in
6316   # the current directory while Tru64 will put them in the object
6317   # directory.
6318   mkdir sub
6319
6320   am_cv_CC_dependencies_compiler_type=none
6321   if test "$am_compiler_list" = ""; then
6322      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6323   fi
6324   am__universal=false
6325   case " $depcc " in #(
6326      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6327      esac
6328
6329   for depmode in $am_compiler_list; do
6330     # Setup a source with many dependencies, because some compilers
6331     # like to wrap large dependency lists on column 80 (with \), and
6332     # we should not choose a depcomp mode which is confused by this.
6333     #
6334     # We need to recreate these files for each test, as the compiler may
6335     # overwrite some of them when testing with obscure command lines.
6336     # This happens at least with the AIX C compiler.
6337     : > sub/conftest.c
6338     for i in 1 2 3 4 5 6; do
6339       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6340       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6341       # Solaris 10 /bin/sh.
6342       echo '/* dummy */' > sub/conftst$i.h
6343     done
6344     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6345
6346     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6347     # mode.  It turns out that the SunPro C++ compiler does not properly
6348     # handle '-M -o', and we need to detect this.  Also, some Intel
6349     # versions had trouble with output in subdirs.
6350     am__obj=sub/conftest.${OBJEXT-o}
6351     am__minus_obj="-o $am__obj"
6352     case $depmode in
6353     gcc)
6354       # This depmode causes a compiler race in universal mode.
6355       test "$am__universal" = false || continue
6356       ;;
6357     nosideeffect)
6358       # After this tag, mechanisms are not by side-effect, so they'll
6359       # only be used when explicitly requested.
6360       if test "x$enable_dependency_tracking" = xyes; then
6361         continue
6362       else
6363         break
6364       fi
6365       ;;
6366     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6367       # This compiler won't grok '-c -o', but also, the minuso test has
6368       # not run yet.  These depmodes are late enough in the game, and
6369       # so weak that their functioning should not be impacted.
6370       am__obj=conftest.${OBJEXT-o}
6371       am__minus_obj=
6372       ;;
6373     none) break ;;
6374     esac
6375     if depmode=$depmode \
6376        source=sub/conftest.c object=$am__obj \
6377        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6378        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6379          >/dev/null 2>conftest.err &&
6380        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6381        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6382        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6383        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6384       # icc doesn't choke on unknown options, it will just issue warnings
6385       # or remarks (even with -Werror).  So we grep stderr for any message
6386       # that says an option was ignored or not supported.
6387       # When given -MP, icc 7.0 and 7.1 complain thusly:
6388       #   icc: Command line warning: ignoring option '-M'; no argument required
6389       # The diagnosis changed in icc 8.0:
6390       #   icc: Command line remark: option '-MP' not supported
6391       if (grep 'ignoring option' conftest.err ||
6392           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6393         am_cv_CC_dependencies_compiler_type=$depmode
6394         break
6395       fi
6396     fi
6397   done
6398
6399   cd ..
6400   rm -rf conftest.dir
6401 else
6402   am_cv_CC_dependencies_compiler_type=none
6403 fi
6404
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6407 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6408 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6409
6410  if
6411   test "x$enable_dependency_tracking" != xno \
6412   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6413   am__fastdepCC_TRUE=
6414   am__fastdepCC_FALSE='#'
6415 else
6416   am__fastdepCC_TRUE='#'
6417   am__fastdepCC_FALSE=
6418 fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6430 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6431 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434
6435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h.  */
6437
6438 #ifdef __ACK__
6439 Amsterdam
6440 #endif
6441
6442 _ACEOF
6443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444   $EGREP "Amsterdam" >/dev/null 2>&1; then :
6445   gl_cv_c_amsterdam_compiler=yes
6446 else
6447   gl_cv_c_amsterdam_compiler=no
6448 fi
6449 rm -f conftest*
6450
6451
6452 fi
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6454 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6455
6456       if test $gl_cv_c_amsterdam_compiler = yes; then
6457     if test -z "$AR"; then
6458       AR='cc -c.a'
6459     fi
6460     if test -z "$ARFLAGS"; then
6461       ARFLAGS='-o'
6462     fi
6463   else
6464                                                 if test -n "$ac_tool_prefix"; then
6465   for ac_prog in ar lib "link -lib"
6466   do
6467     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_AR+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   if test -n "$AR"; then
6475   ac_cv_prog_AR="$AR" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482     for ac_exec_ext in '' $ac_executable_extensions; do
6483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489   done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 AR=$ac_cv_prog_AR
6495 if test -n "$AR"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497 $as_echo "$AR" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503
6504     test -n "$AR" && break
6505   done
6506 fi
6507 if test -z "$AR"; then
6508   ac_ct_AR=$AR
6509   for ac_prog in ar lib "link -lib"
6510 do
6511   # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   if test -n "$ac_ct_AR"; then
6519   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528     ac_cv_prog_ac_ct_AR="$ac_prog"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6539 if test -n "$ac_ct_AR"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6541 $as_echo "$ac_ct_AR" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547
6548   test -n "$ac_ct_AR" && break
6549 done
6550
6551   if test "x$ac_ct_AR" = x; then
6552     AR="false"
6553   else
6554     case $cross_compiling:$ac_tool_warned in
6555 yes:)
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6559 esac
6560     AR=$ac_ct_AR
6561   fi
6562 fi
6563
6564 : ${AR=ar}
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6567 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6568 if ${am_cv_ar_interface+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   ac_ext=c
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576
6577    am_cv_ar_interface=ar
6578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h.  */
6580 int some_variable = 0;
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6584       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6585   (eval $am_ar_try) 2>&5
6586   ac_status=$?
6587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588   test $ac_status = 0; }
6589       if test "$ac_status" -eq 0; then
6590         am_cv_ar_interface=ar
6591       else
6592         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6593         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6594   (eval $am_ar_try) 2>&5
6595   ac_status=$?
6596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597   test $ac_status = 0; }
6598         if test "$ac_status" -eq 0; then
6599           am_cv_ar_interface=lib
6600         else
6601           am_cv_ar_interface=unknown
6602         fi
6603       fi
6604       rm -f conftest.lib libconftest.a
6605
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608    ac_ext=c
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6616 $as_echo "$am_cv_ar_interface" >&6; }
6617
6618 case $am_cv_ar_interface in
6619 ar)
6620   ;;
6621 lib)
6622   # Microsoft lib, so override with the ar-lib wrapper script.
6623   # FIXME: It is wrong to rewrite AR.
6624   # But if we don't then we get into trouble of one sort or another.
6625   # A longer-term fix would be to have automake use am__AR in this case,
6626   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6627   # similar.
6628   AR="$am_aux_dir/ar-lib $AR"
6629   ;;
6630 unknown)
6631   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6632   ;;
6633 esac
6634
6635   fi
6636
6637         if test -n "$ac_tool_prefix"; then
6638   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_prog_AR+:} false; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   if test -n "$AR"; then
6646   ac_cv_prog_AR="$AR" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653     for ac_exec_ext in '' $ac_executable_extensions; do
6654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655     ac_cv_prog_AR="${ac_tool_prefix}ar"
6656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660   done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 AR=$ac_cv_prog_AR
6666 if test -n "$AR"; then
6667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668 $as_echo "$AR" >&6; }
6669 else
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674
6675 fi
6676 if test -z "$ac_cv_prog_AR"; then
6677   ac_ct_AR=$AR
6678   # Extract the first word of "ar", so it can be a program name with args.
6679 set dummy ar; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   if test -n "$ac_ct_AR"; then
6686   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693     for ac_exec_ext in '' $ac_executable_extensions; do
6694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695     ac_cv_prog_ac_ct_AR="ar"
6696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700   done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706 if test -n "$ac_ct_AR"; then
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6708 $as_echo "$ac_ct_AR" >&6; }
6709 else
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714   if test "x$ac_ct_AR" = x; then
6715     AR="ar"
6716   else
6717     case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723     AR=$ac_ct_AR
6724   fi
6725 else
6726   AR="$ac_cv_prog_AR"
6727 fi
6728
6729   if test -z "$ARFLAGS"; then
6730     ARFLAGS='cr'
6731   fi
6732
6733
6734
6735   if test -z "$RANLIB"; then
6736     if test $gl_cv_c_amsterdam_compiler = yes; then
6737       RANLIB=':'
6738     else
6739             if test -n "$ac_tool_prefix"; then
6740   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_RANLIB+:} false; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747   if test -n "$RANLIB"; then
6748   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755     for ac_exec_ext in '' $ac_executable_extensions; do
6756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762   done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 RANLIB=$ac_cv_prog_RANLIB
6768 if test -n "$RANLIB"; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6770 $as_echo "$RANLIB" >&6; }
6771 else
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776
6777 fi
6778 if test -z "$ac_cv_prog_RANLIB"; then
6779   ac_ct_RANLIB=$RANLIB
6780   # Extract the first word of "ranlib", so it can be a program name with args.
6781 set dummy ranlib; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   if test -n "$ac_ct_RANLIB"; then
6788   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795     for ac_exec_ext in '' $ac_executable_extensions; do
6796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797     ac_cv_prog_ac_ct_RANLIB="ranlib"
6798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802   done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6808 if test -n "$ac_ct_RANLIB"; then
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6810 $as_echo "$ac_ct_RANLIB" >&6; }
6811 else
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816   if test "x$ac_ct_RANLIB" = x; then
6817     RANLIB=":"
6818   else
6819     case $cross_compiling:$ac_tool_warned in
6820 yes:)
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6824 esac
6825     RANLIB=$ac_ct_RANLIB
6826   fi
6827 else
6828   RANLIB="$ac_cv_prog_RANLIB"
6829 fi
6830
6831     fi
6832   fi
6833
6834
6835
6836 # Check whether --enable-largefile was given.
6837 if test "${enable_largefile+set}" = set; then :
6838   enableval=$enable_largefile;
6839 fi
6840
6841 if test "$enable_largefile" != no; then
6842
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6844 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6845 if ${ac_cv_sys_largefile_CC+:} false; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   ac_cv_sys_largefile_CC=no
6849      if test "$GCC" != yes; then
6850        ac_save_CC=$CC
6851        while :; do
6852          # IRIX 6.2 and later do not support large files by default,
6853          # so use the C compiler's -n32 option if that helps.
6854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h.  */
6856 #include <sys/types.h>
6857  /* Check that off_t can represent 2**63 - 1 correctly.
6858     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6859     since some C++ compilers masquerading as C compilers
6860     incorrectly reject 9223372036854775807.  */
6861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6862   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6863                        && LARGE_OFF_T % 2147483647 == 1)
6864                       ? 1 : -1];
6865 int
6866 main ()
6867 {
6868
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873          if ac_fn_c_try_compile "$LINENO"; then :
6874   break
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext
6877          CC="$CC -n32"
6878          if ac_fn_c_try_compile "$LINENO"; then :
6879   ac_cv_sys_largefile_CC=' -n32'; break
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext
6882          break
6883        done
6884        CC=$ac_save_CC
6885        rm -f conftest.$ac_ext
6886     fi
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6889 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6890   if test "$ac_cv_sys_largefile_CC" != no; then
6891     CC=$CC$ac_cv_sys_largefile_CC
6892   fi
6893
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6895 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6896 if ${ac_cv_sys_file_offset_bits+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899   while :; do
6900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h.  */
6902 #include <sys/types.h>
6903  /* Check that off_t can represent 2**63 - 1 correctly.
6904     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6905     since some C++ compilers masquerading as C compilers
6906     incorrectly reject 9223372036854775807.  */
6907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6908   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6909                        && LARGE_OFF_T % 2147483647 == 1)
6910                       ? 1 : -1];
6911 int
6912 main ()
6913 {
6914
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920   ac_cv_sys_file_offset_bits=no; break
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h.  */
6925 #define _FILE_OFFSET_BITS 64
6926 #include <sys/types.h>
6927  /* Check that off_t can represent 2**63 - 1 correctly.
6928     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6929     since some C++ compilers masquerading as C compilers
6930     incorrectly reject 9223372036854775807.  */
6931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6932   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6933                        && LARGE_OFF_T % 2147483647 == 1)
6934                       ? 1 : -1];
6935 int
6936 main ()
6937 {
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_compile "$LINENO"; then :
6944   ac_cv_sys_file_offset_bits=64; break
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947   ac_cv_sys_file_offset_bits=unknown
6948   break
6949 done
6950 fi
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6952 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6953 case $ac_cv_sys_file_offset_bits in #(
6954   no | unknown) ;;
6955   *)
6956 cat >>confdefs.h <<_ACEOF
6957 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6958 _ACEOF
6959 ;;
6960 esac
6961 rm -rf conftest*
6962   if test $ac_cv_sys_file_offset_bits = unknown; then
6963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6964 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6965 if ${ac_cv_sys_large_files+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   while :; do
6969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971 #include <sys/types.h>
6972  /* Check that off_t can represent 2**63 - 1 correctly.
6973     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6974     since some C++ compilers masquerading as C compilers
6975     incorrectly reject 9223372036854775807.  */
6976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6977   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6978                        && LARGE_OFF_T % 2147483647 == 1)
6979                       ? 1 : -1];
6980 int
6981 main ()
6982 {
6983
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 if ac_fn_c_try_compile "$LINENO"; then :
6989   ac_cv_sys_large_files=no; break
6990 fi
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h.  */
6994 #define _LARGE_FILES 1
6995 #include <sys/types.h>
6996  /* Check that off_t can represent 2**63 - 1 correctly.
6997     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6998     since some C++ compilers masquerading as C compilers
6999     incorrectly reject 9223372036854775807.  */
7000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7001   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7002                        && LARGE_OFF_T % 2147483647 == 1)
7003                       ? 1 : -1];
7004 int
7005 main ()
7006 {
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013   ac_cv_sys_large_files=1; break
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016   ac_cv_sys_large_files=unknown
7017   break
7018 done
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7021 $as_echo "$ac_cv_sys_large_files" >&6; }
7022 case $ac_cv_sys_large_files in #(
7023   no | unknown) ;;
7024   *)
7025 cat >>confdefs.h <<_ACEOF
7026 #define _LARGE_FILES $ac_cv_sys_large_files
7027 _ACEOF
7028 ;;
7029 esac
7030 rm -rf conftest*
7031   fi
7032
7033
7034 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7035
7036 fi
7037
7038    case $ac_cv_prog_cc_stdc in #(
7039   no) :
7040     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7041   *) :
7042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7043 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7044 if ${ac_cv_prog_cc_c99+:} false; then :
7045   $as_echo_n "(cached) " >&6
7046 else
7047   ac_cv_prog_cc_c99=no
7048 ac_save_CC=$CC
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051 #include <stdarg.h>
7052 #include <stdbool.h>
7053 #include <stdlib.h>
7054 #include <wchar.h>
7055 #include <stdio.h>
7056
7057 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7058 #define debug(...) fprintf (stderr, __VA_ARGS__)
7059 #define showlist(...) puts (#__VA_ARGS__)
7060 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7061 static void
7062 test_varargs_macros (void)
7063 {
7064   int x = 1234;
7065   int y = 5678;
7066   debug ("Flag");
7067   debug ("X = %d\n", x);
7068   showlist (The first, second, and third items.);
7069   report (x>y, "x is %d but y is %d", x, y);
7070 }
7071
7072 // Check long long types.
7073 #define BIG64 18446744073709551615ull
7074 #define BIG32 4294967295ul
7075 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7076 #if !BIG_OK
7077   your preprocessor is broken;
7078 #endif
7079 #if BIG_OK
7080 #else
7081   your preprocessor is broken;
7082 #endif
7083 static long long int bignum = -9223372036854775807LL;
7084 static unsigned long long int ubignum = BIG64;
7085
7086 struct incomplete_array
7087 {
7088   int datasize;
7089   double data[];
7090 };
7091
7092 struct named_init {
7093   int number;
7094   const wchar_t *name;
7095   double average;
7096 };
7097
7098 typedef const char *ccp;
7099
7100 static inline int
7101 test_restrict (ccp restrict text)
7102 {
7103   // See if C++-style comments work.
7104   // Iterate through items via the restricted pointer.
7105   // Also check for declarations in for loops.
7106   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7107     continue;
7108   return 0;
7109 }
7110
7111 // Check varargs and va_copy.
7112 static void
7113 test_varargs (const char *format, ...)
7114 {
7115   va_list args;
7116   va_start (args, format);
7117   va_list args_copy;
7118   va_copy (args_copy, args);
7119
7120   const char *str;
7121   int number;
7122   float fnumber;
7123
7124   while (*format)
7125     {
7126       switch (*format++)
7127         {
7128         case 's': // string
7129           str = va_arg (args_copy, const char *);
7130           break;
7131         case 'd': // int
7132           number = va_arg (args_copy, int);
7133           break;
7134         case 'f': // float
7135           fnumber = va_arg (args_copy, double);
7136           break;
7137         default:
7138           break;
7139         }
7140     }
7141   va_end (args_copy);
7142   va_end (args);
7143 }
7144
7145 int
7146 main ()
7147 {
7148
7149   // Check bool.
7150   _Bool success = false;
7151
7152   // Check restrict.
7153   if (test_restrict ("String literal") == 0)
7154     success = true;
7155   char *restrict newvar = "Another string";
7156
7157   // Check varargs.
7158   test_varargs ("s, d' f .", "string", 65, 34.234);
7159   test_varargs_macros ();
7160
7161   // Check flexible array members.
7162   struct incomplete_array *ia =
7163     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7164   ia->datasize = 10;
7165   for (int i = 0; i < ia->datasize; ++i)
7166     ia->data[i] = i * 1.234;
7167
7168   // Check named initializers.
7169   struct named_init ni = {
7170     .number = 34,
7171     .name = L"Test wide string",
7172     .average = 543.34343,
7173   };
7174
7175   ni.number = 58;
7176
7177   int dynamic_array[ni.number];
7178   dynamic_array[ni.number - 1] = 543;
7179
7180   // work around unused variable warnings
7181   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7182           || dynamic_array[ni.number - 1] != 543);
7183
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7189 do
7190   CC="$ac_save_CC $ac_arg"
7191   if ac_fn_c_try_compile "$LINENO"; then :
7192   ac_cv_prog_cc_c99=$ac_arg
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext
7195   test "x$ac_cv_prog_cc_c99" != "xno" && break
7196 done
7197 rm -f conftest.$ac_ext
7198 CC=$ac_save_CC
7199
7200 fi
7201 # AC_CACHE_VAL
7202 case "x$ac_cv_prog_cc_c99" in
7203   x)
7204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7205 $as_echo "none needed" >&6; } ;;
7206   xno)
7207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7208 $as_echo "unsupported" >&6; } ;;
7209   *)
7210     CC="$CC $ac_cv_prog_cc_c99"
7211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7212 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7213 esac
7214 if test "x$ac_cv_prog_cc_c99" != xno; then :
7215   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7218 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7219 if ${ac_cv_prog_cc_c89+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   ac_cv_prog_cc_c89=no
7223 ac_save_CC=$CC
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h.  */
7226 #include <stdarg.h>
7227 #include <stdio.h>
7228 struct stat;
7229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7230 struct buf { int x; };
7231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7232 static char *e (p, i)
7233      char **p;
7234      int i;
7235 {
7236   return p[i];
7237 }
7238 static char *f (char * (*g) (char **, int), char **p, ...)
7239 {
7240   char *s;
7241   va_list v;
7242   va_start (v,p);
7243   s = g (p, va_arg (v,int));
7244   va_end (v);
7245   return s;
7246 }
7247
7248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7249    function prototypes and stuff, but not '\xHH' hex character constants.
7250    These don't provoke an error unfortunately, instead are silently treated
7251    as 'x'.  The following induces an error, until -std is added to get
7252    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7253    array size at least.  It's necessary to write '\x00'==0 to get something
7254    that's true only with -std.  */
7255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7256
7257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7258    inside strings and character constants.  */
7259 #define FOO(x) 'x'
7260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7261
7262 int test (int i, double x);
7263 struct s1 {int (*f) (int a);};
7264 struct s2 {int (*f) (double a);};
7265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7266 int argc;
7267 char **argv;
7268 int
7269 main ()
7270 {
7271 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7272   ;
7273   return 0;
7274 }
7275 _ACEOF
7276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7277         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7278 do
7279   CC="$ac_save_CC $ac_arg"
7280   if ac_fn_c_try_compile "$LINENO"; then :
7281   ac_cv_prog_cc_c89=$ac_arg
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext
7284   test "x$ac_cv_prog_cc_c89" != "xno" && break
7285 done
7286 rm -f conftest.$ac_ext
7287 CC=$ac_save_CC
7288
7289 fi
7290 # AC_CACHE_VAL
7291 case "x$ac_cv_prog_cc_c89" in
7292   x)
7293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7294 $as_echo "none needed" >&6; } ;;
7295   xno)
7296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7297 $as_echo "unsupported" >&6; } ;;
7298   *)
7299     CC="$CC $ac_cv_prog_cc_c89"
7300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7302 esac
7303 if test "x$ac_cv_prog_cc_c89" != xno; then :
7304   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7305 else
7306   ac_cv_prog_cc_stdc=no
7307 fi
7308
7309 fi
7310  ;;
7311 esac
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7313 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7314   if ${ac_cv_prog_cc_stdc+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 fi
7317
7318   case $ac_cv_prog_cc_stdc in #(
7319   no) :
7320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7321 $as_echo "unsupported" >&6; } ;; #(
7322   '') :
7323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7324 $as_echo "none needed" >&6; } ;; #(
7325   *) :
7326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7327 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7328 esac
7329
7330
7331
7332
7333
7334
7335   # Check whether --enable-threads was given.
7336 if test "${enable_threads+set}" = set; then :
7337   enableval=$enable_threads; gl_use_threads=$enableval
7338 else
7339   if test -n "$gl_use_threads_default"; then
7340        gl_use_threads="$gl_use_threads_default"
7341      else
7342        case "$host_os" in
7343                                                                osf*) gl_use_threads=no ;;
7344          cygwin*)
7345                case `uname -r` in
7346                  1.[0-5].*) gl_use_threads=no ;;
7347                  *)         gl_use_threads=yes ;;
7348                esac
7349                ;;
7350          *)    gl_use_threads=yes ;;
7351        esac
7352      fi
7353
7354 fi
7355
7356   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7357     # For using <pthread.h>:
7358     case "$host_os" in
7359       osf*)
7360         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7361         # groks <pthread.h>. cc also understands the flag -pthread, but
7362         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7363         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7364         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7365         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7366         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7367         ;;
7368     esac
7369     # Some systems optimize for single-threaded programs by default, and
7370     # need special flags to disable these optimizations. For example, the
7371     # definition of 'errno' in <errno.h>.
7372     case "$host_os" in
7373       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7374       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7375     esac
7376   fi
7377
7378
7379
7380   # Pre-early section.
7381
7382
7383
7384
7385   # Code from module absolute-header:
7386   # Code from module alloca-opt:
7387   # Code from module dirname:
7388   # Code from module dirname-lgpl:
7389   # Code from module dosname:
7390   # Code from module double-slash-root:
7391   # Code from module environ:
7392   # Code from module errno:
7393   # Code from module error:
7394   # Code from module exitfail:
7395   # Code from module extensions:
7396   # Code from module extern-inline:
7397   # Code from module fcntl-h:
7398   # Code from module filename:
7399   # Code from module float:
7400   # Code from module full-write:
7401   # Code from module getprogname:
7402   # Code from module gettext-h:
7403   # Code from module gettimeofday:
7404   # Code from module gitlog-to-changelog:
7405   # Code from module gnupload:
7406   # Code from module havelib:
7407   # Code from module include_next:
7408   # Code from module intprops:
7409   # Code from module largefile:
7410
7411   # Code from module lib-ignore:
7412   # Code from module limits-h:
7413   # Code from module localtime-buffer:
7414   # Code from module lock:
7415   # Code from module lstat:
7416   # Code from module malloc-posix:
7417   # Code from module malloca:
7418   # Code from module memchr:
7419   # Code from module mkdir:
7420   # Code from module mkdtemp:
7421   # Code from module msvc-inval:
7422   # Code from module msvc-nothrow:
7423   # Code from module multiarch:
7424   # Code from module pathmax:
7425   # Code from module raise:
7426   # Code from module read:
7427   # Code from module safe-read:
7428   # Code from module safe-write:
7429   # Code from module setenv:
7430   # Code from module sigaction:
7431   # Code from module signal:
7432   # Code from module signal-h:
7433   # Code from module sigprocmask:
7434   # Code from module size_max:
7435   # Code from module snippet/_Noreturn:
7436   # Code from module snippet/arg-nonnull:
7437   # Code from module snippet/c++defs:
7438   # Code from module snippet/warn-on-use:
7439   # Code from module snprintf:
7440   # Code from module ssize_t:
7441   # Code from module stat:
7442   # Code from module stat-time:
7443   # Code from module stdarg:
7444
7445
7446
7447   # Code from module stdbool:
7448   # Code from module stddef:
7449   # Code from module stdint:
7450   # Code from module stdio:
7451   # Code from module stdlib:
7452   # Code from module strerror:
7453   # Code from module strerror-override:
7454   # Code from module string:
7455   # Code from module strndup:
7456   # Code from module strnlen:
7457   # Code from module strsignal:
7458   # Code from module sys_select:
7459   # Code from module sys_stat:
7460   # Code from module sys_time:
7461   # Code from module sys_types:
7462   # Code from module sys_wait:
7463   # Code from module tempname:
7464   # Code from module threadlib:
7465
7466
7467
7468   # Code from module time:
7469   # Code from module tls:
7470   # Code from module unistd:
7471   # Code from module unsetenv:
7472   # Code from module vasnprintf:
7473   # Code from module vasprintf:
7474   # Code from module verify:
7475   # Code from module waitpid:
7476   # Code from module warnings:
7477   # Code from module wchar:
7478   # Code from module write:
7479   # Code from module xalloc:
7480   # Code from module xalloc-die:
7481   # Code from module xalloc-oversized:
7482   # Code from module xsize:
7483   # Code from module xstrndup:
7484   # Code from module xvasprintf:
7485
7486 ac_ext=c
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7492 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7493 # On Suns, sometimes $CPP names a directory.
7494 if test -n "$CPP" && test -d "$CPP"; then
7495   CPP=
7496 fi
7497 if test -z "$CPP"; then
7498   if ${ac_cv_prog_CPP+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501       # Double quotes because CPP needs to be expanded
7502     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7503     do
7504       ac_preproc_ok=false
7505 for ac_c_preproc_warn_flag in '' yes
7506 do
7507   # Use a header file that comes with gcc, so configuring glibc
7508   # with a fresh cross-compiler works.
7509   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7510   # <limits.h> exists even on freestanding compilers.
7511   # On the NeXT, cc -E runs the code through the compiler's parser,
7512   # not just through cpp. "Syntax error" is here to catch this case.
7513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h.  */
7515 #ifdef __STDC__
7516 # include <limits.h>
7517 #else
7518 # include <assert.h>
7519 #endif
7520                      Syntax error
7521 _ACEOF
7522 if ac_fn_c_try_cpp "$LINENO"; then :
7523
7524 else
7525   # Broken: fails on valid input.
7526 continue
7527 fi
7528 rm -f conftest.err conftest.i conftest.$ac_ext
7529
7530   # OK, works on sane cases.  Now check whether nonexistent headers
7531   # can be detected and how.
7532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h.  */
7534 #include <ac_nonexistent.h>
7535 _ACEOF
7536 if ac_fn_c_try_cpp "$LINENO"; then :
7537   # Broken: success on invalid input.
7538 continue
7539 else
7540   # Passes both tests.
7541 ac_preproc_ok=:
7542 break
7543 fi
7544 rm -f conftest.err conftest.i conftest.$ac_ext
7545
7546 done
7547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7548 rm -f conftest.i conftest.err conftest.$ac_ext
7549 if $ac_preproc_ok; then :
7550   break
7551 fi
7552
7553     done
7554     ac_cv_prog_CPP=$CPP
7555
7556 fi
7557   CPP=$ac_cv_prog_CPP
7558 else
7559   ac_cv_prog_CPP=$CPP
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7562 $as_echo "$CPP" >&6; }
7563 ac_preproc_ok=false
7564 for ac_c_preproc_warn_flag in '' yes
7565 do
7566   # Use a header file that comes with gcc, so configuring glibc
7567   # with a fresh cross-compiler works.
7568   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7569   # <limits.h> exists even on freestanding compilers.
7570   # On the NeXT, cc -E runs the code through the compiler's parser,
7571   # not just through cpp. "Syntax error" is here to catch this case.
7572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h.  */
7574 #ifdef __STDC__
7575 # include <limits.h>
7576 #else
7577 # include <assert.h>
7578 #endif
7579                      Syntax error
7580 _ACEOF
7581 if ac_fn_c_try_cpp "$LINENO"; then :
7582
7583 else
7584   # Broken: fails on valid input.
7585 continue
7586 fi
7587 rm -f conftest.err conftest.i conftest.$ac_ext
7588
7589   # OK, works on sane cases.  Now check whether nonexistent headers
7590   # can be detected and how.
7591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h.  */
7593 #include <ac_nonexistent.h>
7594 _ACEOF
7595 if ac_fn_c_try_cpp "$LINENO"; then :
7596   # Broken: success on invalid input.
7597 continue
7598 else
7599   # Passes both tests.
7600 ac_preproc_ok=:
7601 break
7602 fi
7603 rm -f conftest.err conftest.i conftest.$ac_ext
7604
7605 done
7606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7607 rm -f conftest.i conftest.err conftest.$ac_ext
7608 if $ac_preproc_ok; then :
7609
7610 else
7611   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7613 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7614 See \`config.log' for more details" "$LINENO" 5; }
7615 fi
7616
7617 ac_ext=c
7618 ac_cpp='$CPP $CPPFLAGS'
7619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7622
7623 CFLAGS="$CFLAGS -Wall"
7624 if test "$GCC" = yes
7625 then
7626
7627   ac_ext=c
7628 ac_cpp='$CPP $CPPFLAGS'
7629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632
7633
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7635 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7636 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
7637   $as_echo_n "(cached) " >&6
7638 else
7639
7640   gl_save_compiler_FLAGS="$CFLAGS"
7641   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h.  */
7644
7645 int
7646 main ()
7647 {
7648
7649   ;
7650   return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"; then :
7654   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7655 else
7656   gl_cv_warn_c__Werror__Wunknown_warning_option=no
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext \
7659     conftest$ac_exeext conftest.$ac_ext
7660   CFLAGS="$gl_save_compiler_FLAGS"
7661
7662 fi
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7664 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7665 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
7666   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7667 else
7668   gl_unknown_warnings_are_errors=
7669 fi
7670
7671   ac_ext=c
7672 ac_cpp='$CPP $CPPFLAGS'
7673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7676
7677
7678
7679
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
7681 $as_echo_n "checking whether C compiler handles -W... " >&6; }
7682 if ${gl_cv_warn_c__W+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685
7686   gl_save_compiler_FLAGS="$CFLAGS"
7687   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
7688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690
7691 int
7692 main ()
7693 {
7694
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"; then :
7700   gl_cv_warn_c__W=yes
7701 else
7702   gl_cv_warn_c__W=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext \
7705     conftest$ac_exeext conftest.$ac_ext
7706   CFLAGS="$gl_save_compiler_FLAGS"
7707
7708 fi
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
7710 $as_echo "$gl_cv_warn_c__W" >&6; }
7711 if test "x$gl_cv_warn_c__W" = xyes; then :
7712   as_fn_append WARN_CFLAGS " -W"
7713 fi
7714
7715
7716
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
7719 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
7720 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
7721   $as_echo_n "(cached) " >&6
7722 else
7723
7724   gl_save_compiler_FLAGS="$CFLAGS"
7725   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
7726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h.  */
7728
7729 int
7730 main ()
7731 {
7732
7733   ;
7734   return 0;
7735 }
7736 _ACEOF
7737 if ac_fn_c_try_link "$LINENO"; then :
7738   gl_cv_warn_c__Wpointer_arith=yes
7739 else
7740   gl_cv_warn_c__Wpointer_arith=no
7741 fi
7742 rm -f core conftest.err conftest.$ac_objext \
7743     conftest$ac_exeext conftest.$ac_ext
7744   CFLAGS="$gl_save_compiler_FLAGS"
7745
7746 fi
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
7748 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
7749 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
7750   as_fn_append WARN_CFLAGS " -Wpointer-arith"
7751 fi
7752
7753
7754
7755
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
7757 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
7758 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761
7762   gl_save_compiler_FLAGS="$CFLAGS"
7763   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
7764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766
7767 int
7768 main ()
7769 {
7770
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 if ac_fn_c_try_link "$LINENO"; then :
7776   gl_cv_warn_c__Wwrite_strings=yes
7777 else
7778   gl_cv_warn_c__Wwrite_strings=no
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext \
7781     conftest$ac_exeext conftest.$ac_ext
7782   CFLAGS="$gl_save_compiler_FLAGS"
7783
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
7786 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
7787 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
7788   as_fn_append WARN_CFLAGS " -Wwrite-strings"
7789 fi
7790
7791
7792
7793
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
7795 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
7796 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799
7800   gl_save_compiler_FLAGS="$CFLAGS"
7801   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
7802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h.  */
7804
7805 int
7806 main ()
7807 {
7808
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_link "$LINENO"; then :
7814   gl_cv_warn_c__Wstrict_prototypes=yes
7815 else
7816   gl_cv_warn_c__Wstrict_prototypes=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext \
7819     conftest$ac_exeext conftest.$ac_ext
7820   CFLAGS="$gl_save_compiler_FLAGS"
7821
7822 fi
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
7824 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
7825 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
7826   as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
7827 fi
7828
7829
7830
7831
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
7833 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
7834 if ${gl_cv_warn_c__Wshadow+:} false; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837
7838   gl_save_compiler_FLAGS="$CFLAGS"
7839   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
7840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h.  */
7842
7843 int
7844 main ()
7845 {
7846
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 if ac_fn_c_try_link "$LINENO"; then :
7852   gl_cv_warn_c__Wshadow=yes
7853 else
7854   gl_cv_warn_c__Wshadow=no
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext \
7857     conftest$ac_exeext conftest.$ac_ext
7858   CFLAGS="$gl_save_compiler_FLAGS"
7859
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
7862 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
7863 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
7864   as_fn_append WARN_CFLAGS " -Wshadow"
7865 fi
7866
7867
7868
7869
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
7871 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
7872 if ${gl_cv_warn_c__Wformat_security+:} false; then :
7873   $as_echo_n "(cached) " >&6
7874 else
7875
7876   gl_save_compiler_FLAGS="$CFLAGS"
7877   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
7878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h.  */
7880
7881 int
7882 main ()
7883 {
7884
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"; then :
7890   gl_cv_warn_c__Wformat_security=yes
7891 else
7892   gl_cv_warn_c__Wformat_security=no
7893 fi
7894 rm -f core conftest.err conftest.$ac_objext \
7895     conftest$ac_exeext conftest.$ac_ext
7896   CFLAGS="$gl_save_compiler_FLAGS"
7897
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
7900 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
7901 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
7902   as_fn_append WARN_CFLAGS " -Wformat-security"
7903 fi
7904
7905
7906
7907
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
7909 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
7910 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913
7914   gl_save_compiler_FLAGS="$CFLAGS"
7915   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
7916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h.  */
7918
7919 int
7920 main ()
7921 {
7922
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928   gl_cv_warn_c__Wredundant_decls=yes
7929 else
7930   gl_cv_warn_c__Wredundant_decls=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext \
7933     conftest$ac_exeext conftest.$ac_ext
7934   CFLAGS="$gl_save_compiler_FLAGS"
7935
7936 fi
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
7938 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
7939 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
7940   as_fn_append WARN_CFLAGS " -Wredundant-decls"
7941 fi
7942
7943
7944
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7947 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7948 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951
7952   gl_save_compiler_FLAGS="$CFLAGS"
7953   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h.  */
7956
7957 int
7958 main ()
7959 {
7960
7961   ;
7962   return 0;
7963 }
7964 _ACEOF
7965 if ac_fn_c_try_link "$LINENO"; then :
7966   gl_cv_warn_c__Wno_missing_field_initializers=yes
7967 else
7968   gl_cv_warn_c__Wno_missing_field_initializers=no
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext \
7971     conftest$ac_exeext conftest.$ac_ext
7972   CFLAGS="$gl_save_compiler_FLAGS"
7973
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7976 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7977 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
7978   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7979 fi
7980
7981
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7984 $as_echo_n "checking whether ln -s works... " >&6; }
7985 LN_S=$as_ln_s
7986 if test "$LN_S" = "ln -s"; then
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7988 $as_echo "yes" >&6; }
7989 else
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7991 $as_echo "no, using $LN_S" >&6; }
7992 fi
7993
7994 if test -n "$ac_tool_prefix"; then
7995   for ac_prog in ar lib "link -lib"
7996   do
7997     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if ${ac_cv_prog_AR+:} false; then :
8002   $as_echo_n "(cached) " >&6
8003 else
8004   if test -n "$AR"; then
8005   ac_cv_prog_AR="$AR" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010   IFS=$as_save_IFS
8011   test -z "$as_dir" && as_dir=.
8012     for ac_exec_ext in '' $ac_executable_extensions; do
8013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016     break 2
8017   fi
8018 done
8019   done
8020 IFS=$as_save_IFS
8021
8022 fi
8023 fi
8024 AR=$ac_cv_prog_AR
8025 if test -n "$AR"; then
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8027 $as_echo "$AR" >&6; }
8028 else
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8031 fi
8032
8033
8034     test -n "$AR" && break
8035   done
8036 fi
8037 if test -z "$AR"; then
8038   ac_ct_AR=$AR
8039   for ac_prog in ar lib "link -lib"
8040 do
8041   # Extract the first word of "$ac_prog", so it can be a program name with args.
8042 set dummy $ac_prog; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8046   $as_echo_n "(cached) " >&6
8047 else
8048   if test -n "$ac_ct_AR"; then
8049   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054   IFS=$as_save_IFS
8055   test -z "$as_dir" && as_dir=.
8056     for ac_exec_ext in '' $ac_executable_extensions; do
8057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058     ac_cv_prog_ac_ct_AR="$ac_prog"
8059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060     break 2
8061   fi
8062 done
8063   done
8064 IFS=$as_save_IFS
8065
8066 fi
8067 fi
8068 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8069 if test -n "$ac_ct_AR"; then
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8071 $as_echo "$ac_ct_AR" >&6; }
8072 else
8073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8075 fi
8076
8077
8078   test -n "$ac_ct_AR" && break
8079 done
8080
8081   if test "x$ac_ct_AR" = x; then
8082     AR="false"
8083   else
8084     case $cross_compiling:$ac_tool_warned in
8085 yes:)
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8088 ac_tool_warned=yes ;;
8089 esac
8090     AR=$ac_ct_AR
8091   fi
8092 fi
8093
8094 : ${AR=ar}
8095
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8097 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8098 if ${am_cv_ar_interface+:} false; then :
8099   $as_echo_n "(cached) " >&6
8100 else
8101   ac_ext=c
8102 ac_cpp='$CPP $CPPFLAGS'
8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106
8107    am_cv_ar_interface=ar
8108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h.  */
8110 int some_variable = 0;
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"; then :
8113   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8114       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8115   (eval $am_ar_try) 2>&5
8116   ac_status=$?
8117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118   test $ac_status = 0; }
8119       if test "$ac_status" -eq 0; then
8120         am_cv_ar_interface=ar
8121       else
8122         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8123         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8124   (eval $am_ar_try) 2>&5
8125   ac_status=$?
8126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8127   test $ac_status = 0; }
8128         if test "$ac_status" -eq 0; then
8129           am_cv_ar_interface=lib
8130         else
8131           am_cv_ar_interface=unknown
8132         fi
8133       fi
8134       rm -f conftest.lib libconftest.a
8135
8136 fi
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138    ac_ext=c
8139 ac_cpp='$CPP $CPPFLAGS'
8140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8143
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8146 $as_echo "$am_cv_ar_interface" >&6; }
8147
8148 case $am_cv_ar_interface in
8149 ar)
8150   ;;
8151 lib)
8152   # Microsoft lib, so override with the ar-lib wrapper script.
8153   # FIXME: It is wrong to rewrite AR.
8154   # But if we don't then we get into trouble of one sort or another.
8155   # A longer-term fix would be to have automake use am__AR in this case,
8156   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8157   # similar.
8158   AR="$am_aux_dir/ar-lib $AR"
8159   ;;
8160 unknown)
8161   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8162   ;;
8163 esac
8164
8165 case `pwd` in
8166   *\ * | *\     *)
8167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8168 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8169 esac
8170
8171
8172
8173 macro_version='2.4.6'
8174 macro_revision='2.4.6'
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188 ltmain=$ac_aux_dir/ltmain.sh
8189
8190 # Backslashify metacharacters that are still active within
8191 # double-quoted strings.
8192 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8193
8194 # Same as above, but do not quote variable references.
8195 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8196
8197 # Sed substitution to delay expansion of an escaped shell variable in a
8198 # double_quote_subst'ed string.
8199 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8200
8201 # Sed substitution to delay expansion of an escaped single quote.
8202 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8203
8204 # Sed substitution to avoid accidental globbing in evaled expressions
8205 no_glob_subst='s/\*/\\\*/g'
8206
8207 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8208 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8209 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8210
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8212 $as_echo_n "checking how to print strings... " >&6; }
8213 # Test print first, because it will be a builtin if present.
8214 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8215    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8216   ECHO='print -r --'
8217 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8218   ECHO='printf %s\n'
8219 else
8220   # Use this function as a fallback that always works.
8221   func_fallback_echo ()
8222   {
8223     eval 'cat <<_LTECHO_EOF
8224 $1
8225 _LTECHO_EOF'
8226   }
8227   ECHO='func_fallback_echo'
8228 fi
8229
8230 # func_echo_all arg...
8231 # Invoke $ECHO with all args, space-separated.
8232 func_echo_all ()
8233 {
8234     $ECHO ""
8235 }
8236
8237 case $ECHO in
8238   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8239 $as_echo "printf" >&6; } ;;
8240   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8241 $as_echo "print -r" >&6; } ;;
8242   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8243 $as_echo "cat" >&6; } ;;
8244 esac
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8260 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8261 if ${ac_cv_path_SED+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8265      for ac_i in 1 2 3 4 5 6 7; do
8266        ac_script="$ac_script$as_nl$ac_script"
8267      done
8268      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8269      { ac_script=; unset ac_script;}
8270      if test -z "$SED"; then
8271   ac_path_SED_found=false
8272   # Loop through the user's path and test for each of PROGNAME-LIST
8273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276   IFS=$as_save_IFS
8277   test -z "$as_dir" && as_dir=.
8278     for ac_prog in sed gsed; do
8279     for ac_exec_ext in '' $ac_executable_extensions; do
8280       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8281       as_fn_executable_p "$ac_path_SED" || continue
8282 # Check for GNU ac_path_SED and select it if it is found.
8283   # Check for GNU $ac_path_SED
8284 case `"$ac_path_SED" --version 2>&1` in
8285 *GNU*)
8286   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8287 *)
8288   ac_count=0
8289   $as_echo_n 0123456789 >"conftest.in"
8290   while :
8291   do
8292     cat "conftest.in" "conftest.in" >"conftest.tmp"
8293     mv "conftest.tmp" "conftest.in"
8294     cp "conftest.in" "conftest.nl"
8295     $as_echo '' >> "conftest.nl"
8296     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8297     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8298     as_fn_arith $ac_count + 1 && ac_count=$as_val
8299     if test $ac_count -gt ${ac_path_SED_max-0}; then
8300       # Best one so far, save it but keep looking for a better one
8301       ac_cv_path_SED="$ac_path_SED"
8302       ac_path_SED_max=$ac_count
8303     fi
8304     # 10*(2^10) chars as input seems more than enough
8305     test $ac_count -gt 10 && break
8306   done
8307   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8308 esac
8309
8310       $ac_path_SED_found && break 3
8311     done
8312   done
8313   done
8314 IFS=$as_save_IFS
8315   if test -z "$ac_cv_path_SED"; then
8316     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8317   fi
8318 else
8319   ac_cv_path_SED=$SED
8320 fi
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8324 $as_echo "$ac_cv_path_SED" >&6; }
8325  SED="$ac_cv_path_SED"
8326   rm -f conftest.sed
8327
8328 test -z "$SED" && SED=sed
8329 Xsed="$SED -e 1s/^X//"
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8342 $as_echo_n "checking for fgrep... " >&6; }
8343 if ${ac_cv_path_FGREP+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8347    then ac_cv_path_FGREP="$GREP -F"
8348    else
8349      if test -z "$FGREP"; then
8350   ac_path_FGREP_found=false
8351   # Loop through the user's path and test for each of PROGNAME-LIST
8352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8354 do
8355   IFS=$as_save_IFS
8356   test -z "$as_dir" && as_dir=.
8357     for ac_prog in fgrep; do
8358     for ac_exec_ext in '' $ac_executable_extensions; do
8359       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8360       as_fn_executable_p "$ac_path_FGREP" || continue
8361 # Check for GNU ac_path_FGREP and select it if it is found.
8362   # Check for GNU $ac_path_FGREP
8363 case `"$ac_path_FGREP" --version 2>&1` in
8364 *GNU*)
8365   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8366 *)
8367   ac_count=0
8368   $as_echo_n 0123456789 >"conftest.in"
8369   while :
8370   do
8371     cat "conftest.in" "conftest.in" >"conftest.tmp"
8372     mv "conftest.tmp" "conftest.in"
8373     cp "conftest.in" "conftest.nl"
8374     $as_echo 'FGREP' >> "conftest.nl"
8375     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8376     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8377     as_fn_arith $ac_count + 1 && ac_count=$as_val
8378     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8379       # Best one so far, save it but keep looking for a better one
8380       ac_cv_path_FGREP="$ac_path_FGREP"
8381       ac_path_FGREP_max=$ac_count
8382     fi
8383     # 10*(2^10) chars as input seems more than enough
8384     test $ac_count -gt 10 && break
8385   done
8386   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8387 esac
8388
8389       $ac_path_FGREP_found && break 3
8390     done
8391   done
8392   done
8393 IFS=$as_save_IFS
8394   if test -z "$ac_cv_path_FGREP"; then
8395     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8396   fi
8397 else
8398   ac_cv_path_FGREP=$FGREP
8399 fi
8400
8401    fi
8402 fi
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8404 $as_echo "$ac_cv_path_FGREP" >&6; }
8405  FGREP="$ac_cv_path_FGREP"
8406
8407
8408 test -z "$GREP" && GREP=grep
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428 # Check whether --with-gnu-ld was given.
8429 if test "${with_gnu_ld+set}" = set; then :
8430   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8431 else
8432   with_gnu_ld=no
8433 fi
8434
8435 ac_prog=ld
8436 if test yes = "$GCC"; then
8437   # Check if gcc -print-prog-name=ld gives a path.
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8439 $as_echo_n "checking for ld used by $CC... " >&6; }
8440   case $host in
8441   *-*-mingw*)
8442     # gcc leaves a trailing carriage return, which upsets mingw
8443     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8444   *)
8445     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8446   esac
8447   case $ac_prog in
8448     # Accept absolute paths.
8449     [\\/]* | ?:[\\/]*)
8450       re_direlt='/[^/][^/]*/\.\./'
8451       # Canonicalize the pathname of ld
8452       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8453       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8454         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8455       done
8456       test -z "$LD" && LD=$ac_prog
8457       ;;
8458   "")
8459     # If it fails, then pretend we aren't using GCC.
8460     ac_prog=ld
8461     ;;
8462   *)
8463     # If it is relative, then search for the first ld in PATH.
8464     with_gnu_ld=unknown
8465     ;;
8466   esac
8467 elif test yes = "$with_gnu_ld"; then
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8469 $as_echo_n "checking for GNU ld... " >&6; }
8470 else
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8472 $as_echo_n "checking for non-GNU ld... " >&6; }
8473 fi
8474 if ${lt_cv_path_LD+:} false; then :
8475   $as_echo_n "(cached) " >&6
8476 else
8477   if test -z "$LD"; then
8478   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8479   for ac_dir in $PATH; do
8480     IFS=$lt_save_ifs
8481     test -z "$ac_dir" && ac_dir=.
8482     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8483       lt_cv_path_LD=$ac_dir/$ac_prog
8484       # Check to see if the program is GNU ld.  I'd rather use --version,
8485       # but apparently some variants of GNU ld only accept -v.
8486       # Break only if it was the GNU/non-GNU ld that we prefer.
8487       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8488       *GNU* | *'with BFD'*)
8489         test no != "$with_gnu_ld" && break
8490         ;;
8491       *)
8492         test yes != "$with_gnu_ld" && break
8493         ;;
8494       esac
8495     fi
8496   done
8497   IFS=$lt_save_ifs
8498 else
8499   lt_cv_path_LD=$LD # Let the user override the test with a path.
8500 fi
8501 fi
8502
8503 LD=$lt_cv_path_LD
8504 if test -n "$LD"; then
8505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8506 $as_echo "$LD" >&6; }
8507 else
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8513 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8514 if ${lt_cv_prog_gnu_ld+:} false; then :
8515   $as_echo_n "(cached) " >&6
8516 else
8517   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8518 case `$LD -v 2>&1 </dev/null` in
8519 *GNU* | *'with BFD'*)
8520   lt_cv_prog_gnu_ld=yes
8521   ;;
8522 *)
8523   lt_cv_prog_gnu_ld=no
8524   ;;
8525 esac
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8528 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8529 with_gnu_ld=$lt_cv_prog_gnu_ld
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8540 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8541 if ${lt_cv_path_NM+:} false; then :
8542   $as_echo_n "(cached) " >&6
8543 else
8544   if test -n "$NM"; then
8545   # Let the user override the test.
8546   lt_cv_path_NM=$NM
8547 else
8548   lt_nm_to_check=${ac_tool_prefix}nm
8549   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8550     lt_nm_to_check="$lt_nm_to_check nm"
8551   fi
8552   for lt_tmp_nm in $lt_nm_to_check; do
8553     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8554     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8555       IFS=$lt_save_ifs
8556       test -z "$ac_dir" && ac_dir=.
8557       tmp_nm=$ac_dir/$lt_tmp_nm
8558       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8559         # Check to see if the nm accepts a BSD-compat flag.
8560         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8561         #   nm: unknown option "B" ignored
8562         # Tru64's nm complains that /dev/null is an invalid object file
8563         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8564         case $build_os in
8565         mingw*) lt_bad_file=conftest.nm/nofile ;;
8566         *) lt_bad_file=/dev/null ;;
8567         esac
8568         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8569         *$lt_bad_file* | *'Invalid file or object type'*)
8570           lt_cv_path_NM="$tmp_nm -B"
8571           break 2
8572           ;;
8573         *)
8574           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8575           */dev/null*)
8576             lt_cv_path_NM="$tmp_nm -p"
8577             break 2
8578             ;;
8579           *)
8580             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8581             continue # so that we can try to find one that supports BSD flags
8582             ;;
8583           esac
8584           ;;
8585         esac
8586       fi
8587     done
8588     IFS=$lt_save_ifs
8589   done
8590   : ${lt_cv_path_NM=no}
8591 fi
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8594 $as_echo "$lt_cv_path_NM" >&6; }
8595 if test no != "$lt_cv_path_NM"; then
8596   NM=$lt_cv_path_NM
8597 else
8598   # Didn't find any BSD compatible name lister, look for dumpbin.
8599   if test -n "$DUMPBIN"; then :
8600     # Let the user override the test.
8601   else
8602     if test -n "$ac_tool_prefix"; then
8603   for ac_prog in dumpbin "link -dump"
8604   do
8605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_prog_DUMPBIN+:} false; then :
8610   $as_echo_n "(cached) " >&6
8611 else
8612   if test -n "$DUMPBIN"; then
8613   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8614 else
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618   IFS=$as_save_IFS
8619   test -z "$as_dir" && as_dir=.
8620     for ac_exec_ext in '' $ac_executable_extensions; do
8621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8622     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624     break 2
8625   fi
8626 done
8627   done
8628 IFS=$as_save_IFS
8629
8630 fi
8631 fi
8632 DUMPBIN=$ac_cv_prog_DUMPBIN
8633 if test -n "$DUMPBIN"; then
8634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8635 $as_echo "$DUMPBIN" >&6; }
8636 else
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8639 fi
8640
8641
8642     test -n "$DUMPBIN" && break
8643   done
8644 fi
8645 if test -z "$DUMPBIN"; then
8646   ac_ct_DUMPBIN=$DUMPBIN
8647   for ac_prog in dumpbin "link -dump"
8648 do
8649   # Extract the first word of "$ac_prog", so it can be a program name with args.
8650 set dummy $ac_prog; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8654   $as_echo_n "(cached) " >&6
8655 else
8656   if test -n "$ac_ct_DUMPBIN"; then
8657   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662   IFS=$as_save_IFS
8663   test -z "$as_dir" && as_dir=.
8664     for ac_exec_ext in '' $ac_executable_extensions; do
8665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668     break 2
8669   fi
8670 done
8671   done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8677 if test -n "$ac_ct_DUMPBIN"; then
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8679 $as_echo "$ac_ct_DUMPBIN" >&6; }
8680 else
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685
8686   test -n "$ac_ct_DUMPBIN" && break
8687 done
8688
8689   if test "x$ac_ct_DUMPBIN" = x; then
8690     DUMPBIN=":"
8691   else
8692     case $cross_compiling:$ac_tool_warned in
8693 yes:)
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8696 ac_tool_warned=yes ;;
8697 esac
8698     DUMPBIN=$ac_ct_DUMPBIN
8699   fi
8700 fi
8701
8702     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8703     *COFF*)
8704       DUMPBIN="$DUMPBIN -symbols -headers"
8705       ;;
8706     *)
8707       DUMPBIN=:
8708       ;;
8709     esac
8710   fi
8711
8712   if test : != "$DUMPBIN"; then
8713     NM=$DUMPBIN
8714   fi
8715 fi
8716 test -z "$NM" && NM=nm
8717
8718
8719
8720
8721
8722
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8724 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8725 if ${lt_cv_nm_interface+:} false; then :
8726   $as_echo_n "(cached) " >&6
8727 else
8728   lt_cv_nm_interface="BSD nm"
8729   echo "int some_variable = 0;" > conftest.$ac_ext
8730   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8731   (eval "$ac_compile" 2>conftest.err)
8732   cat conftest.err >&5
8733   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8734   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8735   cat conftest.err >&5
8736   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8737   cat conftest.out >&5
8738   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8739     lt_cv_nm_interface="MS dumpbin"
8740   fi
8741   rm -f conftest*
8742 fi
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8744 $as_echo "$lt_cv_nm_interface" >&6; }
8745
8746 # find the maximum length of command line arguments
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8748 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8749 if ${lt_cv_sys_max_cmd_len+:} false; then :
8750   $as_echo_n "(cached) " >&6
8751 else
8752     i=0
8753   teststring=ABCD
8754
8755   case $build_os in
8756   msdosdjgpp*)
8757     # On DJGPP, this test can blow up pretty badly due to problems in libc
8758     # (any single argument exceeding 2000 bytes causes a buffer overrun
8759     # during glob expansion).  Even if it were fixed, the result of this
8760     # check would be larger than it should be.
8761     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8762     ;;
8763
8764   gnu*)
8765     # Under GNU Hurd, this test is not required because there is
8766     # no limit to the length of command line arguments.
8767     # Libtool will interpret -1 as no limit whatsoever
8768     lt_cv_sys_max_cmd_len=-1;
8769     ;;
8770
8771   cygwin* | mingw* | cegcc*)
8772     # On Win9x/ME, this test blows up -- it succeeds, but takes
8773     # about 5 minutes as the teststring grows exponentially.
8774     # Worse, since 9x/ME are not pre-emptively multitasking,
8775     # you end up with a "frozen" computer, even though with patience
8776     # the test eventually succeeds (with a max line length of 256k).
8777     # Instead, let's just punt: use the minimum linelength reported by
8778     # all of the supported platforms: 8192 (on NT/2K/XP).
8779     lt_cv_sys_max_cmd_len=8192;
8780     ;;
8781
8782   mint*)
8783     # On MiNT this can take a long time and run out of memory.
8784     lt_cv_sys_max_cmd_len=8192;
8785     ;;
8786
8787   amigaos*)
8788     # On AmigaOS with pdksh, this test takes hours, literally.
8789     # So we just punt and use a minimum line length of 8192.
8790     lt_cv_sys_max_cmd_len=8192;
8791     ;;
8792
8793   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8794     # This has been around since 386BSD, at least.  Likely further.
8795     if test -x /sbin/sysctl; then
8796       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8797     elif test -x /usr/sbin/sysctl; then
8798       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8799     else
8800       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8801     fi
8802     # And add a safety zone
8803     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8804     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8805     ;;
8806
8807   interix*)
8808     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8809     lt_cv_sys_max_cmd_len=196608
8810     ;;
8811
8812   os2*)
8813     # The test takes a long time on OS/2.
8814     lt_cv_sys_max_cmd_len=8192
8815     ;;
8816
8817   osf*)
8818     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8819     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8820     # nice to cause kernel panics so lets avoid the loop below.
8821     # First set a reasonable default.
8822     lt_cv_sys_max_cmd_len=16384
8823     #
8824     if test -x /sbin/sysconfig; then
8825       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8826         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8827       esac
8828     fi
8829     ;;
8830   sco3.2v5*)
8831     lt_cv_sys_max_cmd_len=102400
8832     ;;
8833   sysv5* | sco5v6* | sysv4.2uw2*)
8834     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8835     if test -n "$kargmax"; then
8836       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8837     else
8838       lt_cv_sys_max_cmd_len=32768
8839     fi
8840     ;;
8841   *)
8842     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8843     if test -n "$lt_cv_sys_max_cmd_len" && \
8844        test undefined != "$lt_cv_sys_max_cmd_len"; then
8845       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8846       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8847     else
8848       # Make teststring a little bigger before we do anything with it.
8849       # a 1K string should be a reasonable start.
8850       for i in 1 2 3 4 5 6 7 8; do
8851         teststring=$teststring$teststring
8852       done
8853       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8854       # If test is not a shell built-in, we'll probably end up computing a
8855       # maximum length that is only half of the actual maximum length, but
8856       # we can't tell.
8857       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8858                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8859               test 17 != "$i" # 1/2 MB should be enough
8860       do
8861         i=`expr $i + 1`
8862         teststring=$teststring$teststring
8863       done
8864       # Only check the string length outside the loop.
8865       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8866       teststring=
8867       # Add a significant safety factor because C++ compilers can tack on
8868       # massive amounts of additional arguments before passing them to the
8869       # linker.  It appears as though 1/2 is a usable value.
8870       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8871     fi
8872     ;;
8873   esac
8874
8875 fi
8876
8877 if test -n "$lt_cv_sys_max_cmd_len"; then
8878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8879 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8880 else
8881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8882 $as_echo "none" >&6; }
8883 fi
8884 max_cmd_len=$lt_cv_sys_max_cmd_len
8885
8886
8887
8888
8889
8890
8891 : ${CP="cp -f"}
8892 : ${MV="mv -f"}
8893 : ${RM="rm -f"}
8894
8895 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8896   lt_unset=unset
8897 else
8898   lt_unset=false
8899 fi
8900
8901
8902
8903
8904
8905 # test EBCDIC or ASCII
8906 case `echo X|tr X '\101'` in
8907  A) # ASCII based system
8908     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8909   lt_SP2NL='tr \040 \012'
8910   lt_NL2SP='tr \015\012 \040\040'
8911   ;;
8912  *) # EBCDIC based system
8913   lt_SP2NL='tr \100 \n'
8914   lt_NL2SP='tr \r\n \100\100'
8915   ;;
8916 esac
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8927 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8928 if ${lt_cv_to_host_file_cmd+:} false; then :
8929   $as_echo_n "(cached) " >&6
8930 else
8931   case $host in
8932   *-*-mingw* )
8933     case $build in
8934       *-*-mingw* ) # actually msys
8935         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8936         ;;
8937       *-*-cygwin* )
8938         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8939         ;;
8940       * ) # otherwise, assume *nix
8941         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8942         ;;
8943     esac
8944     ;;
8945   *-*-cygwin* )
8946     case $build in
8947       *-*-mingw* ) # actually msys
8948         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8949         ;;
8950       *-*-cygwin* )
8951         lt_cv_to_host_file_cmd=func_convert_file_noop
8952         ;;
8953       * ) # otherwise, assume *nix
8954         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8955         ;;
8956     esac
8957     ;;
8958   * ) # unhandled hosts (and "normal" native builds)
8959     lt_cv_to_host_file_cmd=func_convert_file_noop
8960     ;;
8961 esac
8962
8963 fi
8964
8965 to_host_file_cmd=$lt_cv_to_host_file_cmd
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8967 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8968
8969
8970
8971
8972
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8974 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8975 if ${lt_cv_to_tool_file_cmd+:} false; then :
8976   $as_echo_n "(cached) " >&6
8977 else
8978   #assume ordinary cross tools, or native build.
8979 lt_cv_to_tool_file_cmd=func_convert_file_noop
8980 case $host in
8981   *-*-mingw* )
8982     case $build in
8983       *-*-mingw* ) # actually msys
8984         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8985         ;;
8986     esac
8987     ;;
8988 esac
8989
8990 fi
8991
8992 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8994 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8995
8996
8997
8998
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9001 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9002 if ${lt_cv_ld_reload_flag+:} false; then :
9003   $as_echo_n "(cached) " >&6
9004 else
9005   lt_cv_ld_reload_flag='-r'
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9008 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9009 reload_flag=$lt_cv_ld_reload_flag
9010 case $reload_flag in
9011 "" | " "*) ;;
9012 *) reload_flag=" $reload_flag" ;;
9013 esac
9014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9015 case $host_os in
9016   cygwin* | mingw* | pw32* | cegcc*)
9017     if test yes != "$GCC"; then
9018       reload_cmds=false
9019     fi
9020     ;;
9021   darwin*)
9022     if test yes = "$GCC"; then
9023       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9024     else
9025       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9026     fi
9027     ;;
9028 esac
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038 if test -n "$ac_tool_prefix"; then
9039   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if ${ac_cv_prog_OBJDUMP+:} false; then :
9044   $as_echo_n "(cached) " >&6
9045 else
9046   if test -n "$OBJDUMP"; then
9047   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9051 do
9052   IFS=$as_save_IFS
9053   test -z "$as_dir" && as_dir=.
9054     for ac_exec_ext in '' $ac_executable_extensions; do
9055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058     break 2
9059   fi
9060 done
9061   done
9062 IFS=$as_save_IFS
9063
9064 fi
9065 fi
9066 OBJDUMP=$ac_cv_prog_OBJDUMP
9067 if test -n "$OBJDUMP"; then
9068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9069 $as_echo "$OBJDUMP" >&6; }
9070 else
9071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9073 fi
9074
9075
9076 fi
9077 if test -z "$ac_cv_prog_OBJDUMP"; then
9078   ac_ct_OBJDUMP=$OBJDUMP
9079   # Extract the first word of "objdump", so it can be a program name with args.
9080 set dummy objdump; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9084   $as_echo_n "(cached) " >&6
9085 else
9086   if test -n "$ac_ct_OBJDUMP"; then
9087   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9088 else
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9091 do
9092   IFS=$as_save_IFS
9093   test -z "$as_dir" && as_dir=.
9094     for ac_exec_ext in '' $ac_executable_extensions; do
9095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098     break 2
9099   fi
9100 done
9101   done
9102 IFS=$as_save_IFS
9103
9104 fi
9105 fi
9106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9107 if test -n "$ac_ct_OBJDUMP"; then
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9109 $as_echo "$ac_ct_OBJDUMP" >&6; }
9110 else
9111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9113 fi
9114
9115   if test "x$ac_ct_OBJDUMP" = x; then
9116     OBJDUMP="false"
9117   else
9118     case $cross_compiling:$ac_tool_warned in
9119 yes:)
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9122 ac_tool_warned=yes ;;
9123 esac
9124     OBJDUMP=$ac_ct_OBJDUMP
9125   fi
9126 else
9127   OBJDUMP="$ac_cv_prog_OBJDUMP"
9128 fi
9129
9130 test -z "$OBJDUMP" && OBJDUMP=objdump
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9141 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9142 if ${lt_cv_deplibs_check_method+:} false; then :
9143   $as_echo_n "(cached) " >&6
9144 else
9145   lt_cv_file_magic_cmd='$MAGIC_CMD'
9146 lt_cv_file_magic_test_file=
9147 lt_cv_deplibs_check_method='unknown'
9148 # Need to set the preceding variable on all platforms that support
9149 # interlibrary dependencies.
9150 # 'none' -- dependencies not supported.
9151 # 'unknown' -- same as none, but documents that we really don't know.
9152 # 'pass_all' -- all dependencies passed with no checks.
9153 # 'test_compile' -- check by making test program.
9154 # 'file_magic [[regex]]' -- check by looking for files in library path
9155 # that responds to the $file_magic_cmd with a given extended regex.
9156 # If you have 'file' or equivalent on your system and you're not sure
9157 # whether 'pass_all' will *always* work, you probably want this one.
9158
9159 case $host_os in
9160 aix[4-9]*)
9161   lt_cv_deplibs_check_method=pass_all
9162   ;;
9163
9164 beos*)
9165   lt_cv_deplibs_check_method=pass_all
9166   ;;
9167
9168 bsdi[45]*)
9169   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9170   lt_cv_file_magic_cmd='/usr/bin/file -L'
9171   lt_cv_file_magic_test_file=/shlib/libc.so
9172   ;;
9173
9174 cygwin*)
9175   # func_win32_libid is a shell function defined in ltmain.sh
9176   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9177   lt_cv_file_magic_cmd='func_win32_libid'
9178   ;;
9179
9180 mingw* | pw32*)
9181   # Base MSYS/MinGW do not provide the 'file' command needed by
9182   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9183   # unless we find 'file', for example because we are cross-compiling.
9184   if ( file / ) >/dev/null 2>&1; then
9185     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9186     lt_cv_file_magic_cmd='func_win32_libid'
9187   else
9188     # Keep this pattern in sync with the one in func_win32_libid.
9189     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9190     lt_cv_file_magic_cmd='$OBJDUMP -f'
9191   fi
9192   ;;
9193
9194 cegcc*)
9195   # use the weaker test based on 'objdump'. See mingw*.
9196   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9197   lt_cv_file_magic_cmd='$OBJDUMP -f'
9198   ;;
9199
9200 darwin* | rhapsody*)
9201   lt_cv_deplibs_check_method=pass_all
9202   ;;
9203
9204 freebsd* | dragonfly*)
9205   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9206     case $host_cpu in
9207     i*86 )
9208       # Not sure whether the presence of OpenBSD here was a mistake.
9209       # Let's accept both of them until this is cleared up.
9210       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9211       lt_cv_file_magic_cmd=/usr/bin/file
9212       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9213       ;;
9214     esac
9215   else
9216     lt_cv_deplibs_check_method=pass_all
9217   fi
9218   ;;
9219
9220 haiku*)
9221   lt_cv_deplibs_check_method=pass_all
9222   ;;
9223
9224 hpux10.20* | hpux11*)
9225   lt_cv_file_magic_cmd=/usr/bin/file
9226   case $host_cpu in
9227   ia64*)
9228     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9229     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9230     ;;
9231   hppa*64*)
9232     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]'
9233     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9234     ;;
9235   *)
9236     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9237     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9238     ;;
9239   esac
9240   ;;
9241
9242 interix[3-9]*)
9243   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9244   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9245   ;;
9246
9247 irix5* | irix6* | nonstopux*)
9248   case $LD in
9249   *-32|*"-32 ") libmagic=32-bit;;
9250   *-n32|*"-n32 ") libmagic=N32;;
9251   *-64|*"-64 ") libmagic=64-bit;;
9252   *) libmagic=never-match;;
9253   esac
9254   lt_cv_deplibs_check_method=pass_all
9255   ;;
9256
9257 # This must be glibc/ELF.
9258 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9259   lt_cv_deplibs_check_method=pass_all
9260   ;;
9261
9262 netbsd* | netbsdelf*-gnu)
9263   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9264     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9265   else
9266     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9267   fi
9268   ;;
9269
9270 newos6*)
9271   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9272   lt_cv_file_magic_cmd=/usr/bin/file
9273   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9274   ;;
9275
9276 *nto* | *qnx*)
9277   lt_cv_deplibs_check_method=pass_all
9278   ;;
9279
9280 openbsd* | bitrig*)
9281   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9282     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9283   else
9284     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9285   fi
9286   ;;
9287
9288 osf3* | osf4* | osf5*)
9289   lt_cv_deplibs_check_method=pass_all
9290   ;;
9291
9292 rdos*)
9293   lt_cv_deplibs_check_method=pass_all
9294   ;;
9295
9296 solaris*)
9297   lt_cv_deplibs_check_method=pass_all
9298   ;;
9299
9300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9301   lt_cv_deplibs_check_method=pass_all
9302   ;;
9303
9304 sysv4 | sysv4.3*)
9305   case $host_vendor in
9306   motorola)
9307     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]'
9308     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9309     ;;
9310   ncr)
9311     lt_cv_deplibs_check_method=pass_all
9312     ;;
9313   sequent)
9314     lt_cv_file_magic_cmd='/bin/file'
9315     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9316     ;;
9317   sni)
9318     lt_cv_file_magic_cmd='/bin/file'
9319     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9320     lt_cv_file_magic_test_file=/lib/libc.so
9321     ;;
9322   siemens)
9323     lt_cv_deplibs_check_method=pass_all
9324     ;;
9325   pc)
9326     lt_cv_deplibs_check_method=pass_all
9327     ;;
9328   esac
9329   ;;
9330
9331 tpf*)
9332   lt_cv_deplibs_check_method=pass_all
9333   ;;
9334 os2*)
9335   lt_cv_deplibs_check_method=pass_all
9336   ;;
9337 esac
9338
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9342
9343 file_magic_glob=
9344 want_nocaseglob=no
9345 if test "$build" = "$host"; then
9346   case $host_os in
9347   mingw* | pw32*)
9348     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9349       want_nocaseglob=yes
9350     else
9351       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9352     fi
9353     ;;
9354   esac
9355 fi
9356
9357 file_magic_cmd=$lt_cv_file_magic_cmd
9358 deplibs_check_method=$lt_cv_deplibs_check_method
9359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382 if test -n "$ac_tool_prefix"; then
9383   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9384 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_prog_DLLTOOL+:} false; then :
9388   $as_echo_n "(cached) " >&6
9389 else
9390   if test -n "$DLLTOOL"; then
9391   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9392 else
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9395 do
9396   IFS=$as_save_IFS
9397   test -z "$as_dir" && as_dir=.
9398     for ac_exec_ext in '' $ac_executable_extensions; do
9399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402     break 2
9403   fi
9404 done
9405   done
9406 IFS=$as_save_IFS
9407
9408 fi
9409 fi
9410 DLLTOOL=$ac_cv_prog_DLLTOOL
9411 if test -n "$DLLTOOL"; then
9412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9413 $as_echo "$DLLTOOL" >&6; }
9414 else
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418
9419
9420 fi
9421 if test -z "$ac_cv_prog_DLLTOOL"; then
9422   ac_ct_DLLTOOL=$DLLTOOL
9423   # Extract the first word of "dlltool", so it can be a program name with args.
9424 set dummy dlltool; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9428   $as_echo_n "(cached) " >&6
9429 else
9430   if test -n "$ac_ct_DLLTOOL"; then
9431   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9432 else
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9435 do
9436   IFS=$as_save_IFS
9437   test -z "$as_dir" && as_dir=.
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_DLLTOOL="dlltool"
9441     $as_echo "$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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9451 if test -n "$ac_ct_DLLTOOL"; then
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9453 $as_echo "$ac_ct_DLLTOOL" >&6; }
9454 else
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9457 fi
9458
9459   if test "x$ac_ct_DLLTOOL" = x; then
9460     DLLTOOL="false"
9461   else
9462     case $cross_compiling:$ac_tool_warned in
9463 yes:)
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9466 ac_tool_warned=yes ;;
9467 esac
9468     DLLTOOL=$ac_ct_DLLTOOL
9469   fi
9470 else
9471   DLLTOOL="$ac_cv_prog_DLLTOOL"
9472 fi
9473
9474 test -z "$DLLTOOL" && DLLTOOL=dlltool
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9486 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9487 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9488   $as_echo_n "(cached) " >&6
9489 else
9490   lt_cv_sharedlib_from_linklib_cmd='unknown'
9491
9492 case $host_os in
9493 cygwin* | mingw* | pw32* | cegcc*)
9494   # two different shell functions defined in ltmain.sh;
9495   # decide which one to use based on capabilities of $DLLTOOL
9496   case `$DLLTOOL --help 2>&1` in
9497   *--identify-strict*)
9498     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9499     ;;
9500   *)
9501     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9502     ;;
9503   esac
9504   ;;
9505 *)
9506   # fallback: assume linklib IS sharedlib
9507   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9508   ;;
9509 esac
9510
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9513 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9514 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9515 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9516
9517
9518
9519
9520
9521
9522
9523 if test -n "$ac_tool_prefix"; then
9524   for ac_prog in ar
9525   do
9526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529 $as_echo_n "checking for $ac_word... " >&6; }
9530 if ${ac_cv_prog_AR+:} false; then :
9531   $as_echo_n "(cached) " >&6
9532 else
9533   if test -n "$AR"; then
9534   ac_cv_prog_AR="$AR" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9538 do
9539   IFS=$as_save_IFS
9540   test -z "$as_dir" && as_dir=.
9541     for ac_exec_ext in '' $ac_executable_extensions; do
9542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9543     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545     break 2
9546   fi
9547 done
9548   done
9549 IFS=$as_save_IFS
9550
9551 fi
9552 fi
9553 AR=$ac_cv_prog_AR
9554 if test -n "$AR"; then
9555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9556 $as_echo "$AR" >&6; }
9557 else
9558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9560 fi
9561
9562
9563     test -n "$AR" && break
9564   done
9565 fi
9566 if test -z "$AR"; then
9567   ac_ct_AR=$AR
9568   for ac_prog in ar
9569 do
9570   # Extract the first word of "$ac_prog", so it can be a program name with args.
9571 set dummy $ac_prog; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9575   $as_echo_n "(cached) " >&6
9576 else
9577   if test -n "$ac_ct_AR"; then
9578   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9579 else
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9582 do
9583   IFS=$as_save_IFS
9584   test -z "$as_dir" && as_dir=.
9585     for ac_exec_ext in '' $ac_executable_extensions; do
9586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587     ac_cv_prog_ac_ct_AR="$ac_prog"
9588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589     break 2
9590   fi
9591 done
9592   done
9593 IFS=$as_save_IFS
9594
9595 fi
9596 fi
9597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9598 if test -n "$ac_ct_AR"; then
9599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9600 $as_echo "$ac_ct_AR" >&6; }
9601 else
9602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 $as_echo "no" >&6; }
9604 fi
9605
9606
9607   test -n "$ac_ct_AR" && break
9608 done
9609
9610   if test "x$ac_ct_AR" = x; then
9611     AR="false"
9612   else
9613     case $cross_compiling:$ac_tool_warned in
9614 yes:)
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9617 ac_tool_warned=yes ;;
9618 esac
9619     AR=$ac_ct_AR
9620   fi
9621 fi
9622
9623 : ${AR=ar}
9624 : ${AR_FLAGS=cru}
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9637 $as_echo_n "checking for archiver @FILE support... " >&6; }
9638 if ${lt_cv_ar_at_file+:} false; then :
9639   $as_echo_n "(cached) " >&6
9640 else
9641   lt_cv_ar_at_file=no
9642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h.  */
9644
9645 int
9646 main ()
9647 {
9648
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 if ac_fn_c_try_compile "$LINENO"; then :
9654   echo conftest.$ac_objext > conftest.lst
9655       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9656       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9657   (eval $lt_ar_try) 2>&5
9658   ac_status=$?
9659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9660   test $ac_status = 0; }
9661       if test 0 -eq "$ac_status"; then
9662         # Ensure the archiver fails upon bogus file names.
9663         rm -f conftest.$ac_objext libconftest.a
9664         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9665   (eval $lt_ar_try) 2>&5
9666   ac_status=$?
9667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9668   test $ac_status = 0; }
9669         if test 0 -ne "$ac_status"; then
9670           lt_cv_ar_at_file=@
9671         fi
9672       fi
9673       rm -f conftest.* libconftest.a
9674
9675 fi
9676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677
9678 fi
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9680 $as_echo "$lt_cv_ar_at_file" >&6; }
9681
9682 if test no = "$lt_cv_ar_at_file"; then
9683   archiver_list_spec=
9684 else
9685   archiver_list_spec=$lt_cv_ar_at_file
9686 fi
9687
9688
9689
9690
9691
9692
9693
9694 if test -n "$ac_tool_prefix"; then
9695   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9696 set dummy ${ac_tool_prefix}strip; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_prog_STRIP+:} false; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   if test -n "$STRIP"; then
9703   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9704 else
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708   IFS=$as_save_IFS
9709   test -z "$as_dir" && as_dir=.
9710     for ac_exec_ext in '' $ac_executable_extensions; do
9711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714     break 2
9715   fi
9716 done
9717   done
9718 IFS=$as_save_IFS
9719
9720 fi
9721 fi
9722 STRIP=$ac_cv_prog_STRIP
9723 if test -n "$STRIP"; then
9724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9725 $as_echo "$STRIP" >&6; }
9726 else
9727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9729 fi
9730
9731
9732 fi
9733 if test -z "$ac_cv_prog_STRIP"; then
9734   ac_ct_STRIP=$STRIP
9735   # Extract the first word of "strip", so it can be a program name with args.
9736 set dummy strip; ac_word=$2
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738 $as_echo_n "checking for $ac_word... " >&6; }
9739 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9740   $as_echo_n "(cached) " >&6
9741 else
9742   if test -n "$ac_ct_STRIP"; then
9743   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9747 do
9748   IFS=$as_save_IFS
9749   test -z "$as_dir" && as_dir=.
9750     for ac_exec_ext in '' $ac_executable_extensions; do
9751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752     ac_cv_prog_ac_ct_STRIP="strip"
9753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754     break 2
9755   fi
9756 done
9757   done
9758 IFS=$as_save_IFS
9759
9760 fi
9761 fi
9762 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9763 if test -n "$ac_ct_STRIP"; then
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9765 $as_echo "$ac_ct_STRIP" >&6; }
9766 else
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9769 fi
9770
9771   if test "x$ac_ct_STRIP" = x; then
9772     STRIP=":"
9773   else
9774     case $cross_compiling:$ac_tool_warned in
9775 yes:)
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9778 ac_tool_warned=yes ;;
9779 esac
9780     STRIP=$ac_ct_STRIP
9781   fi
9782 else
9783   STRIP="$ac_cv_prog_STRIP"
9784 fi
9785
9786 test -z "$STRIP" && STRIP=:
9787
9788
9789
9790
9791
9792
9793 if test -n "$ac_tool_prefix"; then
9794   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9795 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if ${ac_cv_prog_RANLIB+:} false; then :
9799   $as_echo_n "(cached) " >&6
9800 else
9801   if test -n "$RANLIB"; then
9802   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807   IFS=$as_save_IFS
9808   test -z "$as_dir" && as_dir=.
9809     for ac_exec_ext in '' $ac_executable_extensions; do
9810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813     break 2
9814   fi
9815 done
9816   done
9817 IFS=$as_save_IFS
9818
9819 fi
9820 fi
9821 RANLIB=$ac_cv_prog_RANLIB
9822 if test -n "$RANLIB"; then
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9824 $as_echo "$RANLIB" >&6; }
9825 else
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 fi
9829
9830
9831 fi
9832 if test -z "$ac_cv_prog_RANLIB"; then
9833   ac_ct_RANLIB=$RANLIB
9834   # Extract the first word of "ranlib", so it can be a program name with args.
9835 set dummy ranlib; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   if test -n "$ac_ct_RANLIB"; then
9842   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847   IFS=$as_save_IFS
9848   test -z "$as_dir" && as_dir=.
9849     for ac_exec_ext in '' $ac_executable_extensions; do
9850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851     ac_cv_prog_ac_ct_RANLIB="ranlib"
9852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853     break 2
9854   fi
9855 done
9856   done
9857 IFS=$as_save_IFS
9858
9859 fi
9860 fi
9861 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9862 if test -n "$ac_ct_RANLIB"; then
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9864 $as_echo "$ac_ct_RANLIB" >&6; }
9865 else
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9868 fi
9869
9870   if test "x$ac_ct_RANLIB" = x; then
9871     RANLIB=":"
9872   else
9873     case $cross_compiling:$ac_tool_warned in
9874 yes:)
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9877 ac_tool_warned=yes ;;
9878 esac
9879     RANLIB=$ac_ct_RANLIB
9880   fi
9881 else
9882   RANLIB="$ac_cv_prog_RANLIB"
9883 fi
9884
9885 test -z "$RANLIB" && RANLIB=:
9886
9887
9888
9889
9890
9891
9892 # Determine commands to create old-style static archives.
9893 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9894 old_postinstall_cmds='chmod 644 $oldlib'
9895 old_postuninstall_cmds=
9896
9897 if test -n "$RANLIB"; then
9898   case $host_os in
9899   bitrig* | openbsd*)
9900     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9901     ;;
9902   *)
9903     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9904     ;;
9905   esac
9906   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9907 fi
9908
9909 case $host_os in
9910   darwin*)
9911     lock_old_archive_extraction=yes ;;
9912   *)
9913     lock_old_archive_extraction=no ;;
9914 esac
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954 # If no C compiler was specified, use CC.
9955 LTCC=${LTCC-"$CC"}
9956
9957 # If no C compiler flags were specified, use CFLAGS.
9958 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9959
9960 # Allow CC to be a program name with arguments.
9961 compiler=$CC
9962
9963
9964 # Check for command to grab the raw symbol name followed by C symbol from nm.
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9966 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9967 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970
9971 # These are sane defaults that work on at least a few old systems.
9972 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9973
9974 # Character class describing NM global symbol codes.
9975 symcode='[BCDEGRST]'
9976
9977 # Regexp to match symbols that can be accessed directly from C.
9978 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9979
9980 # Define system-specific variables.
9981 case $host_os in
9982 aix*)
9983   symcode='[BCDT]'
9984   ;;
9985 cygwin* | mingw* | pw32* | cegcc*)
9986   symcode='[ABCDGISTW]'
9987   ;;
9988 hpux*)
9989   if test ia64 = "$host_cpu"; then
9990     symcode='[ABCDEGRST]'
9991   fi
9992   ;;
9993 irix* | nonstopux*)
9994   symcode='[BCDEGRST]'
9995   ;;
9996 osf*)
9997   symcode='[BCDEGQRST]'
9998   ;;
9999 solaris*)
10000   symcode='[BDRT]'
10001   ;;
10002 sco3.2v5*)
10003   symcode='[DT]'
10004   ;;
10005 sysv4.2uw2*)
10006   symcode='[DT]'
10007   ;;
10008 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10009   symcode='[ABDT]'
10010   ;;
10011 sysv4)
10012   symcode='[DFNSTU]'
10013   ;;
10014 esac
10015
10016 # If we're using GNU nm, then use its standard symbol codes.
10017 case `$NM -V 2>&1` in
10018 *GNU* | *'with BFD'*)
10019   symcode='[ABCDGIRSTW]' ;;
10020 esac
10021
10022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10023   # Gets list of data symbols to import.
10024   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10025   # Adjust the below global symbol transforms to fixup imported variables.
10026   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10027   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10028   lt_c_name_lib_hook="\
10029   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10030   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10031 else
10032   # Disable hooks by default.
10033   lt_cv_sys_global_symbol_to_import=
10034   lt_cdecl_hook=
10035   lt_c_name_hook=
10036   lt_c_name_lib_hook=
10037 fi
10038
10039 # Transform an extracted symbol line into a proper C declaration.
10040 # Some systems (esp. on ia64) link data and code symbols differently,
10041 # so use this general approach.
10042 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10043 $lt_cdecl_hook\
10044 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10045 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10046
10047 # Transform an extracted symbol line into symbol name and symbol address
10048 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10049 $lt_c_name_hook\
10050 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10051 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10052
10053 # Transform an extracted symbol line into symbol name with lib prefix and
10054 # symbol address.
10055 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10056 $lt_c_name_lib_hook\
10057 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10058 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10059 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10060
10061 # Handle CRLF in mingw tool chain
10062 opt_cr=
10063 case $build_os in
10064 mingw*)
10065   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10066   ;;
10067 esac
10068
10069 # Try without a prefix underscore, then with it.
10070 for ac_symprfx in "" "_"; do
10071
10072   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10073   symxfrm="\\1 $ac_symprfx\\2 \\2"
10074
10075   # Write the raw and C identifiers.
10076   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10077     # Fake it for dumpbin and say T for any non-static function,
10078     # D for any global variable and I for any imported variable.
10079     # Also find C++ and __fastcall symbols from MSVC++,
10080     # which start with @ or ?.
10081     lt_cv_sys_global_symbol_pipe="$AWK '"\
10082 "     {last_section=section; section=\$ 3};"\
10083 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10084 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10085 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10086 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10087 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10088 "     \$ 0!~/External *\|/{next};"\
10089 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10090 "     {if(hide[section]) next};"\
10091 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10092 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10093 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10094 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10095 "     ' prfx=^$ac_symprfx"
10096   else
10097     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10098   fi
10099   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10100
10101   # Check to see that the pipe works correctly.
10102   pipe_works=no
10103
10104   rm -f conftest*
10105   cat > conftest.$ac_ext <<_LT_EOF
10106 #ifdef __cplusplus
10107 extern "C" {
10108 #endif
10109 char nm_test_var;
10110 void nm_test_func(void);
10111 void nm_test_func(void){}
10112 #ifdef __cplusplus
10113 }
10114 #endif
10115 int main(){nm_test_var='a';nm_test_func();return(0);}
10116 _LT_EOF
10117
10118   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10119   (eval $ac_compile) 2>&5
10120   ac_status=$?
10121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10122   test $ac_status = 0; }; then
10123     # Now try to grab the symbols.
10124     nlist=conftest.nm
10125     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10126     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10127       # Try sorting and uniquifying the output.
10128       if sort "$nlist" | uniq > "$nlist"T; then
10129         mv -f "$nlist"T "$nlist"
10130       else
10131         rm -f "$nlist"T
10132       fi
10133
10134       # Make sure that we snagged all the symbols we need.
10135       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10136         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10137           cat <<_LT_EOF > conftest.$ac_ext
10138 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10139 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10140 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10141    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10142 # define LT_DLSYM_CONST
10143 #elif defined __osf__
10144 /* This system does not cope well with relocations in const data.  */
10145 # define LT_DLSYM_CONST
10146 #else
10147 # define LT_DLSYM_CONST const
10148 #endif
10149
10150 #ifdef __cplusplus
10151 extern "C" {
10152 #endif
10153
10154 _LT_EOF
10155           # Now generate the symbol file.
10156           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10157
10158           cat <<_LT_EOF >> conftest.$ac_ext
10159
10160 /* The mapping between symbol names and symbols.  */
10161 LT_DLSYM_CONST struct {
10162   const char *name;
10163   void       *address;
10164 }
10165 lt__PROGRAM__LTX_preloaded_symbols[] =
10166 {
10167   { "@PROGRAM@", (void *) 0 },
10168 _LT_EOF
10169           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10170           cat <<\_LT_EOF >> conftest.$ac_ext
10171   {0, (void *) 0}
10172 };
10173
10174 /* This works around a problem in FreeBSD linker */
10175 #ifdef FREEBSD_WORKAROUND
10176 static const void *lt_preloaded_setup() {
10177   return lt__PROGRAM__LTX_preloaded_symbols;
10178 }
10179 #endif
10180
10181 #ifdef __cplusplus
10182 }
10183 #endif
10184 _LT_EOF
10185           # Now try linking the two files.
10186           mv conftest.$ac_objext conftstm.$ac_objext
10187           lt_globsym_save_LIBS=$LIBS
10188           lt_globsym_save_CFLAGS=$CFLAGS
10189           LIBS=conftstm.$ac_objext
10190           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10191           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10192   (eval $ac_link) 2>&5
10193   ac_status=$?
10194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10195   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10196             pipe_works=yes
10197           fi
10198           LIBS=$lt_globsym_save_LIBS
10199           CFLAGS=$lt_globsym_save_CFLAGS
10200         else
10201           echo "cannot find nm_test_func in $nlist" >&5
10202         fi
10203       else
10204         echo "cannot find nm_test_var in $nlist" >&5
10205       fi
10206     else
10207       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10208     fi
10209   else
10210     echo "$progname: failed program was:" >&5
10211     cat conftest.$ac_ext >&5
10212   fi
10213   rm -rf conftest* conftst*
10214
10215   # Do not use the global_symbol_pipe unless it works.
10216   if test yes = "$pipe_works"; then
10217     break
10218   else
10219     lt_cv_sys_global_symbol_pipe=
10220   fi
10221 done
10222
10223 fi
10224
10225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10226   lt_cv_sys_global_symbol_to_cdecl=
10227 fi
10228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10230 $as_echo "failed" >&6; }
10231 else
10232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10233 $as_echo "ok" >&6; }
10234 fi
10235
10236 # Response file support.
10237 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10238   nm_file_list_spec='@'
10239 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10240   nm_file_list_spec='@'
10241 fi
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10280 $as_echo_n "checking for sysroot... " >&6; }
10281
10282 # Check whether --with-sysroot was given.
10283 if test "${with_sysroot+set}" = set; then :
10284   withval=$with_sysroot;
10285 else
10286   with_sysroot=no
10287 fi
10288
10289
10290 lt_sysroot=
10291 case $with_sysroot in #(
10292  yes)
10293    if test yes = "$GCC"; then
10294      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10295    fi
10296    ;; #(
10297  /*)
10298    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10299    ;; #(
10300  no|'')
10301    ;; #(
10302  *)
10303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10304 $as_echo "$with_sysroot" >&6; }
10305    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10306    ;;
10307 esac
10308
10309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10310 $as_echo "${lt_sysroot:-no}" >&6; }
10311
10312
10313
10314
10315
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10317 $as_echo_n "checking for a working dd... " >&6; }
10318 if ${ac_cv_path_lt_DD+:} false; then :
10319   $as_echo_n "(cached) " >&6
10320 else
10321   printf 0123456789abcdef0123456789abcdef >conftest.i
10322 cat conftest.i conftest.i >conftest2.i
10323 : ${lt_DD:=$DD}
10324 if test -z "$lt_DD"; then
10325   ac_path_lt_DD_found=false
10326   # Loop through the user's path and test for each of PROGNAME-LIST
10327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10329 do
10330   IFS=$as_save_IFS
10331   test -z "$as_dir" && as_dir=.
10332     for ac_prog in dd; do
10333     for ac_exec_ext in '' $ac_executable_extensions; do
10334       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10335       as_fn_executable_p "$ac_path_lt_DD" || continue
10336 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10337   cmp -s conftest.i conftest.out \
10338   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10339 fi
10340       $ac_path_lt_DD_found && break 3
10341     done
10342   done
10343   done
10344 IFS=$as_save_IFS
10345   if test -z "$ac_cv_path_lt_DD"; then
10346     :
10347   fi
10348 else
10349   ac_cv_path_lt_DD=$lt_DD
10350 fi
10351
10352 rm -f conftest.i conftest2.i conftest.out
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10355 $as_echo "$ac_cv_path_lt_DD" >&6; }
10356
10357
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10359 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10360 if ${lt_cv_truncate_bin+:} false; then :
10361   $as_echo_n "(cached) " >&6
10362 else
10363   printf 0123456789abcdef0123456789abcdef >conftest.i
10364 cat conftest.i conftest.i >conftest2.i
10365 lt_cv_truncate_bin=
10366 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10367   cmp -s conftest.i conftest.out \
10368   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10369 fi
10370 rm -f conftest.i conftest2.i conftest.out
10371 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10374 $as_echo "$lt_cv_truncate_bin" >&6; }
10375
10376
10377
10378
10379
10380
10381
10382 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10383 func_cc_basename ()
10384 {
10385     for cc_temp in $*""; do
10386       case $cc_temp in
10387         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10388         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10389         \-*) ;;
10390         *) break;;
10391       esac
10392     done
10393     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10394 }
10395
10396 # Check whether --enable-libtool-lock was given.
10397 if test "${enable_libtool_lock+set}" = set; then :
10398   enableval=$enable_libtool_lock;
10399 fi
10400
10401 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10402
10403 # Some flags need to be propagated to the compiler or linker for good
10404 # libtool support.
10405 case $host in
10406 ia64-*-hpux*)
10407   # Find out what ABI is being produced by ac_compile, and set mode
10408   # options accordingly.
10409   echo 'int i;' > conftest.$ac_ext
10410   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10411   (eval $ac_compile) 2>&5
10412   ac_status=$?
10413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10414   test $ac_status = 0; }; then
10415     case `/usr/bin/file conftest.$ac_objext` in
10416       *ELF-32*)
10417         HPUX_IA64_MODE=32
10418         ;;
10419       *ELF-64*)
10420         HPUX_IA64_MODE=64
10421         ;;
10422     esac
10423   fi
10424   rm -rf conftest*
10425   ;;
10426 *-*-irix6*)
10427   # Find out what ABI is being produced by ac_compile, and set linker
10428   # options accordingly.
10429   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10430   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10431   (eval $ac_compile) 2>&5
10432   ac_status=$?
10433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10434   test $ac_status = 0; }; then
10435     if test yes = "$lt_cv_prog_gnu_ld"; then
10436       case `/usr/bin/file conftest.$ac_objext` in
10437         *32-bit*)
10438           LD="${LD-ld} -melf32bsmip"
10439           ;;
10440         *N32*)
10441           LD="${LD-ld} -melf32bmipn32"
10442           ;;
10443         *64-bit*)
10444           LD="${LD-ld} -melf64bmip"
10445         ;;
10446       esac
10447     else
10448       case `/usr/bin/file conftest.$ac_objext` in
10449         *32-bit*)
10450           LD="${LD-ld} -32"
10451           ;;
10452         *N32*)
10453           LD="${LD-ld} -n32"
10454           ;;
10455         *64-bit*)
10456           LD="${LD-ld} -64"
10457           ;;
10458       esac
10459     fi
10460   fi
10461   rm -rf conftest*
10462   ;;
10463
10464 mips64*-*linux*)
10465   # Find out what ABI is being produced by ac_compile, and set linker
10466   # options accordingly.
10467   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10468   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10469   (eval $ac_compile) 2>&5
10470   ac_status=$?
10471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10472   test $ac_status = 0; }; then
10473     emul=elf
10474     case `/usr/bin/file conftest.$ac_objext` in
10475       *32-bit*)
10476         emul="${emul}32"
10477         ;;
10478       *64-bit*)
10479         emul="${emul}64"
10480         ;;
10481     esac
10482     case `/usr/bin/file conftest.$ac_objext` in
10483       *MSB*)
10484         emul="${emul}btsmip"
10485         ;;
10486       *LSB*)
10487         emul="${emul}ltsmip"
10488         ;;
10489     esac
10490     case `/usr/bin/file conftest.$ac_objext` in
10491       *N32*)
10492         emul="${emul}n32"
10493         ;;
10494     esac
10495     LD="${LD-ld} -m $emul"
10496   fi
10497   rm -rf conftest*
10498   ;;
10499
10500 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10501 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10502   # Find out what ABI is being produced by ac_compile, and set linker
10503   # options accordingly.  Note that the listed cases only cover the
10504   # situations where additional linker options are needed (such as when
10505   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10506   # vice versa); the common cases where no linker options are needed do
10507   # not appear in the list.
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   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513   test $ac_status = 0; }; then
10514     case `/usr/bin/file conftest.o` in
10515       *32-bit*)
10516         case $host in
10517           x86_64-*kfreebsd*-gnu)
10518             LD="${LD-ld} -m elf_i386_fbsd"
10519             ;;
10520           x86_64-*linux*)
10521             case `/usr/bin/file conftest.o` in
10522               *x86-64*)
10523                 LD="${LD-ld} -m elf32_x86_64"
10524                 ;;
10525               *)
10526                 LD="${LD-ld} -m elf_i386"
10527                 ;;
10528             esac
10529             ;;
10530           powerpc64le-*linux*)
10531             LD="${LD-ld} -m elf32lppclinux"
10532             ;;
10533           powerpc64-*linux*)
10534             LD="${LD-ld} -m elf32ppclinux"
10535             ;;
10536           s390x-*linux*)
10537             LD="${LD-ld} -m elf_s390"
10538             ;;
10539           sparc64-*linux*)
10540             LD="${LD-ld} -m elf32_sparc"
10541             ;;
10542         esac
10543         ;;
10544       *64-bit*)
10545         case $host in
10546           x86_64-*kfreebsd*-gnu)
10547             LD="${LD-ld} -m elf_x86_64_fbsd"
10548             ;;
10549           x86_64-*linux*)
10550             LD="${LD-ld} -m elf_x86_64"
10551             ;;
10552           powerpcle-*linux*)
10553             LD="${LD-ld} -m elf64lppc"
10554             ;;
10555           powerpc-*linux*)
10556             LD="${LD-ld} -m elf64ppc"
10557             ;;
10558           s390*-*linux*|s390*-*tpf*)
10559             LD="${LD-ld} -m elf64_s390"
10560             ;;
10561           sparc*-*linux*)
10562             LD="${LD-ld} -m elf64_sparc"
10563             ;;
10564         esac
10565         ;;
10566     esac
10567   fi
10568   rm -rf conftest*
10569   ;;
10570
10571 *-*-sco3.2v5*)
10572   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10573   SAVE_CFLAGS=$CFLAGS
10574   CFLAGS="$CFLAGS -belf"
10575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10576 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10577 if ${lt_cv_cc_needs_belf+:} false; then :
10578   $as_echo_n "(cached) " >&6
10579 else
10580   ac_ext=c
10581 ac_cpp='$CPP $CPPFLAGS'
10582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10585
10586      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h.  */
10588
10589 int
10590 main ()
10591 {
10592
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 if ac_fn_c_try_link "$LINENO"; then :
10598   lt_cv_cc_needs_belf=yes
10599 else
10600   lt_cv_cc_needs_belf=no
10601 fi
10602 rm -f core conftest.err conftest.$ac_objext \
10603     conftest$ac_exeext conftest.$ac_ext
10604      ac_ext=c
10605 ac_cpp='$CPP $CPPFLAGS'
10606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10609
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10612 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10613   if test yes != "$lt_cv_cc_needs_belf"; then
10614     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10615     CFLAGS=$SAVE_CFLAGS
10616   fi
10617   ;;
10618 *-*solaris*)
10619   # Find out what ABI is being produced by ac_compile, and set linker
10620   # options accordingly.
10621   echo 'int i;' > conftest.$ac_ext
10622   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10623   (eval $ac_compile) 2>&5
10624   ac_status=$?
10625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10626   test $ac_status = 0; }; then
10627     case `/usr/bin/file conftest.o` in
10628     *64-bit*)
10629       case $lt_cv_prog_gnu_ld in
10630       yes*)
10631         case $host in
10632         i?86-*-solaris*|x86_64-*-solaris*)
10633           LD="${LD-ld} -m elf_x86_64"
10634           ;;
10635         sparc*-*-solaris*)
10636           LD="${LD-ld} -m elf64_sparc"
10637           ;;
10638         esac
10639         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10640         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10641           LD=${LD-ld}_sol2
10642         fi
10643         ;;
10644       *)
10645         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10646           LD="${LD-ld} -64"
10647         fi
10648         ;;
10649       esac
10650       ;;
10651     esac
10652   fi
10653   rm -rf conftest*
10654   ;;
10655 esac
10656
10657 need_locks=$enable_libtool_lock
10658
10659 if test -n "$ac_tool_prefix"; then
10660   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10661 set dummy ${ac_tool_prefix}mt; ac_word=$2
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663 $as_echo_n "checking for $ac_word... " >&6; }
10664 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10665   $as_echo_n "(cached) " >&6
10666 else
10667   if test -n "$MANIFEST_TOOL"; then
10668   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10669 else
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10672 do
10673   IFS=$as_save_IFS
10674   test -z "$as_dir" && as_dir=.
10675     for ac_exec_ext in '' $ac_executable_extensions; do
10676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679     break 2
10680   fi
10681 done
10682   done
10683 IFS=$as_save_IFS
10684
10685 fi
10686 fi
10687 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10688 if test -n "$MANIFEST_TOOL"; then
10689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10690 $as_echo "$MANIFEST_TOOL" >&6; }
10691 else
10692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10694 fi
10695
10696
10697 fi
10698 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10699   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10700   # Extract the first word of "mt", so it can be a program name with args.
10701 set dummy mt; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10705   $as_echo_n "(cached) " >&6
10706 else
10707   if test -n "$ac_ct_MANIFEST_TOOL"; then
10708   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10712 do
10713   IFS=$as_save_IFS
10714   test -z "$as_dir" && as_dir=.
10715     for ac_exec_ext in '' $ac_executable_extensions; do
10716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719     break 2
10720   fi
10721 done
10722   done
10723 IFS=$as_save_IFS
10724
10725 fi
10726 fi
10727 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10728 if test -n "$ac_ct_MANIFEST_TOOL"; then
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10730 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10731 else
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734 fi
10735
10736   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10737     MANIFEST_TOOL=":"
10738   else
10739     case $cross_compiling:$ac_tool_warned in
10740 yes:)
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10743 ac_tool_warned=yes ;;
10744 esac
10745     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10746   fi
10747 else
10748   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10749 fi
10750
10751 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10753 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10754 if ${lt_cv_path_mainfest_tool+:} false; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   lt_cv_path_mainfest_tool=no
10758   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10759   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10760   cat conftest.err >&5
10761   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10762     lt_cv_path_mainfest_tool=yes
10763   fi
10764   rm -f conftest*
10765 fi
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10767 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10768 if test yes != "$lt_cv_path_mainfest_tool"; then
10769   MANIFEST_TOOL=:
10770 fi
10771
10772
10773
10774
10775
10776
10777   case $host_os in
10778     rhapsody* | darwin*)
10779     if test -n "$ac_tool_prefix"; then
10780   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10781 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   if test -n "$DSYMUTIL"; then
10788   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10789 else
10790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10792 do
10793   IFS=$as_save_IFS
10794   test -z "$as_dir" && as_dir=.
10795     for ac_exec_ext in '' $ac_executable_extensions; do
10796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799     break 2
10800   fi
10801 done
10802   done
10803 IFS=$as_save_IFS
10804
10805 fi
10806 fi
10807 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10808 if test -n "$DSYMUTIL"; then
10809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10810 $as_echo "$DSYMUTIL" >&6; }
10811 else
10812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814 fi
10815
10816
10817 fi
10818 if test -z "$ac_cv_prog_DSYMUTIL"; then
10819   ac_ct_DSYMUTIL=$DSYMUTIL
10820   # Extract the first word of "dsymutil", so it can be a program name with args.
10821 set dummy dsymutil; ac_word=$2
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823 $as_echo_n "checking for $ac_word... " >&6; }
10824 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10825   $as_echo_n "(cached) " >&6
10826 else
10827   if test -n "$ac_ct_DSYMUTIL"; then
10828   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10829 else
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10832 do
10833   IFS=$as_save_IFS
10834   test -z "$as_dir" && as_dir=.
10835     for ac_exec_ext in '' $ac_executable_extensions; do
10836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10837     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839     break 2
10840   fi
10841 done
10842   done
10843 IFS=$as_save_IFS
10844
10845 fi
10846 fi
10847 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10848 if test -n "$ac_ct_DSYMUTIL"; then
10849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10850 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10851 else
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10854 fi
10855
10856   if test "x$ac_ct_DSYMUTIL" = x; then
10857     DSYMUTIL=":"
10858   else
10859     case $cross_compiling:$ac_tool_warned in
10860 yes:)
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10863 ac_tool_warned=yes ;;
10864 esac
10865     DSYMUTIL=$ac_ct_DSYMUTIL
10866   fi
10867 else
10868   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10869 fi
10870
10871     if test -n "$ac_tool_prefix"; then
10872   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10873 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if ${ac_cv_prog_NMEDIT+:} false; then :
10877   $as_echo_n "(cached) " >&6
10878 else
10879   if test -n "$NMEDIT"; then
10880   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10881 else
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $PATH
10884 do
10885   IFS=$as_save_IFS
10886   test -z "$as_dir" && as_dir=.
10887     for ac_exec_ext in '' $ac_executable_extensions; do
10888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10889     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10891     break 2
10892   fi
10893 done
10894   done
10895 IFS=$as_save_IFS
10896
10897 fi
10898 fi
10899 NMEDIT=$ac_cv_prog_NMEDIT
10900 if test -n "$NMEDIT"; then
10901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10902 $as_echo "$NMEDIT" >&6; }
10903 else
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906 fi
10907
10908
10909 fi
10910 if test -z "$ac_cv_prog_NMEDIT"; then
10911   ac_ct_NMEDIT=$NMEDIT
10912   # Extract the first word of "nmedit", so it can be a program name with args.
10913 set dummy nmedit; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10917   $as_echo_n "(cached) " >&6
10918 else
10919   if test -n "$ac_ct_NMEDIT"; then
10920   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10921 else
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10924 do
10925   IFS=$as_save_IFS
10926   test -z "$as_dir" && as_dir=.
10927     for ac_exec_ext in '' $ac_executable_extensions; do
10928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931     break 2
10932   fi
10933 done
10934   done
10935 IFS=$as_save_IFS
10936
10937 fi
10938 fi
10939 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10940 if test -n "$ac_ct_NMEDIT"; then
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10942 $as_echo "$ac_ct_NMEDIT" >&6; }
10943 else
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10946 fi
10947
10948   if test "x$ac_ct_NMEDIT" = x; then
10949     NMEDIT=":"
10950   else
10951     case $cross_compiling:$ac_tool_warned in
10952 yes:)
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10955 ac_tool_warned=yes ;;
10956 esac
10957     NMEDIT=$ac_ct_NMEDIT
10958   fi
10959 else
10960   NMEDIT="$ac_cv_prog_NMEDIT"
10961 fi
10962
10963     if test -n "$ac_tool_prefix"; then
10964   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10965 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if ${ac_cv_prog_LIPO+:} false; then :
10969   $as_echo_n "(cached) " >&6
10970 else
10971   if test -n "$LIPO"; then
10972   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10973 else
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10976 do
10977   IFS=$as_save_IFS
10978   test -z "$as_dir" && as_dir=.
10979     for ac_exec_ext in '' $ac_executable_extensions; do
10980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983     break 2
10984   fi
10985 done
10986   done
10987 IFS=$as_save_IFS
10988
10989 fi
10990 fi
10991 LIPO=$ac_cv_prog_LIPO
10992 if test -n "$LIPO"; then
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10994 $as_echo "$LIPO" >&6; }
10995 else
10996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
10998 fi
10999
11000
11001 fi
11002 if test -z "$ac_cv_prog_LIPO"; then
11003   ac_ct_LIPO=$LIPO
11004   # Extract the first word of "lipo", so it can be a program name with args.
11005 set dummy lipo; ac_word=$2
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007 $as_echo_n "checking for $ac_word... " >&6; }
11008 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11009   $as_echo_n "(cached) " >&6
11010 else
11011   if test -n "$ac_ct_LIPO"; then
11012   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11013 else
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11016 do
11017   IFS=$as_save_IFS
11018   test -z "$as_dir" && as_dir=.
11019     for ac_exec_ext in '' $ac_executable_extensions; do
11020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021     ac_cv_prog_ac_ct_LIPO="lipo"
11022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023     break 2
11024   fi
11025 done
11026   done
11027 IFS=$as_save_IFS
11028
11029 fi
11030 fi
11031 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11032 if test -n "$ac_ct_LIPO"; then
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11034 $as_echo "$ac_ct_LIPO" >&6; }
11035 else
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11038 fi
11039
11040   if test "x$ac_ct_LIPO" = x; then
11041     LIPO=":"
11042   else
11043     case $cross_compiling:$ac_tool_warned in
11044 yes:)
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11047 ac_tool_warned=yes ;;
11048 esac
11049     LIPO=$ac_ct_LIPO
11050   fi
11051 else
11052   LIPO="$ac_cv_prog_LIPO"
11053 fi
11054
11055     if test -n "$ac_tool_prefix"; then
11056   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11057 set dummy ${ac_tool_prefix}otool; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059 $as_echo_n "checking for $ac_word... " >&6; }
11060 if ${ac_cv_prog_OTOOL+:} false; then :
11061   $as_echo_n "(cached) " >&6
11062 else
11063   if test -n "$OTOOL"; then
11064   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11065 else
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11068 do
11069   IFS=$as_save_IFS
11070   test -z "$as_dir" && as_dir=.
11071     for ac_exec_ext in '' $ac_executable_extensions; do
11072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11073     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075     break 2
11076   fi
11077 done
11078   done
11079 IFS=$as_save_IFS
11080
11081 fi
11082 fi
11083 OTOOL=$ac_cv_prog_OTOOL
11084 if test -n "$OTOOL"; then
11085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11086 $as_echo "$OTOOL" >&6; }
11087 else
11088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11090 fi
11091
11092
11093 fi
11094 if test -z "$ac_cv_prog_OTOOL"; then
11095   ac_ct_OTOOL=$OTOOL
11096   # Extract the first word of "otool", so it can be a program name with args.
11097 set dummy otool; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11101   $as_echo_n "(cached) " >&6
11102 else
11103   if test -n "$ac_ct_OTOOL"; then
11104   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109   IFS=$as_save_IFS
11110   test -z "$as_dir" && as_dir=.
11111     for ac_exec_ext in '' $ac_executable_extensions; do
11112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113     ac_cv_prog_ac_ct_OTOOL="otool"
11114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115     break 2
11116   fi
11117 done
11118   done
11119 IFS=$as_save_IFS
11120
11121 fi
11122 fi
11123 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11124 if test -n "$ac_ct_OTOOL"; then
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11126 $as_echo "$ac_ct_OTOOL" >&6; }
11127 else
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132   if test "x$ac_ct_OTOOL" = x; then
11133     OTOOL=":"
11134   else
11135     case $cross_compiling:$ac_tool_warned in
11136 yes:)
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11139 ac_tool_warned=yes ;;
11140 esac
11141     OTOOL=$ac_ct_OTOOL
11142   fi
11143 else
11144   OTOOL="$ac_cv_prog_OTOOL"
11145 fi
11146
11147     if test -n "$ac_tool_prefix"; then
11148   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11149 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if ${ac_cv_prog_OTOOL64+:} false; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   if test -n "$OTOOL64"; then
11156   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11157 else
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161   IFS=$as_save_IFS
11162   test -z "$as_dir" && as_dir=.
11163     for ac_exec_ext in '' $ac_executable_extensions; do
11164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167     break 2
11168   fi
11169 done
11170   done
11171 IFS=$as_save_IFS
11172
11173 fi
11174 fi
11175 OTOOL64=$ac_cv_prog_OTOOL64
11176 if test -n "$OTOOL64"; then
11177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11178 $as_echo "$OTOOL64" >&6; }
11179 else
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182 fi
11183
11184
11185 fi
11186 if test -z "$ac_cv_prog_OTOOL64"; then
11187   ac_ct_OTOOL64=$OTOOL64
11188   # Extract the first word of "otool64", so it can be a program name with args.
11189 set dummy otool64; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11193   $as_echo_n "(cached) " >&6
11194 else
11195   if test -n "$ac_ct_OTOOL64"; then
11196   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11197 else
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11200 do
11201   IFS=$as_save_IFS
11202   test -z "$as_dir" && as_dir=.
11203     for ac_exec_ext in '' $ac_executable_extensions; do
11204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205     ac_cv_prog_ac_ct_OTOOL64="otool64"
11206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207     break 2
11208   fi
11209 done
11210   done
11211 IFS=$as_save_IFS
11212
11213 fi
11214 fi
11215 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11216 if test -n "$ac_ct_OTOOL64"; then
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11218 $as_echo "$ac_ct_OTOOL64" >&6; }
11219 else
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11222 fi
11223
11224   if test "x$ac_ct_OTOOL64" = x; then
11225     OTOOL64=":"
11226   else
11227     case $cross_compiling:$ac_tool_warned in
11228 yes:)
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11231 ac_tool_warned=yes ;;
11232 esac
11233     OTOOL64=$ac_ct_OTOOL64
11234   fi
11235 else
11236   OTOOL64="$ac_cv_prog_OTOOL64"
11237 fi
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11266 $as_echo_n "checking for -single_module linker flag... " >&6; }
11267 if ${lt_cv_apple_cc_single_mod+:} false; then :
11268   $as_echo_n "(cached) " >&6
11269 else
11270   lt_cv_apple_cc_single_mod=no
11271       if test -z "$LT_MULTI_MODULE"; then
11272         # By default we will add the -single_module flag. You can override
11273         # by either setting the environment variable LT_MULTI_MODULE
11274         # non-empty at configure time, or by adding -multi_module to the
11275         # link flags.
11276         rm -rf libconftest.dylib*
11277         echo "int foo(void){return 1;}" > conftest.c
11278         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11279 -dynamiclib -Wl,-single_module conftest.c" >&5
11280         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11281           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11282         _lt_result=$?
11283         # If there is a non-empty error log, and "single_module"
11284         # appears in it, assume the flag caused a linker warning
11285         if test -s conftest.err && $GREP single_module conftest.err; then
11286           cat conftest.err >&5
11287         # Otherwise, if the output was created with a 0 exit code from
11288         # the compiler, it worked.
11289         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11290           lt_cv_apple_cc_single_mod=yes
11291         else
11292           cat conftest.err >&5
11293         fi
11294         rm -rf libconftest.dylib*
11295         rm -f conftest.*
11296       fi
11297 fi
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11299 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11300
11301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11302 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11303 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   lt_cv_ld_exported_symbols_list=no
11307       save_LDFLAGS=$LDFLAGS
11308       echo "_main" > conftest.sym
11309       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11310       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h.  */
11312
11313 int
11314 main ()
11315 {
11316
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322   lt_cv_ld_exported_symbols_list=yes
11323 else
11324   lt_cv_ld_exported_symbols_list=no
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327     conftest$ac_exeext conftest.$ac_ext
11328         LDFLAGS=$save_LDFLAGS
11329
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11332 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11333
11334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11335 $as_echo_n "checking for -force_load linker flag... " >&6; }
11336 if ${lt_cv_ld_force_load+:} false; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   lt_cv_ld_force_load=no
11340       cat > conftest.c << _LT_EOF
11341 int forced_loaded() { return 2;}
11342 _LT_EOF
11343       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11344       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11345       echo "$AR cru libconftest.a conftest.o" >&5
11346       $AR cru libconftest.a conftest.o 2>&5
11347       echo "$RANLIB libconftest.a" >&5
11348       $RANLIB libconftest.a 2>&5
11349       cat > conftest.c << _LT_EOF
11350 int main() { return 0;}
11351 _LT_EOF
11352       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11353       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11354       _lt_result=$?
11355       if test -s conftest.err && $GREP force_load conftest.err; then
11356         cat conftest.err >&5
11357       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11358         lt_cv_ld_force_load=yes
11359       else
11360         cat conftest.err >&5
11361       fi
11362         rm -f conftest.err libconftest.a conftest conftest.c
11363         rm -rf conftest.dSYM
11364
11365 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11367 $as_echo "$lt_cv_ld_force_load" >&6; }
11368     case $host_os in
11369     rhapsody* | darwin1.[012])
11370       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11371     darwin1.*)
11372       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11373     darwin*) # darwin 5.x on
11374       # if running on 10.5 or later, the deployment target defaults
11375       # to the OS version, if on x86, and 10.4, the deployment
11376       # target defaults to 10.4. Don't you love it?
11377       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11378         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11379           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11380         10.[012][,.]*)
11381           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11382         10.*)
11383           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11384       esac
11385     ;;
11386   esac
11387     if test yes = "$lt_cv_apple_cc_single_mod"; then
11388       _lt_dar_single_mod='$single_module'
11389     fi
11390     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11391       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11392     else
11393       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11394     fi
11395     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11396       _lt_dsymutil='~$DSYMUTIL $lib || :'
11397     else
11398       _lt_dsymutil=
11399     fi
11400     ;;
11401   esac
11402
11403 # func_munge_path_list VARIABLE PATH
11404 # -----------------------------------
11405 # VARIABLE is name of variable containing _space_ separated list of
11406 # directories to be munged by the contents of PATH, which is string
11407 # having a format:
11408 # "DIR[:DIR]:"
11409 #       string "DIR[ DIR]" will be prepended to VARIABLE
11410 # ":DIR[:DIR]"
11411 #       string "DIR[ DIR]" will be appended to VARIABLE
11412 # "DIRP[:DIRP]::[DIRA:]DIRA"
11413 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11414 #       "DIRA[ DIRA]" will be appended to VARIABLE
11415 # "DIR[:DIR]"
11416 #       VARIABLE will be replaced by "DIR[ DIR]"
11417 func_munge_path_list ()
11418 {
11419     case x$2 in
11420     x)
11421         ;;
11422     *:)
11423         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11424         ;;
11425     x:*)
11426         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11427         ;;
11428     *::*)
11429         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11430         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11431         ;;
11432     *)
11433         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11434         ;;
11435     esac
11436 }
11437
11438 for ac_header in dlfcn.h
11439 do :
11440   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11441 "
11442 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11443   cat >>confdefs.h <<_ACEOF
11444 #define HAVE_DLFCN_H 1
11445 _ACEOF
11446
11447 fi
11448
11449 done
11450
11451
11452
11453
11454
11455 # Set options
11456 # Check whether --enable-static was given.
11457 if test "${enable_static+set}" = set; then :
11458   enableval=$enable_static; p=${PACKAGE-default}
11459     case $enableval in
11460     yes) enable_static=yes ;;
11461     no) enable_static=no ;;
11462     *)
11463      enable_static=no
11464       # Look at the argument we got.  We use all the common list separators.
11465       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11466       for pkg in $enableval; do
11467         IFS=$lt_save_ifs
11468         if test "X$pkg" = "X$p"; then
11469           enable_static=yes
11470         fi
11471       done
11472       IFS=$lt_save_ifs
11473       ;;
11474     esac
11475 else
11476   enable_static=no
11477 fi
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488         enable_dlopen=no
11489
11490
11491   enable_win32_dll=no
11492
11493
11494             # Check whether --enable-shared was given.
11495 if test "${enable_shared+set}" = set; then :
11496   enableval=$enable_shared; p=${PACKAGE-default}
11497     case $enableval in
11498     yes) enable_shared=yes ;;
11499     no) enable_shared=no ;;
11500     *)
11501       enable_shared=no
11502       # Look at the argument we got.  We use all the common list separators.
11503       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11504       for pkg in $enableval; do
11505         IFS=$lt_save_ifs
11506         if test "X$pkg" = "X$p"; then
11507           enable_shared=yes
11508         fi
11509       done
11510       IFS=$lt_save_ifs
11511       ;;
11512     esac
11513 else
11514   enable_shared=yes
11515 fi
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527 # Check whether --with-pic was given.
11528 if test "${with_pic+set}" = set; then :
11529   withval=$with_pic; lt_p=${PACKAGE-default}
11530     case $withval in
11531     yes|no) pic_mode=$withval ;;
11532     *)
11533       pic_mode=default
11534       # Look at the argument we got.  We use all the common list separators.
11535       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11536       for lt_pkg in $withval; do
11537         IFS=$lt_save_ifs
11538         if test "X$lt_pkg" = "X$lt_p"; then
11539           pic_mode=yes
11540         fi
11541       done
11542       IFS=$lt_save_ifs
11543       ;;
11544     esac
11545 else
11546   pic_mode=default
11547 fi
11548
11549
11550
11551
11552
11553
11554
11555
11556   # Check whether --enable-fast-install was given.
11557 if test "${enable_fast_install+set}" = set; then :
11558   enableval=$enable_fast_install; p=${PACKAGE-default}
11559     case $enableval in
11560     yes) enable_fast_install=yes ;;
11561     no) enable_fast_install=no ;;
11562     *)
11563       enable_fast_install=no
11564       # Look at the argument we got.  We use all the common list separators.
11565       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11566       for pkg in $enableval; do
11567         IFS=$lt_save_ifs
11568         if test "X$pkg" = "X$p"; then
11569           enable_fast_install=yes
11570         fi
11571       done
11572       IFS=$lt_save_ifs
11573       ;;
11574     esac
11575 else
11576   enable_fast_install=yes
11577 fi
11578
11579
11580
11581
11582
11583
11584
11585
11586   shared_archive_member_spec=
11587 case $host,$enable_shared in
11588 power*-*-aix[5-9]*,yes)
11589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11590 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11591
11592 # Check whether --with-aix-soname was given.
11593 if test "${with_aix_soname+set}" = set; then :
11594   withval=$with_aix_soname; case $withval in
11595     aix|svr4|both)
11596       ;;
11597     *)
11598       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11599       ;;
11600     esac
11601     lt_cv_with_aix_soname=$with_aix_soname
11602 else
11603   if ${lt_cv_with_aix_soname+:} false; then :
11604   $as_echo_n "(cached) " >&6
11605 else
11606   lt_cv_with_aix_soname=aix
11607 fi
11608
11609     with_aix_soname=$lt_cv_with_aix_soname
11610 fi
11611
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11613 $as_echo "$with_aix_soname" >&6; }
11614   if test aix != "$with_aix_soname"; then
11615     # For the AIX way of multilib, we name the shared archive member
11616     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11617     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11618     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11619     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11620     if test 64 = "${OBJECT_MODE-32}"; then
11621       shared_archive_member_spec=shr_64
11622     else
11623       shared_archive_member_spec=shr
11624     fi
11625   fi
11626   ;;
11627 *)
11628   with_aix_soname=aix
11629   ;;
11630 esac
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 # This can be used to rebuild libtool when needed
11642 LIBTOOL_DEPS=$ltmain
11643
11644 # Always use our own libtool.
11645 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676 test -z "$LN_S" && LN_S="ln -s"
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691 if test -n "${ZSH_VERSION+set}"; then
11692    setopt NO_GLOB_SUBST
11693 fi
11694
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11696 $as_echo_n "checking for objdir... " >&6; }
11697 if ${lt_cv_objdir+:} false; then :
11698   $as_echo_n "(cached) " >&6
11699 else
11700   rm -f .libs 2>/dev/null
11701 mkdir .libs 2>/dev/null
11702 if test -d .libs; then
11703   lt_cv_objdir=.libs
11704 else
11705   # MS-DOS does not allow filenames that begin with a dot.
11706   lt_cv_objdir=_libs
11707 fi
11708 rmdir .libs 2>/dev/null
11709 fi
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11711 $as_echo "$lt_cv_objdir" >&6; }
11712 objdir=$lt_cv_objdir
11713
11714
11715
11716
11717
11718 cat >>confdefs.h <<_ACEOF
11719 #define LT_OBJDIR "$lt_cv_objdir/"
11720 _ACEOF
11721
11722
11723
11724
11725 case $host_os in
11726 aix3*)
11727   # AIX sometimes has problems with the GCC collect2 program.  For some
11728   # reason, if we set the COLLECT_NAMES environment variable, the problems
11729   # vanish in a puff of smoke.
11730   if test set != "${COLLECT_NAMES+set}"; then
11731     COLLECT_NAMES=
11732     export COLLECT_NAMES
11733   fi
11734   ;;
11735 esac
11736
11737 # Global variables:
11738 ofile=libtool
11739 can_build_shared=yes
11740
11741 # All known linkers require a '.a' archive for static linking (except MSVC,
11742 # which needs '.lib').
11743 libext=a
11744
11745 with_gnu_ld=$lt_cv_prog_gnu_ld
11746
11747 old_CC=$CC
11748 old_CFLAGS=$CFLAGS
11749
11750 # Set sane defaults for various variables
11751 test -z "$CC" && CC=cc
11752 test -z "$LTCC" && LTCC=$CC
11753 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11754 test -z "$LD" && LD=ld
11755 test -z "$ac_objext" && ac_objext=o
11756
11757 func_cc_basename $compiler
11758 cc_basename=$func_cc_basename_result
11759
11760
11761 # Only perform the check for file, if the check method requires it
11762 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11763 case $deplibs_check_method in
11764 file_magic*)
11765   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11767 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11768 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11769   $as_echo_n "(cached) " >&6
11770 else
11771   case $MAGIC_CMD in
11772 [\\/*] |  ?:[\\/]*)
11773   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11774   ;;
11775 *)
11776   lt_save_MAGIC_CMD=$MAGIC_CMD
11777   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11778   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11779   for ac_dir in $ac_dummy; do
11780     IFS=$lt_save_ifs
11781     test -z "$ac_dir" && ac_dir=.
11782     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11783       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11784       if test -n "$file_magic_test_file"; then
11785         case $deplibs_check_method in
11786         "file_magic "*)
11787           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11788           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11789           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11790             $EGREP "$file_magic_regex" > /dev/null; then
11791             :
11792           else
11793             cat <<_LT_EOF 1>&2
11794
11795 *** Warning: the command libtool uses to detect shared libraries,
11796 *** $file_magic_cmd, produces output that libtool cannot recognize.
11797 *** The result is that libtool may fail to recognize shared libraries
11798 *** as such.  This will affect the creation of libtool libraries that
11799 *** depend on shared libraries, but programs linked with such libtool
11800 *** libraries will work regardless of this problem.  Nevertheless, you
11801 *** may want to report the problem to your system manager and/or to
11802 *** bug-libtool@gnu.org
11803
11804 _LT_EOF
11805           fi ;;
11806         esac
11807       fi
11808       break
11809     fi
11810   done
11811   IFS=$lt_save_ifs
11812   MAGIC_CMD=$lt_save_MAGIC_CMD
11813   ;;
11814 esac
11815 fi
11816
11817 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11818 if test -n "$MAGIC_CMD"; then
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11820 $as_echo "$MAGIC_CMD" >&6; }
11821 else
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 fi
11825
11826
11827
11828
11829
11830 if test -z "$lt_cv_path_MAGIC_CMD"; then
11831   if test -n "$ac_tool_prefix"; then
11832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11833 $as_echo_n "checking for file... " >&6; }
11834 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   case $MAGIC_CMD in
11838 [\\/*] |  ?:[\\/]*)
11839   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11840   ;;
11841 *)
11842   lt_save_MAGIC_CMD=$MAGIC_CMD
11843   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11844   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11845   for ac_dir in $ac_dummy; do
11846     IFS=$lt_save_ifs
11847     test -z "$ac_dir" && ac_dir=.
11848     if test -f "$ac_dir/file"; then
11849       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11850       if test -n "$file_magic_test_file"; then
11851         case $deplibs_check_method in
11852         "file_magic "*)
11853           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11854           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11855           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11856             $EGREP "$file_magic_regex" > /dev/null; then
11857             :
11858           else
11859             cat <<_LT_EOF 1>&2
11860
11861 *** Warning: the command libtool uses to detect shared libraries,
11862 *** $file_magic_cmd, produces output that libtool cannot recognize.
11863 *** The result is that libtool may fail to recognize shared libraries
11864 *** as such.  This will affect the creation of libtool libraries that
11865 *** depend on shared libraries, but programs linked with such libtool
11866 *** libraries will work regardless of this problem.  Nevertheless, you
11867 *** may want to report the problem to your system manager and/or to
11868 *** bug-libtool@gnu.org
11869
11870 _LT_EOF
11871           fi ;;
11872         esac
11873       fi
11874       break
11875     fi
11876   done
11877   IFS=$lt_save_ifs
11878   MAGIC_CMD=$lt_save_MAGIC_CMD
11879   ;;
11880 esac
11881 fi
11882
11883 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11884 if test -n "$MAGIC_CMD"; then
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11886 $as_echo "$MAGIC_CMD" >&6; }
11887 else
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892
11893   else
11894     MAGIC_CMD=:
11895   fi
11896 fi
11897
11898   fi
11899   ;;
11900 esac
11901
11902 # Use C for the default configuration in the libtool script
11903
11904 lt_save_CC=$CC
11905 ac_ext=c
11906 ac_cpp='$CPP $CPPFLAGS'
11907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11910
11911
11912 # Source file extension for C test sources.
11913 ac_ext=c
11914
11915 # Object file extension for compiled C test sources.
11916 objext=o
11917 objext=$objext
11918
11919 # Code to be used in simple compile tests
11920 lt_simple_compile_test_code="int some_variable = 0;"
11921
11922 # Code to be used in simple link tests
11923 lt_simple_link_test_code='int main(){return(0);}'
11924
11925
11926
11927
11928
11929
11930
11931 # If no C compiler was specified, use CC.
11932 LTCC=${LTCC-"$CC"}
11933
11934 # If no C compiler flags were specified, use CFLAGS.
11935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11936
11937 # Allow CC to be a program name with arguments.
11938 compiler=$CC
11939
11940 # Save the default compiler, since it gets overwritten when the other
11941 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11942 compiler_DEFAULT=$CC
11943
11944 # save warnings/boilerplate of simple test code
11945 ac_outfile=conftest.$ac_objext
11946 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11947 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11948 _lt_compiler_boilerplate=`cat conftest.err`
11949 $RM conftest*
11950
11951 ac_outfile=conftest.$ac_objext
11952 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11953 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11954 _lt_linker_boilerplate=`cat conftest.err`
11955 $RM -r conftest*
11956
11957
11958 ## CAVEAT EMPTOR:
11959 ## There is no encapsulation within the following macros, do not change
11960 ## the running order or otherwise move them around unless you know exactly
11961 ## what you are doing...
11962 if test -n "$compiler"; then
11963
11964 lt_prog_compiler_no_builtin_flag=
11965
11966 if test yes = "$GCC"; then
11967   case $cc_basename in
11968   nvcc*)
11969     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11970   *)
11971     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11972   esac
11973
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11975 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11976 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11977   $as_echo_n "(cached) " >&6
11978 else
11979   lt_cv_prog_compiler_rtti_exceptions=no
11980    ac_outfile=conftest.$ac_objext
11981    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11982    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11983    # Insert the option either (1) after the last *FLAGS variable, or
11984    # (2) before a word containing "conftest.", or (3) at the end.
11985    # Note that $ac_compile itself does not contain backslashes and begins
11986    # with a dollar sign (not a hyphen), so the echo should work correctly.
11987    # The option is referenced via a variable to avoid confusing sed.
11988    lt_compile=`echo "$ac_compile" | $SED \
11989    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11991    -e 's:$: $lt_compiler_flag:'`
11992    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11993    (eval "$lt_compile" 2>conftest.err)
11994    ac_status=$?
11995    cat conftest.err >&5
11996    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997    if (exit $ac_status) && test -s "$ac_outfile"; then
11998      # The compiler can only warn and ignore the option if not recognized
11999      # So say no if there are warnings other than the usual output.
12000      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12001      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12002      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12003        lt_cv_prog_compiler_rtti_exceptions=yes
12004      fi
12005    fi
12006    $RM conftest*
12007
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12010 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12011
12012 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12013     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12014 else
12015     :
12016 fi
12017
12018 fi
12019
12020
12021
12022
12023
12024
12025   lt_prog_compiler_wl=
12026 lt_prog_compiler_pic=
12027 lt_prog_compiler_static=
12028
12029
12030   if test yes = "$GCC"; then
12031     lt_prog_compiler_wl='-Wl,'
12032     lt_prog_compiler_static='-static'
12033
12034     case $host_os in
12035       aix*)
12036       # All AIX code is PIC.
12037       if test ia64 = "$host_cpu"; then
12038         # AIX 5 now supports IA64 processor
12039         lt_prog_compiler_static='-Bstatic'
12040       fi
12041       lt_prog_compiler_pic='-fPIC'
12042       ;;
12043
12044     amigaos*)
12045       case $host_cpu in
12046       powerpc)
12047             # see comment about AmigaOS4 .so support
12048             lt_prog_compiler_pic='-fPIC'
12049         ;;
12050       m68k)
12051             # FIXME: we need at least 68020 code to build shared libraries, but
12052             # adding the '-m68020' flag to GCC prevents building anything better,
12053             # like '-m68040'.
12054             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12055         ;;
12056       esac
12057       ;;
12058
12059     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12060       # PIC is the default for these OSes.
12061       ;;
12062
12063     mingw* | cygwin* | pw32* | os2* | cegcc*)
12064       # This hack is so that the source file can tell whether it is being
12065       # built for inclusion in a dll (and should export symbols for example).
12066       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12067       # (--disable-auto-import) libraries
12068       lt_prog_compiler_pic='-DDLL_EXPORT'
12069       case $host_os in
12070       os2*)
12071         lt_prog_compiler_static='$wl-static'
12072         ;;
12073       esac
12074       ;;
12075
12076     darwin* | rhapsody*)
12077       # PIC is the default on this platform
12078       # Common symbols not allowed in MH_DYLIB files
12079       lt_prog_compiler_pic='-fno-common'
12080       ;;
12081
12082     haiku*)
12083       # PIC is the default for Haiku.
12084       # The "-static" flag exists, but is broken.
12085       lt_prog_compiler_static=
12086       ;;
12087
12088     hpux*)
12089       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12090       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12091       # sets the default TLS model and affects inlining.
12092       case $host_cpu in
12093       hppa*64*)
12094         # +Z the default
12095         ;;
12096       *)
12097         lt_prog_compiler_pic='-fPIC'
12098         ;;
12099       esac
12100       ;;
12101
12102     interix[3-9]*)
12103       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12104       # Instead, we relocate shared libraries at runtime.
12105       ;;
12106
12107     msdosdjgpp*)
12108       # Just because we use GCC doesn't mean we suddenly get shared libraries
12109       # on systems that don't support them.
12110       lt_prog_compiler_can_build_shared=no
12111       enable_shared=no
12112       ;;
12113
12114     *nto* | *qnx*)
12115       # QNX uses GNU C++, but need to define -shared option too, otherwise
12116       # it will coredump.
12117       lt_prog_compiler_pic='-fPIC -shared'
12118       ;;
12119
12120     sysv4*MP*)
12121       if test -d /usr/nec; then
12122         lt_prog_compiler_pic=-Kconform_pic
12123       fi
12124       ;;
12125
12126     *)
12127       lt_prog_compiler_pic='-fPIC'
12128       ;;
12129     esac
12130
12131     case $cc_basename in
12132     nvcc*) # Cuda Compiler Driver 2.2
12133       lt_prog_compiler_wl='-Xlinker '
12134       if test -n "$lt_prog_compiler_pic"; then
12135         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12136       fi
12137       ;;
12138     esac
12139   else
12140     # PORTME Check for flag to pass linker flags through the system compiler.
12141     case $host_os in
12142     aix*)
12143       lt_prog_compiler_wl='-Wl,'
12144       if test ia64 = "$host_cpu"; then
12145         # AIX 5 now supports IA64 processor
12146         lt_prog_compiler_static='-Bstatic'
12147       else
12148         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12149       fi
12150       ;;
12151
12152     darwin* | rhapsody*)
12153       # PIC is the default on this platform
12154       # Common symbols not allowed in MH_DYLIB files
12155       lt_prog_compiler_pic='-fno-common'
12156       case $cc_basename in
12157       nagfor*)
12158         # NAG Fortran compiler
12159         lt_prog_compiler_wl='-Wl,-Wl,,'
12160         lt_prog_compiler_pic='-PIC'
12161         lt_prog_compiler_static='-Bstatic'
12162         ;;
12163       esac
12164       ;;
12165
12166     mingw* | cygwin* | pw32* | os2* | cegcc*)
12167       # This hack is so that the source file can tell whether it is being
12168       # built for inclusion in a dll (and should export symbols for example).
12169       lt_prog_compiler_pic='-DDLL_EXPORT'
12170       case $host_os in
12171       os2*)
12172         lt_prog_compiler_static='$wl-static'
12173         ;;
12174       esac
12175       ;;
12176
12177     hpux9* | hpux10* | hpux11*)
12178       lt_prog_compiler_wl='-Wl,'
12179       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12180       # not for PA HP-UX.
12181       case $host_cpu in
12182       hppa*64*|ia64*)
12183         # +Z the default
12184         ;;
12185       *)
12186         lt_prog_compiler_pic='+Z'
12187         ;;
12188       esac
12189       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12190       lt_prog_compiler_static='$wl-a ${wl}archive'
12191       ;;
12192
12193     irix5* | irix6* | nonstopux*)
12194       lt_prog_compiler_wl='-Wl,'
12195       # PIC (with -KPIC) is the default.
12196       lt_prog_compiler_static='-non_shared'
12197       ;;
12198
12199     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12200       case $cc_basename in
12201       # old Intel for x86_64, which still supported -KPIC.
12202       ecc*)
12203         lt_prog_compiler_wl='-Wl,'
12204         lt_prog_compiler_pic='-KPIC'
12205         lt_prog_compiler_static='-static'
12206         ;;
12207       # icc used to be incompatible with GCC.
12208       # ICC 10 doesn't accept -KPIC any more.
12209       icc* | ifort*)
12210         lt_prog_compiler_wl='-Wl,'
12211         lt_prog_compiler_pic='-fPIC'
12212         lt_prog_compiler_static='-static'
12213         ;;
12214       # Lahey Fortran 8.1.
12215       lf95*)
12216         lt_prog_compiler_wl='-Wl,'
12217         lt_prog_compiler_pic='--shared'
12218         lt_prog_compiler_static='--static'
12219         ;;
12220       nagfor*)
12221         # NAG Fortran compiler
12222         lt_prog_compiler_wl='-Wl,-Wl,,'
12223         lt_prog_compiler_pic='-PIC'
12224         lt_prog_compiler_static='-Bstatic'
12225         ;;
12226       tcc*)
12227         # Fabrice Bellard et al's Tiny C Compiler
12228         lt_prog_compiler_wl='-Wl,'
12229         lt_prog_compiler_pic='-fPIC'
12230         lt_prog_compiler_static='-static'
12231         ;;
12232       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12233         # Portland Group compilers (*not* the Pentium gcc compiler,
12234         # which looks to be a dead project)
12235         lt_prog_compiler_wl='-Wl,'
12236         lt_prog_compiler_pic='-fpic'
12237         lt_prog_compiler_static='-Bstatic'
12238         ;;
12239       ccc*)
12240         lt_prog_compiler_wl='-Wl,'
12241         # All Alpha code is PIC.
12242         lt_prog_compiler_static='-non_shared'
12243         ;;
12244       xl* | bgxl* | bgf* | mpixl*)
12245         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12246         lt_prog_compiler_wl='-Wl,'
12247         lt_prog_compiler_pic='-qpic'
12248         lt_prog_compiler_static='-qstaticlink'
12249         ;;
12250       *)
12251         case `$CC -V 2>&1 | sed 5q` in
12252         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12253           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12254           lt_prog_compiler_pic='-KPIC'
12255           lt_prog_compiler_static='-Bstatic'
12256           lt_prog_compiler_wl=''
12257           ;;
12258         *Sun\ F* | *Sun*Fortran*)
12259           lt_prog_compiler_pic='-KPIC'
12260           lt_prog_compiler_static='-Bstatic'
12261           lt_prog_compiler_wl='-Qoption ld '
12262           ;;
12263         *Sun\ C*)
12264           # Sun C 5.9
12265           lt_prog_compiler_pic='-KPIC'
12266           lt_prog_compiler_static='-Bstatic'
12267           lt_prog_compiler_wl='-Wl,'
12268           ;;
12269         *Intel*\ [CF]*Compiler*)
12270           lt_prog_compiler_wl='-Wl,'
12271           lt_prog_compiler_pic='-fPIC'
12272           lt_prog_compiler_static='-static'
12273           ;;
12274         *Portland\ Group*)
12275           lt_prog_compiler_wl='-Wl,'
12276           lt_prog_compiler_pic='-fpic'
12277           lt_prog_compiler_static='-Bstatic'
12278           ;;
12279         esac
12280         ;;
12281       esac
12282       ;;
12283
12284     newsos6)
12285       lt_prog_compiler_pic='-KPIC'
12286       lt_prog_compiler_static='-Bstatic'
12287       ;;
12288
12289     *nto* | *qnx*)
12290       # QNX uses GNU C++, but need to define -shared option too, otherwise
12291       # it will coredump.
12292       lt_prog_compiler_pic='-fPIC -shared'
12293       ;;
12294
12295     osf3* | osf4* | osf5*)
12296       lt_prog_compiler_wl='-Wl,'
12297       # All OSF/1 code is PIC.
12298       lt_prog_compiler_static='-non_shared'
12299       ;;
12300
12301     rdos*)
12302       lt_prog_compiler_static='-non_shared'
12303       ;;
12304
12305     solaris*)
12306       lt_prog_compiler_pic='-KPIC'
12307       lt_prog_compiler_static='-Bstatic'
12308       case $cc_basename in
12309       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12310         lt_prog_compiler_wl='-Qoption ld ';;
12311       *)
12312         lt_prog_compiler_wl='-Wl,';;
12313       esac
12314       ;;
12315
12316     sunos4*)
12317       lt_prog_compiler_wl='-Qoption ld '
12318       lt_prog_compiler_pic='-PIC'
12319       lt_prog_compiler_static='-Bstatic'
12320       ;;
12321
12322     sysv4 | sysv4.2uw2* | sysv4.3*)
12323       lt_prog_compiler_wl='-Wl,'
12324       lt_prog_compiler_pic='-KPIC'
12325       lt_prog_compiler_static='-Bstatic'
12326       ;;
12327
12328     sysv4*MP*)
12329       if test -d /usr/nec; then
12330         lt_prog_compiler_pic='-Kconform_pic'
12331         lt_prog_compiler_static='-Bstatic'
12332       fi
12333       ;;
12334
12335     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12336       lt_prog_compiler_wl='-Wl,'
12337       lt_prog_compiler_pic='-KPIC'
12338       lt_prog_compiler_static='-Bstatic'
12339       ;;
12340
12341     unicos*)
12342       lt_prog_compiler_wl='-Wl,'
12343       lt_prog_compiler_can_build_shared=no
12344       ;;
12345
12346     uts4*)
12347       lt_prog_compiler_pic='-pic'
12348       lt_prog_compiler_static='-Bstatic'
12349       ;;
12350
12351     *)
12352       lt_prog_compiler_can_build_shared=no
12353       ;;
12354     esac
12355   fi
12356
12357 case $host_os in
12358   # For platforms that do not support PIC, -DPIC is meaningless:
12359   *djgpp*)
12360     lt_prog_compiler_pic=
12361     ;;
12362   *)
12363     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12364     ;;
12365 esac
12366
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12368 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12369 if ${lt_cv_prog_compiler_pic+:} false; then :
12370   $as_echo_n "(cached) " >&6
12371 else
12372   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12375 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12376 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12377
12378 #
12379 # Check to make sure the PIC flag actually works.
12380 #
12381 if test -n "$lt_prog_compiler_pic"; then
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12383 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12384 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   lt_cv_prog_compiler_pic_works=no
12388    ac_outfile=conftest.$ac_objext
12389    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12390    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12391    # Insert the option either (1) after the last *FLAGS variable, or
12392    # (2) before a word containing "conftest.", or (3) at the end.
12393    # Note that $ac_compile itself does not contain backslashes and begins
12394    # with a dollar sign (not a hyphen), so the echo should work correctly.
12395    # The option is referenced via a variable to avoid confusing sed.
12396    lt_compile=`echo "$ac_compile" | $SED \
12397    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12398    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12399    -e 's:$: $lt_compiler_flag:'`
12400    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12401    (eval "$lt_compile" 2>conftest.err)
12402    ac_status=$?
12403    cat conftest.err >&5
12404    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405    if (exit $ac_status) && test -s "$ac_outfile"; then
12406      # The compiler can only warn and ignore the option if not recognized
12407      # So say no if there are warnings other than the usual output.
12408      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12409      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12410      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12411        lt_cv_prog_compiler_pic_works=yes
12412      fi
12413    fi
12414    $RM conftest*
12415
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12418 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12419
12420 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12421     case $lt_prog_compiler_pic in
12422      "" | " "*) ;;
12423      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12424      esac
12425 else
12426     lt_prog_compiler_pic=
12427      lt_prog_compiler_can_build_shared=no
12428 fi
12429
12430 fi
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442 #
12443 # Check to make sure the static flag actually works.
12444 #
12445 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12447 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12448 if ${lt_cv_prog_compiler_static_works+:} false; then :
12449   $as_echo_n "(cached) " >&6
12450 else
12451   lt_cv_prog_compiler_static_works=no
12452    save_LDFLAGS=$LDFLAGS
12453    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12454    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12455    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12456      # The linker can only warn and ignore the option if not recognized
12457      # So say no if there are warnings
12458      if test -s conftest.err; then
12459        # Append any errors to the config.log.
12460        cat conftest.err 1>&5
12461        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12462        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12463        if diff conftest.exp conftest.er2 >/dev/null; then
12464          lt_cv_prog_compiler_static_works=yes
12465        fi
12466      else
12467        lt_cv_prog_compiler_static_works=yes
12468      fi
12469    fi
12470    $RM -r conftest*
12471    LDFLAGS=$save_LDFLAGS
12472
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12475 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12476
12477 if test yes = "$lt_cv_prog_compiler_static_works"; then
12478     :
12479 else
12480     lt_prog_compiler_static=
12481 fi
12482
12483
12484
12485
12486
12487
12488
12489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12490 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12491 if ${lt_cv_prog_compiler_c_o+:} false; then :
12492   $as_echo_n "(cached) " >&6
12493 else
12494   lt_cv_prog_compiler_c_o=no
12495    $RM -r conftest 2>/dev/null
12496    mkdir conftest
12497    cd conftest
12498    mkdir out
12499    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12500
12501    lt_compiler_flag="-o out/conftest2.$ac_objext"
12502    # Insert the option either (1) after the last *FLAGS variable, or
12503    # (2) before a word containing "conftest.", or (3) at the end.
12504    # Note that $ac_compile itself does not contain backslashes and begins
12505    # with a dollar sign (not a hyphen), so the echo should work correctly.
12506    lt_compile=`echo "$ac_compile" | $SED \
12507    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12508    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12509    -e 's:$: $lt_compiler_flag:'`
12510    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12511    (eval "$lt_compile" 2>out/conftest.err)
12512    ac_status=$?
12513    cat out/conftest.err >&5
12514    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12516    then
12517      # The compiler can only warn and ignore the option if not recognized
12518      # So say no if there are warnings
12519      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12520      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12521      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12522        lt_cv_prog_compiler_c_o=yes
12523      fi
12524    fi
12525    chmod u+w . 2>&5
12526    $RM conftest*
12527    # SGI C++ compiler will create directory out/ii_files/ for
12528    # template instantiation
12529    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12530    $RM out/* && rmdir out
12531    cd ..
12532    $RM -r conftest
12533    $RM conftest*
12534
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12537 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12538
12539
12540
12541
12542
12543
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12545 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12546 if ${lt_cv_prog_compiler_c_o+:} false; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549   lt_cv_prog_compiler_c_o=no
12550    $RM -r conftest 2>/dev/null
12551    mkdir conftest
12552    cd conftest
12553    mkdir out
12554    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12555
12556    lt_compiler_flag="-o out/conftest2.$ac_objext"
12557    # Insert the option either (1) after the last *FLAGS variable, or
12558    # (2) before a word containing "conftest.", or (3) at the end.
12559    # Note that $ac_compile itself does not contain backslashes and begins
12560    # with a dollar sign (not a hyphen), so the echo should work correctly.
12561    lt_compile=`echo "$ac_compile" | $SED \
12562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12564    -e 's:$: $lt_compiler_flag:'`
12565    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12566    (eval "$lt_compile" 2>out/conftest.err)
12567    ac_status=$?
12568    cat out/conftest.err >&5
12569    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12571    then
12572      # The compiler can only warn and ignore the option if not recognized
12573      # So say no if there are warnings
12574      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12575      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12576      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12577        lt_cv_prog_compiler_c_o=yes
12578      fi
12579    fi
12580    chmod u+w . 2>&5
12581    $RM conftest*
12582    # SGI C++ compiler will create directory out/ii_files/ for
12583    # template instantiation
12584    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12585    $RM out/* && rmdir out
12586    cd ..
12587    $RM -r conftest
12588    $RM conftest*
12589
12590 fi
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12592 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12593
12594
12595
12596
12597 hard_links=nottested
12598 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12599   # do not overwrite the value of need_locks provided by the user
12600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12601 $as_echo_n "checking if we can lock with hard links... " >&6; }
12602   hard_links=yes
12603   $RM conftest*
12604   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12605   touch conftest.a
12606   ln conftest.a conftest.b 2>&5 || hard_links=no
12607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12609 $as_echo "$hard_links" >&6; }
12610   if test no = "$hard_links"; then
12611     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12612 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12613     need_locks=warn
12614   fi
12615 else
12616   need_locks=no
12617 fi
12618
12619
12620
12621
12622
12623
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12625 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12626
12627   runpath_var=
12628   allow_undefined_flag=
12629   always_export_symbols=no
12630   archive_cmds=
12631   archive_expsym_cmds=
12632   compiler_needs_object=no
12633   enable_shared_with_static_runtimes=no
12634   export_dynamic_flag_spec=
12635   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12636   hardcode_automatic=no
12637   hardcode_direct=no
12638   hardcode_direct_absolute=no
12639   hardcode_libdir_flag_spec=
12640   hardcode_libdir_separator=
12641   hardcode_minus_L=no
12642   hardcode_shlibpath_var=unsupported
12643   inherit_rpath=no
12644   link_all_deplibs=unknown
12645   module_cmds=
12646   module_expsym_cmds=
12647   old_archive_from_new_cmds=
12648   old_archive_from_expsyms_cmds=
12649   thread_safe_flag_spec=
12650   whole_archive_flag_spec=
12651   # include_expsyms should be a list of space-separated symbols to be *always*
12652   # included in the symbol list
12653   include_expsyms=
12654   # exclude_expsyms can be an extended regexp of symbols to exclude
12655   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12656   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12657   # as well as any symbol that contains 'd'.
12658   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12659   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12660   # platforms (ab)use it in PIC code, but their linkers get confused if
12661   # the symbol is explicitly referenced.  Since portable code cannot
12662   # rely on this symbol name, it's probably fine to never include it in
12663   # preloaded symbol tables.
12664   # Exclude shared library initialization/finalization symbols.
12665   extract_expsyms_cmds=
12666
12667   case $host_os in
12668   cygwin* | mingw* | pw32* | cegcc*)
12669     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12670     # When not using gcc, we currently assume that we are using
12671     # Microsoft Visual C++.
12672     if test yes != "$GCC"; then
12673       with_gnu_ld=no
12674     fi
12675     ;;
12676   interix*)
12677     # we just hope/assume this is gcc and not c89 (= MSVC++)
12678     with_gnu_ld=yes
12679     ;;
12680   openbsd* | bitrig*)
12681     with_gnu_ld=no
12682     ;;
12683   linux* | k*bsd*-gnu | gnu*)
12684     link_all_deplibs=no
12685     ;;
12686   esac
12687
12688   ld_shlibs=yes
12689
12690   # On some targets, GNU ld is compatible enough with the native linker
12691   # that we're better off using the native interface for both.
12692   lt_use_gnu_ld_interface=no
12693   if test yes = "$with_gnu_ld"; then
12694     case $host_os in
12695       aix*)
12696         # The AIX port of GNU ld has always aspired to compatibility
12697         # with the native linker.  However, as the warning in the GNU ld
12698         # block says, versions before 2.19.5* couldn't really create working
12699         # shared libraries, regardless of the interface used.
12700         case `$LD -v 2>&1` in
12701           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12702           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12703           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12704           *)
12705             lt_use_gnu_ld_interface=yes
12706             ;;
12707         esac
12708         ;;
12709       *)
12710         lt_use_gnu_ld_interface=yes
12711         ;;
12712     esac
12713   fi
12714
12715   if test yes = "$lt_use_gnu_ld_interface"; then
12716     # If archive_cmds runs LD, not CC, wlarc should be empty
12717     wlarc='$wl'
12718
12719     # Set some defaults for GNU ld with shared library support. These
12720     # are reset later if shared libraries are not supported. Putting them
12721     # here allows them to be overridden if necessary.
12722     runpath_var=LD_RUN_PATH
12723     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12724     export_dynamic_flag_spec='$wl--export-dynamic'
12725     # ancient GNU ld didn't support --whole-archive et. al.
12726     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12727       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12728     else
12729       whole_archive_flag_spec=
12730     fi
12731     supports_anon_versioning=no
12732     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12733       *GNU\ gold*) supports_anon_versioning=yes ;;
12734       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12735       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12736       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12737       *\ 2.11.*) ;; # other 2.11 versions
12738       *) supports_anon_versioning=yes ;;
12739     esac
12740
12741     # See if GNU ld supports shared libraries.
12742     case $host_os in
12743     aix[3-9]*)
12744       # On AIX/PPC, the GNU linker is very broken
12745       if test ia64 != "$host_cpu"; then
12746         ld_shlibs=no
12747         cat <<_LT_EOF 1>&2
12748
12749 *** Warning: the GNU linker, at least up to release 2.19, is reported
12750 *** to be unable to reliably create shared libraries on AIX.
12751 *** Therefore, libtool is disabling shared libraries support.  If you
12752 *** really care for shared libraries, you may want to install binutils
12753 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12754 *** You will then need to restart the configuration process.
12755
12756 _LT_EOF
12757       fi
12758       ;;
12759
12760     amigaos*)
12761       case $host_cpu in
12762       powerpc)
12763             # see comment about AmigaOS4 .so support
12764             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12765             archive_expsym_cmds=''
12766         ;;
12767       m68k)
12768             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)'
12769             hardcode_libdir_flag_spec='-L$libdir'
12770             hardcode_minus_L=yes
12771         ;;
12772       esac
12773       ;;
12774
12775     beos*)
12776       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12777         allow_undefined_flag=unsupported
12778         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12779         # support --undefined.  This deserves some investigation.  FIXME
12780         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12781       else
12782         ld_shlibs=no
12783       fi
12784       ;;
12785
12786     cygwin* | mingw* | pw32* | cegcc*)
12787       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12788       # as there is no search path for DLLs.
12789       hardcode_libdir_flag_spec='-L$libdir'
12790       export_dynamic_flag_spec='$wl--export-all-symbols'
12791       allow_undefined_flag=unsupported
12792       always_export_symbols=no
12793       enable_shared_with_static_runtimes=yes
12794       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'
12795       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12796
12797       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12798         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12799         # If the export-symbols file already is a .def file, use it as
12800         # is; otherwise, prepend EXPORTS...
12801         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12802           cp $export_symbols $output_objdir/$soname.def;
12803         else
12804           echo EXPORTS > $output_objdir/$soname.def;
12805           cat $export_symbols >> $output_objdir/$soname.def;
12806         fi~
12807         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12808       else
12809         ld_shlibs=no
12810       fi
12811       ;;
12812
12813     haiku*)
12814       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12815       link_all_deplibs=yes
12816       ;;
12817
12818     os2*)
12819       hardcode_libdir_flag_spec='-L$libdir'
12820       hardcode_minus_L=yes
12821       allow_undefined_flag=unsupported
12822       shrext_cmds=.dll
12823       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12824         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12825         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12826         $ECHO EXPORTS >> $output_objdir/$libname.def~
12827         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12828         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12829         emximp -o $lib $output_objdir/$libname.def'
12830       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12831         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12832         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12833         $ECHO EXPORTS >> $output_objdir/$libname.def~
12834         prefix_cmds="$SED"~
12835         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12836           prefix_cmds="$prefix_cmds -e 1d";
12837         fi~
12838         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12839         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12840         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12841         emximp -o $lib $output_objdir/$libname.def'
12842       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12843       enable_shared_with_static_runtimes=yes
12844       ;;
12845
12846     interix[3-9]*)
12847       hardcode_direct=no
12848       hardcode_shlibpath_var=no
12849       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12850       export_dynamic_flag_spec='$wl-E'
12851       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12852       # Instead, shared libraries are loaded at an image base (0x10000000 by
12853       # default) and relocated if they conflict, which is a slow very memory
12854       # consuming and fragmenting process.  To avoid this, we pick a random,
12855       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12856       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12857       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12858       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'
12859       ;;
12860
12861     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12862       tmp_diet=no
12863       if test linux-dietlibc = "$host_os"; then
12864         case $cc_basename in
12865           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12866         esac
12867       fi
12868       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12869          && test no = "$tmp_diet"
12870       then
12871         tmp_addflag=' $pic_flag'
12872         tmp_sharedflag='-shared'
12873         case $cc_basename,$host_cpu in
12874         pgcc*)                          # Portland Group C compiler
12875           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'
12876           tmp_addflag=' $pic_flag'
12877           ;;
12878         pgf77* | pgf90* | pgf95* | pgfortran*)
12879                                         # Portland Group f77 and f90 compilers
12880           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'
12881           tmp_addflag=' $pic_flag -Mnomain' ;;
12882         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12883           tmp_addflag=' -i_dynamic' ;;
12884         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12885           tmp_addflag=' -i_dynamic -nofor_main' ;;
12886         ifc* | ifort*)                  # Intel Fortran compiler
12887           tmp_addflag=' -nofor_main' ;;
12888         lf95*)                          # Lahey Fortran 8.1
12889           whole_archive_flag_spec=
12890           tmp_sharedflag='--shared' ;;
12891         nagfor*)                        # NAGFOR 5.3
12892           tmp_sharedflag='-Wl,-shared' ;;
12893         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12894           tmp_sharedflag='-qmkshrobj'
12895           tmp_addflag= ;;
12896         nvcc*)  # Cuda Compiler Driver 2.2
12897           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'
12898           compiler_needs_object=yes
12899           ;;
12900         esac
12901         case `$CC -V 2>&1 | sed 5q` in
12902         *Sun\ C*)                       # Sun C 5.9
12903           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'
12904           compiler_needs_object=yes
12905           tmp_sharedflag='-G' ;;
12906         *Sun\ F*)                       # Sun Fortran 8.3
12907           tmp_sharedflag='-G' ;;
12908         esac
12909         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12910
12911         if test yes = "$supports_anon_versioning"; then
12912           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12913             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12914             echo "local: *; };" >> $output_objdir/$libname.ver~
12915             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12916         fi
12917
12918         case $cc_basename in
12919         tcc*)
12920           export_dynamic_flag_spec='-rdynamic'
12921           ;;
12922         xlf* | bgf* | bgxlf* | mpixlf*)
12923           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12924           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12925           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12926           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12927           if test yes = "$supports_anon_versioning"; then
12928             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12929               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12930               echo "local: *; };" >> $output_objdir/$libname.ver~
12931               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12932           fi
12933           ;;
12934         esac
12935       else
12936         ld_shlibs=no
12937       fi
12938       ;;
12939
12940     netbsd* | netbsdelf*-gnu)
12941       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12942         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12943         wlarc=
12944       else
12945         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12946         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12947       fi
12948       ;;
12949
12950     solaris*)
12951       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12952         ld_shlibs=no
12953         cat <<_LT_EOF 1>&2
12954
12955 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12956 *** create shared libraries on Solaris systems.  Therefore, libtool
12957 *** is disabling shared libraries support.  We urge you to upgrade GNU
12958 *** binutils to release 2.9.1 or newer.  Another option is to modify
12959 *** your PATH or compiler configuration so that the native linker is
12960 *** used, and then restart.
12961
12962 _LT_EOF
12963       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12964         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12965         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12966       else
12967         ld_shlibs=no
12968       fi
12969       ;;
12970
12971     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12972       case `$LD -v 2>&1` in
12973         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12974         ld_shlibs=no
12975         cat <<_LT_EOF 1>&2
12976
12977 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12978 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12979 *** is disabling shared libraries support.  We urge you to upgrade GNU
12980 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12981 *** your PATH or compiler configuration so that the native linker is
12982 *** used, and then restart.
12983
12984 _LT_EOF
12985         ;;
12986         *)
12987           # For security reasons, it is highly recommended that you always
12988           # use absolute paths for naming shared libraries, and exclude the
12989           # DT_RUNPATH tag from executables and libraries.  But doing so
12990           # requires that you compile everything twice, which is a pain.
12991           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12992             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12993             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12994             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12995           else
12996             ld_shlibs=no
12997           fi
12998         ;;
12999       esac
13000       ;;
13001
13002     sunos4*)
13003       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13004       wlarc=
13005       hardcode_direct=yes
13006       hardcode_shlibpath_var=no
13007       ;;
13008
13009     *)
13010       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13011         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13012         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13013       else
13014         ld_shlibs=no
13015       fi
13016       ;;
13017     esac
13018
13019     if test no = "$ld_shlibs"; then
13020       runpath_var=
13021       hardcode_libdir_flag_spec=
13022       export_dynamic_flag_spec=
13023       whole_archive_flag_spec=
13024     fi
13025   else
13026     # PORTME fill in a description of your system's linker (not GNU ld)
13027     case $host_os in
13028     aix3*)
13029       allow_undefined_flag=unsupported
13030       always_export_symbols=yes
13031       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'
13032       # Note: this linker hardcodes the directories in LIBPATH if there
13033       # are no directories specified by -L.
13034       hardcode_minus_L=yes
13035       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13036         # Neither direct hardcoding nor static linking is supported with a
13037         # broken collect2.
13038         hardcode_direct=unsupported
13039       fi
13040       ;;
13041
13042     aix[4-9]*)
13043       if test ia64 = "$host_cpu"; then
13044         # On IA64, the linker does run time linking by default, so we don't
13045         # have to do anything special.
13046         aix_use_runtimelinking=no
13047         exp_sym_flag='-Bexport'
13048         no_entry_flag=
13049       else
13050         # If we're using GNU nm, then we don't want the "-C" option.
13051         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13052         # Without the "-l" option, or with the "-B" option, AIX nm treats
13053         # weak defined symbols like other global defined symbols, whereas
13054         # GNU nm marks them as "W".
13055         # While the 'weak' keyword is ignored in the Export File, we need
13056         # it in the Import File for the 'aix-soname' feature, so we have
13057         # to replace the "-B" option with "-P" for AIX nm.
13058         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13059           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'
13060         else
13061           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'
13062         fi
13063         aix_use_runtimelinking=no
13064
13065         # Test if we are trying to use run time linking or normal
13066         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13067         # have runtime linking enabled, and use it for executables.
13068         # For shared libraries, we enable/disable runtime linking
13069         # depending on the kind of the shared library created -
13070         # when "with_aix_soname,aix_use_runtimelinking" is:
13071         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13072         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13073         #            lib.a           static archive
13074         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13075         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13076         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13077         #            lib.a(lib.so.V) shared, rtl:no
13078         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13079         #            lib.a           static archive
13080         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13081           for ld_flag in $LDFLAGS; do
13082           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13083             aix_use_runtimelinking=yes
13084             break
13085           fi
13086           done
13087           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13088             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13089             # so we don't have lib.a shared libs to link our executables.
13090             # We have to force runtime linking in this case.
13091             aix_use_runtimelinking=yes
13092             LDFLAGS="$LDFLAGS -Wl,-brtl"
13093           fi
13094           ;;
13095         esac
13096
13097         exp_sym_flag='-bexport'
13098         no_entry_flag='-bnoentry'
13099       fi
13100
13101       # When large executables or shared objects are built, AIX ld can
13102       # have problems creating the table of contents.  If linking a library
13103       # or program results in "error TOC overflow" add -mminimal-toc to
13104       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13105       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13106
13107       archive_cmds=''
13108       hardcode_direct=yes
13109       hardcode_direct_absolute=yes
13110       hardcode_libdir_separator=':'
13111       link_all_deplibs=yes
13112       file_list_spec='$wl-f,'
13113       case $with_aix_soname,$aix_use_runtimelinking in
13114       aix,*) ;; # traditional, no import file
13115       svr4,* | *,yes) # use import file
13116         # The Import File defines what to hardcode.
13117         hardcode_direct=no
13118         hardcode_direct_absolute=no
13119         ;;
13120       esac
13121
13122       if test yes = "$GCC"; then
13123         case $host_os in aix4.[012]|aix4.[012].*)
13124         # We only want to do this on AIX 4.2 and lower, the check
13125         # below for broken collect2 doesn't work under 4.3+
13126           collect2name=`$CC -print-prog-name=collect2`
13127           if test -f "$collect2name" &&
13128            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13129           then
13130           # We have reworked collect2
13131           :
13132           else
13133           # We have old collect2
13134           hardcode_direct=unsupported
13135           # It fails to find uninstalled libraries when the uninstalled
13136           # path is not listed in the libpath.  Setting hardcode_minus_L
13137           # to unsupported forces relinking
13138           hardcode_minus_L=yes
13139           hardcode_libdir_flag_spec='-L$libdir'
13140           hardcode_libdir_separator=
13141           fi
13142           ;;
13143         esac
13144         shared_flag='-shared'
13145         if test yes = "$aix_use_runtimelinking"; then
13146           shared_flag="$shared_flag "'$wl-G'
13147         fi
13148         # Need to ensure runtime linking is disabled for the traditional
13149         # shared library, or the linker may eventually find shared libraries
13150         # /with/ Import File - we do not want to mix them.
13151         shared_flag_aix='-shared'
13152         shared_flag_svr4='-shared $wl-G'
13153       else
13154         # not using gcc
13155         if test ia64 = "$host_cpu"; then
13156         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13157         # chokes on -Wl,-G. The following line is correct:
13158           shared_flag='-G'
13159         else
13160           if test yes = "$aix_use_runtimelinking"; then
13161             shared_flag='$wl-G'
13162           else
13163             shared_flag='$wl-bM:SRE'
13164           fi
13165           shared_flag_aix='$wl-bM:SRE'
13166           shared_flag_svr4='$wl-G'
13167         fi
13168       fi
13169
13170       export_dynamic_flag_spec='$wl-bexpall'
13171       # It seems that -bexpall does not export symbols beginning with
13172       # underscore (_), so it is better to generate a list of symbols to export.
13173       always_export_symbols=yes
13174       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13175         # Warning - without using the other runtime loading flags (-brtl),
13176         # -berok will link without error, but may produce a broken library.
13177         allow_undefined_flag='-berok'
13178         # Determine the default libpath from the value encoded in an
13179         # empty executable.
13180         if test set = "${lt_cv_aix_libpath+set}"; then
13181   aix_libpath=$lt_cv_aix_libpath
13182 else
13183   if ${lt_cv_aix_libpath_+:} false; then :
13184   $as_echo_n "(cached) " >&6
13185 else
13186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h.  */
13188
13189 int
13190 main ()
13191 {
13192
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 if ac_fn_c_try_link "$LINENO"; then :
13198
13199   lt_aix_libpath_sed='
13200       /Import File Strings/,/^$/ {
13201           /^0/ {
13202               s/^0  *\([^ ]*\) *$/\1/
13203               p
13204           }
13205       }'
13206   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13207   # Check for a 64-bit object if we didn't find anything.
13208   if test -z "$lt_cv_aix_libpath_"; then
13209     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13210   fi
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext \
13213     conftest$ac_exeext conftest.$ac_ext
13214   if test -z "$lt_cv_aix_libpath_"; then
13215     lt_cv_aix_libpath_=/usr/lib:/lib
13216   fi
13217
13218 fi
13219
13220   aix_libpath=$lt_cv_aix_libpath_
13221 fi
13222
13223         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13224         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
13225       else
13226         if test ia64 = "$host_cpu"; then
13227           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13228           allow_undefined_flag="-z nodefs"
13229           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"
13230         else
13231          # Determine the default libpath from the value encoded in an
13232          # empty executable.
13233          if test set = "${lt_cv_aix_libpath+set}"; then
13234   aix_libpath=$lt_cv_aix_libpath
13235 else
13236   if ${lt_cv_aix_libpath_+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h.  */
13241
13242 int
13243 main ()
13244 {
13245
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13251
13252   lt_aix_libpath_sed='
13253       /Import File Strings/,/^$/ {
13254           /^0/ {
13255               s/^0  *\([^ ]*\) *$/\1/
13256               p
13257           }
13258       }'
13259   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13260   # Check for a 64-bit object if we didn't find anything.
13261   if test -z "$lt_cv_aix_libpath_"; then
13262     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13263   fi
13264 fi
13265 rm -f core conftest.err conftest.$ac_objext \
13266     conftest$ac_exeext conftest.$ac_ext
13267   if test -z "$lt_cv_aix_libpath_"; then
13268     lt_cv_aix_libpath_=/usr/lib:/lib
13269   fi
13270
13271 fi
13272
13273   aix_libpath=$lt_cv_aix_libpath_
13274 fi
13275
13276          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13277           # Warning - without using the other run time loading flags,
13278           # -berok will link without error, but may produce a broken library.
13279           no_undefined_flag=' $wl-bernotok'
13280           allow_undefined_flag=' $wl-berok'
13281           if test yes = "$with_gnu_ld"; then
13282             # We only use this code for GNU lds that support --whole-archive.
13283             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13284           else
13285             # Exported symbols can be pulled into shared objects from archives
13286             whole_archive_flag_spec='$convenience'
13287           fi
13288           archive_cmds_need_lc=yes
13289           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13290           # -brtl affects multiple linker settings, -berok does not and is overridden later
13291           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13292           if test svr4 != "$with_aix_soname"; then
13293             # This is similar to how AIX traditionally builds its shared libraries.
13294             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'
13295           fi
13296           if test aix != "$with_aix_soname"; then
13297             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'
13298           else
13299             # used by -dlpreopen to get the symbols
13300             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13301           fi
13302           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13303         fi
13304       fi
13305       ;;
13306
13307     amigaos*)
13308       case $host_cpu in
13309       powerpc)
13310             # see comment about AmigaOS4 .so support
13311             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13312             archive_expsym_cmds=''
13313         ;;
13314       m68k)
13315             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)'
13316             hardcode_libdir_flag_spec='-L$libdir'
13317             hardcode_minus_L=yes
13318         ;;
13319       esac
13320       ;;
13321
13322     bsdi[45]*)
13323       export_dynamic_flag_spec=-rdynamic
13324       ;;
13325
13326     cygwin* | mingw* | pw32* | cegcc*)
13327       # When not using gcc, we currently assume that we are using
13328       # Microsoft Visual C++.
13329       # hardcode_libdir_flag_spec is actually meaningless, as there is
13330       # no search path for DLLs.
13331       case $cc_basename in
13332       cl*)
13333         # Native MSVC
13334         hardcode_libdir_flag_spec=' '
13335         allow_undefined_flag=unsupported
13336         always_export_symbols=yes
13337         file_list_spec='@'
13338         # Tell ltmain to make .lib files, not .a files.
13339         libext=lib
13340         # Tell ltmain to make .dll files, not .so files.
13341         shrext_cmds=.dll
13342         # FIXME: Setting linknames here is a bad hack.
13343         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13344         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13345             cp "$export_symbols" "$output_objdir/$soname.def";
13346             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13347           else
13348             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13349           fi~
13350           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13351           linknames='
13352         # The linker will not automatically build a static lib if we build a DLL.
13353         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13354         enable_shared_with_static_runtimes=yes
13355         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13356         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13357         # Don't use ranlib
13358         old_postinstall_cmds='chmod 644 $oldlib'
13359         postlink_cmds='lt_outputfile="@OUTPUT@"~
13360           lt_tool_outputfile="@TOOL_OUTPUT@"~
13361           case $lt_outputfile in
13362             *.exe|*.EXE) ;;
13363             *)
13364               lt_outputfile=$lt_outputfile.exe
13365               lt_tool_outputfile=$lt_tool_outputfile.exe
13366               ;;
13367           esac~
13368           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13369             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13370             $RM "$lt_outputfile.manifest";
13371           fi'
13372         ;;
13373       *)
13374         # Assume MSVC wrapper
13375         hardcode_libdir_flag_spec=' '
13376         allow_undefined_flag=unsupported
13377         # Tell ltmain to make .lib files, not .a files.
13378         libext=lib
13379         # Tell ltmain to make .dll files, not .so files.
13380         shrext_cmds=.dll
13381         # FIXME: Setting linknames here is a bad hack.
13382         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13383         # The linker will automatically build a .lib file if we build a DLL.
13384         old_archive_from_new_cmds='true'
13385         # FIXME: Should let the user specify the lib program.
13386         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13387         enable_shared_with_static_runtimes=yes
13388         ;;
13389       esac
13390       ;;
13391
13392     darwin* | rhapsody*)
13393
13394
13395   archive_cmds_need_lc=no
13396   hardcode_direct=no
13397   hardcode_automatic=yes
13398   hardcode_shlibpath_var=unsupported
13399   if test yes = "$lt_cv_ld_force_load"; then
13400     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\"`'
13401
13402   else
13403     whole_archive_flag_spec=''
13404   fi
13405   link_all_deplibs=yes
13406   allow_undefined_flag=$_lt_dar_allow_undefined
13407   case $cc_basename in
13408      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13409      *) _lt_dar_can_shared=$GCC ;;
13410   esac
13411   if test yes = "$_lt_dar_can_shared"; then
13412     output_verbose_link_cmd=func_echo_all
13413     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13414     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13415     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"
13416     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"
13417
13418   else
13419   ld_shlibs=no
13420   fi
13421
13422       ;;
13423
13424     dgux*)
13425       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426       hardcode_libdir_flag_spec='-L$libdir'
13427       hardcode_shlibpath_var=no
13428       ;;
13429
13430     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13431     # support.  Future versions do this automatically, but an explicit c++rt0.o
13432     # does not break anything, and helps significantly (at the cost of a little
13433     # extra space).
13434     freebsd2.2*)
13435       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13436       hardcode_libdir_flag_spec='-R$libdir'
13437       hardcode_direct=yes
13438       hardcode_shlibpath_var=no
13439       ;;
13440
13441     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13442     freebsd2.*)
13443       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13444       hardcode_direct=yes
13445       hardcode_minus_L=yes
13446       hardcode_shlibpath_var=no
13447       ;;
13448
13449     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13450     freebsd* | dragonfly*)
13451       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13452       hardcode_libdir_flag_spec='-R$libdir'
13453       hardcode_direct=yes
13454       hardcode_shlibpath_var=no
13455       ;;
13456
13457     hpux9*)
13458       if test yes = "$GCC"; then
13459         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'
13460       else
13461         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'
13462       fi
13463       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13464       hardcode_libdir_separator=:
13465       hardcode_direct=yes
13466
13467       # hardcode_minus_L: Not really in the search PATH,
13468       # but as the default location of the library.
13469       hardcode_minus_L=yes
13470       export_dynamic_flag_spec='$wl-E'
13471       ;;
13472
13473     hpux10*)
13474       if test yes,no = "$GCC,$with_gnu_ld"; then
13475         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13476       else
13477         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13478       fi
13479       if test no = "$with_gnu_ld"; then
13480         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13481         hardcode_libdir_separator=:
13482         hardcode_direct=yes
13483         hardcode_direct_absolute=yes
13484         export_dynamic_flag_spec='$wl-E'
13485         # hardcode_minus_L: Not really in the search PATH,
13486         # but as the default location of the library.
13487         hardcode_minus_L=yes
13488       fi
13489       ;;
13490
13491     hpux11*)
13492       if test yes,no = "$GCC,$with_gnu_ld"; then
13493         case $host_cpu in
13494         hppa*64*)
13495           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13496           ;;
13497         ia64*)
13498           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13499           ;;
13500         *)
13501           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13502           ;;
13503         esac
13504       else
13505         case $host_cpu in
13506         hppa*64*)
13507           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13508           ;;
13509         ia64*)
13510           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13511           ;;
13512         *)
13513
13514           # Older versions of the 11.00 compiler do not understand -b yet
13515           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13516           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13517 $as_echo_n "checking if $CC understands -b... " >&6; }
13518 if ${lt_cv_prog_compiler__b+:} false; then :
13519   $as_echo_n "(cached) " >&6
13520 else
13521   lt_cv_prog_compiler__b=no
13522    save_LDFLAGS=$LDFLAGS
13523    LDFLAGS="$LDFLAGS -b"
13524    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13525    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13526      # The linker can only warn and ignore the option if not recognized
13527      # So say no if there are warnings
13528      if test -s conftest.err; then
13529        # Append any errors to the config.log.
13530        cat conftest.err 1>&5
13531        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13532        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13533        if diff conftest.exp conftest.er2 >/dev/null; then
13534          lt_cv_prog_compiler__b=yes
13535        fi
13536      else
13537        lt_cv_prog_compiler__b=yes
13538      fi
13539    fi
13540    $RM -r conftest*
13541    LDFLAGS=$save_LDFLAGS
13542
13543 fi
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13545 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13546
13547 if test yes = "$lt_cv_prog_compiler__b"; then
13548     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13549 else
13550     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13551 fi
13552
13553           ;;
13554         esac
13555       fi
13556       if test no = "$with_gnu_ld"; then
13557         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13558         hardcode_libdir_separator=:
13559
13560         case $host_cpu in
13561         hppa*64*|ia64*)
13562           hardcode_direct=no
13563           hardcode_shlibpath_var=no
13564           ;;
13565         *)
13566           hardcode_direct=yes
13567           hardcode_direct_absolute=yes
13568           export_dynamic_flag_spec='$wl-E'
13569
13570           # hardcode_minus_L: Not really in the search PATH,
13571           # but as the default location of the library.
13572           hardcode_minus_L=yes
13573           ;;
13574         esac
13575       fi
13576       ;;
13577
13578     irix5* | irix6* | nonstopux*)
13579       if test yes = "$GCC"; then
13580         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'
13581         # Try to use the -exported_symbol ld option, if it does not
13582         # work, assume that -exports_file does not work either and
13583         # implicitly export all symbols.
13584         # This should be the same for all languages, so no per-tag cache variable.
13585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13586 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13587 if ${lt_cv_irix_exported_symbol+:} false; then :
13588   $as_echo_n "(cached) " >&6
13589 else
13590   save_LDFLAGS=$LDFLAGS
13591            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13592            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h.  */
13594 int foo (void) { return 0; }
13595 _ACEOF
13596 if ac_fn_c_try_link "$LINENO"; then :
13597   lt_cv_irix_exported_symbol=yes
13598 else
13599   lt_cv_irix_exported_symbol=no
13600 fi
13601 rm -f core conftest.err conftest.$ac_objext \
13602     conftest$ac_exeext conftest.$ac_ext
13603            LDFLAGS=$save_LDFLAGS
13604 fi
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13606 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13607         if test yes = "$lt_cv_irix_exported_symbol"; then
13608           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'
13609         fi
13610         link_all_deplibs=no
13611       else
13612         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'
13613         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'
13614       fi
13615       archive_cmds_need_lc='no'
13616       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13617       hardcode_libdir_separator=:
13618       inherit_rpath=yes
13619       link_all_deplibs=yes
13620       ;;
13621
13622     linux*)
13623       case $cc_basename in
13624       tcc*)
13625         # Fabrice Bellard et al's Tiny C Compiler
13626         ld_shlibs=yes
13627         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13628         ;;
13629       esac
13630       ;;
13631
13632     netbsd* | netbsdelf*-gnu)
13633       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13634         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13635       else
13636         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13637       fi
13638       hardcode_libdir_flag_spec='-R$libdir'
13639       hardcode_direct=yes
13640       hardcode_shlibpath_var=no
13641       ;;
13642
13643     newsos6)
13644       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13645       hardcode_direct=yes
13646       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13647       hardcode_libdir_separator=:
13648       hardcode_shlibpath_var=no
13649       ;;
13650
13651     *nto* | *qnx*)
13652       ;;
13653
13654     openbsd* | bitrig*)
13655       if test -f /usr/libexec/ld.so; then
13656         hardcode_direct=yes
13657         hardcode_shlibpath_var=no
13658         hardcode_direct_absolute=yes
13659         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13660           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13661           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13662           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13663           export_dynamic_flag_spec='$wl-E'
13664         else
13665           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13666           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13667         fi
13668       else
13669         ld_shlibs=no
13670       fi
13671       ;;
13672
13673     os2*)
13674       hardcode_libdir_flag_spec='-L$libdir'
13675       hardcode_minus_L=yes
13676       allow_undefined_flag=unsupported
13677       shrext_cmds=.dll
13678       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13679         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13680         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13681         $ECHO EXPORTS >> $output_objdir/$libname.def~
13682         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13683         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13684         emximp -o $lib $output_objdir/$libname.def'
13685       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13686         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13687         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13688         $ECHO EXPORTS >> $output_objdir/$libname.def~
13689         prefix_cmds="$SED"~
13690         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13691           prefix_cmds="$prefix_cmds -e 1d";
13692         fi~
13693         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13694         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13695         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13696         emximp -o $lib $output_objdir/$libname.def'
13697       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13698       enable_shared_with_static_runtimes=yes
13699       ;;
13700
13701     osf3*)
13702       if test yes = "$GCC"; then
13703         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13704         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'
13705       else
13706         allow_undefined_flag=' -expect_unresolved \*'
13707         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'
13708       fi
13709       archive_cmds_need_lc='no'
13710       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13711       hardcode_libdir_separator=:
13712       ;;
13713
13714     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13715       if test yes = "$GCC"; then
13716         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13717         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'
13718         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13719       else
13720         allow_undefined_flag=' -expect_unresolved \*'
13721         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'
13722         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~
13723           $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'
13724
13725         # Both c and cxx compiler support -rpath directly
13726         hardcode_libdir_flag_spec='-rpath $libdir'
13727       fi
13728       archive_cmds_need_lc='no'
13729       hardcode_libdir_separator=:
13730       ;;
13731
13732     solaris*)
13733       no_undefined_flag=' -z defs'
13734       if test yes = "$GCC"; then
13735         wlarc='$wl'
13736         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13737         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13738           $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'
13739       else
13740         case `$CC -V 2>&1` in
13741         *"Compilers 5.0"*)
13742           wlarc=''
13743           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13744           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13746           ;;
13747         *)
13748           wlarc='$wl'
13749           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13750           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13752           ;;
13753         esac
13754       fi
13755       hardcode_libdir_flag_spec='-R$libdir'
13756       hardcode_shlibpath_var=no
13757       case $host_os in
13758       solaris2.[0-5] | solaris2.[0-5].*) ;;
13759       *)
13760         # The compiler driver will combine and reorder linker options,
13761         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13762         # but is careful enough not to reorder.
13763         # Supported since Solaris 2.6 (maybe 2.5.1?)
13764         if test yes = "$GCC"; then
13765           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13766         else
13767           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13768         fi
13769         ;;
13770       esac
13771       link_all_deplibs=yes
13772       ;;
13773
13774     sunos4*)
13775       if test sequent = "$host_vendor"; then
13776         # Use $CC to link under sequent, because it throws in some extra .o
13777         # files that make .init and .fini sections work.
13778         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13779       else
13780         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13781       fi
13782       hardcode_libdir_flag_spec='-L$libdir'
13783       hardcode_direct=yes
13784       hardcode_minus_L=yes
13785       hardcode_shlibpath_var=no
13786       ;;
13787
13788     sysv4)
13789       case $host_vendor in
13790         sni)
13791           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792           hardcode_direct=yes # is this really true???
13793         ;;
13794         siemens)
13795           ## LD is ld it makes a PLAMLIB
13796           ## CC just makes a GrossModule.
13797           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13798           reload_cmds='$CC -r -o $output$reload_objs'
13799           hardcode_direct=no
13800         ;;
13801         motorola)
13802           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13803           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13804         ;;
13805       esac
13806       runpath_var='LD_RUN_PATH'
13807       hardcode_shlibpath_var=no
13808       ;;
13809
13810     sysv4.3*)
13811       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812       hardcode_shlibpath_var=no
13813       export_dynamic_flag_spec='-Bexport'
13814       ;;
13815
13816     sysv4*MP*)
13817       if test -d /usr/nec; then
13818         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819         hardcode_shlibpath_var=no
13820         runpath_var=LD_RUN_PATH
13821         hardcode_runpath_var=yes
13822         ld_shlibs=yes
13823       fi
13824       ;;
13825
13826     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13827       no_undefined_flag='$wl-z,text'
13828       archive_cmds_need_lc=no
13829       hardcode_shlibpath_var=no
13830       runpath_var='LD_RUN_PATH'
13831
13832       if test yes = "$GCC"; then
13833         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835       else
13836         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13838       fi
13839       ;;
13840
13841     sysv5* | sco3.2v5* | sco5v6*)
13842       # Note: We CANNOT use -z defs as we might desire, because we do not
13843       # link with -lc, and that would cause any symbols used from libc to
13844       # always be unresolved, which means just about no library would
13845       # ever link correctly.  If we're not using GNU ld we use -z text
13846       # though, which does catch some bad symbols but isn't as heavy-handed
13847       # as -z defs.
13848       no_undefined_flag='$wl-z,text'
13849       allow_undefined_flag='$wl-z,nodefs'
13850       archive_cmds_need_lc=no
13851       hardcode_shlibpath_var=no
13852       hardcode_libdir_flag_spec='$wl-R,$libdir'
13853       hardcode_libdir_separator=':'
13854       link_all_deplibs=yes
13855       export_dynamic_flag_spec='$wl-Bexport'
13856       runpath_var='LD_RUN_PATH'
13857
13858       if test yes = "$GCC"; then
13859         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861       else
13862         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13863         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13864       fi
13865       ;;
13866
13867     uts4*)
13868       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13869       hardcode_libdir_flag_spec='-L$libdir'
13870       hardcode_shlibpath_var=no
13871       ;;
13872
13873     *)
13874       ld_shlibs=no
13875       ;;
13876     esac
13877
13878     if test sni = "$host_vendor"; then
13879       case $host in
13880       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13881         export_dynamic_flag_spec='$wl-Blargedynsym'
13882         ;;
13883       esac
13884     fi
13885   fi
13886
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13888 $as_echo "$ld_shlibs" >&6; }
13889 test no = "$ld_shlibs" && can_build_shared=no
13890
13891 with_gnu_ld=$with_gnu_ld
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907 #
13908 # Do we need to explicitly link libc?
13909 #
13910 case "x$archive_cmds_need_lc" in
13911 x|xyes)
13912   # Assume -lc should be added
13913   archive_cmds_need_lc=yes
13914
13915   if test yes,yes = "$GCC,$enable_shared"; then
13916     case $archive_cmds in
13917     *'~'*)
13918       # FIXME: we may have to deal with multi-command sequences.
13919       ;;
13920     '$CC '*)
13921       # Test whether the compiler implicitly links with -lc since on some
13922       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13923       # to ld, don't add -lc before -lgcc.
13924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13925 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13926 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13927   $as_echo_n "(cached) " >&6
13928 else
13929   $RM conftest*
13930         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13931
13932         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13933   (eval $ac_compile) 2>&5
13934   ac_status=$?
13935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13936   test $ac_status = 0; } 2>conftest.err; then
13937           soname=conftest
13938           lib=conftest
13939           libobjs=conftest.$ac_objext
13940           deplibs=
13941           wl=$lt_prog_compiler_wl
13942           pic_flag=$lt_prog_compiler_pic
13943           compiler_flags=-v
13944           linker_flags=-v
13945           verstring=
13946           output_objdir=.
13947           libname=conftest
13948           lt_save_allow_undefined_flag=$allow_undefined_flag
13949           allow_undefined_flag=
13950           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13951   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13952   ac_status=$?
13953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13954   test $ac_status = 0; }
13955           then
13956             lt_cv_archive_cmds_need_lc=no
13957           else
13958             lt_cv_archive_cmds_need_lc=yes
13959           fi
13960           allow_undefined_flag=$lt_save_allow_undefined_flag
13961         else
13962           cat conftest.err 1>&5
13963         fi
13964         $RM conftest*
13965
13966 fi
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13968 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13969       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13970       ;;
13971     esac
13972   fi
13973   ;;
13974 esac
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
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14128 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14129
14130 if test yes = "$GCC"; then
14131   case $host_os in
14132     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14133     *) lt_awk_arg='/^libraries:/' ;;
14134   esac
14135   case $host_os in
14136     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14137     *) lt_sed_strip_eq='s|=/|/|g' ;;
14138   esac
14139   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14140   case $lt_search_path_spec in
14141   *\;*)
14142     # if the path contains ";" then we assume it to be the separator
14143     # otherwise default to the standard path separator (i.e. ":") - it is
14144     # assumed that no part of a normal pathname contains ";" but that should
14145     # okay in the real world where ";" in dirpaths is itself problematic.
14146     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14147     ;;
14148   *)
14149     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14150     ;;
14151   esac
14152   # Ok, now we have the path, separated by spaces, we can step through it
14153   # and add multilib dir if necessary...
14154   lt_tmp_lt_search_path_spec=
14155   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14156   # ...but if some path component already ends with the multilib dir we assume
14157   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14158   case "$lt_multi_os_dir; $lt_search_path_spec " in
14159   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14160     lt_multi_os_dir=
14161     ;;
14162   esac
14163   for lt_sys_path in $lt_search_path_spec; do
14164     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14165       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14166     elif test -n "$lt_multi_os_dir"; then
14167       test -d "$lt_sys_path" && \
14168         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14169     fi
14170   done
14171   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14172 BEGIN {RS = " "; FS = "/|\n";} {
14173   lt_foo = "";
14174   lt_count = 0;
14175   for (lt_i = NF; lt_i > 0; lt_i--) {
14176     if ($lt_i != "" && $lt_i != ".") {
14177       if ($lt_i == "..") {
14178         lt_count++;
14179       } else {
14180         if (lt_count == 0) {
14181           lt_foo = "/" $lt_i lt_foo;
14182         } else {
14183           lt_count--;
14184         }
14185       }
14186     }
14187   }
14188   if (lt_foo != "") { lt_freq[lt_foo]++; }
14189   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14190 }'`
14191   # AWK program above erroneously prepends '/' to C:/dos/paths
14192   # for these hosts.
14193   case $host_os in
14194     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14195       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14196   esac
14197   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14198 else
14199   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14200 fi
14201 library_names_spec=
14202 libname_spec='lib$name'
14203 soname_spec=
14204 shrext_cmds=.so
14205 postinstall_cmds=
14206 postuninstall_cmds=
14207 finish_cmds=
14208 finish_eval=
14209 shlibpath_var=
14210 shlibpath_overrides_runpath=unknown
14211 version_type=none
14212 dynamic_linker="$host_os ld.so"
14213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14214 need_lib_prefix=unknown
14215 hardcode_into_libs=no
14216
14217 # when you set need_version to no, make sure it does not cause -set_version
14218 # flags to be left without arguments
14219 need_version=unknown
14220
14221
14222
14223 case $host_os in
14224 aix3*)
14225   version_type=linux # correct to gnu/linux during the next big refactor
14226   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14227   shlibpath_var=LIBPATH
14228
14229   # AIX 3 has no versioning support, so we append a major version to the name.
14230   soname_spec='$libname$release$shared_ext$major'
14231   ;;
14232
14233 aix[4-9]*)
14234   version_type=linux # correct to gnu/linux during the next big refactor
14235   need_lib_prefix=no
14236   need_version=no
14237   hardcode_into_libs=yes
14238   if test ia64 = "$host_cpu"; then
14239     # AIX 5 supports IA64
14240     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14241     shlibpath_var=LD_LIBRARY_PATH
14242   else
14243     # With GCC up to 2.95.x, collect2 would create an import file
14244     # for dependence libraries.  The import file would start with
14245     # the line '#! .'.  This would cause the generated library to
14246     # depend on '.', always an invalid library.  This was fixed in
14247     # development snapshots of GCC prior to 3.0.
14248     case $host_os in
14249       aix4 | aix4.[01] | aix4.[01].*)
14250       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14251            echo ' yes '
14252            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14253         :
14254       else
14255         can_build_shared=no
14256       fi
14257       ;;
14258     esac
14259     # Using Import Files as archive members, it is possible to support
14260     # filename-based versioning of shared library archives on AIX. While
14261     # this would work for both with and without runtime linking, it will
14262     # prevent static linking of such archives. So we do filename-based
14263     # shared library versioning with .so extension only, which is used
14264     # when both runtime linking and shared linking is enabled.
14265     # Unfortunately, runtime linking may impact performance, so we do
14266     # not want this to be the default eventually. Also, we use the
14267     # versioned .so libs for executables only if there is the -brtl
14268     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14269     # To allow for filename-based versioning support, we need to create
14270     # libNAME.so.V as an archive file, containing:
14271     # *) an Import File, referring to the versioned filename of the
14272     #    archive as well as the shared archive member, telling the
14273     #    bitwidth (32 or 64) of that shared object, and providing the
14274     #    list of exported symbols of that shared object, eventually
14275     #    decorated with the 'weak' keyword
14276     # *) the shared object with the F_LOADONLY flag set, to really avoid
14277     #    it being seen by the linker.
14278     # At run time we better use the real file rather than another symlink,
14279     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14280
14281     case $with_aix_soname,$aix_use_runtimelinking in
14282     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14283     # soname into executable. Probably we can add versioning support to
14284     # collect2, so additional links can be useful in future.
14285     aix,yes) # traditional libtool
14286       dynamic_linker='AIX unversionable lib.so'
14287       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14288       # instead of lib<name>.a to let people know that these are not
14289       # typical AIX shared libraries.
14290       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14291       ;;
14292     aix,no) # traditional AIX only
14293       dynamic_linker='AIX lib.a(lib.so.V)'
14294       # We preserve .a as extension for shared libraries through AIX4.2
14295       # and later when we are not doing run time linking.
14296       library_names_spec='$libname$release.a $libname.a'
14297       soname_spec='$libname$release$shared_ext$major'
14298       ;;
14299     svr4,*) # full svr4 only
14300       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14301       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14302       # We do not specify a path in Import Files, so LIBPATH fires.
14303       shlibpath_overrides_runpath=yes
14304       ;;
14305     *,yes) # both, prefer svr4
14306       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14307       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14308       # unpreferred sharedlib libNAME.a needs extra handling
14309       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"'
14310       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"'
14311       # We do not specify a path in Import Files, so LIBPATH fires.
14312       shlibpath_overrides_runpath=yes
14313       ;;
14314     *,no) # both, prefer aix
14315       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14316       library_names_spec='$libname$release.a $libname.a'
14317       soname_spec='$libname$release$shared_ext$major'
14318       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14319       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)'
14320       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"'
14321       ;;
14322     esac
14323     shlibpath_var=LIBPATH
14324   fi
14325   ;;
14326
14327 amigaos*)
14328   case $host_cpu in
14329   powerpc)
14330     # Since July 2007 AmigaOS4 officially supports .so libraries.
14331     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14332     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14333     ;;
14334   m68k)
14335     library_names_spec='$libname.ixlibrary $libname.a'
14336     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14337     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'
14338     ;;
14339   esac
14340   ;;
14341
14342 beos*)
14343   library_names_spec='$libname$shared_ext'
14344   dynamic_linker="$host_os ld.so"
14345   shlibpath_var=LIBRARY_PATH
14346   ;;
14347
14348 bsdi[45]*)
14349   version_type=linux # correct to gnu/linux during the next big refactor
14350   need_version=no
14351   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14352   soname_spec='$libname$release$shared_ext$major'
14353   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14354   shlibpath_var=LD_LIBRARY_PATH
14355   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14356   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14357   # the default ld.so.conf also contains /usr/contrib/lib and
14358   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14359   # libtool to hard-code these into programs
14360   ;;
14361
14362 cygwin* | mingw* | pw32* | cegcc*)
14363   version_type=windows
14364   shrext_cmds=.dll
14365   need_version=no
14366   need_lib_prefix=no
14367
14368   case $GCC,$cc_basename in
14369   yes,*)
14370     # gcc
14371     library_names_spec='$libname.dll.a'
14372     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14373     postinstall_cmds='base_file=`basename \$file`~
14374       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14375       dldir=$destdir/`dirname \$dlpath`~
14376       test -d \$dldir || mkdir -p \$dldir~
14377       $install_prog $dir/$dlname \$dldir/$dlname~
14378       chmod a+x \$dldir/$dlname~
14379       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14380         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14381       fi'
14382     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14383       dlpath=$dir/\$dldll~
14384        $RM \$dlpath'
14385     shlibpath_overrides_runpath=yes
14386
14387     case $host_os in
14388     cygwin*)
14389       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14390       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14391
14392       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14393       ;;
14394     mingw* | cegcc*)
14395       # MinGW DLLs use traditional 'lib' prefix
14396       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14397       ;;
14398     pw32*)
14399       # pw32 DLLs use 'pw' prefix rather than 'lib'
14400       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14401       ;;
14402     esac
14403     dynamic_linker='Win32 ld.exe'
14404     ;;
14405
14406   *,cl*)
14407     # Native MSVC
14408     libname_spec='$name'
14409     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14410     library_names_spec='$libname.dll.lib'
14411
14412     case $build_os in
14413     mingw*)
14414       sys_lib_search_path_spec=
14415       lt_save_ifs=$IFS
14416       IFS=';'
14417       for lt_path in $LIB
14418       do
14419         IFS=$lt_save_ifs
14420         # Let DOS variable expansion print the short 8.3 style file name.
14421         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14422         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14423       done
14424       IFS=$lt_save_ifs
14425       # Convert to MSYS style.
14426       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14427       ;;
14428     cygwin*)
14429       # Convert to unix form, then to dos form, then back to unix form
14430       # but this time dos style (no spaces!) so that the unix form looks
14431       # like /cygdrive/c/PROGRA~1:/cygdr...
14432       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14433       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14434       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14435       ;;
14436     *)
14437       sys_lib_search_path_spec=$LIB
14438       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14439         # It is most probably a Windows format PATH.
14440         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14441       else
14442         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14443       fi
14444       # FIXME: find the short name or the path components, as spaces are
14445       # common. (e.g. "Program Files" -> "PROGRA~1")
14446       ;;
14447     esac
14448
14449     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14450     postinstall_cmds='base_file=`basename \$file`~
14451       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14452       dldir=$destdir/`dirname \$dlpath`~
14453       test -d \$dldir || mkdir -p \$dldir~
14454       $install_prog $dir/$dlname \$dldir/$dlname'
14455     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14456       dlpath=$dir/\$dldll~
14457        $RM \$dlpath'
14458     shlibpath_overrides_runpath=yes
14459     dynamic_linker='Win32 link.exe'
14460     ;;
14461
14462   *)
14463     # Assume MSVC wrapper
14464     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14465     dynamic_linker='Win32 ld.exe'
14466     ;;
14467   esac
14468   # FIXME: first we should search . and the directory the executable is in
14469   shlibpath_var=PATH
14470   ;;
14471
14472 darwin* | rhapsody*)
14473   dynamic_linker="$host_os dyld"
14474   version_type=darwin
14475   need_lib_prefix=no
14476   need_version=no
14477   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14478   soname_spec='$libname$release$major$shared_ext'
14479   shlibpath_overrides_runpath=yes
14480   shlibpath_var=DYLD_LIBRARY_PATH
14481   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14482
14483   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14484   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14485   ;;
14486
14487 dgux*)
14488   version_type=linux # correct to gnu/linux during the next big refactor
14489   need_lib_prefix=no
14490   need_version=no
14491   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14492   soname_spec='$libname$release$shared_ext$major'
14493   shlibpath_var=LD_LIBRARY_PATH
14494   ;;
14495
14496 freebsd* | dragonfly*)
14497   # DragonFly does not have aout.  When/if they implement a new
14498   # versioning mechanism, adjust this.
14499   if test -x /usr/bin/objformat; then
14500     objformat=`/usr/bin/objformat`
14501   else
14502     case $host_os in
14503     freebsd[23].*) objformat=aout ;;
14504     *) objformat=elf ;;
14505     esac
14506   fi
14507   version_type=freebsd-$objformat
14508   case $version_type in
14509     freebsd-elf*)
14510       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14511       soname_spec='$libname$release$shared_ext$major'
14512       need_version=no
14513       need_lib_prefix=no
14514       ;;
14515     freebsd-*)
14516       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14517       need_version=yes
14518       ;;
14519   esac
14520   shlibpath_var=LD_LIBRARY_PATH
14521   case $host_os in
14522   freebsd2.*)
14523     shlibpath_overrides_runpath=yes
14524     ;;
14525   freebsd3.[01]* | freebsdelf3.[01]*)
14526     shlibpath_overrides_runpath=yes
14527     hardcode_into_libs=yes
14528     ;;
14529   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14530   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14531     shlibpath_overrides_runpath=no
14532     hardcode_into_libs=yes
14533     ;;
14534   *) # from 4.6 on, and DragonFly
14535     shlibpath_overrides_runpath=yes
14536     hardcode_into_libs=yes
14537     ;;
14538   esac
14539   ;;
14540
14541 haiku*)
14542   version_type=linux # correct to gnu/linux during the next big refactor
14543   need_lib_prefix=no
14544   need_version=no
14545   dynamic_linker="$host_os runtime_loader"
14546   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14547   soname_spec='$libname$release$shared_ext$major'
14548   shlibpath_var=LIBRARY_PATH
14549   shlibpath_overrides_runpath=no
14550   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14551   hardcode_into_libs=yes
14552   ;;
14553
14554 hpux9* | hpux10* | hpux11*)
14555   # Give a soname corresponding to the major version so that dld.sl refuses to
14556   # link against other versions.
14557   version_type=sunos
14558   need_lib_prefix=no
14559   need_version=no
14560   case $host_cpu in
14561   ia64*)
14562     shrext_cmds='.so'
14563     hardcode_into_libs=yes
14564     dynamic_linker="$host_os dld.so"
14565     shlibpath_var=LD_LIBRARY_PATH
14566     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test 32 = "$HPUX_IA64_MODE"; then
14570       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14571       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14572     else
14573       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14574       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14575     fi
14576     ;;
14577   hppa*64*)
14578     shrext_cmds='.sl'
14579     hardcode_into_libs=yes
14580     dynamic_linker="$host_os dld.sl"
14581     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14582     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14583     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14584     soname_spec='$libname$release$shared_ext$major'
14585     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14586     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14587     ;;
14588   *)
14589     shrext_cmds='.sl'
14590     dynamic_linker="$host_os dld.sl"
14591     shlibpath_var=SHLIB_PATH
14592     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14593     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14594     soname_spec='$libname$release$shared_ext$major'
14595     ;;
14596   esac
14597   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14598   postinstall_cmds='chmod 555 $lib'
14599   # or fails outright, so override atomically:
14600   install_override_mode=555
14601   ;;
14602
14603 interix[3-9]*)
14604   version_type=linux # correct to gnu/linux during the next big refactor
14605   need_lib_prefix=no
14606   need_version=no
14607   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14608   soname_spec='$libname$release$shared_ext$major'
14609   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14610   shlibpath_var=LD_LIBRARY_PATH
14611   shlibpath_overrides_runpath=no
14612   hardcode_into_libs=yes
14613   ;;
14614
14615 irix5* | irix6* | nonstopux*)
14616   case $host_os in
14617     nonstopux*) version_type=nonstopux ;;
14618     *)
14619         if test yes = "$lt_cv_prog_gnu_ld"; then
14620                 version_type=linux # correct to gnu/linux during the next big refactor
14621         else
14622                 version_type=irix
14623         fi ;;
14624   esac
14625   need_lib_prefix=no
14626   need_version=no
14627   soname_spec='$libname$release$shared_ext$major'
14628   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14629   case $host_os in
14630   irix5* | nonstopux*)
14631     libsuff= shlibsuff=
14632     ;;
14633   *)
14634     case $LD in # libtool.m4 will add one of these switches to LD
14635     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14636       libsuff= shlibsuff= libmagic=32-bit;;
14637     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14638       libsuff=32 shlibsuff=N32 libmagic=N32;;
14639     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14640       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14641     *) libsuff= shlibsuff= libmagic=never-match;;
14642     esac
14643     ;;
14644   esac
14645   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14646   shlibpath_overrides_runpath=no
14647   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14648   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14649   hardcode_into_libs=yes
14650   ;;
14651
14652 # No shared lib support for Linux oldld, aout, or coff.
14653 linux*oldld* | linux*aout* | linux*coff*)
14654   dynamic_linker=no
14655   ;;
14656
14657 linux*android*)
14658   version_type=none # Android doesn't support versioned libraries.
14659   need_lib_prefix=no
14660   need_version=no
14661   library_names_spec='$libname$release$shared_ext'
14662   soname_spec='$libname$release$shared_ext'
14663   finish_cmds=
14664   shlibpath_var=LD_LIBRARY_PATH
14665   shlibpath_overrides_runpath=yes
14666
14667   # This implies no fast_install, which is unacceptable.
14668   # Some rework will be needed to allow for fast_install
14669   # before this can be enabled.
14670   hardcode_into_libs=yes
14671
14672   dynamic_linker='Android linker'
14673   # Don't embed -rpath directories since the linker doesn't support them.
14674   hardcode_libdir_flag_spec='-L$libdir'
14675   ;;
14676
14677 # This must be glibc/ELF.
14678 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14679   version_type=linux # correct to gnu/linux during the next big refactor
14680   need_lib_prefix=no
14681   need_version=no
14682   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14683   soname_spec='$libname$release$shared_ext$major'
14684   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14685   shlibpath_var=LD_LIBRARY_PATH
14686   shlibpath_overrides_runpath=no
14687
14688   # Some binutils ld are patched to set DT_RUNPATH
14689   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14690   $as_echo_n "(cached) " >&6
14691 else
14692   lt_cv_shlibpath_overrides_runpath=no
14693     save_LDFLAGS=$LDFLAGS
14694     save_libdir=$libdir
14695     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14696          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14697     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h.  */
14699
14700 int
14701 main ()
14702 {
14703
14704   ;
14705   return 0;
14706 }
14707 _ACEOF
14708 if ac_fn_c_try_link "$LINENO"; then :
14709   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14710   lt_cv_shlibpath_overrides_runpath=yes
14711 fi
14712 fi
14713 rm -f core conftest.err conftest.$ac_objext \
14714     conftest$ac_exeext conftest.$ac_ext
14715     LDFLAGS=$save_LDFLAGS
14716     libdir=$save_libdir
14717
14718 fi
14719
14720   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14721
14722   # This implies no fast_install, which is unacceptable.
14723   # Some rework will be needed to allow for fast_install
14724   # before this can be enabled.
14725   hardcode_into_libs=yes
14726
14727   # Ideally, we could use ldconfig to report *all* directores which are
14728   # searched for libraries, however this is still not possible.  Aside from not
14729   # being certain /sbin/ldconfig is available, command
14730   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14731   # even though it is searched at run-time.  Try to do the best guess by
14732   # appending ld.so.conf contents (and includes) to the search path.
14733   if test -f /etc/ld.so.conf; then
14734     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' ' '`
14735     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14736   fi
14737
14738   # We used to test for /lib/ld.so.1 and disable shared libraries on
14739   # powerpc, because MkLinux only supported shared libraries with the
14740   # GNU dynamic linker.  Since this was broken with cross compilers,
14741   # most powerpc-linux boxes support dynamic linking these days and
14742   # people can always --disable-shared, the test was removed, and we
14743   # assume the GNU/Linux dynamic linker is in use.
14744   dynamic_linker='GNU/Linux ld.so'
14745   ;;
14746
14747 netbsdelf*-gnu)
14748   version_type=linux
14749   need_lib_prefix=no
14750   need_version=no
14751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14752   soname_spec='${libname}${release}${shared_ext}$major'
14753   shlibpath_var=LD_LIBRARY_PATH
14754   shlibpath_overrides_runpath=no
14755   hardcode_into_libs=yes
14756   dynamic_linker='NetBSD ld.elf_so'
14757   ;;
14758
14759 netbsd*)
14760   version_type=sunos
14761   need_lib_prefix=no
14762   need_version=no
14763   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14764     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14765     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14766     dynamic_linker='NetBSD (a.out) ld.so'
14767   else
14768     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14769     soname_spec='$libname$release$shared_ext$major'
14770     dynamic_linker='NetBSD ld.elf_so'
14771   fi
14772   shlibpath_var=LD_LIBRARY_PATH
14773   shlibpath_overrides_runpath=yes
14774   hardcode_into_libs=yes
14775   ;;
14776
14777 newsos6)
14778   version_type=linux # correct to gnu/linux during the next big refactor
14779   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14780   shlibpath_var=LD_LIBRARY_PATH
14781   shlibpath_overrides_runpath=yes
14782   ;;
14783
14784 *nto* | *qnx*)
14785   version_type=qnx
14786   need_lib_prefix=no
14787   need_version=no
14788   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14789   soname_spec='$libname$release$shared_ext$major'
14790   shlibpath_var=LD_LIBRARY_PATH
14791   shlibpath_overrides_runpath=no
14792   hardcode_into_libs=yes
14793   dynamic_linker='ldqnx.so'
14794   ;;
14795
14796 openbsd* | bitrig*)
14797   version_type=sunos
14798   sys_lib_dlsearch_path_spec=/usr/lib
14799   need_lib_prefix=no
14800   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14801     need_version=no
14802   else
14803     need_version=yes
14804   fi
14805   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14806   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14807   shlibpath_var=LD_LIBRARY_PATH
14808   shlibpath_overrides_runpath=yes
14809   ;;
14810
14811 os2*)
14812   libname_spec='$name'
14813   version_type=windows
14814   shrext_cmds=.dll
14815   need_version=no
14816   need_lib_prefix=no
14817   # OS/2 can only load a DLL with a base name of 8 characters or less.
14818   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14819     v=$($ECHO $release$versuffix | tr -d .-);
14820     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14821     $ECHO $n$v`$shared_ext'
14822   library_names_spec='${libname}_dll.$libext'
14823   dynamic_linker='OS/2 ld.exe'
14824   shlibpath_var=BEGINLIBPATH
14825   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14826   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14827   postinstall_cmds='base_file=`basename \$file`~
14828     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14829     dldir=$destdir/`dirname \$dlpath`~
14830     test -d \$dldir || mkdir -p \$dldir~
14831     $install_prog $dir/$dlname \$dldir/$dlname~
14832     chmod a+x \$dldir/$dlname~
14833     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14834       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14835     fi'
14836   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14837     dlpath=$dir/\$dldll~
14838     $RM \$dlpath'
14839   ;;
14840
14841 osf3* | osf4* | osf5*)
14842   version_type=osf
14843   need_lib_prefix=no
14844   need_version=no
14845   soname_spec='$libname$release$shared_ext$major'
14846   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14847   shlibpath_var=LD_LIBRARY_PATH
14848   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14849   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14850   ;;
14851
14852 rdos*)
14853   dynamic_linker=no
14854   ;;
14855
14856 solaris*)
14857   version_type=linux # correct to gnu/linux during the next big refactor
14858   need_lib_prefix=no
14859   need_version=no
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   shlibpath_overrides_runpath=yes
14864   hardcode_into_libs=yes
14865   # ldd complains unless libraries are executable
14866   postinstall_cmds='chmod +x $lib'
14867   ;;
14868
14869 sunos4*)
14870   version_type=sunos
14871   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14872   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14873   shlibpath_var=LD_LIBRARY_PATH
14874   shlibpath_overrides_runpath=yes
14875   if test yes = "$with_gnu_ld"; then
14876     need_lib_prefix=no
14877   fi
14878   need_version=yes
14879   ;;
14880
14881 sysv4 | sysv4.3*)
14882   version_type=linux # correct to gnu/linux during the next big refactor
14883   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14884   soname_spec='$libname$release$shared_ext$major'
14885   shlibpath_var=LD_LIBRARY_PATH
14886   case $host_vendor in
14887     sni)
14888       shlibpath_overrides_runpath=no
14889       need_lib_prefix=no
14890       runpath_var=LD_RUN_PATH
14891       ;;
14892     siemens)
14893       need_lib_prefix=no
14894       ;;
14895     motorola)
14896       need_lib_prefix=no
14897       need_version=no
14898       shlibpath_overrides_runpath=no
14899       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14900       ;;
14901   esac
14902   ;;
14903
14904 sysv4*MP*)
14905   if test -d /usr/nec; then
14906     version_type=linux # correct to gnu/linux during the next big refactor
14907     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14908     soname_spec='$libname$shared_ext.$major'
14909     shlibpath_var=LD_LIBRARY_PATH
14910   fi
14911   ;;
14912
14913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14914   version_type=sco
14915   need_lib_prefix=no
14916   need_version=no
14917   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14918   soname_spec='$libname$release$shared_ext$major'
14919   shlibpath_var=LD_LIBRARY_PATH
14920   shlibpath_overrides_runpath=yes
14921   hardcode_into_libs=yes
14922   if test yes = "$with_gnu_ld"; then
14923     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14924   else
14925     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14926     case $host_os in
14927       sco3.2v5*)
14928         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14929         ;;
14930     esac
14931   fi
14932   sys_lib_dlsearch_path_spec='/usr/lib'
14933   ;;
14934
14935 tpf*)
14936   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14937   version_type=linux # correct to gnu/linux during the next big refactor
14938   need_lib_prefix=no
14939   need_version=no
14940   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14941   shlibpath_var=LD_LIBRARY_PATH
14942   shlibpath_overrides_runpath=no
14943   hardcode_into_libs=yes
14944   ;;
14945
14946 uts4*)
14947   version_type=linux # correct to gnu/linux during the next big refactor
14948   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14949   soname_spec='$libname$release$shared_ext$major'
14950   shlibpath_var=LD_LIBRARY_PATH
14951   ;;
14952
14953 *)
14954   dynamic_linker=no
14955   ;;
14956 esac
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14958 $as_echo "$dynamic_linker" >&6; }
14959 test no = "$dynamic_linker" && can_build_shared=no
14960
14961 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14962 if test yes = "$GCC"; then
14963   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14964 fi
14965
14966 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14967   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14968 fi
14969
14970 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14971   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14972 fi
14973
14974 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14975 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14976
14977 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14978 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14979
14980 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14981 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15081 hardcode_action=
15082 if test -n "$hardcode_libdir_flag_spec" ||
15083    test -n "$runpath_var" ||
15084    test yes = "$hardcode_automatic"; then
15085
15086   # We can hardcode non-existent directories.
15087   if test no != "$hardcode_direct" &&
15088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15089      # have to relink, otherwise we might link with an installed library
15090      # when we should be linking with a yet-to-be-installed one
15091      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15092      test no != "$hardcode_minus_L"; then
15093     # Linking always hardcodes the temporary library directory.
15094     hardcode_action=relink
15095   else
15096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15097     hardcode_action=immediate
15098   fi
15099 else
15100   # We cannot hardcode anything, or else we can only hardcode existing
15101   # directories.
15102   hardcode_action=unsupported
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15105 $as_echo "$hardcode_action" >&6; }
15106
15107 if test relink = "$hardcode_action" ||
15108    test yes = "$inherit_rpath"; then
15109   # Fast installation is not supported
15110   enable_fast_install=no
15111 elif test yes = "$shlibpath_overrides_runpath" ||
15112      test no = "$enable_shared"; then
15113   # Fast installation is not necessary
15114   enable_fast_install=needless
15115 fi
15116
15117
15118
15119
15120
15121
15122   if test yes != "$enable_dlopen"; then
15123   enable_dlopen=unknown
15124   enable_dlopen_self=unknown
15125   enable_dlopen_self_static=unknown
15126 else
15127   lt_cv_dlopen=no
15128   lt_cv_dlopen_libs=
15129
15130   case $host_os in
15131   beos*)
15132     lt_cv_dlopen=load_add_on
15133     lt_cv_dlopen_libs=
15134     lt_cv_dlopen_self=yes
15135     ;;
15136
15137   mingw* | pw32* | cegcc*)
15138     lt_cv_dlopen=LoadLibrary
15139     lt_cv_dlopen_libs=
15140     ;;
15141
15142   cygwin*)
15143     lt_cv_dlopen=dlopen
15144     lt_cv_dlopen_libs=
15145     ;;
15146
15147   darwin*)
15148     # if libdl is installed we need to link against it
15149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15151 if ${ac_cv_lib_dl_dlopen+:} false; then :
15152   $as_echo_n "(cached) " >&6
15153 else
15154   ac_check_lib_save_LIBS=$LIBS
15155 LIBS="-ldl  $LIBS"
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h.  */
15158
15159 /* Override any GCC internal prototype to avoid an error.
15160    Use char because int might match the return type of a GCC
15161    builtin and then its argument prototype would still apply.  */
15162 #ifdef __cplusplus
15163 extern "C"
15164 #endif
15165 char dlopen ();
15166 int
15167 main ()
15168 {
15169 return dlopen ();
15170   ;
15171   return 0;
15172 }
15173 _ACEOF
15174 if ac_fn_c_try_link "$LINENO"; then :
15175   ac_cv_lib_dl_dlopen=yes
15176 else
15177   ac_cv_lib_dl_dlopen=no
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext \
15180     conftest$ac_exeext conftest.$ac_ext
15181 LIBS=$ac_check_lib_save_LIBS
15182 fi
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15185 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15186   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15187 else
15188
15189     lt_cv_dlopen=dyld
15190     lt_cv_dlopen_libs=
15191     lt_cv_dlopen_self=yes
15192
15193 fi
15194
15195     ;;
15196
15197   tpf*)
15198     # Don't try to run any link tests for TPF.  We know it's impossible
15199     # because TPF is a cross-compiler, and we know how we open DSOs.
15200     lt_cv_dlopen=dlopen
15201     lt_cv_dlopen_libs=
15202     lt_cv_dlopen_self=no
15203     ;;
15204
15205   *)
15206     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15207 if test "x$ac_cv_func_shl_load" = xyes; then :
15208   lt_cv_dlopen=shl_load
15209 else
15210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15211 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15212 if ${ac_cv_lib_dld_shl_load+:} false; then :
15213   $as_echo_n "(cached) " >&6
15214 else
15215   ac_check_lib_save_LIBS=$LIBS
15216 LIBS="-ldld  $LIBS"
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h.  */
15219
15220 /* Override any GCC internal prototype to avoid an error.
15221    Use char because int might match the return type of a GCC
15222    builtin and then its argument prototype would still apply.  */
15223 #ifdef __cplusplus
15224 extern "C"
15225 #endif
15226 char shl_load ();
15227 int
15228 main ()
15229 {
15230 return shl_load ();
15231   ;
15232   return 0;
15233 }
15234 _ACEOF
15235 if ac_fn_c_try_link "$LINENO"; then :
15236   ac_cv_lib_dld_shl_load=yes
15237 else
15238   ac_cv_lib_dld_shl_load=no
15239 fi
15240 rm -f core conftest.err conftest.$ac_objext \
15241     conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15243 fi
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15246 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15247   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15248 else
15249   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15250 if test "x$ac_cv_func_dlopen" = xyes; then :
15251   lt_cv_dlopen=dlopen
15252 else
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15255 if ${ac_cv_lib_dl_dlopen+:} false; then :
15256   $as_echo_n "(cached) " >&6
15257 else
15258   ac_check_lib_save_LIBS=$LIBS
15259 LIBS="-ldl  $LIBS"
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h.  */
15262
15263 /* Override any GCC internal prototype to avoid an error.
15264    Use char because int might match the return type of a GCC
15265    builtin and then its argument prototype would still apply.  */
15266 #ifdef __cplusplus
15267 extern "C"
15268 #endif
15269 char dlopen ();
15270 int
15271 main ()
15272 {
15273 return dlopen ();
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 if ac_fn_c_try_link "$LINENO"; then :
15279   ac_cv_lib_dl_dlopen=yes
15280 else
15281   ac_cv_lib_dl_dlopen=no
15282 fi
15283 rm -f core conftest.err conftest.$ac_objext \
15284     conftest$ac_exeext conftest.$ac_ext
15285 LIBS=$ac_check_lib_save_LIBS
15286 fi
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15289 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15290   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15291 else
15292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15293 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15294 if ${ac_cv_lib_svld_dlopen+:} false; then :
15295   $as_echo_n "(cached) " >&6
15296 else
15297   ac_check_lib_save_LIBS=$LIBS
15298 LIBS="-lsvld  $LIBS"
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h.  */
15301
15302 /* Override any GCC internal prototype to avoid an error.
15303    Use char because int might match the return type of a GCC
15304    builtin and then its argument prototype would still apply.  */
15305 #ifdef __cplusplus
15306 extern "C"
15307 #endif
15308 char dlopen ();
15309 int
15310 main ()
15311 {
15312 return dlopen ();
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 if ac_fn_c_try_link "$LINENO"; then :
15318   ac_cv_lib_svld_dlopen=yes
15319 else
15320   ac_cv_lib_svld_dlopen=no
15321 fi
15322 rm -f core conftest.err conftest.$ac_objext \
15323     conftest$ac_exeext conftest.$ac_ext
15324 LIBS=$ac_check_lib_save_LIBS
15325 fi
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15328 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15329   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15330 else
15331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15333 if ${ac_cv_lib_dld_dld_link+:} false; then :
15334   $as_echo_n "(cached) " >&6
15335 else
15336   ac_check_lib_save_LIBS=$LIBS
15337 LIBS="-ldld  $LIBS"
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h.  */
15340
15341 /* Override any GCC internal prototype to avoid an error.
15342    Use char because int might match the return type of a GCC
15343    builtin and then its argument prototype would still apply.  */
15344 #ifdef __cplusplus
15345 extern "C"
15346 #endif
15347 char dld_link ();
15348 int
15349 main ()
15350 {
15351 return dld_link ();
15352   ;
15353   return 0;
15354 }
15355 _ACEOF
15356 if ac_fn_c_try_link "$LINENO"; then :
15357   ac_cv_lib_dld_dld_link=yes
15358 else
15359   ac_cv_lib_dld_dld_link=no
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext \
15362     conftest$ac_exeext conftest.$ac_ext
15363 LIBS=$ac_check_lib_save_LIBS
15364 fi
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15366 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15367 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15368   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15369 fi
15370
15371
15372 fi
15373
15374
15375 fi
15376
15377
15378 fi
15379
15380
15381 fi
15382
15383
15384 fi
15385
15386     ;;
15387   esac
15388
15389   if test no = "$lt_cv_dlopen"; then
15390     enable_dlopen=no
15391   else
15392     enable_dlopen=yes
15393   fi
15394
15395   case $lt_cv_dlopen in
15396   dlopen)
15397     save_CPPFLAGS=$CPPFLAGS
15398     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15399
15400     save_LDFLAGS=$LDFLAGS
15401     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15402
15403     save_LIBS=$LIBS
15404     LIBS="$lt_cv_dlopen_libs $LIBS"
15405
15406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15407 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15408 if ${lt_cv_dlopen_self+:} false; then :
15409   $as_echo_n "(cached) " >&6
15410 else
15411           if test yes = "$cross_compiling"; then :
15412   lt_cv_dlopen_self=cross
15413 else
15414   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15415   lt_status=$lt_dlunknown
15416   cat > conftest.$ac_ext <<_LT_EOF
15417 #line $LINENO "configure"
15418 #include "confdefs.h"
15419
15420 #if HAVE_DLFCN_H
15421 #include <dlfcn.h>
15422 #endif
15423
15424 #include <stdio.h>
15425
15426 #ifdef RTLD_GLOBAL
15427 #  define LT_DLGLOBAL           RTLD_GLOBAL
15428 #else
15429 #  ifdef DL_GLOBAL
15430 #    define LT_DLGLOBAL         DL_GLOBAL
15431 #  else
15432 #    define LT_DLGLOBAL         0
15433 #  endif
15434 #endif
15435
15436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15437    find out it does not work in some platform. */
15438 #ifndef LT_DLLAZY_OR_NOW
15439 #  ifdef RTLD_LAZY
15440 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15441 #  else
15442 #    ifdef DL_LAZY
15443 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15444 #    else
15445 #      ifdef RTLD_NOW
15446 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15447 #      else
15448 #        ifdef DL_NOW
15449 #          define LT_DLLAZY_OR_NOW      DL_NOW
15450 #        else
15451 #          define LT_DLLAZY_OR_NOW      0
15452 #        endif
15453 #      endif
15454 #    endif
15455 #  endif
15456 #endif
15457
15458 /* When -fvisibility=hidden is used, assume the code has been annotated
15459    correspondingly for the symbols needed.  */
15460 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15461 int fnord () __attribute__((visibility("default")));
15462 #endif
15463
15464 int fnord () { return 42; }
15465 int main ()
15466 {
15467   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15468   int status = $lt_dlunknown;
15469
15470   if (self)
15471     {
15472       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15473       else
15474         {
15475           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15476           else puts (dlerror ());
15477         }
15478       /* dlclose (self); */
15479     }
15480   else
15481     puts (dlerror ());
15482
15483   return status;
15484 }
15485 _LT_EOF
15486   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15487   (eval $ac_link) 2>&5
15488   ac_status=$?
15489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15490   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15491     (./conftest; exit; ) >&5 2>/dev/null
15492     lt_status=$?
15493     case x$lt_status in
15494       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15495       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15496       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15497     esac
15498   else :
15499     # compilation failed
15500     lt_cv_dlopen_self=no
15501   fi
15502 fi
15503 rm -fr conftest*
15504
15505
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15508 $as_echo "$lt_cv_dlopen_self" >&6; }
15509
15510     if test yes = "$lt_cv_dlopen_self"; then
15511       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15512       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15514 if ${lt_cv_dlopen_self_static+:} false; then :
15515   $as_echo_n "(cached) " >&6
15516 else
15517           if test yes = "$cross_compiling"; then :
15518   lt_cv_dlopen_self_static=cross
15519 else
15520   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15521   lt_status=$lt_dlunknown
15522   cat > conftest.$ac_ext <<_LT_EOF
15523 #line $LINENO "configure"
15524 #include "confdefs.h"
15525
15526 #if HAVE_DLFCN_H
15527 #include <dlfcn.h>
15528 #endif
15529
15530 #include <stdio.h>
15531
15532 #ifdef RTLD_GLOBAL
15533 #  define LT_DLGLOBAL           RTLD_GLOBAL
15534 #else
15535 #  ifdef DL_GLOBAL
15536 #    define LT_DLGLOBAL         DL_GLOBAL
15537 #  else
15538 #    define LT_DLGLOBAL         0
15539 #  endif
15540 #endif
15541
15542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15543    find out it does not work in some platform. */
15544 #ifndef LT_DLLAZY_OR_NOW
15545 #  ifdef RTLD_LAZY
15546 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15547 #  else
15548 #    ifdef DL_LAZY
15549 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15550 #    else
15551 #      ifdef RTLD_NOW
15552 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15553 #      else
15554 #        ifdef DL_NOW
15555 #          define LT_DLLAZY_OR_NOW      DL_NOW
15556 #        else
15557 #          define LT_DLLAZY_OR_NOW      0
15558 #        endif
15559 #      endif
15560 #    endif
15561 #  endif
15562 #endif
15563
15564 /* When -fvisibility=hidden is used, assume the code has been annotated
15565    correspondingly for the symbols needed.  */
15566 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15567 int fnord () __attribute__((visibility("default")));
15568 #endif
15569
15570 int fnord () { return 42; }
15571 int main ()
15572 {
15573   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15574   int status = $lt_dlunknown;
15575
15576   if (self)
15577     {
15578       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15579       else
15580         {
15581           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15582           else puts (dlerror ());
15583         }
15584       /* dlclose (self); */
15585     }
15586   else
15587     puts (dlerror ());
15588
15589   return status;
15590 }
15591 _LT_EOF
15592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15593   (eval $ac_link) 2>&5
15594   ac_status=$?
15595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15596   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15597     (./conftest; exit; ) >&5 2>/dev/null
15598     lt_status=$?
15599     case x$lt_status in
15600       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15601       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15602       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15603     esac
15604   else :
15605     # compilation failed
15606     lt_cv_dlopen_self_static=no
15607   fi
15608 fi
15609 rm -fr conftest*
15610
15611
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15614 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15615     fi
15616
15617     CPPFLAGS=$save_CPPFLAGS
15618     LDFLAGS=$save_LDFLAGS
15619     LIBS=$save_LIBS
15620     ;;
15621   esac
15622
15623   case $lt_cv_dlopen_self in
15624   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15625   *) enable_dlopen_self=unknown ;;
15626   esac
15627
15628   case $lt_cv_dlopen_self_static in
15629   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15630   *) enable_dlopen_self_static=unknown ;;
15631   esac
15632 fi
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650 striplib=
15651 old_striplib=
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15653 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15654 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15658 $as_echo "yes" >&6; }
15659 else
15660 # FIXME - insert some real tests, host_os isn't really good enough
15661   case $host_os in
15662   darwin*)
15663     if test -n "$STRIP"; then
15664       striplib="$STRIP -x"
15665       old_striplib="$STRIP -S"
15666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15667 $as_echo "yes" >&6; }
15668     else
15669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15671     fi
15672     ;;
15673   *)
15674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15676     ;;
15677   esac
15678 fi
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691   # Report what library types will actually be built
15692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15693 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15695 $as_echo "$can_build_shared" >&6; }
15696
15697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15698 $as_echo_n "checking whether to build shared libraries... " >&6; }
15699   test no = "$can_build_shared" && enable_shared=no
15700
15701   # On AIX, shared libraries and static libraries use the same namespace, and
15702   # are all built from PIC.
15703   case $host_os in
15704   aix3*)
15705     test yes = "$enable_shared" && enable_static=no
15706     if test -n "$RANLIB"; then
15707       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15708       postinstall_cmds='$RANLIB $lib'
15709     fi
15710     ;;
15711
15712   aix[4-9]*)
15713     if test ia64 != "$host_cpu"; then
15714       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15715       yes,aix,yes) ;;                   # shared object as lib.so file only
15716       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15717       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15718       esac
15719     fi
15720     ;;
15721   esac
15722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15723 $as_echo "$enable_shared" >&6; }
15724
15725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15726 $as_echo_n "checking whether to build static libraries... " >&6; }
15727   # Make sure either enable_shared or enable_static is yes.
15728   test yes = "$enable_shared" || enable_static=yes
15729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15730 $as_echo "$enable_static" >&6; }
15731
15732
15733
15734
15735 fi
15736 ac_ext=c
15737 ac_cpp='$CPP $CPPFLAGS'
15738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15741
15742 CC=$lt_save_CC
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758         ac_config_commands="$ac_config_commands libtool"
15759
15760
15761
15762
15763 # Only expand once:
15764
15765
15766
15767 cat >>confdefs.h <<_ACEOF
15768 #define SHELL "$SHELL"
15769 _ACEOF
15770
15771
15772
15773
15774
15775
15776
15777
15778 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15779         if test -n "$ac_tool_prefix"; then
15780   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15783 $as_echo_n "checking for $ac_word... " >&6; }
15784 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15785   $as_echo_n "(cached) " >&6
15786 else
15787   case $PKG_CONFIG in
15788   [\\/]* | ?:[\\/]*)
15789   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15790   ;;
15791   *)
15792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15794 do
15795   IFS=$as_save_IFS
15796   test -z "$as_dir" && as_dir=.
15797     for ac_exec_ext in '' $ac_executable_extensions; do
15798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801     break 2
15802   fi
15803 done
15804   done
15805 IFS=$as_save_IFS
15806
15807   ;;
15808 esac
15809 fi
15810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15811 if test -n "$PKG_CONFIG"; then
15812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15813 $as_echo "$PKG_CONFIG" >&6; }
15814 else
15815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15817 fi
15818
15819
15820 fi
15821 if test -z "$ac_cv_path_PKG_CONFIG"; then
15822   ac_pt_PKG_CONFIG=$PKG_CONFIG
15823   # Extract the first word of "pkg-config", so it can be a program name with args.
15824 set dummy pkg-config; ac_word=$2
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826 $as_echo_n "checking for $ac_word... " >&6; }
15827 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15828   $as_echo_n "(cached) " >&6
15829 else
15830   case $ac_pt_PKG_CONFIG in
15831   [\\/]* | ?:[\\/]*)
15832   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15833   ;;
15834   *)
15835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15837 do
15838   IFS=$as_save_IFS
15839   test -z "$as_dir" && as_dir=.
15840     for ac_exec_ext in '' $ac_executable_extensions; do
15841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15844     break 2
15845   fi
15846 done
15847   done
15848 IFS=$as_save_IFS
15849
15850   ;;
15851 esac
15852 fi
15853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15854 if test -n "$ac_pt_PKG_CONFIG"; then
15855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15857 else
15858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15859 $as_echo "no" >&6; }
15860 fi
15861
15862   if test "x$ac_pt_PKG_CONFIG" = x; then
15863     PKG_CONFIG=""
15864   else
15865     case $cross_compiling:$ac_tool_warned in
15866 yes:)
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15869 ac_tool_warned=yes ;;
15870 esac
15871     PKG_CONFIG=$ac_pt_PKG_CONFIG
15872   fi
15873 else
15874   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15875 fi
15876
15877 fi
15878 if test -n "$PKG_CONFIG"; then
15879         _pkg_min_version=0.9.0
15880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15882         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15883                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15884 $as_echo "yes" >&6; }
15885         else
15886                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15887 $as_echo "no" >&6; }
15888                 PKG_CONFIG=""
15889         fi
15890 fi
15891
15892 pkg_failed=no
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15894 $as_echo_n "checking for CHECK... " >&6; }
15895
15896 if test -n "$CHECK_CFLAGS"; then
15897     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15898  elif test -n "$PKG_CONFIG"; then
15899     if test -n "$PKG_CONFIG" && \
15900     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15901   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15902   ac_status=$?
15903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904   test $ac_status = 0; }; then
15905   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15906                       test "x$?" != "x0" && pkg_failed=yes
15907 else
15908   pkg_failed=yes
15909 fi
15910  else
15911     pkg_failed=untried
15912 fi
15913 if test -n "$CHECK_LIBS"; then
15914     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15915  elif test -n "$PKG_CONFIG"; then
15916     if test -n "$PKG_CONFIG" && \
15917     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15918   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15919   ac_status=$?
15920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15921   test $ac_status = 0; }; then
15922   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15923                       test "x$?" != "x0" && pkg_failed=yes
15924 else
15925   pkg_failed=yes
15926 fi
15927  else
15928     pkg_failed=untried
15929 fi
15930
15931
15932
15933 if test $pkg_failed = yes; then
15934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935 $as_echo "no" >&6; }
15936
15937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15938         _pkg_short_errors_supported=yes
15939 else
15940         _pkg_short_errors_supported=no
15941 fi
15942         if test $_pkg_short_errors_supported = yes; then
15943                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15944         else
15945                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15946         fi
15947         # Put the nasty error message in config.log where it belongs
15948         echo "$CHECK_PKG_ERRORS" >&5
15949
15950         run_tests=no
15951 elif test $pkg_failed = untried; then
15952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953 $as_echo "no" >&6; }
15954         run_tests=no
15955 else
15956         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15957         CHECK_LIBS=$pkg_cv_CHECK_LIBS
15958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15959 $as_echo "yes" >&6; }
15960         run_tests=yes
15961 fi
15962  if test "x$run_tests" = xyes; then
15963   RUN_TESTS_TRUE=
15964   RUN_TESTS_FALSE='#'
15965 else
15966   RUN_TESTS_TRUE='#'
15967   RUN_TESTS_FALSE=
15968 fi
15969
15970
15971 # Check for various header files and associated libraries.
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15973 $as_echo_n "checking for library containing strerror... " >&6; }
15974 if ${ac_cv_search_strerror+:} false; then :
15975   $as_echo_n "(cached) " >&6
15976 else
15977   ac_func_search_save_LIBS=$LIBS
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h.  */
15980
15981 /* Override any GCC internal prototype to avoid an error.
15982    Use char because int might match the return type of a GCC
15983    builtin and then its argument prototype would still apply.  */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char strerror ();
15988 int
15989 main ()
15990 {
15991 return strerror ();
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 for ac_lib in '' cposix; do
15997   if test -z "$ac_lib"; then
15998     ac_res="none required"
15999   else
16000     ac_res=-l$ac_lib
16001     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16002   fi
16003   if ac_fn_c_try_link "$LINENO"; then :
16004   ac_cv_search_strerror=$ac_res
16005 fi
16006 rm -f core conftest.err conftest.$ac_objext \
16007     conftest$ac_exeext
16008   if ${ac_cv_search_strerror+:} false; then :
16009   break
16010 fi
16011 done
16012 if ${ac_cv_search_strerror+:} false; then :
16013
16014 else
16015   ac_cv_search_strerror=no
16016 fi
16017 rm conftest.$ac_ext
16018 LIBS=$ac_func_search_save_LIBS
16019 fi
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
16021 $as_echo "$ac_cv_search_strerror" >&6; }
16022 ac_res=$ac_cv_search_strerror
16023 if test "$ac_res" != no; then :
16024   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16025
16026 fi
16027
16028
16029
16030
16031
16032
16033           LIBC_FATAL_STDERR_=1
16034   export LIBC_FATAL_STDERR_
16035
16036 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16037 if test "x$ac_cv_type_size_t" = xyes; then :
16038
16039 else
16040
16041 cat >>confdefs.h <<_ACEOF
16042 #define size_t unsigned int
16043 _ACEOF
16044
16045 fi
16046
16047 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16048 # for constant arguments.  Useless!
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16050 $as_echo_n "checking for working alloca.h... " >&6; }
16051 if ${ac_cv_working_alloca_h+:} false; then :
16052   $as_echo_n "(cached) " >&6
16053 else
16054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h.  */
16056 #include <alloca.h>
16057 int
16058 main ()
16059 {
16060 char *p = (char *) alloca (2 * sizeof (int));
16061                           if (p) return 0;
16062   ;
16063   return 0;
16064 }
16065 _ACEOF
16066 if ac_fn_c_try_link "$LINENO"; then :
16067   ac_cv_working_alloca_h=yes
16068 else
16069   ac_cv_working_alloca_h=no
16070 fi
16071 rm -f core conftest.err conftest.$ac_objext \
16072     conftest$ac_exeext conftest.$ac_ext
16073 fi
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16075 $as_echo "$ac_cv_working_alloca_h" >&6; }
16076 if test $ac_cv_working_alloca_h = yes; then
16077
16078 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16079
16080 fi
16081
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16083 $as_echo_n "checking for alloca... " >&6; }
16084 if ${ac_cv_func_alloca_works+:} false; then :
16085   $as_echo_n "(cached) " >&6
16086 else
16087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h.  */
16089 #ifdef __GNUC__
16090 # define alloca __builtin_alloca
16091 #else
16092 # ifdef _MSC_VER
16093 #  include <malloc.h>
16094 #  define alloca _alloca
16095 # else
16096 #  ifdef HAVE_ALLOCA_H
16097 #   include <alloca.h>
16098 #  else
16099 #   ifdef _AIX
16100  #pragma alloca
16101 #   else
16102 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16103 void *alloca (size_t);
16104 #    endif
16105 #   endif
16106 #  endif
16107 # endif
16108 #endif
16109
16110 int
16111 main ()
16112 {
16113 char *p = (char *) alloca (1);
16114                                     if (p) return 0;
16115   ;
16116   return 0;
16117 }
16118 _ACEOF
16119 if ac_fn_c_try_link "$LINENO"; then :
16120   ac_cv_func_alloca_works=yes
16121 else
16122   ac_cv_func_alloca_works=no
16123 fi
16124 rm -f core conftest.err conftest.$ac_objext \
16125     conftest$ac_exeext conftest.$ac_ext
16126 fi
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16128 $as_echo "$ac_cv_func_alloca_works" >&6; }
16129
16130 if test $ac_cv_func_alloca_works = yes; then
16131
16132 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16133
16134 else
16135   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16136 # that cause trouble.  Some versions do not even contain alloca or
16137 # contain a buggy version.  If you still want to use their alloca,
16138 # use ar to extract alloca.o from them instead of compiling alloca.c.
16139
16140
16141
16142
16143
16144 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16145
16146 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16147
16148
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16150 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16151 if ${ac_cv_os_cray+:} false; then :
16152   $as_echo_n "(cached) " >&6
16153 else
16154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h.  */
16156 #if defined CRAY && ! defined CRAY2
16157 webecray
16158 #else
16159 wenotbecray
16160 #endif
16161
16162 _ACEOF
16163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16164   $EGREP "webecray" >/dev/null 2>&1; then :
16165   ac_cv_os_cray=yes
16166 else
16167   ac_cv_os_cray=no
16168 fi
16169 rm -f conftest*
16170
16171 fi
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16173 $as_echo "$ac_cv_os_cray" >&6; }
16174 if test $ac_cv_os_cray = yes; then
16175   for ac_func in _getb67 GETB67 getb67; do
16176     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16178 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16179
16180 cat >>confdefs.h <<_ACEOF
16181 #define CRAY_STACKSEG_END $ac_func
16182 _ACEOF
16183
16184     break
16185 fi
16186
16187   done
16188 fi
16189
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16191 $as_echo_n "checking stack direction for C alloca... " >&6; }
16192 if ${ac_cv_c_stack_direction+:} false; then :
16193   $as_echo_n "(cached) " >&6
16194 else
16195   if test "$cross_compiling" = yes; then :
16196   ac_cv_c_stack_direction=0
16197 else
16198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h.  */
16200 $ac_includes_default
16201 int
16202 find_stack_direction (int *addr, int depth)
16203 {
16204   int dir, dummy = 0;
16205   if (! addr)
16206     addr = &dummy;
16207   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16208   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16209   return dir + dummy;
16210 }
16211
16212 int
16213 main (int argc, char **argv)
16214 {
16215   return find_stack_direction (0, argc + !argv + 20) < 0;
16216 }
16217 _ACEOF
16218 if ac_fn_c_try_run "$LINENO"; then :
16219   ac_cv_c_stack_direction=1
16220 else
16221   ac_cv_c_stack_direction=-1
16222 fi
16223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16224   conftest.$ac_objext conftest.beam conftest.$ac_ext
16225 fi
16226
16227 fi
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16229 $as_echo "$ac_cv_c_stack_direction" >&6; }
16230 cat >>confdefs.h <<_ACEOF
16231 #define STACK_DIRECTION $ac_cv_c_stack_direction
16232 _ACEOF
16233
16234
16235 fi
16236
16237
16238
16239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16240 $as_echo_n "checking whether // is distinct from /... " >&6; }
16241 if ${gl_cv_double_slash_root+:} false; then :
16242   $as_echo_n "(cached) " >&6
16243 else
16244    if test x"$cross_compiling" = xyes ; then
16245         # When cross-compiling, there is no way to tell whether // is special
16246         # short of a list of hosts.  However, the only known hosts to date
16247         # that have a distinct // are Apollo DomainOS (too old to port to),
16248         # Cygwin, and z/OS.  If anyone knows of another system for which // has
16249         # special semantics and is distinct from /, please report it to
16250         # <bug-gnulib@gnu.org>.
16251         case $host in
16252           *-cygwin | i370-ibm-openedition)
16253             gl_cv_double_slash_root=yes ;;
16254           *)
16255             # Be optimistic and assume that / and // are the same when we
16256             # don't know.
16257             gl_cv_double_slash_root='unknown, assuming no' ;;
16258         esac
16259       else
16260         set x `ls -di / // 2>/dev/null`
16261         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
16262           gl_cv_double_slash_root=no
16263         else
16264           gl_cv_double_slash_root=yes
16265         fi
16266       fi
16267 fi
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16269 $as_echo "$gl_cv_double_slash_root" >&6; }
16270   if test "$gl_cv_double_slash_root" = yes; then
16271
16272 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16273
16274   fi
16275
16276
16277
16278
16279
16280
16281   GNULIB_CHDIR=0;
16282   GNULIB_CHOWN=0;
16283   GNULIB_CLOSE=0;
16284   GNULIB_DUP=0;
16285   GNULIB_DUP2=0;
16286   GNULIB_DUP3=0;
16287   GNULIB_ENVIRON=0;
16288   GNULIB_EUIDACCESS=0;
16289   GNULIB_FACCESSAT=0;
16290   GNULIB_FCHDIR=0;
16291   GNULIB_FCHOWNAT=0;
16292   GNULIB_FDATASYNC=0;
16293   GNULIB_FSYNC=0;
16294   GNULIB_FTRUNCATE=0;
16295   GNULIB_GETCWD=0;
16296   GNULIB_GETDOMAINNAME=0;
16297   GNULIB_GETDTABLESIZE=0;
16298   GNULIB_GETGROUPS=0;
16299   GNULIB_GETHOSTNAME=0;
16300   GNULIB_GETLOGIN=0;
16301   GNULIB_GETLOGIN_R=0;
16302   GNULIB_GETPAGESIZE=0;
16303   GNULIB_GETPASS=0;
16304   GNULIB_GETUSERSHELL=0;
16305   GNULIB_GROUP_MEMBER=0;
16306   GNULIB_ISATTY=0;
16307   GNULIB_LCHOWN=0;
16308   GNULIB_LINK=0;
16309   GNULIB_LINKAT=0;
16310   GNULIB_LSEEK=0;
16311   GNULIB_PIPE=0;
16312   GNULIB_PIPE2=0;
16313   GNULIB_PREAD=0;
16314   GNULIB_PWRITE=0;
16315   GNULIB_READ=0;
16316   GNULIB_READLINK=0;
16317   GNULIB_READLINKAT=0;
16318   GNULIB_RMDIR=0;
16319   GNULIB_SETHOSTNAME=0;
16320   GNULIB_SLEEP=0;
16321   GNULIB_SYMLINK=0;
16322   GNULIB_SYMLINKAT=0;
16323   GNULIB_TRUNCATE=0;
16324   GNULIB_TTYNAME_R=0;
16325   GNULIB_UNISTD_H_NONBLOCKING=0;
16326   GNULIB_UNISTD_H_SIGPIPE=0;
16327   GNULIB_UNLINK=0;
16328   GNULIB_UNLINKAT=0;
16329   GNULIB_USLEEP=0;
16330   GNULIB_WRITE=0;
16331     HAVE_CHOWN=1;
16332   HAVE_DUP2=1;
16333   HAVE_DUP3=1;
16334   HAVE_EUIDACCESS=1;
16335   HAVE_FACCESSAT=1;
16336   HAVE_FCHDIR=1;
16337   HAVE_FCHOWNAT=1;
16338   HAVE_FDATASYNC=1;
16339   HAVE_FSYNC=1;
16340   HAVE_FTRUNCATE=1;
16341   HAVE_GETDTABLESIZE=1;
16342   HAVE_GETGROUPS=1;
16343   HAVE_GETHOSTNAME=1;
16344   HAVE_GETLOGIN=1;
16345   HAVE_GETPAGESIZE=1;
16346   HAVE_GETPASS=1;
16347   HAVE_GROUP_MEMBER=1;
16348   HAVE_LCHOWN=1;
16349   HAVE_LINK=1;
16350   HAVE_LINKAT=1;
16351   HAVE_PIPE=1;
16352   HAVE_PIPE2=1;
16353   HAVE_PREAD=1;
16354   HAVE_PWRITE=1;
16355   HAVE_READLINK=1;
16356   HAVE_READLINKAT=1;
16357   HAVE_SETHOSTNAME=1;
16358   HAVE_SLEEP=1;
16359   HAVE_SYMLINK=1;
16360   HAVE_SYMLINKAT=1;
16361   HAVE_UNLINKAT=1;
16362   HAVE_USLEEP=1;
16363   HAVE_DECL_ENVIRON=1;
16364   HAVE_DECL_FCHDIR=1;
16365   HAVE_DECL_FDATASYNC=1;
16366   HAVE_DECL_GETDOMAINNAME=1;
16367   HAVE_DECL_GETLOGIN=1;
16368   HAVE_DECL_GETLOGIN_R=1;
16369   HAVE_DECL_GETPAGESIZE=1;
16370   HAVE_DECL_GETUSERSHELL=1;
16371   HAVE_DECL_SETHOSTNAME=1;
16372   HAVE_DECL_TRUNCATE=1;
16373   HAVE_DECL_TTYNAME_R=1;
16374   HAVE_OS_H=0;
16375   HAVE_SYS_PARAM_H=0;
16376   REPLACE_CHOWN=0;
16377   REPLACE_CLOSE=0;
16378   REPLACE_DUP=0;
16379   REPLACE_DUP2=0;
16380   REPLACE_FACCESSAT=0;
16381   REPLACE_FCHOWNAT=0;
16382   REPLACE_FTRUNCATE=0;
16383   REPLACE_GETCWD=0;
16384   REPLACE_GETDOMAINNAME=0;
16385   REPLACE_GETDTABLESIZE=0;
16386   REPLACE_GETLOGIN_R=0;
16387   REPLACE_GETGROUPS=0;
16388   REPLACE_GETPAGESIZE=0;
16389   REPLACE_GETPASS=0;
16390   REPLACE_ISATTY=0;
16391   REPLACE_LCHOWN=0;
16392   REPLACE_LINK=0;
16393   REPLACE_LINKAT=0;
16394   REPLACE_LSEEK=0;
16395   REPLACE_PREAD=0;
16396   REPLACE_PWRITE=0;
16397   REPLACE_READ=0;
16398   REPLACE_READLINK=0;
16399   REPLACE_READLINKAT=0;
16400   REPLACE_RMDIR=0;
16401   REPLACE_SLEEP=0;
16402   REPLACE_SYMLINK=0;
16403   REPLACE_SYMLINKAT=0;
16404   REPLACE_TRUNCATE=0;
16405   REPLACE_TTYNAME_R=0;
16406   REPLACE_UNLINK=0;
16407   REPLACE_UNLINKAT=0;
16408   REPLACE_USLEEP=0;
16409   REPLACE_WRITE=0;
16410   UNISTD_H_HAVE_WINSOCK2_H=0;
16411   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16412
16413
16414
16415
16416
16417   for ac_header in $ac_header_list
16418 do :
16419   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16420 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16421 "
16422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16423   cat >>confdefs.h <<_ACEOF
16424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16425 _ACEOF
16426
16427 fi
16428
16429 done
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16441 $as_echo_n "checking if environ is properly declared... " >&6; }
16442 if ${gt_cv_var_environ_declaration+:} false; then :
16443   $as_echo_n "(cached) " >&6
16444 else
16445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h.  */
16447 #if HAVE_UNISTD_H
16448      #include <unistd.h>
16449      #endif
16450      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
16451      #include <stdlib.h>
16452
16453             extern struct { int foo; } environ;
16454 int
16455 main ()
16456 {
16457 environ.foo = 1;
16458   ;
16459   return 0;
16460 }
16461 _ACEOF
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463   gt_cv_var_environ_declaration=no
16464 else
16465   gt_cv_var_environ_declaration=yes
16466 fi
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16468 fi
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16470 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16471   if test $gt_cv_var_environ_declaration = yes; then
16472
16473 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16474
16475   fi
16476
16477
16478   if test $gt_cv_var_environ_declaration != yes; then
16479     HAVE_DECL_ENVIRON=0
16480   fi
16481
16482
16483
16484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16485 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16486 if ${gl_cv_have_include_next+:} false; then :
16487   $as_echo_n "(cached) " >&6
16488 else
16489   rm -rf conftestd1a conftestd1b conftestd2
16490      mkdir conftestd1a conftestd1b conftestd2
16491                                                   cat <<EOF > conftestd1a/conftest.h
16492 #define DEFINED_IN_CONFTESTD1
16493 #include_next <conftest.h>
16494 #ifdef DEFINED_IN_CONFTESTD2
16495 int foo;
16496 #else
16497 #error "include_next doesn't work"
16498 #endif
16499 EOF
16500      cat <<EOF > conftestd1b/conftest.h
16501 #define DEFINED_IN_CONFTESTD1
16502 #include <stdio.h>
16503 #include_next <conftest.h>
16504 #ifdef DEFINED_IN_CONFTESTD2
16505 int foo;
16506 #else
16507 #error "include_next doesn't work"
16508 #endif
16509 EOF
16510      cat <<EOF > conftestd2/conftest.h
16511 #ifndef DEFINED_IN_CONFTESTD1
16512 #error "include_next test doesn't work"
16513 #endif
16514 #define DEFINED_IN_CONFTESTD2
16515 EOF
16516      gl_save_CPPFLAGS="$CPPFLAGS"
16517      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16518      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h.  */
16520 #include <conftest.h>
16521 _ACEOF
16522 if ac_fn_c_try_compile "$LINENO"; then :
16523   gl_cv_have_include_next=yes
16524 else
16525   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16526         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h.  */
16528 #include <conftest.h>
16529 _ACEOF
16530 if ac_fn_c_try_compile "$LINENO"; then :
16531   gl_cv_have_include_next=buggy
16532 else
16533   gl_cv_have_include_next=no
16534 fi
16535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16536
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539      CPPFLAGS="$gl_save_CPPFLAGS"
16540      rm -rf conftestd1a conftestd1b conftestd2
16541
16542 fi
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16544 $as_echo "$gl_cv_have_include_next" >&6; }
16545   PRAGMA_SYSTEM_HEADER=
16546   if test $gl_cv_have_include_next = yes; then
16547     INCLUDE_NEXT=include_next
16548     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16549     if test -n "$GCC"; then
16550       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16551     fi
16552   else
16553     if test $gl_cv_have_include_next = buggy; then
16554       INCLUDE_NEXT=include
16555       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16556     else
16557       INCLUDE_NEXT=include
16558       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16559     fi
16560   fi
16561
16562
16563
16564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16565 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16566 if ${gl_cv_pragma_columns+:} false; then :
16567   $as_echo_n "(cached) " >&6
16568 else
16569        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h.  */
16571
16572 #ifdef __TANDEM
16573 choke me
16574 #endif
16575
16576 _ACEOF
16577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16578   $EGREP "choke me" >/dev/null 2>&1; then :
16579   gl_cv_pragma_columns=yes
16580 else
16581   gl_cv_pragma_columns=no
16582 fi
16583 rm -f conftest*
16584
16585
16586 fi
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16588 $as_echo "$gl_cv_pragma_columns" >&6; }
16589   if test $gl_cv_pragma_columns = yes; then
16590     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16591   else
16592     PRAGMA_COLUMNS=
16593   fi
16594
16595
16596
16597
16598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16599 $as_echo_n "checking for complete errno.h... " >&6; }
16600 if ${gl_cv_header_errno_h_complete+:} false; then :
16601   $as_echo_n "(cached) " >&6
16602 else
16603
16604     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h.  */
16606
16607 #include <errno.h>
16608 #if !defined ETXTBSY
16609 booboo
16610 #endif
16611 #if !defined ENOMSG
16612 booboo
16613 #endif
16614 #if !defined EIDRM
16615 booboo
16616 #endif
16617 #if !defined ENOLINK
16618 booboo
16619 #endif
16620 #if !defined EPROTO
16621 booboo
16622 #endif
16623 #if !defined EMULTIHOP
16624 booboo
16625 #endif
16626 #if !defined EBADMSG
16627 booboo
16628 #endif
16629 #if !defined EOVERFLOW
16630 booboo
16631 #endif
16632 #if !defined ENOTSUP
16633 booboo
16634 #endif
16635 #if !defined ENETRESET
16636 booboo
16637 #endif
16638 #if !defined ECONNABORTED
16639 booboo
16640 #endif
16641 #if !defined ESTALE
16642 booboo
16643 #endif
16644 #if !defined EDQUOT
16645 booboo
16646 #endif
16647 #if !defined ECANCELED
16648 booboo
16649 #endif
16650 #if !defined EOWNERDEAD
16651 booboo
16652 #endif
16653 #if !defined ENOTRECOVERABLE
16654 booboo
16655 #endif
16656 #if !defined EILSEQ
16657 booboo
16658 #endif
16659
16660 _ACEOF
16661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16662   $EGREP "booboo" >/dev/null 2>&1; then :
16663   gl_cv_header_errno_h_complete=no
16664 else
16665   gl_cv_header_errno_h_complete=yes
16666 fi
16667 rm -f conftest*
16668
16669
16670 fi
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16672 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
16673   if test $gl_cv_header_errno_h_complete = yes; then
16674     ERRNO_H=''
16675   else
16676
16677
16678
16679
16680
16681
16682
16683
16684      if test $gl_cv_have_include_next = yes; then
16685        gl_cv_next_errno_h='<'errno.h'>'
16686      else
16687        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16688 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
16689 if ${gl_cv_next_errno_h+:} false; then :
16690   $as_echo_n "(cached) " >&6
16691 else
16692
16693
16694
16695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696 /* end confdefs.h.  */
16697 #include <errno.h>
16698 _ACEOF
16699                 case "$host_os" in
16700     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16701     *)    gl_absname_cpp="$ac_cpp" ;;
16702   esac
16703
16704   case "$host_os" in
16705     mingw*)
16706                                           gl_dirsep_regex='[/\\]'
16707       ;;
16708     *)
16709       gl_dirsep_regex='\/'
16710       ;;
16711   esac
16712       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16713   gl_header_literal_regex=`echo 'errno.h' \
16714                            | sed -e "$gl_make_literal_regex_sed"`
16715   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16716       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16717       s|^/[^/]|//&|
16718       p
16719       q
16720     }'
16721
16722         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16723   sed -n "$gl_absolute_header_sed"`
16724
16725            gl_header=$gl_cv_absolute_errno_h
16726            gl_cv_next_errno_h='"'$gl_header'"'
16727
16728
16729 fi
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16731 $as_echo "$gl_cv_next_errno_h" >&6; }
16732      fi
16733      NEXT_ERRNO_H=$gl_cv_next_errno_h
16734
16735      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16736        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16737        gl_next_as_first_directive='<'errno.h'>'
16738      else
16739        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16740        gl_next_as_first_directive=$gl_cv_next_errno_h
16741      fi
16742      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16743
16744
16745
16746
16747     ERRNO_H='errno.h'
16748   fi
16749
16750    if test -n "$ERRNO_H"; then
16751   GL_GENERATE_ERRNO_H_TRUE=
16752   GL_GENERATE_ERRNO_H_FALSE='#'
16753 else
16754   GL_GENERATE_ERRNO_H_TRUE='#'
16755   GL_GENERATE_ERRNO_H_FALSE=
16756 fi
16757
16758
16759   if test -n "$ERRNO_H"; then
16760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16761 $as_echo_n "checking for EMULTIHOP value... " >&6; }
16762 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16763   $as_echo_n "(cached) " >&6
16764 else
16765
16766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h.  */
16768
16769 #include <errno.h>
16770 #ifdef EMULTIHOP
16771 yes
16772 #endif
16773
16774 _ACEOF
16775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16776   $EGREP "yes" >/dev/null 2>&1; then :
16777   gl_cv_header_errno_h_EMULTIHOP=yes
16778 else
16779   gl_cv_header_errno_h_EMULTIHOP=no
16780 fi
16781 rm -f conftest*
16782
16783       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16784         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785 /* end confdefs.h.  */
16786
16787 #define _XOPEN_SOURCE_EXTENDED 1
16788 #include <errno.h>
16789 #ifdef EMULTIHOP
16790 yes
16791 #endif
16792
16793 _ACEOF
16794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16795   $EGREP "yes" >/dev/null 2>&1; then :
16796   gl_cv_header_errno_h_EMULTIHOP=hidden
16797 fi
16798 rm -f conftest*
16799
16800         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16801                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
16802 #define _XOPEN_SOURCE_EXTENDED 1
16803 #include <errno.h>
16804 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16805 #include <stdio.h>
16806 #include <stdlib.h>
16807 "; then :
16808
16809 fi
16810
16811         fi
16812       fi
16813
16814 fi
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16816 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16817     case $gl_cv_header_errno_h_EMULTIHOP in
16818       yes | no)
16819         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16820         ;;
16821       *)
16822         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16823         ;;
16824     esac
16825
16826
16827   fi
16828
16829
16830   if test -n "$ERRNO_H"; then
16831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16832 $as_echo_n "checking for ENOLINK value... " >&6; }
16833 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16834   $as_echo_n "(cached) " >&6
16835 else
16836
16837       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h.  */
16839
16840 #include <errno.h>
16841 #ifdef ENOLINK
16842 yes
16843 #endif
16844
16845 _ACEOF
16846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16847   $EGREP "yes" >/dev/null 2>&1; then :
16848   gl_cv_header_errno_h_ENOLINK=yes
16849 else
16850   gl_cv_header_errno_h_ENOLINK=no
16851 fi
16852 rm -f conftest*
16853
16854       if test $gl_cv_header_errno_h_ENOLINK = no; then
16855         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h.  */
16857
16858 #define _XOPEN_SOURCE_EXTENDED 1
16859 #include <errno.h>
16860 #ifdef ENOLINK
16861 yes
16862 #endif
16863
16864 _ACEOF
16865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16866   $EGREP "yes" >/dev/null 2>&1; then :
16867   gl_cv_header_errno_h_ENOLINK=hidden
16868 fi
16869 rm -f conftest*
16870
16871         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16872                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
16873 #define _XOPEN_SOURCE_EXTENDED 1
16874 #include <errno.h>
16875 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16876 #include <stdio.h>
16877 #include <stdlib.h>
16878 "; then :
16879
16880 fi
16881
16882         fi
16883       fi
16884
16885 fi
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16887 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16888     case $gl_cv_header_errno_h_ENOLINK in
16889       yes | no)
16890         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16891         ;;
16892       *)
16893         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16894         ;;
16895     esac
16896
16897
16898   fi
16899
16900
16901   if test -n "$ERRNO_H"; then
16902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16903 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16904 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16905   $as_echo_n "(cached) " >&6
16906 else
16907
16908       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h.  */
16910
16911 #include <errno.h>
16912 #ifdef EOVERFLOW
16913 yes
16914 #endif
16915
16916 _ACEOF
16917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16918   $EGREP "yes" >/dev/null 2>&1; then :
16919   gl_cv_header_errno_h_EOVERFLOW=yes
16920 else
16921   gl_cv_header_errno_h_EOVERFLOW=no
16922 fi
16923 rm -f conftest*
16924
16925       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16926         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h.  */
16928
16929 #define _XOPEN_SOURCE_EXTENDED 1
16930 #include <errno.h>
16931 #ifdef EOVERFLOW
16932 yes
16933 #endif
16934
16935 _ACEOF
16936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16937   $EGREP "yes" >/dev/null 2>&1; then :
16938   gl_cv_header_errno_h_EOVERFLOW=hidden
16939 fi
16940 rm -f conftest*
16941
16942         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16943                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
16944 #define _XOPEN_SOURCE_EXTENDED 1
16945 #include <errno.h>
16946 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16947 #include <stdio.h>
16948 #include <stdlib.h>
16949 "; then :
16950
16951 fi
16952
16953         fi
16954       fi
16955
16956 fi
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16958 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16959     case $gl_cv_header_errno_h_EOVERFLOW in
16960       yes | no)
16961         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16962         ;;
16963       *)
16964         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16965         ;;
16966     esac
16967
16968
16969   fi
16970
16971
16972 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16973 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16974   ac_have_decl=1
16975 else
16976   ac_have_decl=0
16977 fi
16978
16979 cat >>confdefs.h <<_ACEOF
16980 #define HAVE_DECL_STRERROR_R $ac_have_decl
16981 _ACEOF
16982
16983 for ac_func in strerror_r
16984 do :
16985   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16986 if test "x$ac_cv_func_strerror_r" = xyes; then :
16987   cat >>confdefs.h <<_ACEOF
16988 #define HAVE_STRERROR_R 1
16989 _ACEOF
16990
16991 fi
16992 done
16993
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16995 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16996 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16997   $as_echo_n "(cached) " >&6
16998 else
16999
17000     ac_cv_func_strerror_r_char_p=no
17001     if test $ac_cv_have_decl_strerror_r = yes; then
17002       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h.  */
17004 $ac_includes_default
17005 int
17006 main ()
17007 {
17008
17009           char buf[100];
17010           char x = *strerror_r (0, buf, sizeof buf);
17011           char *p = strerror_r (0, buf, sizeof buf);
17012           return !p || x;
17013
17014   ;
17015   return 0;
17016 }
17017 _ACEOF
17018 if ac_fn_c_try_compile "$LINENO"; then :
17019   ac_cv_func_strerror_r_char_p=yes
17020 fi
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022     else
17023       # strerror_r is not declared.  Choose between
17024       # systems that have relatively inaccessible declarations for the
17025       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
17026       # former has a strerror_r that returns char*, while the latter
17027       # has a strerror_r that returns `int'.
17028       # This test should segfault on the DEC system.
17029       if test "$cross_compiling" = yes; then :
17030   :
17031 else
17032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h.  */
17034 $ac_includes_default
17035         extern char *strerror_r ();
17036 int
17037 main ()
17038 {
17039 char buf[100];
17040           char x = *strerror_r (0, buf, sizeof buf);
17041           return ! isalpha (x);
17042   ;
17043   return 0;
17044 }
17045 _ACEOF
17046 if ac_fn_c_try_run "$LINENO"; then :
17047   ac_cv_func_strerror_r_char_p=yes
17048 fi
17049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17050   conftest.$ac_objext conftest.beam conftest.$ac_ext
17051 fi
17052
17053     fi
17054
17055 fi
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17057 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17058 if test $ac_cv_func_strerror_r_char_p = yes; then
17059
17060 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17061
17062 fi
17063
17064
17065   XGETTEXT_EXTRA_OPTIONS=
17066
17067
17068
17069
17070
17071   GNULIB_FCNTL=0;
17072   GNULIB_NONBLOCKING=0;
17073   GNULIB_OPEN=0;
17074   GNULIB_OPENAT=0;
17075     HAVE_FCNTL=1;
17076   HAVE_OPENAT=1;
17077   REPLACE_FCNTL=0;
17078   REPLACE_OPEN=0;
17079   REPLACE_OPENAT=0;
17080
17081
17082
17083
17084   for ac_func in $ac_func_list
17085 do :
17086   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17087 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17088 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17089   cat >>confdefs.h <<_ACEOF
17090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17091 _ACEOF
17092
17093 fi
17094 done
17095
17096
17097
17098
17099
17100
17101
17102
17103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
17104 $as_echo_n "checking for working fcntl.h... " >&6; }
17105 if ${gl_cv_header_working_fcntl_h+:} false; then :
17106   $as_echo_n "(cached) " >&6
17107 else
17108   if test "$cross_compiling" = yes; then :
17109   case "$host_os" in
17110                   # Guess 'no' on native Windows.
17111           mingw*) gl_cv_header_working_fcntl_h='no' ;;
17112           *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
17113         esac
17114
17115 else
17116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17117 /* end confdefs.h.  */
17118 #include <sys/types.h>
17119            #include <sys/stat.h>
17120            #if HAVE_UNISTD_H
17121            # include <unistd.h>
17122            #else /* on Windows with MSVC */
17123            # include <io.h>
17124            # include <stdlib.h>
17125            # defined sleep(n) _sleep ((n) * 1000)
17126            #endif
17127            #include <fcntl.h>
17128            #ifndef O_NOATIME
17129             #define O_NOATIME 0
17130            #endif
17131            #ifndef O_NOFOLLOW
17132             #define O_NOFOLLOW 0
17133            #endif
17134            static int const constants[] =
17135             {
17136               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
17137               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
17138             };
17139
17140 int
17141 main ()
17142 {
17143
17144             int result = !constants;
17145             #if HAVE_SYMLINK
17146             {
17147               static char const sym[] = "conftest.sym";
17148               if (symlink ("/dev/null", sym) != 0)
17149                 result |= 2;
17150               else
17151                 {
17152                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
17153                   if (fd >= 0)
17154                     {
17155                       close (fd);
17156                       result |= 4;
17157                     }
17158                 }
17159               if (unlink (sym) != 0 || symlink (".", sym) != 0)
17160                 result |= 2;
17161               else
17162                 {
17163                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
17164                   if (fd >= 0)
17165                     {
17166                       close (fd);
17167                       result |= 4;
17168                     }
17169                 }
17170               unlink (sym);
17171             }
17172             #endif
17173             {
17174               static char const file[] = "confdefs.h";
17175               int fd = open (file, O_RDONLY | O_NOATIME);
17176               if (fd < 0)
17177                 result |= 8;
17178               else
17179                 {
17180                   struct stat st0;
17181                   if (fstat (fd, &st0) != 0)
17182                     result |= 16;
17183                   else
17184                     {
17185                       char c;
17186                       sleep (1);
17187                       if (read (fd, &c, 1) != 1)
17188                         result |= 24;
17189                       else
17190                         {
17191                           if (close (fd) != 0)
17192                             result |= 32;
17193                           else
17194                             {
17195                               struct stat st1;
17196                               if (stat (file, &st1) != 0)
17197                                 result |= 40;
17198                               else
17199                                 if (st0.st_atime != st1.st_atime)
17200                                   result |= 64;
17201                             }
17202                         }
17203                     }
17204                 }
17205             }
17206             return result;
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 if ac_fn_c_try_run "$LINENO"; then :
17212   gl_cv_header_working_fcntl_h=yes
17213 else
17214   case $? in #(
17215         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
17216         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
17217         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
17218          *) gl_cv_header_working_fcntl_h='no';;
17219         esac
17220 fi
17221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17222   conftest.$ac_objext conftest.beam conftest.$ac_ext
17223 fi
17224
17225
17226 fi
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
17228 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
17229
17230   case $gl_cv_header_working_fcntl_h in #(
17231   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
17232   *) ac_val=1;;
17233   esac
17234
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_WORKING_O_NOATIME $ac_val
17237 _ACEOF
17238
17239
17240   case $gl_cv_header_working_fcntl_h in #(
17241   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
17242   *) ac_val=1;;
17243   esac
17244
17245 cat >>confdefs.h <<_ACEOF
17246 #define HAVE_WORKING_O_NOFOLLOW $ac_val
17247 _ACEOF
17248
17249
17250 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17251 if test "x$ac_cv_type_pid_t" = xyes; then :
17252
17253 else
17254
17255 cat >>confdefs.h <<_ACEOF
17256 #define pid_t int
17257 _ACEOF
17258
17259 fi
17260
17261 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17262 if test "x$ac_cv_type_mode_t" = xyes; then :
17263
17264 else
17265
17266 cat >>confdefs.h <<_ACEOF
17267 #define mode_t int
17268 _ACEOF
17269
17270 fi
17271
17272
17273
17274
17275
17276
17277   GNULIB_GETTIMEOFDAY=0;
17278     HAVE_GETTIMEOFDAY=1;
17279   HAVE_STRUCT_TIMEVAL=1;
17280   HAVE_SYS_TIME_H=1;
17281   REPLACE_GETTIMEOFDAY=0;
17282   REPLACE_STRUCT_TIMEVAL=0;
17283
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17285 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17286 if ${ac_cv_c_restrict+:} false; then :
17287   $as_echo_n "(cached) " >&6
17288 else
17289   ac_cv_c_restrict=no
17290    # The order here caters to the fact that C++ does not require restrict.
17291    for ac_kw in __restrict __restrict__ _Restrict restrict; do
17292      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h.  */
17294 typedef int *int_ptr;
17295            int foo (int_ptr $ac_kw ip) { return ip[0]; }
17296            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
17297            int bar (int ip[$ac_kw]) { return ip[0]; }
17298
17299 int
17300 main ()
17301 {
17302 int s[1];
17303            int *$ac_kw t = s;
17304            t[0] = 0;
17305            return foo (t) + bar (t);
17306
17307   ;
17308   return 0;
17309 }
17310 _ACEOF
17311 if ac_fn_c_try_compile "$LINENO"; then :
17312   ac_cv_c_restrict=$ac_kw
17313 fi
17314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17315      test "$ac_cv_c_restrict" != no && break
17316    done
17317
17318 fi
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17320 $as_echo "$ac_cv_c_restrict" >&6; }
17321
17322  case $ac_cv_c_restrict in
17323    restrict) ;;
17324    no) $as_echo "#define restrict /**/" >>confdefs.h
17325  ;;
17326    *)  cat >>confdefs.h <<_ACEOF
17327 #define restrict $ac_cv_c_restrict
17328 _ACEOF
17329  ;;
17330  esac
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349      if test $gl_cv_have_include_next = yes; then
17350        gl_cv_next_sys_time_h='<'sys/time.h'>'
17351      else
17352        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17353 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17354 if ${gl_cv_next_sys_time_h+:} false; then :
17355   $as_echo_n "(cached) " >&6
17356 else
17357
17358              if test $ac_cv_header_sys_time_h = yes; then
17359
17360
17361
17362
17363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h.  */
17365 #include <sys/time.h>
17366 _ACEOF
17367                 case "$host_os" in
17368     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17369     *)    gl_absname_cpp="$ac_cpp" ;;
17370   esac
17371
17372   case "$host_os" in
17373     mingw*)
17374                                           gl_dirsep_regex='[/\\]'
17375       ;;
17376     *)
17377       gl_dirsep_regex='\/'
17378       ;;
17379   esac
17380       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17381   gl_header_literal_regex=`echo 'sys/time.h' \
17382                            | sed -e "$gl_make_literal_regex_sed"`
17383   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17384       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17385       s|^/[^/]|//&|
17386       p
17387       q
17388     }'
17389
17390         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17391   sed -n "$gl_absolute_header_sed"`
17392
17393            gl_header=$gl_cv_absolute_sys_time_h
17394            gl_cv_next_sys_time_h='"'$gl_header'"'
17395           else
17396                gl_cv_next_sys_time_h='<'sys/time.h'>'
17397              fi
17398
17399
17400 fi
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17402 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17403      fi
17404      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17405
17406      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17407        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17408        gl_next_as_first_directive='<'sys/time.h'>'
17409      else
17410        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17411        gl_next_as_first_directive=$gl_cv_next_sys_time_h
17412      fi
17413      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17414
17415
17416
17417
17418
17419   if test $ac_cv_header_sys_time_h != yes; then
17420     HAVE_SYS_TIME_H=0
17421   fi
17422
17423
17424
17425
17426
17427   if test $ac_cv_header_sys_socket_h != yes; then
17428                     for ac_header in winsock2.h
17429 do :
17430   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17431 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17432   cat >>confdefs.h <<_ACEOF
17433 #define HAVE_WINSOCK2_H 1
17434 _ACEOF
17435
17436 fi
17437
17438 done
17439
17440   fi
17441   if test "$ac_cv_header_winsock2_h" = yes; then
17442     HAVE_WINSOCK2_H=1
17443     UNISTD_H_HAVE_WINSOCK2_H=1
17444     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17445   else
17446     HAVE_WINSOCK2_H=0
17447   fi
17448
17449
17450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17451 $as_echo_n "checking for struct timeval... " >&6; }
17452 if ${gl_cv_sys_struct_timeval+:} false; then :
17453   $as_echo_n "(cached) " >&6
17454 else
17455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h.  */
17457 #if HAVE_SYS_TIME_H
17458              #include <sys/time.h>
17459             #endif
17460             #include <time.h>
17461             #if HAVE_WINSOCK2_H
17462             # include <winsock2.h>
17463             #endif
17464
17465 int
17466 main ()
17467 {
17468 static struct timeval x; x.tv_sec = x.tv_usec;
17469   ;
17470   return 0;
17471 }
17472 _ACEOF
17473 if ac_fn_c_try_compile "$LINENO"; then :
17474   gl_cv_sys_struct_timeval=yes
17475 else
17476   gl_cv_sys_struct_timeval=no
17477 fi
17478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479
17480 fi
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17482 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17483   if test $gl_cv_sys_struct_timeval != yes; then
17484     HAVE_STRUCT_TIMEVAL=0
17485   else
17486                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17487 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17488 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17489   $as_echo_n "(cached) " >&6
17490 else
17491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h.  */
17493 #if HAVE_SYS_TIME_H
17494                #include <sys/time.h>
17495               #endif
17496               #include <time.h>
17497               #if HAVE_WINSOCK2_H
17498               # include <winsock2.h>
17499               #endif
17500
17501 int
17502 main ()
17503 {
17504 static struct timeval x;
17505               typedef int verify_tv_sec_type[
17506                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17507               ];
17508
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 if ac_fn_c_try_compile "$LINENO"; then :
17514   gl_cv_sys_struct_timeval_tv_sec=yes
17515 else
17516   gl_cv_sys_struct_timeval_tv_sec=no
17517 fi
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519
17520 fi
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17522 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17523     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17524       REPLACE_STRUCT_TIMEVAL=1
17525     fi
17526   fi
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538   NEED_LOCALTIME_BUFFER=0
17539
17540
17541   GNULIB_CTIME=0;
17542   GNULIB_MKTIME=0;
17543   GNULIB_LOCALTIME=0;
17544   GNULIB_NANOSLEEP=0;
17545   GNULIB_STRFTIME=0;
17546   GNULIB_STRPTIME=0;
17547   GNULIB_TIMEGM=0;
17548   GNULIB_TIME_R=0;
17549   GNULIB_TIME_RZ=0;
17550   GNULIB_TZSET=0;
17551     HAVE_DECL_LOCALTIME_R=1;
17552   HAVE_NANOSLEEP=1;
17553   HAVE_STRPTIME=1;
17554   HAVE_TIMEGM=1;
17555   HAVE_TZSET=1;
17556     HAVE_TIMEZONE_T=0;
17557         REPLACE_CTIME=GNULIB_PORTCHECK;
17558   REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17559   REPLACE_MKTIME=GNULIB_PORTCHECK;
17560   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17561   REPLACE_STRFTIME=GNULIB_PORTCHECK;
17562   REPLACE_TIMEGM=GNULIB_PORTCHECK;
17563   REPLACE_TZSET=GNULIB_PORTCHECK;
17564
17565       : ${GNULIB_GETTIMEOFDAY=0};
17566         REPLACE_GMTIME=0;
17567   REPLACE_LOCALTIME=0;
17568
17569
17570
17571   case "$host_os" in
17572     mingw*)
17573                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17574 $as_echo_n "checking for 64-bit off_t... " >&6; }
17575 if ${gl_cv_type_off_t_64+:} false; then :
17576   $as_echo_n "(cached) " >&6
17577 else
17578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h.  */
17580 #include <sys/types.h>
17581                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17582
17583 int
17584 main ()
17585 {
17586
17587   ;
17588   return 0;
17589 }
17590 _ACEOF
17591 if ac_fn_c_try_compile "$LINENO"; then :
17592   gl_cv_type_off_t_64=yes
17593 else
17594   gl_cv_type_off_t_64=no
17595 fi
17596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597
17598 fi
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17600 $as_echo "$gl_cv_type_off_t_64" >&6; }
17601       if test $gl_cv_type_off_t_64 = no; then
17602         WINDOWS_64_BIT_OFF_T=1
17603       else
17604         WINDOWS_64_BIT_OFF_T=0
17605       fi
17606                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
17607 $as_echo_n "checking for 64-bit st_size... " >&6; }
17608 if ${gl_cv_member_st_size_64+:} false; then :
17609   $as_echo_n "(cached) " >&6
17610 else
17611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h.  */
17613 #include <sys/types.h>
17614                 struct stat buf;
17615                 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
17616
17617 int
17618 main ()
17619 {
17620
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 if ac_fn_c_try_compile "$LINENO"; then :
17626   gl_cv_member_st_size_64=yes
17627 else
17628   gl_cv_member_st_size_64=no
17629 fi
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631
17632 fi
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
17634 $as_echo "$gl_cv_member_st_size_64" >&6; }
17635       if test $gl_cv_member_st_size_64 = no; then
17636         WINDOWS_64_BIT_ST_SIZE=1
17637       else
17638         WINDOWS_64_BIT_ST_SIZE=0
17639       fi
17640       ;;
17641     *)
17642                                                       WINDOWS_64_BIT_OFF_T=0
17643       WINDOWS_64_BIT_ST_SIZE=0
17644       ;;
17645   esac
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659      if test $gl_cv_have_include_next = yes; then
17660        gl_cv_next_limits_h='<'limits.h'>'
17661      else
17662        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
17663 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
17664 if ${gl_cv_next_limits_h+:} false; then :
17665   $as_echo_n "(cached) " >&6
17666 else
17667
17668              if test $ac_cv_header_limits_h = yes; then
17669
17670
17671
17672
17673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h.  */
17675 #include <limits.h>
17676 _ACEOF
17677                 case "$host_os" in
17678     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17679     *)    gl_absname_cpp="$ac_cpp" ;;
17680   esac
17681
17682   case "$host_os" in
17683     mingw*)
17684                                           gl_dirsep_regex='[/\\]'
17685       ;;
17686     *)
17687       gl_dirsep_regex='\/'
17688       ;;
17689   esac
17690       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17691   gl_header_literal_regex=`echo 'limits.h' \
17692                            | sed -e "$gl_make_literal_regex_sed"`
17693   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17694       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17695       s|^/[^/]|//&|
17696       p
17697       q
17698     }'
17699
17700         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17701   sed -n "$gl_absolute_header_sed"`
17702
17703            gl_header=$gl_cv_absolute_limits_h
17704            gl_cv_next_limits_h='"'$gl_header'"'
17705           else
17706                gl_cv_next_limits_h='<'limits.h'>'
17707              fi
17708
17709
17710 fi
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
17712 $as_echo "$gl_cv_next_limits_h" >&6; }
17713      fi
17714      NEXT_LIMITS_H=$gl_cv_next_limits_h
17715
17716      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17717        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17718        gl_next_as_first_directive='<'limits.h'>'
17719      else
17720        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17721        gl_next_as_first_directive=$gl_cv_next_limits_h
17722      fi
17723      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
17724
17725
17726
17727
17728
17729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
17730 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
17731 if ${gl_cv_header_limits_width+:} false; then :
17732   $as_echo_n "(cached) " >&6
17733 else
17734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h.  */
17736 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17737              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17738             #endif
17739             #include <limits.h>
17740             long long llm = LLONG_MAX;
17741             int wb = WORD_BIT;
17742             int ullw = ULLONG_WIDTH;
17743
17744 int
17745 main ()
17746 {
17747
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"; then :
17753   gl_cv_header_limits_width=yes
17754 else
17755   gl_cv_header_limits_width=no
17756 fi
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758 fi
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
17760 $as_echo "$gl_cv_header_limits_width" >&6; }
17761   if test "$gl_cv_header_limits_width" = yes; then
17762     LIMITS_H=
17763   else
17764     LIMITS_H=limits.h
17765   fi
17766
17767    if test -n "$LIMITS_H"; then
17768   GL_GENERATE_LIMITS_H_TRUE=
17769   GL_GENERATE_LIMITS_H_FALSE='#'
17770 else
17771   GL_GENERATE_LIMITS_H_TRUE='#'
17772   GL_GENERATE_LIMITS_H_FALSE=
17773 fi
17774
17775
17776
17777       if test "X$prefix" = "XNONE"; then
17778     acl_final_prefix="$ac_default_prefix"
17779   else
17780     acl_final_prefix="$prefix"
17781   fi
17782   if test "X$exec_prefix" = "XNONE"; then
17783     acl_final_exec_prefix='${prefix}'
17784   else
17785     acl_final_exec_prefix="$exec_prefix"
17786   fi
17787   acl_save_prefix="$prefix"
17788   prefix="$acl_final_prefix"
17789   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17790   prefix="$acl_save_prefix"
17791
17792
17793
17794 # Check whether --with-gnu-ld was given.
17795 if test "${with_gnu_ld+set}" = set; then :
17796   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17797 else
17798   with_gnu_ld=no
17799 fi
17800
17801 # Prepare PATH_SEPARATOR.
17802 # The user is always right.
17803 if test "${PATH_SEPARATOR+set}" != set; then
17804   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17805   # contains only /bin. Note that ksh looks also at the FPATH variable,
17806   # so we have to set that as well for the test.
17807   PATH_SEPARATOR=:
17808   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17809     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17810            || PATH_SEPARATOR=';'
17811        }
17812 fi
17813
17814 if test -n "$LD"; then
17815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
17816 $as_echo_n "checking for ld... " >&6; }
17817 elif test "$GCC" = yes; then
17818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17819 $as_echo_n "checking for ld used by $CC... " >&6; }
17820 elif test "$with_gnu_ld" = yes; then
17821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17822 $as_echo_n "checking for GNU ld... " >&6; }
17823 else
17824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17825 $as_echo_n "checking for non-GNU ld... " >&6; }
17826 fi
17827 if test -n "$LD"; then
17828   # Let the user override the test with a path.
17829   :
17830 else
17831   if ${acl_cv_path_LD+:} false; then :
17832   $as_echo_n "(cached) " >&6
17833 else
17834
17835     acl_cv_path_LD= # Final result of this test
17836     ac_prog=ld # Program to search in $PATH
17837     if test "$GCC" = yes; then
17838       # Check if gcc -print-prog-name=ld gives a path.
17839       case $host in
17840         *-*-mingw*)
17841           # gcc leaves a trailing carriage return which upsets mingw
17842           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17843         *)
17844           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
17845       esac
17846       case $acl_output in
17847         # Accept absolute paths.
17848         [\\/]* | ?:[\\/]*)
17849           re_direlt='/[^/][^/]*/\.\./'
17850           # Canonicalize the pathname of ld
17851           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
17852           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
17853             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
17854           done
17855           # Got the pathname. No search in PATH is needed.
17856           acl_cv_path_LD="$acl_output"
17857           ac_prog=
17858           ;;
17859         "")
17860           # If it fails, then pretend we aren't using GCC.
17861           ;;
17862         *)
17863           # If it is relative, then search for the first ld in PATH.
17864           with_gnu_ld=unknown
17865           ;;
17866       esac
17867     fi
17868     if test -n "$ac_prog"; then
17869       # Search for $ac_prog in $PATH.
17870       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17871       for ac_dir in $PATH; do
17872         IFS="$acl_save_ifs"
17873         test -z "$ac_dir" && ac_dir=.
17874         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17875           acl_cv_path_LD="$ac_dir/$ac_prog"
17876           # Check to see if the program is GNU ld.  I'd rather use --version,
17877           # but apparently some variants of GNU ld only accept -v.
17878           # Break only if it was the GNU/non-GNU ld that we prefer.
17879           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17880             *GNU* | *'with BFD'*)
17881               test "$with_gnu_ld" != no && break
17882               ;;
17883             *)
17884               test "$with_gnu_ld" != yes && break
17885               ;;
17886           esac
17887         fi
17888       done
17889       IFS="$acl_save_ifs"
17890     fi
17891     case $host in
17892       *-*-aix*)
17893         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h.  */
17895 #if defined __powerpc64__ || defined _ARCH_PPC64
17896                 int ok;
17897                #else
17898                 error fail
17899                #endif
17900
17901 _ACEOF
17902 if ac_fn_c_try_compile "$LINENO"; then :
17903   # The compiler produces 64-bit code. Add option '-b64' so that the
17904            # linker groks 64-bit object files.
17905            case "$acl_cv_path_LD " in
17906              *" -b64 "*) ;;
17907              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
17908            esac
17909
17910 fi
17911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912         ;;
17913       sparc64-*-netbsd*)
17914         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h.  */
17916 #if defined __sparcv9 || defined __arch64__
17917                 int ok;
17918                #else
17919                 error fail
17920                #endif
17921
17922 _ACEOF
17923 if ac_fn_c_try_compile "$LINENO"; then :
17924
17925 else
17926   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
17927            # so that the linker groks 32-bit object files.
17928            case "$acl_cv_path_LD " in
17929              *" -m elf32_sparc "*) ;;
17930              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
17931            esac
17932
17933 fi
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935         ;;
17936     esac
17937
17938 fi
17939
17940   LD="$acl_cv_path_LD"
17941 fi
17942 if test -n "$LD"; then
17943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17944 $as_echo "$LD" >&6; }
17945 else
17946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17947 $as_echo "no" >&6; }
17948   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17949 fi
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17952 if ${acl_cv_prog_gnu_ld+:} false; then :
17953   $as_echo_n "(cached) " >&6
17954 else
17955   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17956 case `$LD -v 2>&1 </dev/null` in
17957 *GNU* | *'with BFD'*)
17958   acl_cv_prog_gnu_ld=yes
17959   ;;
17960 *)
17961   acl_cv_prog_gnu_ld=no
17962   ;;
17963 esac
17964 fi
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17966 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17967 with_gnu_ld=$acl_cv_prog_gnu_ld
17968
17969
17970
17971
17972                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17973 $as_echo_n "checking for shared library run path origin... " >&6; }
17974 if ${acl_cv_rpath+:} false; then :
17975   $as_echo_n "(cached) " >&6
17976 else
17977
17978     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17979     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17980     . ./conftest.sh
17981     rm -f ./conftest.sh
17982     acl_cv_rpath=done
17983
17984 fi
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17986 $as_echo "$acl_cv_rpath" >&6; }
17987   wl="$acl_cv_wl"
17988   acl_libext="$acl_cv_libext"
17989   acl_shlibext="$acl_cv_shlibext"
17990   acl_libname_spec="$acl_cv_libname_spec"
17991   acl_library_names_spec="$acl_cv_library_names_spec"
17992   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17993   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17994   acl_hardcode_direct="$acl_cv_hardcode_direct"
17995   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17996     # Check whether --enable-rpath was given.
17997 if test "${enable_rpath+set}" = set; then :
17998   enableval=$enable_rpath; :
17999 else
18000   enable_rpath=yes
18001 fi
18002
18003
18004
18005
18006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
18007 $as_echo_n "checking 32-bit host C ABI... " >&6; }
18008 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
18009   $as_echo_n "(cached) " >&6
18010 else
18011   if test -n "$gl_cv_host_cpu_c_abi"; then
18012        case "$gl_cv_host_cpu_c_abi" in
18013          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
18014            gl_cv_host_cpu_c_abi_32bit=yes ;;
18015          *)
18016            gl_cv_host_cpu_c_abi_32bit=no ;;
18017        esac
18018      else
18019        case "$host_cpu" in
18020
18021          i[4567]86 )
18022            gl_cv_host_cpu_c_abi_32bit=yes
18023            ;;
18024
18025          x86_64 )
18026            # On x86_64 systems, the C compiler may be generating code in one of
18027            # these ABIs:
18028            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
18029            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
18030            #   with native Windows (mingw, MSVC).
18031            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
18032            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
18033            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h.  */
18035 #if (defined __x86_64__ || defined __amd64__ \
18036                        || defined _M_X64 || defined _M_AMD64) \
18037                       && !(defined __ILP32__ || defined _ILP32)
18038                    int ok;
18039                   #else
18040                    error fail
18041                   #endif
18042
18043 _ACEOF
18044 if ac_fn_c_try_compile "$LINENO"; then :
18045   gl_cv_host_cpu_c_abi_32bit=no
18046 else
18047   gl_cv_host_cpu_c_abi_32bit=yes
18048 fi
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050            ;;
18051
18052          arm* | aarch64 )
18053            # Assume arm with EABI.
18054            # On arm64 systems, the C compiler may be generating code in one of
18055            # these ABIs:
18056            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
18057            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
18058            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
18059            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h.  */
18061 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
18062                    int ok;
18063                   #else
18064                    error fail
18065                   #endif
18066
18067 _ACEOF
18068 if ac_fn_c_try_compile "$LINENO"; then :
18069   gl_cv_host_cpu_c_abi_32bit=no
18070 else
18071   gl_cv_host_cpu_c_abi_32bit=yes
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074            ;;
18075
18076          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
18077            # On hppa, the C compiler may be generating 32-bit code or 64-bit
18078            # code. In the latter case, it defines _LP64 and __LP64__.
18079            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h.  */
18081 #ifdef __LP64__
18082                    int ok;
18083                   #else
18084                    error fail
18085                   #endif
18086
18087 _ACEOF
18088 if ac_fn_c_try_compile "$LINENO"; then :
18089   gl_cv_host_cpu_c_abi_32bit=no
18090 else
18091   gl_cv_host_cpu_c_abi_32bit=yes
18092 fi
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094            ;;
18095
18096          ia64* )
18097            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
18098            # 32-bit code. In the latter case, it defines _ILP32.
18099            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h.  */
18101 #ifdef _ILP32
18102                    int ok;
18103                   #else
18104                    error fail
18105                   #endif
18106
18107 _ACEOF
18108 if ac_fn_c_try_compile "$LINENO"; then :
18109   gl_cv_host_cpu_c_abi_32bit=yes
18110 else
18111   gl_cv_host_cpu_c_abi_32bit=no
18112 fi
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114            ;;
18115
18116          mips* )
18117            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
18118            # at 32.
18119            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h.  */
18121 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
18122                    int ok;
18123                   #else
18124                    error fail
18125                   #endif
18126
18127 _ACEOF
18128 if ac_fn_c_try_compile "$LINENO"; then :
18129   gl_cv_host_cpu_c_abi_32bit=no
18130 else
18131   gl_cv_host_cpu_c_abi_32bit=yes
18132 fi
18133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18134            ;;
18135
18136          powerpc* )
18137            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
18138            # No need to distinguish them here; the caller may distinguish
18139            # them based on the OS.
18140            # On powerpc64 systems, the C compiler may still be generating
18141            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
18142            # be generating 64-bit code.
18143            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h.  */
18145 #if defined __powerpc64__ || defined _ARCH_PPC64
18146                    int ok;
18147                   #else
18148                    error fail
18149                   #endif
18150
18151 _ACEOF
18152 if ac_fn_c_try_compile "$LINENO"; then :
18153   gl_cv_host_cpu_c_abi_32bit=no
18154 else
18155   gl_cv_host_cpu_c_abi_32bit=yes
18156 fi
18157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18158            ;;
18159
18160          rs6000 )
18161            gl_cv_host_cpu_c_abi_32bit=yes
18162            ;;
18163
18164          riscv32 | riscv64 )
18165            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
18166            # Size of 'long' and 'void *':
18167            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h.  */
18169 #if defined __LP64__
18170                     int ok;
18171                   #else
18172                     error fail
18173                   #endif
18174
18175 _ACEOF
18176 if ac_fn_c_try_compile "$LINENO"; then :
18177   gl_cv_host_cpu_c_abi_32bit=no
18178 else
18179   gl_cv_host_cpu_c_abi_32bit=yes
18180 fi
18181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18182            ;;
18183
18184          s390* )
18185            # On s390x, the C compiler may be generating 64-bit (= s390x) code
18186            # or 31-bit (= s390) code.
18187            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h.  */
18189 #if defined __LP64__ || defined __s390x__
18190                     int ok;
18191                   #else
18192                     error fail
18193                   #endif
18194
18195 _ACEOF
18196 if ac_fn_c_try_compile "$LINENO"; then :
18197   gl_cv_host_cpu_c_abi_32bit=no
18198 else
18199   gl_cv_host_cpu_c_abi_32bit=yes
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18202            ;;
18203
18204          sparc | sparc64 )
18205            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
18206            # C compiler still generates 32-bit code.
18207            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h.  */
18209 #if defined __sparcv9 || defined __arch64__
18210                    int ok;
18211                   #else
18212                    error fail
18213                   #endif
18214
18215 _ACEOF
18216 if ac_fn_c_try_compile "$LINENO"; then :
18217   gl_cv_host_cpu_c_abi_32bit=no
18218 else
18219   gl_cv_host_cpu_c_abi_32bit=yes
18220 fi
18221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222            ;;
18223
18224          *)
18225            gl_cv_host_cpu_c_abi_32bit=no
18226            ;;
18227        esac
18228      fi
18229
18230 fi
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
18232 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
18233
18234   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
18235
18236
18237
18238
18239
18240   case "$host_os" in
18241     solaris*)
18242       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18243 $as_echo_n "checking for 64-bit host... " >&6; }
18244 if ${gl_cv_solaris_64bit+:} false; then :
18245   $as_echo_n "(cached) " >&6
18246 else
18247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248 /* end confdefs.h.  */
18249 #ifdef _LP64
18250                  int ok;
18251                 #else
18252                  error fail
18253                 #endif
18254
18255 _ACEOF
18256 if ac_fn_c_try_compile "$LINENO"; then :
18257   gl_cv_solaris_64bit=yes
18258 else
18259   gl_cv_solaris_64bit=no
18260 fi
18261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18262
18263 fi
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18265 $as_echo "$gl_cv_solaris_64bit" >&6; };;
18266   esac
18267
18268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
18269 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
18270 if ${acl_cv_libdirstems+:} false; then :
18271   $as_echo_n "(cached) " >&6
18272 else
18273   acl_libdirstem=lib
18274      acl_libdirstem2=
18275      case "$host_os" in
18276        solaris*)
18277                                                       if test $gl_cv_solaris_64bit = yes; then
18278            acl_libdirstem=lib/64
18279            case "$host_cpu" in
18280              sparc*)        acl_libdirstem2=lib/sparcv9 ;;
18281              i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18282            esac
18283          fi
18284          ;;
18285        *)
18286                            if test "$HOST_CPU_C_ABI_32BIT" != yes; then
18287                                             searchpath=`(if test -f /usr/bin/gcc \
18288                            && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
18289                           LC_ALL=C /usr/bin/gcc -print-search-dirs; \
18290                         else \
18291                           LC_ALL=C $CC -print-search-dirs; \
18292                         fi) 2>/dev/null \
18293                        | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18294            if test -n "$searchpath"; then
18295              acl_save_IFS="${IFS=       }"; IFS=":"
18296              for searchdir in $searchpath; do
18297                if test -d "$searchdir"; then
18298                  case "$searchdir" in
18299                    */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18300                    */../ | */.. )
18301                      # Better ignore directories of this form. They are misleading.
18302                      ;;
18303                    *) searchdir=`cd "$searchdir" && pwd`
18304                       case "$searchdir" in
18305                         */lib64 ) acl_libdirstem=lib64 ;;
18306                       esac ;;
18307                  esac
18308                fi
18309              done
18310              IFS="$acl_save_IFS"
18311            fi
18312          fi
18313          ;;
18314      esac
18315      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18316      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
18317
18318 fi
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
18320 $as_echo "$acl_cv_libdirstems" >&6; }
18321   # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
18322   acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
18323   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
18324
18325
18326
18327   gl_threads_api=none
18328   LIBTHREAD=
18329   LTLIBTHREAD=
18330   LIBMULTITHREAD=
18331   LTLIBMULTITHREAD=
18332   if test "$gl_use_threads" != no; then
18333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
18334 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
18335 if ${gl_cv_have_weak+:} false; then :
18336   $as_echo_n "(cached) " >&6
18337 else
18338   gl_cv_have_weak=no
18339               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340 /* end confdefs.h.  */
18341 extern void xyzzy ();
18342 #pragma weak xyzzy
18343 int
18344 main ()
18345 {
18346 xyzzy();
18347   ;
18348   return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"; then :
18352   gl_cv_have_weak=maybe
18353 fi
18354 rm -f core conftest.err conftest.$ac_objext \
18355     conftest$ac_exeext conftest.$ac_ext
18356        if test $gl_cv_have_weak = maybe; then
18357                            if test "$cross_compiling" = yes; then :
18358                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359 /* end confdefs.h.  */
18360 #ifdef __ELF__
18361                Extensible Linking Format
18362                #endif
18363
18364 _ACEOF
18365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18366   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
18367   gl_cv_have_weak="guessing yes"
18368 else
18369   gl_cv_have_weak="guessing no"
18370 fi
18371 rm -f conftest*
18372
18373
18374 else
18375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h.  */
18377
18378 #include <stdio.h>
18379 #pragma weak fputs
18380 int main ()
18381 {
18382   return (fputs == NULL);
18383 }
18384 _ACEOF
18385 if ac_fn_c_try_run "$LINENO"; then :
18386   gl_cv_have_weak=yes
18387 else
18388   gl_cv_have_weak=no
18389 fi
18390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18391   conftest.$ac_objext conftest.beam conftest.$ac_ext
18392 fi
18393
18394        fi
18395               case " $LDFLAGS " in
18396          *" -static "*) gl_cv_have_weak=no ;;
18397        esac
18398
18399 fi
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
18401 $as_echo "$gl_cv_have_weak" >&6; }
18402     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
18403       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
18404       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
18405       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18406 if test "x$ac_cv_header_pthread_h" = xyes; then :
18407   gl_have_pthread_h=yes
18408 else
18409   gl_have_pthread_h=no
18410 fi
18411
18412
18413       if test "$gl_have_pthread_h" = yes; then
18414         # Other possible tests:
18415         #   -lpthreads (FSU threads, PCthreads)
18416         #   -lgthreads
18417         gl_have_pthread=
18418         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
18419         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
18420         # the second one only in libpthread, and lock.c needs it.
18421         #
18422         # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
18423         # needs -pthread for some reason.  See:
18424         # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
18425         save_LIBS=$LIBS
18426         for gl_pthread in '' '-pthread'; do
18427           LIBS="$LIBS $gl_pthread"
18428           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h.  */
18430 #include <pthread.h>
18431                  pthread_mutex_t m;
18432                  pthread_mutexattr_t ma;
18433
18434 int
18435 main ()
18436 {
18437 pthread_mutex_lock (&m);
18438                  pthread_mutexattr_init (&ma);
18439   ;
18440   return 0;
18441 }
18442 _ACEOF
18443 if ac_fn_c_try_link "$LINENO"; then :
18444   gl_have_pthread=yes
18445              LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
18446              LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
18447 fi
18448 rm -f core conftest.err conftest.$ac_objext \
18449     conftest$ac_exeext conftest.$ac_ext
18450           LIBS=$save_LIBS
18451           test -n "$gl_have_pthread" && break
18452         done
18453
18454         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
18455         # since it is defined as a macro on OSF/1.)
18456         if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
18457           # The program links fine without libpthread. But it may actually
18458           # need to link with libpthread in order to create multiple threads.
18459           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18460 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18461 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18462   $as_echo_n "(cached) " >&6
18463 else
18464   ac_check_lib_save_LIBS=$LIBS
18465 LIBS="-lpthread  $LIBS"
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h.  */
18468
18469 /* Override any GCC internal prototype to avoid an error.
18470    Use char because int might match the return type of a GCC
18471    builtin and then its argument prototype would still apply.  */
18472 #ifdef __cplusplus
18473 extern "C"
18474 #endif
18475 char pthread_kill ();
18476 int
18477 main ()
18478 {
18479 return pthread_kill ();
18480   ;
18481   return 0;
18482 }
18483 _ACEOF
18484 if ac_fn_c_try_link "$LINENO"; then :
18485   ac_cv_lib_pthread_pthread_kill=yes
18486 else
18487   ac_cv_lib_pthread_pthread_kill=no
18488 fi
18489 rm -f core conftest.err conftest.$ac_objext \
18490     conftest$ac_exeext conftest.$ac_ext
18491 LIBS=$ac_check_lib_save_LIBS
18492 fi
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18494 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18495 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18496   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18497              # On Solaris and HP-UX, most pthread functions exist also in libc.
18498              # Therefore pthread_in_use() needs to actually try to create a
18499              # thread: pthread_create from libc will fail, whereas
18500              # pthread_create will actually create a thread.
18501              # On Solaris 10 or newer, this test is no longer needed, because
18502              # libc contains the fully functional pthread functions.
18503              case "$host_os" in
18504                solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
18505
18506 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
18507
18508              esac
18509
18510 fi
18511
18512         elif test -z "$gl_have_pthread"; then
18513           # Some library is needed. Try libpthread and libc_r.
18514           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18515 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18516 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18517   $as_echo_n "(cached) " >&6
18518 else
18519   ac_check_lib_save_LIBS=$LIBS
18520 LIBS="-lpthread  $LIBS"
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h.  */
18523
18524 /* Override any GCC internal prototype to avoid an error.
18525    Use char because int might match the return type of a GCC
18526    builtin and then its argument prototype would still apply.  */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 char pthread_kill ();
18531 int
18532 main ()
18533 {
18534 return pthread_kill ();
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 if ac_fn_c_try_link "$LINENO"; then :
18540   ac_cv_lib_pthread_pthread_kill=yes
18541 else
18542   ac_cv_lib_pthread_pthread_kill=no
18543 fi
18544 rm -f core conftest.err conftest.$ac_objext \
18545     conftest$ac_exeext conftest.$ac_ext
18546 LIBS=$ac_check_lib_save_LIBS
18547 fi
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18549 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18550 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18551   gl_have_pthread=yes
18552              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
18553              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18554 fi
18555
18556           if test -z "$gl_have_pthread"; then
18557             # For FreeBSD 4.
18558             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
18559 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
18560 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
18561   $as_echo_n "(cached) " >&6
18562 else
18563   ac_check_lib_save_LIBS=$LIBS
18564 LIBS="-lc_r  $LIBS"
18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566 /* end confdefs.h.  */
18567
18568 /* Override any GCC internal prototype to avoid an error.
18569    Use char because int might match the return type of a GCC
18570    builtin and then its argument prototype would still apply.  */
18571 #ifdef __cplusplus
18572 extern "C"
18573 #endif
18574 char pthread_kill ();
18575 int
18576 main ()
18577 {
18578 return pthread_kill ();
18579   ;
18580   return 0;
18581 }
18582 _ACEOF
18583 if ac_fn_c_try_link "$LINENO"; then :
18584   ac_cv_lib_c_r_pthread_kill=yes
18585 else
18586   ac_cv_lib_c_r_pthread_kill=no
18587 fi
18588 rm -f core conftest.err conftest.$ac_objext \
18589     conftest$ac_exeext conftest.$ac_ext
18590 LIBS=$ac_check_lib_save_LIBS
18591 fi
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
18593 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
18594 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
18595   gl_have_pthread=yes
18596                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
18597                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
18598 fi
18599
18600           fi
18601         fi
18602         if test -n "$gl_have_pthread"; then
18603           gl_threads_api=posix
18604
18605 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
18606
18607           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
18608             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18609
18610 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
18611
18612               LIBTHREAD=
18613               LTLIBTHREAD=
18614             fi
18615           fi
18616         fi
18617       fi
18618     fi
18619     if test -z "$gl_have_pthread"; then
18620       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
18621         gl_have_solaristhread=
18622         gl_save_LIBS="$LIBS"
18623         LIBS="$LIBS -lthread"
18624         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625 /* end confdefs.h.  */
18626
18627 #include <thread.h>
18628 #include <synch.h>
18629
18630 int
18631 main ()
18632 {
18633 thr_self();
18634   ;
18635   return 0;
18636 }
18637 _ACEOF
18638 if ac_fn_c_try_link "$LINENO"; then :
18639   gl_have_solaristhread=yes
18640 fi
18641 rm -f core conftest.err conftest.$ac_objext \
18642     conftest$ac_exeext conftest.$ac_ext
18643         LIBS="$gl_save_LIBS"
18644         if test -n "$gl_have_solaristhread"; then
18645           gl_threads_api=solaris
18646           LIBTHREAD=-lthread
18647           LTLIBTHREAD=-lthread
18648           LIBMULTITHREAD="$LIBTHREAD"
18649           LTLIBMULTITHREAD="$LTLIBTHREAD"
18650
18651 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
18652
18653           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18654
18655 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
18656
18657             LIBTHREAD=
18658             LTLIBTHREAD=
18659           fi
18660         fi
18661       fi
18662     fi
18663     if test "$gl_use_threads" = pth; then
18664       gl_save_CPPFLAGS="$CPPFLAGS"
18665
18666
18667
18668
18669
18670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
18671 $as_echo_n "checking how to link with libpth... " >&6; }
18672 if ${ac_cv_libpth_libs+:} false; then :
18673   $as_echo_n "(cached) " >&6
18674 else
18675
18676
18677
18678
18679
18680
18681
18682     use_additional=yes
18683
18684   acl_save_prefix="$prefix"
18685   prefix="$acl_final_prefix"
18686   acl_save_exec_prefix="$exec_prefix"
18687   exec_prefix="$acl_final_exec_prefix"
18688
18689     eval additional_includedir=\"$includedir\"
18690     eval additional_libdir=\"$libdir\"
18691
18692   exec_prefix="$acl_save_exec_prefix"
18693   prefix="$acl_save_prefix"
18694
18695
18696 # Check whether --with-libpth-prefix was given.
18697 if test "${with_libpth_prefix+set}" = set; then :
18698   withval=$with_libpth_prefix;
18699     if test "X$withval" = "Xno"; then
18700       use_additional=no
18701     else
18702       if test "X$withval" = "X"; then
18703
18704   acl_save_prefix="$prefix"
18705   prefix="$acl_final_prefix"
18706   acl_save_exec_prefix="$exec_prefix"
18707   exec_prefix="$acl_final_exec_prefix"
18708
18709           eval additional_includedir=\"$includedir\"
18710           eval additional_libdir=\"$libdir\"
18711
18712   exec_prefix="$acl_save_exec_prefix"
18713   prefix="$acl_save_prefix"
18714
18715       else
18716         additional_includedir="$withval/include"
18717         additional_libdir="$withval/$acl_libdirstem"
18718         if test "$acl_libdirstem2" != "$acl_libdirstem" \
18719            && test ! -d "$withval/$acl_libdirstem"; then
18720           additional_libdir="$withval/$acl_libdirstem2"
18721         fi
18722       fi
18723     fi
18724
18725 fi
18726
18727       LIBPTH=
18728   LTLIBPTH=
18729   INCPTH=
18730   LIBPTH_PREFIX=
18731       HAVE_LIBPTH=
18732   rpathdirs=
18733   ltrpathdirs=
18734   names_already_handled=
18735   names_next_round='pth '
18736   while test -n "$names_next_round"; do
18737     names_this_round="$names_next_round"
18738     names_next_round=
18739     for name in $names_this_round; do
18740       already_handled=
18741       for n in $names_already_handled; do
18742         if test "$n" = "$name"; then
18743           already_handled=yes
18744           break
18745         fi
18746       done
18747       if test -z "$already_handled"; then
18748         names_already_handled="$names_already_handled $name"
18749                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18750         eval value=\"\$HAVE_LIB$uppername\"
18751         if test -n "$value"; then
18752           if test "$value" = yes; then
18753             eval value=\"\$LIB$uppername\"
18754             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
18755             eval value=\"\$LTLIB$uppername\"
18756             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
18757           else
18758                                     :
18759           fi
18760         else
18761                               found_dir=
18762           found_la=
18763           found_so=
18764           found_a=
18765           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18766           if test -n "$acl_shlibext"; then
18767             shrext=".$acl_shlibext"             # typically: shrext=.so
18768           else
18769             shrext=
18770           fi
18771           if test $use_additional = yes; then
18772             dir="$additional_libdir"
18773                                     if test -n "$acl_shlibext"; then
18774               if test -f "$dir/$libname$shrext"; then
18775                 found_dir="$dir"
18776                 found_so="$dir/$libname$shrext"
18777               else
18778                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18779                   ver=`(cd "$dir" && \
18780                         for f in "$libname$shrext".*; do echo "$f"; done \
18781                         | sed -e "s,^$libname$shrext\\\\.,," \
18782                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18783                         | sed 1q ) 2>/dev/null`
18784                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18785                     found_dir="$dir"
18786                     found_so="$dir/$libname$shrext.$ver"
18787                   fi
18788                 else
18789                   eval library_names=\"$acl_library_names_spec\"
18790                   for f in $library_names; do
18791                     if test -f "$dir/$f"; then
18792                       found_dir="$dir"
18793                       found_so="$dir/$f"
18794                       break
18795                     fi
18796                   done
18797                 fi
18798               fi
18799             fi
18800                         if test "X$found_dir" = "X"; then
18801               if test -f "$dir/$libname.$acl_libext"; then
18802                 found_dir="$dir"
18803                 found_a="$dir/$libname.$acl_libext"
18804               fi
18805             fi
18806             if test "X$found_dir" != "X"; then
18807               if test -f "$dir/$libname.la"; then
18808                 found_la="$dir/$libname.la"
18809               fi
18810             fi
18811           fi
18812           if test "X$found_dir" = "X"; then
18813             for x in $LDFLAGS $LTLIBPTH; do
18814
18815   acl_save_prefix="$prefix"
18816   prefix="$acl_final_prefix"
18817   acl_save_exec_prefix="$exec_prefix"
18818   exec_prefix="$acl_final_exec_prefix"
18819   eval x=\"$x\"
18820   exec_prefix="$acl_save_exec_prefix"
18821   prefix="$acl_save_prefix"
18822
18823               case "$x" in
18824                 -L*)
18825                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18826                                     if test -n "$acl_shlibext"; then
18827                     if test -f "$dir/$libname$shrext"; then
18828                       found_dir="$dir"
18829                       found_so="$dir/$libname$shrext"
18830                     else
18831                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18832                         ver=`(cd "$dir" && \
18833                               for f in "$libname$shrext".*; do echo "$f"; done \
18834                               | sed -e "s,^$libname$shrext\\\\.,," \
18835                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18836                               | sed 1q ) 2>/dev/null`
18837                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18838                           found_dir="$dir"
18839                           found_so="$dir/$libname$shrext.$ver"
18840                         fi
18841                       else
18842                         eval library_names=\"$acl_library_names_spec\"
18843                         for f in $library_names; do
18844                           if test -f "$dir/$f"; then
18845                             found_dir="$dir"
18846                             found_so="$dir/$f"
18847                             break
18848                           fi
18849                         done
18850                       fi
18851                     fi
18852                   fi
18853                                     if test "X$found_dir" = "X"; then
18854                     if test -f "$dir/$libname.$acl_libext"; then
18855                       found_dir="$dir"
18856                       found_a="$dir/$libname.$acl_libext"
18857                     fi
18858                   fi
18859                   if test "X$found_dir" != "X"; then
18860                     if test -f "$dir/$libname.la"; then
18861                       found_la="$dir/$libname.la"
18862                     fi
18863                   fi
18864                   ;;
18865               esac
18866               if test "X$found_dir" != "X"; then
18867                 break
18868               fi
18869             done
18870           fi
18871           if test "X$found_dir" != "X"; then
18872                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
18873             if test "X$found_so" != "X"; then
18874                                                         if test "$enable_rpath" = no \
18875                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18876                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18877                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18878               else
18879                                                                                 haveit=
18880                 for x in $ltrpathdirs; do
18881                   if test "X$x" = "X$found_dir"; then
18882                     haveit=yes
18883                     break
18884                   fi
18885                 done
18886                 if test -z "$haveit"; then
18887                   ltrpathdirs="$ltrpathdirs $found_dir"
18888                 fi
18889                                 if test "$acl_hardcode_direct" = yes; then
18890                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18891                 else
18892                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18893                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18894                                                             haveit=
18895                     for x in $rpathdirs; do
18896                       if test "X$x" = "X$found_dir"; then
18897                         haveit=yes
18898                         break
18899                       fi
18900                     done
18901                     if test -z "$haveit"; then
18902                       rpathdirs="$rpathdirs $found_dir"
18903                     fi
18904                   else
18905                                                                                 haveit=
18906                     for x in $LDFLAGS $LIBPTH; do
18907
18908   acl_save_prefix="$prefix"
18909   prefix="$acl_final_prefix"
18910   acl_save_exec_prefix="$exec_prefix"
18911   exec_prefix="$acl_final_exec_prefix"
18912   eval x=\"$x\"
18913   exec_prefix="$acl_save_exec_prefix"
18914   prefix="$acl_save_prefix"
18915
18916                       if test "X$x" = "X-L$found_dir"; then
18917                         haveit=yes
18918                         break
18919                       fi
18920                     done
18921                     if test -z "$haveit"; then
18922                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
18923                     fi
18924                     if test "$acl_hardcode_minus_L" != no; then
18925                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18926                     else
18927                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
18928                     fi
18929                   fi
18930                 fi
18931               fi
18932             else
18933               if test "X$found_a" != "X"; then
18934                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
18935               else
18936                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
18937               fi
18938             fi
18939                         additional_includedir=
18940             case "$found_dir" in
18941               */$acl_libdirstem | */$acl_libdirstem/)
18942                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18943                 if test "$name" = 'pth'; then
18944                   LIBPTH_PREFIX="$basedir"
18945                 fi
18946                 additional_includedir="$basedir/include"
18947                 ;;
18948               */$acl_libdirstem2 | */$acl_libdirstem2/)
18949                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18950                 if test "$name" = 'pth'; then
18951                   LIBPTH_PREFIX="$basedir"
18952                 fi
18953                 additional_includedir="$basedir/include"
18954                 ;;
18955             esac
18956             if test "X$additional_includedir" != "X"; then
18957                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18958                 haveit=
18959                 if test "X$additional_includedir" = "X/usr/local/include"; then
18960                   if test -n "$GCC"; then
18961                     case $host_os in
18962                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18963                     esac
18964                   fi
18965                 fi
18966                 if test -z "$haveit"; then
18967                   for x in $CPPFLAGS $INCPTH; do
18968
18969   acl_save_prefix="$prefix"
18970   prefix="$acl_final_prefix"
18971   acl_save_exec_prefix="$exec_prefix"
18972   exec_prefix="$acl_final_exec_prefix"
18973   eval x=\"$x\"
18974   exec_prefix="$acl_save_exec_prefix"
18975   prefix="$acl_save_prefix"
18976
18977                     if test "X$x" = "X-I$additional_includedir"; then
18978                       haveit=yes
18979                       break
18980                     fi
18981                   done
18982                   if test -z "$haveit"; then
18983                     if test -d "$additional_includedir"; then
18984                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
18985                     fi
18986                   fi
18987                 fi
18988               fi
18989             fi
18990                         if test -n "$found_la"; then
18991                                                         save_libdir="$libdir"
18992               case "$found_la" in
18993                 */* | *\\*) . "$found_la" ;;
18994                 *) . "./$found_la" ;;
18995               esac
18996               libdir="$save_libdir"
18997                             for dep in $dependency_libs; do
18998                 case "$dep" in
18999                   -L*)
19000                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19001                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19002                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19003                       haveit=
19004                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19005                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19006                         if test -n "$GCC"; then
19007                           case $host_os in
19008                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19009                           esac
19010                         fi
19011                       fi
19012                       if test -z "$haveit"; then
19013                         haveit=
19014                         for x in $LDFLAGS $LIBPTH; do
19015
19016   acl_save_prefix="$prefix"
19017   prefix="$acl_final_prefix"
19018   acl_save_exec_prefix="$exec_prefix"
19019   exec_prefix="$acl_final_exec_prefix"
19020   eval x=\"$x\"
19021   exec_prefix="$acl_save_exec_prefix"
19022   prefix="$acl_save_prefix"
19023
19024                           if test "X$x" = "X-L$additional_libdir"; then
19025                             haveit=yes
19026                             break
19027                           fi
19028                         done
19029                         if test -z "$haveit"; then
19030                           if test -d "$additional_libdir"; then
19031                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
19032                           fi
19033                         fi
19034                         haveit=
19035                         for x in $LDFLAGS $LTLIBPTH; do
19036
19037   acl_save_prefix="$prefix"
19038   prefix="$acl_final_prefix"
19039   acl_save_exec_prefix="$exec_prefix"
19040   exec_prefix="$acl_final_exec_prefix"
19041   eval x=\"$x\"
19042   exec_prefix="$acl_save_exec_prefix"
19043   prefix="$acl_save_prefix"
19044
19045                           if test "X$x" = "X-L$additional_libdir"; then
19046                             haveit=yes
19047                             break
19048                           fi
19049                         done
19050                         if test -z "$haveit"; then
19051                           if test -d "$additional_libdir"; then
19052                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
19053                           fi
19054                         fi
19055                       fi
19056                     fi
19057                     ;;
19058                   -R*)
19059                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19060                     if test "$enable_rpath" != no; then
19061                                                                   haveit=
19062                       for x in $rpathdirs; do
19063                         if test "X$x" = "X$dir"; then
19064                           haveit=yes
19065                           break
19066                         fi
19067                       done
19068                       if test -z "$haveit"; then
19069                         rpathdirs="$rpathdirs $dir"
19070                       fi
19071                                                                   haveit=
19072                       for x in $ltrpathdirs; do
19073                         if test "X$x" = "X$dir"; then
19074                           haveit=yes
19075                           break
19076                         fi
19077                       done
19078                       if test -z "$haveit"; then
19079                         ltrpathdirs="$ltrpathdirs $dir"
19080                       fi
19081                     fi
19082                     ;;
19083                   -l*)
19084                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19085                     ;;
19086                   *.la)
19087                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19088                     ;;
19089                   *)
19090                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
19091                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
19092                     ;;
19093                 esac
19094               done
19095             fi
19096           else
19097                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19098             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
19099           fi
19100         fi
19101       fi
19102     done
19103   done
19104   if test "X$rpathdirs" != "X"; then
19105     if test -n "$acl_hardcode_libdir_separator"; then
19106                         alldirs=
19107       for found_dir in $rpathdirs; do
19108         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19109       done
19110             acl_save_libdir="$libdir"
19111       libdir="$alldirs"
19112       eval flag=\"$acl_hardcode_libdir_flag_spec\"
19113       libdir="$acl_save_libdir"
19114       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19115     else
19116             for found_dir in $rpathdirs; do
19117         acl_save_libdir="$libdir"
19118         libdir="$found_dir"
19119         eval flag=\"$acl_hardcode_libdir_flag_spec\"
19120         libdir="$acl_save_libdir"
19121         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19122       done
19123     fi
19124   fi
19125   if test "X$ltrpathdirs" != "X"; then
19126             for found_dir in $ltrpathdirs; do
19127       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
19128     done
19129   fi
19130
19131
19132
19133
19134
19135     ac_cv_libpth_libs="$LIBPTH"
19136     ac_cv_libpth_ltlibs="$LTLIBPTH"
19137     ac_cv_libpth_cppflags="$INCPTH"
19138     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
19139
19140 fi
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
19142 $as_echo "$ac_cv_libpth_libs" >&6; }
19143   LIBPTH="$ac_cv_libpth_libs"
19144   LTLIBPTH="$ac_cv_libpth_ltlibs"
19145   INCPTH="$ac_cv_libpth_cppflags"
19146   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
19147
19148   for element in $INCPTH; do
19149     haveit=
19150     for x in $CPPFLAGS; do
19151
19152   acl_save_prefix="$prefix"
19153   prefix="$acl_final_prefix"
19154   acl_save_exec_prefix="$exec_prefix"
19155   exec_prefix="$acl_final_exec_prefix"
19156   eval x=\"$x\"
19157   exec_prefix="$acl_save_exec_prefix"
19158   prefix="$acl_save_prefix"
19159
19160       if test "X$x" = "X$element"; then
19161         haveit=yes
19162         break
19163       fi
19164     done
19165     if test -z "$haveit"; then
19166       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19167     fi
19168   done
19169
19170
19171
19172
19173       HAVE_LIBPTH=yes
19174
19175
19176
19177       gl_have_pth=
19178       gl_save_LIBS="$LIBS"
19179       LIBS="$LIBS $LIBPTH"
19180       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h.  */
19182 #include <pth.h>
19183 int
19184 main ()
19185 {
19186 pth_self();
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 if ac_fn_c_try_link "$LINENO"; then :
19192   gl_have_pth=yes
19193 fi
19194 rm -f core conftest.err conftest.$ac_objext \
19195     conftest$ac_exeext conftest.$ac_ext
19196       LIBS="$gl_save_LIBS"
19197       if test -n "$gl_have_pth"; then
19198         gl_threads_api=pth
19199         LIBTHREAD="$LIBPTH"
19200         LTLIBTHREAD="$LTLIBPTH"
19201         LIBMULTITHREAD="$LIBTHREAD"
19202         LTLIBMULTITHREAD="$LTLIBTHREAD"
19203
19204 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
19205
19206         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19207           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19208
19209 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
19210
19211             LIBTHREAD=
19212             LTLIBTHREAD=
19213           fi
19214         fi
19215       else
19216         CPPFLAGS="$gl_save_CPPFLAGS"
19217       fi
19218     fi
19219     if test -z "$gl_have_pthread"; then
19220       case "$gl_use_threads" in
19221         yes | windows | win32) # The 'win32' is for backward compatibility.
19222           if { case "$host_os" in
19223                  mingw*) true;;
19224                  *) false;;
19225                esac
19226              }; then
19227             gl_threads_api=windows
19228
19229 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
19230
19231           fi
19232           ;;
19233       esac
19234     fi
19235   fi
19236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
19237 $as_echo_n "checking for multithread API to use... " >&6; }
19238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
19239 $as_echo "$gl_threads_api" >&6; }
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250      GNULIB_FCHMODAT=0;
19251   GNULIB_FSTAT=0;
19252   GNULIB_FSTATAT=0;
19253   GNULIB_FUTIMENS=0;
19254   GNULIB_LCHMOD=0;
19255   GNULIB_LSTAT=0;
19256   GNULIB_MKDIRAT=0;
19257   GNULIB_MKFIFO=0;
19258   GNULIB_MKFIFOAT=0;
19259   GNULIB_MKNOD=0;
19260   GNULIB_MKNODAT=0;
19261   GNULIB_STAT=0;
19262   GNULIB_UTIMENSAT=0;
19263   GNULIB_OVERRIDES_STRUCT_STAT=0;
19264     HAVE_FCHMODAT=1;
19265   HAVE_FSTATAT=1;
19266   HAVE_FUTIMENS=1;
19267   HAVE_LCHMOD=1;
19268   HAVE_LSTAT=1;
19269   HAVE_MKDIRAT=1;
19270   HAVE_MKFIFO=1;
19271   HAVE_MKFIFOAT=1;
19272   HAVE_MKNOD=1;
19273   HAVE_MKNODAT=1;
19274   HAVE_UTIMENSAT=1;
19275   REPLACE_FSTAT=0;
19276   REPLACE_FSTATAT=0;
19277   REPLACE_FUTIMENS=0;
19278   REPLACE_LSTAT=0;
19279   REPLACE_MKDIR=0;
19280   REPLACE_MKFIFO=0;
19281   REPLACE_MKNOD=0;
19282   REPLACE_STAT=0;
19283   REPLACE_UTIMENSAT=0;
19284
19285
19286
19287
19288          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19289 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19290 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
19291   $as_echo_n "(cached) " >&6
19292 else
19293   rm -f conftest.sym conftest.file
19294      echo >conftest.file
19295      if test "$cross_compiling" = yes; then :
19296   case "$host_os" in
19297           linux-* | linux)
19298             # Guess yes on Linux systems.
19299             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19300           *-gnu* | gnu*)
19301             # Guess yes on glibc systems.
19302             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19303           mingw*)
19304             # Guess no on native Windows.
19305             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19306           *)
19307             # If we don't know, assume the worst.
19308             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19309         esac
19310
19311 else
19312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h.  */
19314 $ac_includes_default
19315 int
19316 main ()
19317 {
19318 struct stat sbuf;
19319             if (symlink ("conftest.file", "conftest.sym") != 0)
19320               return 1;
19321             /* Linux will dereference the symlink and fail, as required by
19322                POSIX.  That is better in the sense that it means we will not
19323                have to compile and use the lstat wrapper.  */
19324             return lstat ("conftest.sym/", &sbuf) == 0;
19325
19326   ;
19327   return 0;
19328 }
19329 _ACEOF
19330 if ac_fn_c_try_run "$LINENO"; then :
19331   gl_cv_func_lstat_dereferences_slashed_symlink=yes
19332 else
19333   gl_cv_func_lstat_dereferences_slashed_symlink=no
19334 fi
19335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19336   conftest.$ac_objext conftest.beam conftest.$ac_ext
19337 fi
19338
19339      rm -f conftest.sym conftest.file
19340
19341 fi
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19343 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19344   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19345     *yes)
19346
19347 cat >>confdefs.h <<_ACEOF
19348 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19349 _ACEOF
19350
19351       ;;
19352   esac
19353
19354
19355   GNULIB__EXIT=0;
19356   GNULIB_ATOLL=0;
19357   GNULIB_CALLOC_POSIX=0;
19358   GNULIB_CANONICALIZE_FILE_NAME=0;
19359   GNULIB_GETLOADAVG=0;
19360   GNULIB_GETSUBOPT=0;
19361   GNULIB_GRANTPT=0;
19362   GNULIB_MALLOC_POSIX=0;
19363   GNULIB_MBTOWC=0;
19364   GNULIB_MKDTEMP=0;
19365   GNULIB_MKOSTEMP=0;
19366   GNULIB_MKOSTEMPS=0;
19367   GNULIB_MKSTEMP=0;
19368   GNULIB_MKSTEMPS=0;
19369   GNULIB_POSIX_OPENPT=0;
19370   GNULIB_PTSNAME=0;
19371   GNULIB_PTSNAME_R=0;
19372   GNULIB_PUTENV=0;
19373   GNULIB_QSORT_R=0;
19374   GNULIB_RANDOM=0;
19375   GNULIB_RANDOM_R=0;
19376   GNULIB_REALLOCARRAY=0;
19377   GNULIB_REALLOC_POSIX=0;
19378   GNULIB_REALPATH=0;
19379   GNULIB_RPMATCH=0;
19380   GNULIB_SECURE_GETENV=0;
19381   GNULIB_SETENV=0;
19382   GNULIB_STRTOD=0;
19383   GNULIB_STRTOLL=0;
19384   GNULIB_STRTOULL=0;
19385   GNULIB_SYSTEM_POSIX=0;
19386   GNULIB_UNLOCKPT=0;
19387   GNULIB_UNSETENV=0;
19388   GNULIB_WCTOMB=0;
19389     HAVE__EXIT=1;
19390   HAVE_ATOLL=1;
19391   HAVE_CANONICALIZE_FILE_NAME=1;
19392   HAVE_DECL_GETLOADAVG=1;
19393   HAVE_GETSUBOPT=1;
19394   HAVE_GRANTPT=1;
19395   HAVE_DECL_INITSTATE=1;
19396   HAVE_MKDTEMP=1;
19397   HAVE_MKOSTEMP=1;
19398   HAVE_MKOSTEMPS=1;
19399   HAVE_MKSTEMP=1;
19400   HAVE_MKSTEMPS=1;
19401   HAVE_POSIX_OPENPT=1;
19402   HAVE_PTSNAME=1;
19403   HAVE_PTSNAME_R=1;
19404   HAVE_QSORT_R=1;
19405   HAVE_RANDOM=1;
19406   HAVE_RANDOM_H=1;
19407   HAVE_RANDOM_R=1;
19408   HAVE_REALLOCARRAY=1;
19409   HAVE_REALPATH=1;
19410   HAVE_RPMATCH=1;
19411   HAVE_SECURE_GETENV=1;
19412   HAVE_SETENV=1;
19413   HAVE_DECL_SETENV=1;
19414   HAVE_DECL_SETSTATE=1;
19415   HAVE_STRTOD=1;
19416   HAVE_STRTOLL=1;
19417   HAVE_STRTOULL=1;
19418   HAVE_STRUCT_RANDOM_DATA=1;
19419   HAVE_SYS_LOADAVG_H=0;
19420   HAVE_UNLOCKPT=1;
19421   HAVE_DECL_UNSETENV=1;
19422   REPLACE_CALLOC=0;
19423   REPLACE_CANONICALIZE_FILE_NAME=0;
19424   REPLACE_MALLOC=0;
19425   REPLACE_MBTOWC=0;
19426   REPLACE_MKSTEMP=0;
19427   REPLACE_PTSNAME=0;
19428   REPLACE_PTSNAME_R=0;
19429   REPLACE_PUTENV=0;
19430   REPLACE_QSORT_R=0;
19431   REPLACE_RANDOM_R=0;
19432   REPLACE_REALLOC=0;
19433   REPLACE_REALPATH=0;
19434   REPLACE_SETENV=0;
19435   REPLACE_STRTOD=0;
19436   REPLACE_UNSETENV=0;
19437   REPLACE_WCTOMB=0;
19438
19439
19440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
19441 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
19442 if ${gl_cv_func_malloc_posix+:} false; then :
19443   $as_echo_n "(cached) " >&6
19444 else
19445
19446                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h.  */
19448
19449 int
19450 main ()
19451 {
19452 #if defined _WIN32 && ! defined __CYGWIN__
19453              choke me
19454              #endif
19455
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 if ac_fn_c_try_compile "$LINENO"; then :
19461   gl_cv_func_malloc_posix=yes
19462 else
19463   gl_cv_func_malloc_posix=no
19464 fi
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466
19467 fi
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
19469 $as_echo "$gl_cv_func_malloc_posix" >&6; }
19470
19471
19472
19473       for ac_header in stdlib.h
19474 do :
19475   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19476 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19477   cat >>confdefs.h <<_ACEOF
19478 #define HAVE_STDLIB_H 1
19479 _ACEOF
19480
19481 fi
19482
19483 done
19484
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19486 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19487 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19488   $as_echo_n "(cached) " >&6
19489 else
19490   if test "$cross_compiling" = yes; then :
19491   case "$host_os" in
19492           # Guess yes on platforms where we know the result.
19493           *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
19494           | hpux* | solaris* | cygwin* | mingw*)
19495             ac_cv_func_malloc_0_nonnull=yes ;;
19496           # If we don't know, assume the worst.
19497           *) ac_cv_func_malloc_0_nonnull=no ;;
19498         esac
19499
19500 else
19501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h.  */
19503 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19504             # include <stdlib.h>
19505             #else
19506             char *malloc ();
19507             #endif
19508
19509 int
19510 main ()
19511 {
19512 char *p = malloc (0);
19513             int result = !p;
19514             free (p);
19515             return result;
19516   ;
19517   return 0;
19518 }
19519
19520 _ACEOF
19521 if ac_fn_c_try_run "$LINENO"; then :
19522   ac_cv_func_malloc_0_nonnull=yes
19523 else
19524   ac_cv_func_malloc_0_nonnull=no
19525 fi
19526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19527   conftest.$ac_objext conftest.beam conftest.$ac_ext
19528 fi
19529
19530
19531 fi
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19533 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19534   if test $ac_cv_func_malloc_0_nonnull = yes; then :
19535   gl_cv_func_malloc_0_nonnull=1
19536 else
19537   gl_cv_func_malloc_0_nonnull=0
19538 fi
19539
19540
19541 cat >>confdefs.h <<_ACEOF
19542 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
19543 _ACEOF
19544
19545
19546
19547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19548 $as_echo_n "checking for unsigned long long int... " >&6; }
19549 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19550   $as_echo_n "(cached) " >&6
19551 else
19552   ac_cv_type_unsigned_long_long_int=yes
19553      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19554        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h.  */
19556
19557   /* For now, do not test the preprocessor; as of 2007 there are too many
19558          implementations with broken preprocessors.  Perhaps this can
19559          be revisited in 2012.  In the meantime, code should not expect
19560          #if to work with literals wider than 32 bits.  */
19561       /* Test literals.  */
19562       long long int ll = 9223372036854775807ll;
19563       long long int nll = -9223372036854775807LL;
19564       unsigned long long int ull = 18446744073709551615ULL;
19565       /* Test constant expressions.   */
19566       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19567                      ? 1 : -1)];
19568       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19569                      ? 1 : -1)];
19570       int i = 63;
19571 int
19572 main ()
19573 {
19574 /* Test availability of runtime routines for shift and division.  */
19575       long long int llmax = 9223372036854775807ll;
19576       unsigned long long int ullmax = 18446744073709551615ull;
19577       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19578               | (llmax / ll) | (llmax % ll)
19579               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19580               | (ullmax / ull) | (ullmax % ull));
19581   ;
19582   return 0;
19583 }
19584
19585 _ACEOF
19586 if ac_fn_c_try_link "$LINENO"; then :
19587
19588 else
19589   ac_cv_type_unsigned_long_long_int=no
19590 fi
19591 rm -f core conftest.err conftest.$ac_objext \
19592     conftest$ac_exeext conftest.$ac_ext
19593      fi
19594 fi
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19596 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19597   if test $ac_cv_type_unsigned_long_long_int = yes; then
19598
19599 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19600
19601   fi
19602
19603
19604
19605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19606 $as_echo_n "checking for long long int... " >&6; }
19607 if ${ac_cv_type_long_long_int+:} false; then :
19608   $as_echo_n "(cached) " >&6
19609 else
19610   ac_cv_type_long_long_int=yes
19611       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19612         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19613         if test $ac_cv_type_long_long_int = yes; then
19614                                         if test "$cross_compiling" = yes; then :
19615   :
19616 else
19617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h.  */
19619 #include <limits.h>
19620                  #ifndef LLONG_MAX
19621                  # define HALF \
19622                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19623                  # define LLONG_MAX (HALF - 1 + HALF)
19624                  #endif
19625 int
19626 main ()
19627 {
19628 long long int n = 1;
19629                  int i;
19630                  for (i = 0; ; i++)
19631                    {
19632                      long long int m = n << i;
19633                      if (m >> i != n)
19634                        return 1;
19635                      if (LLONG_MAX / 2 < m)
19636                        break;
19637                    }
19638                  return 0;
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 if ac_fn_c_try_run "$LINENO"; then :
19644
19645 else
19646   ac_cv_type_long_long_int=no
19647 fi
19648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19649   conftest.$ac_objext conftest.beam conftest.$ac_ext
19650 fi
19651
19652         fi
19653       fi
19654 fi
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19656 $as_echo "$ac_cv_type_long_long_int" >&6; }
19657   if test $ac_cv_type_long_long_int = yes; then
19658
19659 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19660
19661   fi
19662
19663
19664
19665
19666
19667
19668   GNULIB_EXPLICIT_BZERO=0;
19669   GNULIB_FFSL=0;
19670   GNULIB_FFSLL=0;
19671   GNULIB_MEMCHR=0;
19672   GNULIB_MEMMEM=0;
19673   GNULIB_MEMPCPY=0;
19674   GNULIB_MEMRCHR=0;
19675   GNULIB_RAWMEMCHR=0;
19676   GNULIB_STPCPY=0;
19677   GNULIB_STPNCPY=0;
19678   GNULIB_STRCHRNUL=0;
19679   GNULIB_STRDUP=0;
19680   GNULIB_STRNCAT=0;
19681   GNULIB_STRNDUP=0;
19682   GNULIB_STRNLEN=0;
19683   GNULIB_STRPBRK=0;
19684   GNULIB_STRSEP=0;
19685   GNULIB_STRSTR=0;
19686   GNULIB_STRCASESTR=0;
19687   GNULIB_STRTOK_R=0;
19688   GNULIB_MBSLEN=0;
19689   GNULIB_MBSNLEN=0;
19690   GNULIB_MBSCHR=0;
19691   GNULIB_MBSRCHR=0;
19692   GNULIB_MBSSTR=0;
19693   GNULIB_MBSCASECMP=0;
19694   GNULIB_MBSNCASECMP=0;
19695   GNULIB_MBSPCASECMP=0;
19696   GNULIB_MBSCASESTR=0;
19697   GNULIB_MBSCSPN=0;
19698   GNULIB_MBSPBRK=0;
19699   GNULIB_MBSSPN=0;
19700   GNULIB_MBSSEP=0;
19701   GNULIB_MBSTOK_R=0;
19702   GNULIB_STRERROR=0;
19703   GNULIB_STRERROR_R=0;
19704   GNULIB_STRSIGNAL=0;
19705   GNULIB_STRVERSCMP=0;
19706   HAVE_MBSLEN=0;
19707     HAVE_EXPLICIT_BZERO=1;
19708   HAVE_FFSL=1;
19709   HAVE_FFSLL=1;
19710   HAVE_MEMCHR=1;
19711   HAVE_DECL_MEMMEM=1;
19712   HAVE_MEMPCPY=1;
19713   HAVE_DECL_MEMRCHR=1;
19714   HAVE_RAWMEMCHR=1;
19715   HAVE_STPCPY=1;
19716   HAVE_STPNCPY=1;
19717   HAVE_STRCHRNUL=1;
19718   HAVE_DECL_STRDUP=1;
19719   HAVE_DECL_STRNDUP=1;
19720   HAVE_DECL_STRNLEN=1;
19721   HAVE_STRPBRK=1;
19722   HAVE_STRSEP=1;
19723   HAVE_STRCASESTR=1;
19724   HAVE_DECL_STRTOK_R=1;
19725   HAVE_DECL_STRERROR_R=1;
19726   HAVE_DECL_STRSIGNAL=1;
19727   HAVE_STRVERSCMP=1;
19728   REPLACE_MEMCHR=0;
19729   REPLACE_MEMMEM=0;
19730   REPLACE_STPNCPY=0;
19731   REPLACE_STRCHRNUL=0;
19732   REPLACE_STRDUP=0;
19733   REPLACE_STRNCAT=0;
19734   REPLACE_STRNDUP=0;
19735   REPLACE_STRNLEN=0;
19736   REPLACE_STRSTR=0;
19737   REPLACE_STRCASESTR=0;
19738   REPLACE_STRTOK_R=0;
19739   REPLACE_STRERROR=0;
19740   REPLACE_STRERROR_R=0;
19741   REPLACE_STRSIGNAL=0;
19742   UNDEFINE_STRTOK_R=0;
19743
19744
19745
19746
19747
19748
19749   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
19750   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
19751   # irrelevant for anonymous mappings.
19752   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19753 if test "x$ac_cv_func_mmap" = xyes; then :
19754   gl_have_mmap=yes
19755 else
19756   gl_have_mmap=no
19757 fi
19758
19759
19760   # Try to allow MAP_ANONYMOUS.
19761   gl_have_mmap_anonymous=no
19762   if test $gl_have_mmap = yes; then
19763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
19764 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
19765     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766 /* end confdefs.h.  */
19767
19768 #include <sys/mman.h>
19769 #ifdef MAP_ANONYMOUS
19770     I cannot identify this map
19771 #endif
19772
19773 _ACEOF
19774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19775   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19776   gl_have_mmap_anonymous=yes
19777 fi
19778 rm -f conftest*
19779
19780     if test $gl_have_mmap_anonymous != yes; then
19781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782 /* end confdefs.h.  */
19783
19784 #include <sys/mman.h>
19785 #ifdef MAP_ANON
19786     I cannot identify this map
19787 #endif
19788
19789 _ACEOF
19790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19791   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19792
19793 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
19794
19795          gl_have_mmap_anonymous=yes
19796 fi
19797 rm -f conftest*
19798
19799     fi
19800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
19801 $as_echo "$gl_have_mmap_anonymous" >&6; }
19802     if test $gl_have_mmap_anonymous = yes; then
19803
19804 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
19805
19806     fi
19807   fi
19808
19809
19810
19811
19812
19813
19814   if test $HAVE_MEMCHR = 1; then
19815     # Detect platform-specific bugs in some versions of glibc:
19816     # memchr should not dereference anything with length 0
19817     #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
19818     # memchr should not dereference overestimated length after a match
19819     #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
19820     #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
19821     # Assume that memchr works on platforms that lack mprotect.
19822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
19823 $as_echo_n "checking whether memchr works... " >&6; }
19824 if ${gl_cv_func_memchr_works+:} false; then :
19825   $as_echo_n "(cached) " >&6
19826 else
19827   if test "$cross_compiling" = yes; then :
19828   case "$host_os" in
19829                     # Guess yes on native Windows.
19830             mingw*) gl_cv_func_memchr_works="guessing yes" ;;
19831                     # Be pessimistic for now.
19832             *)      gl_cv_func_memchr_works="guessing no" ;;
19833           esac
19834
19835 else
19836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19837 /* end confdefs.h.  */
19838
19839 #include <string.h>
19840 #if HAVE_SYS_MMAN_H
19841 # include <fcntl.h>
19842 # include <unistd.h>
19843 # include <sys/types.h>
19844 # include <sys/mman.h>
19845 # ifndef MAP_FILE
19846 #  define MAP_FILE 0
19847 # endif
19848 #endif
19849
19850 int
19851 main ()
19852 {
19853
19854   int result = 0;
19855   char *fence = NULL;
19856 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
19857 # if HAVE_MAP_ANONYMOUS
19858   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
19859   const int fd = -1;
19860 # else /* !HAVE_MAP_ANONYMOUS */
19861   const int flags = MAP_FILE | MAP_PRIVATE;
19862   int fd = open ("/dev/zero", O_RDONLY, 0666);
19863   if (fd >= 0)
19864 # endif
19865     {
19866       int pagesize = getpagesize ();
19867       char *two_pages =
19868         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
19869                        flags, fd, 0);
19870       if (two_pages != (char *)(-1)
19871           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
19872         fence = two_pages + pagesize;
19873     }
19874 #endif
19875   if (fence)
19876     {
19877       if (memchr (fence, 0, 0))
19878         result |= 1;
19879       strcpy (fence - 9, "12345678");
19880       if (memchr (fence - 9, 0, 79) != fence - 1)
19881         result |= 2;
19882       if (memchr (fence - 1, 0, 3) != fence - 1)
19883         result |= 4;
19884     }
19885   return result;
19886
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 if ac_fn_c_try_run "$LINENO"; then :
19892   gl_cv_func_memchr_works=yes
19893 else
19894   gl_cv_func_memchr_works=no
19895 fi
19896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19897   conftest.$ac_objext conftest.beam conftest.$ac_ext
19898 fi
19899
19900
19901 fi
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
19903 $as_echo "$gl_cv_func_memchr_works" >&6; }
19904     case "$gl_cv_func_memchr_works" in
19905       *yes) ;;
19906       *) REPLACE_MEMCHR=1 ;;
19907     esac
19908   fi
19909
19910
19911
19912
19913
19914   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
19915     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
19916
19917 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
19918
19919   else
19920     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
19921   fi
19922
19923
19924
19925
19926
19927
19928     gl_cv_c_multiarch=no
19929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930 /* end confdefs.h.  */
19931 #ifndef __APPLE_CC__
19932          not a universal capable compiler
19933         #endif
19934         typedef int dummy;
19935
19936 _ACEOF
19937 if ac_fn_c_try_compile "$LINENO"; then :
19938
19939                arch=
19940      prev=
19941      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19942        if test -n "$prev"; then
19943          case $word in
19944            i?86 | x86_64 | ppc | ppc64)
19945              if test -z "$arch" || test "$arch" = "$word"; then
19946                arch="$word"
19947              else
19948                gl_cv_c_multiarch=yes
19949              fi
19950              ;;
19951          esac
19952          prev=
19953        else
19954          if test "x$word" = "x-arch"; then
19955            prev=arch
19956          fi
19957        fi
19958      done
19959
19960 fi
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962   if test $gl_cv_c_multiarch = yes; then
19963     APPLE_UNIVERSAL_BUILD=1
19964   else
19965     APPLE_UNIVERSAL_BUILD=0
19966   fi
19967
19968
19969
19970
19971
19972   GNULIB_PTHREAD_SIGMASK=0;
19973   GNULIB_RAISE=0;
19974   GNULIB_SIGNAL_H_SIGPIPE=0;
19975   GNULIB_SIGPROCMASK=0;
19976   GNULIB_SIGACTION=0;
19977     HAVE_POSIX_SIGNALBLOCKING=1;
19978   HAVE_PTHREAD_SIGMASK=1;
19979   HAVE_RAISE=1;
19980   HAVE_SIGSET_T=1;
19981   HAVE_SIGINFO_T=1;
19982   HAVE_SIGACTION=1;
19983   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19984
19985   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19986
19987   HAVE_SIGHANDLER_T=1;
19988   REPLACE_PTHREAD_SIGMASK=0;
19989   REPLACE_RAISE=0;
19990
19991
19992   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19993       #include <signal.h>
19994       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
19995       #include <sys/types.h>
19996
19997 "
19998 if test "x$ac_cv_type_sigset_t" = xyes; then :
19999
20000 cat >>confdefs.h <<_ACEOF
20001 #define HAVE_SIGSET_T 1
20002 _ACEOF
20003
20004 gl_cv_type_sigset_t=yes
20005 else
20006   gl_cv_type_sigset_t=no
20007 fi
20008
20009   if test $gl_cv_type_sigset_t != yes; then
20010     HAVE_SIGSET_T=0
20011   fi
20012
20013
20014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20015 $as_echo_n "checking for ssize_t... " >&6; }
20016 if ${gt_cv_ssize_t+:} false; then :
20017   $as_echo_n "(cached) " >&6
20018 else
20019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h.  */
20021 #include <sys/types.h>
20022 int
20023 main ()
20024 {
20025 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20026             return !x;
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 if ac_fn_c_try_compile "$LINENO"; then :
20032   gt_cv_ssize_t=yes
20033 else
20034   gt_cv_ssize_t=no
20035 fi
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 fi
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20039 $as_echo "$gt_cv_ssize_t" >&6; }
20040   if test $gt_cv_ssize_t = no; then
20041
20042 $as_echo "#define ssize_t int" >>confdefs.h
20043
20044   fi
20045
20046 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
20047 if test "x$ac_cv_have_decl_setenv" = xyes; then :
20048   ac_have_decl=1
20049 else
20050   ac_have_decl=0
20051 fi
20052
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_DECL_SETENV $ac_have_decl
20055 _ACEOF
20056
20057
20058
20059
20060
20061
20062   if test $ac_cv_have_decl_setenv = no; then
20063     HAVE_DECL_SETENV=0
20064   fi
20065
20066
20067
20068
20069
20070   for ac_header in search.h
20071 do :
20072   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
20073 if test "x$ac_cv_header_search_h" = xyes; then :
20074   cat >>confdefs.h <<_ACEOF
20075 #define HAVE_SEARCH_H 1
20076 _ACEOF
20077
20078 fi
20079
20080 done
20081
20082   for ac_func in tsearch
20083 do :
20084   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20085 if test "x$ac_cv_func_tsearch" = xyes; then :
20086   cat >>confdefs.h <<_ACEOF
20087 #define HAVE_TSEARCH 1
20088 _ACEOF
20089
20090 fi
20091 done
20092
20093
20094
20095
20096
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20098 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20099 if ${ac_cv_type_uid_t+:} false; then :
20100   $as_echo_n "(cached) " >&6
20101 else
20102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h.  */
20104 #include <sys/types.h>
20105
20106 _ACEOF
20107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20108   $EGREP "uid_t" >/dev/null 2>&1; then :
20109   ac_cv_type_uid_t=yes
20110 else
20111   ac_cv_type_uid_t=no
20112 fi
20113 rm -f conftest*
20114
20115 fi
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20117 $as_echo "$ac_cv_type_uid_t" >&6; }
20118 if test $ac_cv_type_uid_t = no; then
20119
20120 $as_echo "#define uid_t int" >>confdefs.h
20121
20122
20123 $as_echo "#define gid_t int" >>confdefs.h
20124
20125 fi
20126
20127 :
20128
20129
20130
20131
20132
20133   GNULIB_DPRINTF=0;
20134   GNULIB_FCLOSE=0;
20135   GNULIB_FDOPEN=0;
20136   GNULIB_FFLUSH=0;
20137   GNULIB_FGETC=0;
20138   GNULIB_FGETS=0;
20139   GNULIB_FOPEN=0;
20140   GNULIB_FPRINTF=0;
20141   GNULIB_FPRINTF_POSIX=0;
20142   GNULIB_FPURGE=0;
20143   GNULIB_FPUTC=0;
20144   GNULIB_FPUTS=0;
20145   GNULIB_FREAD=0;
20146   GNULIB_FREOPEN=0;
20147   GNULIB_FSCANF=0;
20148   GNULIB_FSEEK=0;
20149   GNULIB_FSEEKO=0;
20150   GNULIB_FTELL=0;
20151   GNULIB_FTELLO=0;
20152   GNULIB_FWRITE=0;
20153   GNULIB_GETC=0;
20154   GNULIB_GETCHAR=0;
20155   GNULIB_GETDELIM=0;
20156   GNULIB_GETLINE=0;
20157   GNULIB_OBSTACK_PRINTF=0;
20158   GNULIB_OBSTACK_PRINTF_POSIX=0;
20159   GNULIB_PCLOSE=0;
20160   GNULIB_PERROR=0;
20161   GNULIB_POPEN=0;
20162   GNULIB_PRINTF=0;
20163   GNULIB_PRINTF_POSIX=0;
20164   GNULIB_PUTC=0;
20165   GNULIB_PUTCHAR=0;
20166   GNULIB_PUTS=0;
20167   GNULIB_REMOVE=0;
20168   GNULIB_RENAME=0;
20169   GNULIB_RENAMEAT=0;
20170   GNULIB_SCANF=0;
20171   GNULIB_SNPRINTF=0;
20172   GNULIB_SPRINTF_POSIX=0;
20173   GNULIB_STDIO_H_NONBLOCKING=0;
20174   GNULIB_STDIO_H_SIGPIPE=0;
20175   GNULIB_TMPFILE=0;
20176   GNULIB_VASPRINTF=0;
20177   GNULIB_VFSCANF=0;
20178   GNULIB_VSCANF=0;
20179   GNULIB_VDPRINTF=0;
20180   GNULIB_VFPRINTF=0;
20181   GNULIB_VFPRINTF_POSIX=0;
20182   GNULIB_VPRINTF=0;
20183   GNULIB_VPRINTF_POSIX=0;
20184   GNULIB_VSNPRINTF=0;
20185   GNULIB_VSPRINTF_POSIX=0;
20186     HAVE_DECL_FPURGE=1;
20187   HAVE_DECL_FSEEKO=1;
20188   HAVE_DECL_FTELLO=1;
20189   HAVE_DECL_GETDELIM=1;
20190   HAVE_DECL_GETLINE=1;
20191   HAVE_DECL_OBSTACK_PRINTF=1;
20192   HAVE_DECL_SNPRINTF=1;
20193   HAVE_DECL_VSNPRINTF=1;
20194   HAVE_DPRINTF=1;
20195   HAVE_FSEEKO=1;
20196   HAVE_FTELLO=1;
20197   HAVE_PCLOSE=1;
20198   HAVE_POPEN=1;
20199   HAVE_RENAMEAT=1;
20200   HAVE_VASPRINTF=1;
20201   HAVE_VDPRINTF=1;
20202   REPLACE_DPRINTF=0;
20203   REPLACE_FCLOSE=0;
20204   REPLACE_FDOPEN=0;
20205   REPLACE_FFLUSH=0;
20206   REPLACE_FOPEN=0;
20207   REPLACE_FPRINTF=0;
20208   REPLACE_FPURGE=0;
20209   REPLACE_FREOPEN=0;
20210   REPLACE_FSEEK=0;
20211   REPLACE_FSEEKO=0;
20212   REPLACE_FTELL=0;
20213   REPLACE_FTELLO=0;
20214   REPLACE_GETDELIM=0;
20215   REPLACE_GETLINE=0;
20216   REPLACE_OBSTACK_PRINTF=0;
20217   REPLACE_PERROR=0;
20218   REPLACE_POPEN=0;
20219   REPLACE_PRINTF=0;
20220   REPLACE_REMOVE=0;
20221   REPLACE_RENAME=0;
20222   REPLACE_RENAMEAT=0;
20223   REPLACE_SNPRINTF=0;
20224   REPLACE_SPRINTF=0;
20225   REPLACE_STDIO_READ_FUNCS=0;
20226   REPLACE_STDIO_WRITE_FUNCS=0;
20227   REPLACE_TMPFILE=0;
20228   REPLACE_VASPRINTF=0;
20229   REPLACE_VDPRINTF=0;
20230   REPLACE_VFPRINTF=0;
20231   REPLACE_VPRINTF=0;
20232   REPLACE_VSNPRINTF=0;
20233   REPLACE_VSPRINTF=0;
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20244 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
20245 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
20246   $as_echo_n "(cached) " >&6
20247 else
20248
20249       if test "$cross_compiling" = yes; then :
20250   case "$host_os" in
20251                                  # Guess yes on glibc systems.
20252            *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
20253                                  # Guess yes on FreeBSD >= 5.
20254            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
20255            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20256                                  # Guess yes on Mac OS X >= 10.3.
20257            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
20258            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
20259                                  # Guess yes on OpenBSD >= 3.9.
20260            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
20261                                  gl_cv_func_snprintf_retval_c99="guessing no";;
20262            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
20263                                  # Guess yes on Solaris >= 2.10.
20264            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
20265            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
20266                                  # Guess yes on AIX >= 4.
20267            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
20268            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
20269                                  # Guess yes on NetBSD >= 3.
20270            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
20271                                  gl_cv_func_snprintf_retval_c99="guessing no";;
20272            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
20273                                  # Guess yes on BeOS.
20274            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
20275                                  # Guess yes on Android.
20276            linux*-android*)      gl_cv_func_snprintf_retval_c99="guessing yes";;
20277                                  # Guess yes on MSVC, no on mingw.
20278            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20279 /* end confdefs.h.  */
20280
20281 #ifdef _MSC_VER
20282  Known
20283 #endif
20284
20285 _ACEOF
20286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20287   $EGREP "Known" >/dev/null 2>&1; then :
20288   gl_cv_func_snprintf_retval_c99="guessing yes"
20289 else
20290   gl_cv_func_snprintf_retval_c99="guessing no"
20291 fi
20292 rm -f conftest*
20293
20294                                  ;;
20295                                  # If we don't know, assume the worst.
20296            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
20297          esac
20298
20299 else
20300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h.  */
20302
20303 #include <stdio.h>
20304 #include <string.h>
20305 #if HAVE_SNPRINTF
20306 # define my_snprintf snprintf
20307 #else
20308 # include <stdarg.h>
20309 static int my_snprintf (char *buf, int size, const char *format, ...)
20310 {
20311   va_list args;
20312   int ret;
20313   va_start (args, format);
20314   ret = vsnprintf (buf, size, format, args);
20315   va_end (args);
20316   return ret;
20317 }
20318 #endif
20319 static char buf[100];
20320 int main ()
20321 {
20322   strcpy (buf, "ABCDEF");
20323   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20324     return 1;
20325   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20326     return 2;
20327   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20328     return 3;
20329   return 0;
20330 }
20331 _ACEOF
20332 if ac_fn_c_try_run "$LINENO"; then :
20333   gl_cv_func_snprintf_retval_c99=yes
20334 else
20335   gl_cv_func_snprintf_retval_c99=no
20336 fi
20337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20338   conftest.$ac_objext conftest.beam conftest.$ac_ext
20339 fi
20340
20341
20342 fi
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20344 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
20345
20346 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
20347 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
20348   ac_have_decl=1
20349 else
20350   ac_have_decl=0
20351 fi
20352
20353 cat >>confdefs.h <<_ACEOF
20354 #define HAVE_DECL_SNPRINTF $ac_have_decl
20355 _ACEOF
20356
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20358 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20359 if ${ac_cv_header_stat_broken+:} false; then :
20360   $as_echo_n "(cached) " >&6
20361 else
20362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h.  */
20364 #include <sys/types.h>
20365 #include <sys/stat.h>
20366
20367 #if defined S_ISBLK && defined S_IFDIR
20368 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20369 #endif
20370
20371 #if defined S_ISBLK && defined S_IFCHR
20372 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20373 #endif
20374
20375 #if defined S_ISLNK && defined S_IFREG
20376 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20377 #endif
20378
20379 #if defined S_ISSOCK && defined S_IFREG
20380 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20381 #endif
20382
20383 _ACEOF
20384 if ac_fn_c_try_compile "$LINENO"; then :
20385   ac_cv_header_stat_broken=no
20386 else
20387   ac_cv_header_stat_broken=yes
20388 fi
20389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20390 fi
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20392 $as_echo "$ac_cv_header_stat_broken" >&6; }
20393 if test $ac_cv_header_stat_broken = yes; then
20394
20395 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20396
20397 fi
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415      if test $gl_cv_have_include_next = yes; then
20416        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20417      else
20418        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20419 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20420 if ${gl_cv_next_sys_stat_h+:} false; then :
20421   $as_echo_n "(cached) " >&6
20422 else
20423
20424              if test $ac_cv_header_sys_stat_h = yes; then
20425
20426
20427
20428
20429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20430 /* end confdefs.h.  */
20431 #include <sys/stat.h>
20432 _ACEOF
20433                 case "$host_os" in
20434     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20435     *)    gl_absname_cpp="$ac_cpp" ;;
20436   esac
20437
20438   case "$host_os" in
20439     mingw*)
20440                                           gl_dirsep_regex='[/\\]'
20441       ;;
20442     *)
20443       gl_dirsep_regex='\/'
20444       ;;
20445   esac
20446       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20447   gl_header_literal_regex=`echo 'sys/stat.h' \
20448                            | sed -e "$gl_make_literal_regex_sed"`
20449   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20450       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20451       s|^/[^/]|//&|
20452       p
20453       q
20454     }'
20455
20456         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20457   sed -n "$gl_absolute_header_sed"`
20458
20459            gl_header=$gl_cv_absolute_sys_stat_h
20460            gl_cv_next_sys_stat_h='"'$gl_header'"'
20461           else
20462                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20463              fi
20464
20465
20466 fi
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20468 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20469      fi
20470      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20471
20472      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20473        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20474        gl_next_as_first_directive='<'sys/stat.h'>'
20475      else
20476        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20477        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20478      fi
20479      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20480
20481
20482
20483
20484
20485
20486
20487
20488     WINDOWS_STAT_TIMESPEC=0
20489
20490
20491
20492
20493
20494
20495
20496
20497       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20498      #include <sys/stat.h>
20499 "
20500 if test "x$ac_cv_type_nlink_t" = xyes; then :
20501
20502 else
20503
20504 $as_echo "#define nlink_t int" >>confdefs.h
20505
20506 fi
20507
20508
20509
20510
20511
20512
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20514 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20515 if ${ac_cv_header_stdbool_h+:} false; then :
20516   $as_echo_n "(cached) " >&6
20517 else
20518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h.  */
20520
20521              #include <stdbool.h>
20522
20523              #ifdef __cplusplus
20524               typedef bool Bool;
20525              #else
20526               typedef _Bool Bool;
20527               #ifndef bool
20528                "error: bool is not defined"
20529               #endif
20530               #ifndef false
20531                "error: false is not defined"
20532               #endif
20533               #if false
20534                "error: false is not 0"
20535               #endif
20536               #ifndef true
20537                "error: true is not defined"
20538               #endif
20539               #if true != 1
20540                "error: true is not 1"
20541               #endif
20542              #endif
20543
20544              #ifndef __bool_true_false_are_defined
20545               "error: __bool_true_false_are_defined is not defined"
20546              #endif
20547
20548              struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
20549
20550              char a[true == 1 ? 1 : -1];
20551              char b[false == 0 ? 1 : -1];
20552              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20553              char d[(bool) 0.5 == true ? 1 : -1];
20554              /* See body of main program for 'e'.  */
20555              char f[(Bool) 0.0 == false ? 1 : -1];
20556              char g[true];
20557              char h[sizeof (Bool)];
20558              char i[sizeof s.t];
20559              enum { j = false, k = true, l = false * true, m = true * 256 };
20560              /* The following fails for
20561                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20562              Bool n[m];
20563              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20564              char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20565              /* Catch a bug in an HP-UX C compiler.  See
20566                 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20567                 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
20568               */
20569              Bool q = true;
20570              Bool *pq = &q;
20571              bool *qq = &q;
20572
20573 int
20574 main ()
20575 {
20576
20577              bool e = &s;
20578              *pq |= q; *pq |= ! q;
20579              *qq |= q; *qq |= ! q;
20580              /* Refer to every declared value, to avoid compiler optimizations.  */
20581              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20582                      + !m + !n + !o + !p + !q + !pq + !qq);
20583
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 if ac_fn_c_try_compile "$LINENO"; then :
20589   ac_cv_header_stdbool_h=yes
20590 else
20591   ac_cv_header_stdbool_h=no
20592 fi
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 fi
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20596 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20597    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20598 if test "x$ac_cv_type__Bool" = xyes; then :
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE__BOOL 1
20602 _ACEOF
20603
20604
20605 fi
20606
20607
20608
20609     REPLACE_NULL=0;
20610   HAVE_MAX_ALIGN_T=1;
20611   HAVE_WCHAR_T=1;
20612
20613
20614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20615 $as_echo_n "checking for wchar_t... " >&6; }
20616 if ${gt_cv_c_wchar_t+:} false; then :
20617   $as_echo_n "(cached) " >&6
20618 else
20619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620 /* end confdefs.h.  */
20621 #include <stddef.h>
20622             wchar_t foo = (wchar_t)'\0';
20623 int
20624 main ()
20625 {
20626
20627   ;
20628   return 0;
20629 }
20630 _ACEOF
20631 if ac_fn_c_try_compile "$LINENO"; then :
20632   gt_cv_c_wchar_t=yes
20633 else
20634   gt_cv_c_wchar_t=no
20635 fi
20636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20637 fi
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20639 $as_echo "$gt_cv_c_wchar_t" >&6; }
20640   if test $gt_cv_c_wchar_t = yes; then
20641
20642 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20643
20644   fi
20645
20646
20647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20648 $as_echo_n "checking for wint_t... " >&6; }
20649 if ${gt_cv_c_wint_t+:} false; then :
20650   $as_echo_n "(cached) " >&6
20651 else
20652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h.  */
20654
20655 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20656    <wchar.h>.
20657    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20658    before <wchar.h>.  */
20659 #include <stddef.h>
20660 #include <stdio.h>
20661 #include <time.h>
20662 #include <wchar.h>
20663             wint_t foo = (wchar_t)'\0';
20664 int
20665 main ()
20666 {
20667
20668   ;
20669   return 0;
20670 }
20671 _ACEOF
20672 if ac_fn_c_try_compile "$LINENO"; then :
20673   gt_cv_c_wint_t=yes
20674 else
20675   gt_cv_c_wint_t=no
20676 fi
20677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20678 fi
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20680 $as_echo "$gt_cv_c_wint_t" >&6; }
20681   if test $gt_cv_c_wint_t = yes; then
20682
20683 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20684
20685
20686             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
20687 $as_echo_n "checking whether wint_t is too small... " >&6; }
20688 if ${gl_cv_type_wint_t_too_small+:} false; then :
20689   $as_echo_n "(cached) " >&6
20690 else
20691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20692 /* end confdefs.h.  */
20693
20694 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20695    <wchar.h>.
20696    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20697    included before <wchar.h>.  */
20698 #if !(defined __GLIBC__ && !defined __UCLIBC__)
20699 # include <stddef.h>
20700 # include <stdio.h>
20701 # include <time.h>
20702 #endif
20703 #include <wchar.h>
20704               int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
20705
20706 int
20707 main ()
20708 {
20709
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 if ac_fn_c_try_compile "$LINENO"; then :
20715   gl_cv_type_wint_t_too_small=no
20716 else
20717   gl_cv_type_wint_t_too_small=yes
20718 fi
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 fi
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
20722 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
20723     if test $gl_cv_type_wint_t_too_small = yes; then
20724       GNULIB_OVERRIDES_WINT_T=1
20725     else
20726       GNULIB_OVERRIDES_WINT_T=0
20727     fi
20728   else
20729     GNULIB_OVERRIDES_WINT_T=0
20730   fi
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743   if test $ac_cv_type_long_long_int = yes; then
20744     HAVE_LONG_LONG_INT=1
20745   else
20746     HAVE_LONG_LONG_INT=0
20747   fi
20748
20749
20750   if test $ac_cv_type_unsigned_long_long_int = yes; then
20751     HAVE_UNSIGNED_LONG_LONG_INT=1
20752   else
20753     HAVE_UNSIGNED_LONG_LONG_INT=0
20754   fi
20755
20756
20757
20758   if test $ac_cv_header_wchar_h = yes; then
20759     HAVE_WCHAR_H=1
20760   else
20761     HAVE_WCHAR_H=0
20762   fi
20763
20764
20765       if test $ac_cv_header_inttypes_h = yes; then
20766     HAVE_INTTYPES_H=1
20767   else
20768     HAVE_INTTYPES_H=0
20769   fi
20770
20771
20772       if test $ac_cv_header_sys_types_h = yes; then
20773     HAVE_SYS_TYPES_H=1
20774   else
20775     HAVE_SYS_TYPES_H=0
20776   fi
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788      if test $gl_cv_have_include_next = yes; then
20789        gl_cv_next_stdint_h='<'stdint.h'>'
20790      else
20791        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20792 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20793 if ${gl_cv_next_stdint_h+:} false; then :
20794   $as_echo_n "(cached) " >&6
20795 else
20796
20797              if test $ac_cv_header_stdint_h = yes; then
20798
20799
20800
20801
20802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803 /* end confdefs.h.  */
20804 #include <stdint.h>
20805 _ACEOF
20806                 case "$host_os" in
20807     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20808     *)    gl_absname_cpp="$ac_cpp" ;;
20809   esac
20810
20811   case "$host_os" in
20812     mingw*)
20813                                           gl_dirsep_regex='[/\\]'
20814       ;;
20815     *)
20816       gl_dirsep_regex='\/'
20817       ;;
20818   esac
20819       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20820   gl_header_literal_regex=`echo 'stdint.h' \
20821                            | sed -e "$gl_make_literal_regex_sed"`
20822   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20823       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20824       s|^/[^/]|//&|
20825       p
20826       q
20827     }'
20828
20829         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20830   sed -n "$gl_absolute_header_sed"`
20831
20832            gl_header=$gl_cv_absolute_stdint_h
20833            gl_cv_next_stdint_h='"'$gl_header'"'
20834           else
20835                gl_cv_next_stdint_h='<'stdint.h'>'
20836              fi
20837
20838
20839 fi
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20841 $as_echo "$gl_cv_next_stdint_h" >&6; }
20842      fi
20843      NEXT_STDINT_H=$gl_cv_next_stdint_h
20844
20845      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20846        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20847        gl_next_as_first_directive='<'stdint.h'>'
20848      else
20849        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20850        gl_next_as_first_directive=$gl_cv_next_stdint_h
20851      fi
20852      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20853
20854
20855
20856
20857   if test $ac_cv_header_stdint_h = yes; then
20858     HAVE_STDINT_H=1
20859   else
20860     HAVE_STDINT_H=0
20861   fi
20862
20863
20864     if test $ac_cv_header_stdint_h = yes; then
20865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20866 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20867 if ${gl_cv_header_working_stdint_h+:} false; then :
20868   $as_echo_n "(cached) " >&6
20869 else
20870   gl_cv_header_working_stdint_h=no
20871        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h.  */
20873
20874
20875 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20876 #define __STDC_CONSTANT_MACROS 1
20877 #define __STDC_LIMIT_MACROS 1
20878 #include <stdint.h>
20879 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
20880 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20881 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20882 #endif
20883
20884
20885   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20886      included before <wchar.h>.  */
20887   #include <stddef.h>
20888   #include <signal.h>
20889   #if HAVE_WCHAR_H
20890   # include <stdio.h>
20891   # include <time.h>
20892   # include <wchar.h>
20893   #endif
20894
20895
20896 #ifdef INT8_MAX
20897 int8_t a1 = INT8_MAX;
20898 int8_t a1min = INT8_MIN;
20899 #endif
20900 #ifdef INT16_MAX
20901 int16_t a2 = INT16_MAX;
20902 int16_t a2min = INT16_MIN;
20903 #endif
20904 #ifdef INT32_MAX
20905 int32_t a3 = INT32_MAX;
20906 int32_t a3min = INT32_MIN;
20907 #endif
20908 #ifdef INT64_MAX
20909 int64_t a4 = INT64_MAX;
20910 int64_t a4min = INT64_MIN;
20911 #endif
20912 #ifdef UINT8_MAX
20913 uint8_t b1 = UINT8_MAX;
20914 #else
20915 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20916 #endif
20917 #ifdef UINT16_MAX
20918 uint16_t b2 = UINT16_MAX;
20919 #endif
20920 #ifdef UINT32_MAX
20921 uint32_t b3 = UINT32_MAX;
20922 #endif
20923 #ifdef UINT64_MAX
20924 uint64_t b4 = UINT64_MAX;
20925 #endif
20926 int_least8_t c1 = INT8_C (0x7f);
20927 int_least8_t c1max = INT_LEAST8_MAX;
20928 int_least8_t c1min = INT_LEAST8_MIN;
20929 int_least16_t c2 = INT16_C (0x7fff);
20930 int_least16_t c2max = INT_LEAST16_MAX;
20931 int_least16_t c2min = INT_LEAST16_MIN;
20932 int_least32_t c3 = INT32_C (0x7fffffff);
20933 int_least32_t c3max = INT_LEAST32_MAX;
20934 int_least32_t c3min = INT_LEAST32_MIN;
20935 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20936 int_least64_t c4max = INT_LEAST64_MAX;
20937 int_least64_t c4min = INT_LEAST64_MIN;
20938 uint_least8_t d1 = UINT8_C (0xff);
20939 uint_least8_t d1max = UINT_LEAST8_MAX;
20940 uint_least16_t d2 = UINT16_C (0xffff);
20941 uint_least16_t d2max = UINT_LEAST16_MAX;
20942 uint_least32_t d3 = UINT32_C (0xffffffff);
20943 uint_least32_t d3max = UINT_LEAST32_MAX;
20944 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20945 uint_least64_t d4max = UINT_LEAST64_MAX;
20946 int_fast8_t e1 = INT_FAST8_MAX;
20947 int_fast8_t e1min = INT_FAST8_MIN;
20948 int_fast16_t e2 = INT_FAST16_MAX;
20949 int_fast16_t e2min = INT_FAST16_MIN;
20950 int_fast32_t e3 = INT_FAST32_MAX;
20951 int_fast32_t e3min = INT_FAST32_MIN;
20952 int_fast64_t e4 = INT_FAST64_MAX;
20953 int_fast64_t e4min = INT_FAST64_MIN;
20954 uint_fast8_t f1 = UINT_FAST8_MAX;
20955 uint_fast16_t f2 = UINT_FAST16_MAX;
20956 uint_fast32_t f3 = UINT_FAST32_MAX;
20957 uint_fast64_t f4 = UINT_FAST64_MAX;
20958 #ifdef INTPTR_MAX
20959 intptr_t g = INTPTR_MAX;
20960 intptr_t gmin = INTPTR_MIN;
20961 #endif
20962 #ifdef UINTPTR_MAX
20963 uintptr_t h = UINTPTR_MAX;
20964 #endif
20965 intmax_t i = INTMAX_MAX;
20966 uintmax_t j = UINTMAX_MAX;
20967
20968 /* Check that SIZE_MAX has the correct type, if possible.  */
20969 #if 201112 <= __STDC_VERSION__
20970 int k = _Generic (SIZE_MAX, size_t: 0);
20971 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
20972        || (0x5110 <= __SUNPRO_C && !__STDC__))
20973 extern size_t k;
20974 extern __typeof__ (SIZE_MAX) k;
20975 #endif
20976
20977 #include <limits.h> /* for CHAR_BIT */
20978 #define TYPE_MINIMUM(t) \
20979   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20980 #define TYPE_MAXIMUM(t) \
20981   ((t) ((t) 0 < (t) -1 \
20982         ? (t) -1 \
20983         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20984 struct s {
20985   int check_PTRDIFF:
20986       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20987       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20988       ? 1 : -1;
20989   /* Detect bug in FreeBSD 6.0 / ia64.  */
20990   int check_SIG_ATOMIC:
20991       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20992       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20993       ? 1 : -1;
20994   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20995   int check_WCHAR:
20996       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20997       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20998       ? 1 : -1;
20999   /* Detect bug in mingw.  */
21000   int check_WINT:
21001       WINT_MIN == TYPE_MINIMUM (wint_t)
21002       && WINT_MAX == TYPE_MAXIMUM (wint_t)
21003       ? 1 : -1;
21004
21005   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
21006   int check_UINT8_C:
21007         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21008   int check_UINT16_C:
21009         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21010
21011   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
21012 #ifdef UINT8_MAX
21013   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21014 #endif
21015 #ifdef UINT16_MAX
21016   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21017 #endif
21018 #ifdef UINT32_MAX
21019   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21020 #endif
21021 #ifdef UINT64_MAX
21022   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21023 #endif
21024   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21025   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21026   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21027   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21028   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21029   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21030   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21031   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21032   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21033   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21034   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21035 };
21036
21037 int
21038 main ()
21039 {
21040
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 if ac_fn_c_try_compile "$LINENO"; then :
21046                                                     if test "$cross_compiling" = yes; then :
21047   case "$host_os" in
21048                          # Guess yes on native Windows.
21049                  mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
21050                          # In general, assume it works.
21051                  *)      gl_cv_header_working_stdint_h="guessing yes" ;;
21052                esac
21053
21054 else
21055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21056 /* end confdefs.h.  */
21057
21058
21059 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21060 #define __STDC_CONSTANT_MACROS 1
21061 #define __STDC_LIMIT_MACROS 1
21062 #include <stdint.h>
21063
21064
21065   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21066      included before <wchar.h>.  */
21067   #include <stddef.h>
21068   #include <signal.h>
21069   #if HAVE_WCHAR_H
21070   # include <stdio.h>
21071   # include <time.h>
21072   # include <wchar.h>
21073   #endif
21074
21075
21076 #include <stdio.h>
21077 #include <string.h>
21078 #define MVAL(macro) MVAL1(macro)
21079 #define MVAL1(expression) #expression
21080 static const char *macro_values[] =
21081   {
21082 #ifdef INT8_MAX
21083     MVAL (INT8_MAX),
21084 #endif
21085 #ifdef INT16_MAX
21086     MVAL (INT16_MAX),
21087 #endif
21088 #ifdef INT32_MAX
21089     MVAL (INT32_MAX),
21090 #endif
21091 #ifdef INT64_MAX
21092     MVAL (INT64_MAX),
21093 #endif
21094 #ifdef UINT8_MAX
21095     MVAL (UINT8_MAX),
21096 #endif
21097 #ifdef UINT16_MAX
21098     MVAL (UINT16_MAX),
21099 #endif
21100 #ifdef UINT32_MAX
21101     MVAL (UINT32_MAX),
21102 #endif
21103 #ifdef UINT64_MAX
21104     MVAL (UINT64_MAX),
21105 #endif
21106     NULL
21107   };
21108
21109 int
21110 main ()
21111 {
21112
21113   const char **mv;
21114   for (mv = macro_values; *mv != NULL; mv++)
21115     {
21116       const char *value = *mv;
21117       /* Test whether it looks like a cast expression.  */
21118       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21119           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21120           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21121           || strncmp (value, "((int)"/*)*/, 6) == 0
21122           || strncmp (value, "((signed short)"/*)*/, 15) == 0
21123           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21124         return mv - macro_values + 1;
21125     }
21126   return 0;
21127
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 if ac_fn_c_try_run "$LINENO"; then :
21133   gl_cv_header_working_stdint_h=yes
21134 fi
21135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21136   conftest.$ac_objext conftest.beam conftest.$ac_ext
21137 fi
21138
21139
21140 fi
21141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21142
21143 fi
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21145 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
21146   fi
21147
21148   HAVE_C99_STDINT_H=0
21149   HAVE_SYS_BITYPES_H=0
21150   HAVE_SYS_INTTYPES_H=0
21151   STDINT_H=stdint.h
21152   case "$gl_cv_header_working_stdint_h" in
21153     *yes)
21154       HAVE_C99_STDINT_H=1
21155                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
21156 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
21157 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
21158   $as_echo_n "(cached) " >&6
21159 else
21160   gl_cv_header_stdint_predates_cxx11_h=yes
21161          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h.  */
21163
21164
21165 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21166 #include <stdint.h>
21167
21168
21169   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21170      included before <wchar.h>.  */
21171   #include <stddef.h>
21172   #include <signal.h>
21173   #if HAVE_WCHAR_H
21174   # include <stdio.h>
21175   # include <time.h>
21176   # include <wchar.h>
21177   #endif
21178
21179
21180 intmax_t im = INTMAX_MAX;
21181 int32_t i32 = INT32_C (0x7fffffff);
21182
21183 int
21184 main ()
21185 {
21186
21187   ;
21188   return 0;
21189 }
21190 _ACEOF
21191 if ac_fn_c_try_compile "$LINENO"; then :
21192   gl_cv_header_stdint_predates_cxx11_h=no
21193 fi
21194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21195 fi
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
21197 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
21198
21199       if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
21200
21201 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
21202
21203
21204 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
21205
21206       fi
21207       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
21208 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
21209 if ${gl_cv_header_stdint_width+:} false; then :
21210   $as_echo_n "(cached) " >&6
21211 else
21212   gl_cv_header_stdint_width=no
21213          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h.  */
21215
21216               /* Work if build is not clean.  */
21217               #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
21218               #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
21219                #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
21220               #endif
21221               #include <stdint.h>
21222
21223   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21224      included before <wchar.h>.  */
21225   #include <stddef.h>
21226   #include <signal.h>
21227   #if HAVE_WCHAR_H
21228   # include <stdio.h>
21229   # include <time.h>
21230   # include <wchar.h>
21231   #endif
21232
21233               int iw = UINTMAX_WIDTH;
21234
21235 int
21236 main ()
21237 {
21238
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 if ac_fn_c_try_compile "$LINENO"; then :
21244   gl_cv_header_stdint_width=yes
21245 fi
21246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21247 fi
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
21249 $as_echo "$gl_cv_header_stdint_width" >&6; }
21250       if test "$gl_cv_header_stdint_width" = yes; then
21251         STDINT_H=
21252       fi
21253       ;;
21254     *)
21255                   for ac_header in sys/inttypes.h sys/bitypes.h
21256 do :
21257   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21260   cat >>confdefs.h <<_ACEOF
21261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21262 _ACEOF
21263
21264 fi
21265
21266 done
21267
21268       if test $ac_cv_header_sys_inttypes_h = yes; then
21269         HAVE_SYS_INTTYPES_H=1
21270       fi
21271       if test $ac_cv_header_sys_bitypes_h = yes; then
21272         HAVE_SYS_BITYPES_H=1
21273       fi
21274
21275
21276   if test $APPLE_UNIVERSAL_BUILD = 0; then
21277
21278
21279   for gltype in ptrdiff_t size_t ; do
21280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21281 $as_echo_n "checking for bit size of $gltype... " >&6; }
21282 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21283   $as_echo_n "(cached) " >&6
21284 else
21285   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21286   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21287      included before <wchar.h>.  */
21288   #include <stddef.h>
21289   #include <signal.h>
21290   #if HAVE_WCHAR_H
21291   # include <stdio.h>
21292   # include <time.h>
21293   # include <wchar.h>
21294   #endif
21295
21296 #include <limits.h>"; then :
21297
21298 else
21299   result=unknown
21300 fi
21301
21302        eval gl_cv_bitsizeof_${gltype}=\$result
21303
21304 fi
21305 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21306                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21307 $as_echo "$ac_res" >&6; }
21308     eval result=\$gl_cv_bitsizeof_${gltype}
21309     if test $result = unknown; then
21310                                                 result=0
21311     fi
21312     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21313     cat >>confdefs.h <<_ACEOF
21314 #define BITSIZEOF_${GLTYPE} $result
21315 _ACEOF
21316
21317     eval BITSIZEOF_${GLTYPE}=\$result
21318   done
21319
21320
21321   fi
21322
21323
21324   for gltype in sig_atomic_t wchar_t wint_t ; do
21325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21326 $as_echo_n "checking for bit size of $gltype... " >&6; }
21327 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21328   $as_echo_n "(cached) " >&6
21329 else
21330   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
21331   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21332      included before <wchar.h>.  */
21333   #include <stddef.h>
21334   #include <signal.h>
21335   #if HAVE_WCHAR_H
21336   # include <stdio.h>
21337   # include <time.h>
21338   # include <wchar.h>
21339   #endif
21340
21341 #include <limits.h>"; then :
21342
21343 else
21344   result=unknown
21345 fi
21346
21347        eval gl_cv_bitsizeof_${gltype}=\$result
21348
21349 fi
21350 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21351                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21352 $as_echo "$ac_res" >&6; }
21353     eval result=\$gl_cv_bitsizeof_${gltype}
21354     if test $result = unknown; then
21355                                                 result=0
21356     fi
21357     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21358     cat >>confdefs.h <<_ACEOF
21359 #define BITSIZEOF_${GLTYPE} $result
21360 _ACEOF
21361
21362     eval BITSIZEOF_${GLTYPE}=\$result
21363   done
21364
21365
21366
21367
21368   for gltype in sig_atomic_t wchar_t wint_t ; do
21369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21370 $as_echo_n "checking whether $gltype is signed... " >&6; }
21371 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21372   $as_echo_n "(cached) " >&6
21373 else
21374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21375 /* end confdefs.h.  */
21376
21377   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21378      included before <wchar.h>.  */
21379   #include <stddef.h>
21380   #include <signal.h>
21381   #if HAVE_WCHAR_H
21382   # include <stdio.h>
21383   # include <time.h>
21384   # include <wchar.h>
21385   #endif
21386
21387             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21388 int
21389 main ()
21390 {
21391
21392   ;
21393   return 0;
21394 }
21395 _ACEOF
21396 if ac_fn_c_try_compile "$LINENO"; then :
21397   result=yes
21398 else
21399   result=no
21400 fi
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402        eval gl_cv_type_${gltype}_signed=\$result
21403
21404 fi
21405 eval ac_res=\$gl_cv_type_${gltype}_signed
21406                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21407 $as_echo "$ac_res" >&6; }
21408     eval result=\$gl_cv_type_${gltype}_signed
21409     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21410     if test "$result" = yes; then
21411       cat >>confdefs.h <<_ACEOF
21412 #define HAVE_SIGNED_${GLTYPE} 1
21413 _ACEOF
21414
21415       eval HAVE_SIGNED_${GLTYPE}=1
21416     else
21417       eval HAVE_SIGNED_${GLTYPE}=0
21418     fi
21419   done
21420
21421
21422   gl_cv_type_ptrdiff_t_signed=yes
21423   gl_cv_type_size_t_signed=no
21424   if test $APPLE_UNIVERSAL_BUILD = 0; then
21425
21426
21427   for gltype in ptrdiff_t size_t ; do
21428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21429 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21430 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21431   $as_echo_n "(cached) " >&6
21432 else
21433   eval gl_cv_type_${gltype}_suffix=no
21434        eval result=\$gl_cv_type_${gltype}_signed
21435        if test "$result" = yes; then
21436          glsufu=
21437        else
21438          glsufu=u
21439        fi
21440        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21441          case $glsuf in
21442            '')  gltype1='int';;
21443            l)   gltype1='long int';;
21444            ll)  gltype1='long long int';;
21445            i64) gltype1='__int64';;
21446            u)   gltype1='unsigned int';;
21447            ul)  gltype1='unsigned long int';;
21448            ull) gltype1='unsigned long long int';;
21449            ui64)gltype1='unsigned __int64';;
21450          esac
21451          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h.  */
21453
21454   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21455      included before <wchar.h>.  */
21456   #include <stddef.h>
21457   #include <signal.h>
21458   #if HAVE_WCHAR_H
21459   # include <stdio.h>
21460   # include <time.h>
21461   # include <wchar.h>
21462   #endif
21463
21464               extern $gltype foo;
21465               extern $gltype1 foo;
21466 int
21467 main ()
21468 {
21469
21470   ;
21471   return 0;
21472 }
21473 _ACEOF
21474 if ac_fn_c_try_compile "$LINENO"; then :
21475   eval gl_cv_type_${gltype}_suffix=\$glsuf
21476 fi
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478          eval result=\$gl_cv_type_${gltype}_suffix
21479          test "$result" != no && break
21480        done
21481 fi
21482 eval ac_res=\$gl_cv_type_${gltype}_suffix
21483                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21484 $as_echo "$ac_res" >&6; }
21485     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21486     eval result=\$gl_cv_type_${gltype}_suffix
21487     test "$result" = no && result=
21488     eval ${GLTYPE}_SUFFIX=\$result
21489     cat >>confdefs.h <<_ACEOF
21490 #define ${GLTYPE}_SUFFIX $result
21491 _ACEOF
21492
21493   done
21494
21495
21496   fi
21497
21498
21499   for gltype in sig_atomic_t wchar_t wint_t ; do
21500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21501 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21502 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21503   $as_echo_n "(cached) " >&6
21504 else
21505   eval gl_cv_type_${gltype}_suffix=no
21506        eval result=\$gl_cv_type_${gltype}_signed
21507        if test "$result" = yes; then
21508          glsufu=
21509        else
21510          glsufu=u
21511        fi
21512        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21513          case $glsuf in
21514            '')  gltype1='int';;
21515            l)   gltype1='long int';;
21516            ll)  gltype1='long long int';;
21517            i64) gltype1='__int64';;
21518            u)   gltype1='unsigned int';;
21519            ul)  gltype1='unsigned long int';;
21520            ull) gltype1='unsigned long long int';;
21521            ui64)gltype1='unsigned __int64';;
21522          esac
21523          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h.  */
21525
21526   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21527      included before <wchar.h>.  */
21528   #include <stddef.h>
21529   #include <signal.h>
21530   #if HAVE_WCHAR_H
21531   # include <stdio.h>
21532   # include <time.h>
21533   # include <wchar.h>
21534   #endif
21535
21536               extern $gltype foo;
21537               extern $gltype1 foo;
21538 int
21539 main ()
21540 {
21541
21542   ;
21543   return 0;
21544 }
21545 _ACEOF
21546 if ac_fn_c_try_compile "$LINENO"; then :
21547   eval gl_cv_type_${gltype}_suffix=\$glsuf
21548 fi
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550          eval result=\$gl_cv_type_${gltype}_suffix
21551          test "$result" != no && break
21552        done
21553 fi
21554 eval ac_res=\$gl_cv_type_${gltype}_suffix
21555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21556 $as_echo "$ac_res" >&6; }
21557     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21558     eval result=\$gl_cv_type_${gltype}_suffix
21559     test "$result" = no && result=
21560     eval ${GLTYPE}_SUFFIX=\$result
21561     cat >>confdefs.h <<_ACEOF
21562 #define ${GLTYPE}_SUFFIX $result
21563 _ACEOF
21564
21565   done
21566
21567
21568
21569           if test $GNULIB_OVERRIDES_WINT_T = 1; then
21570     BITSIZEOF_WINT_T=32
21571   fi
21572
21573       ;;
21574   esac
21575
21576
21577
21578   LIMITS_H='limits.h'
21579    if test -n "$LIMITS_H"; then
21580   GL_GENERATE_LIMITS_H_TRUE=
21581   GL_GENERATE_LIMITS_H_FALSE='#'
21582 else
21583   GL_GENERATE_LIMITS_H_TRUE='#'
21584   GL_GENERATE_LIMITS_H_FALSE=
21585 fi
21586
21587
21588
21589
21590
21591
21592
21593    if test -n "$STDINT_H"; then
21594   GL_GENERATE_STDINT_H_TRUE=
21595   GL_GENERATE_STDINT_H_FALSE='#'
21596 else
21597   GL_GENERATE_STDINT_H_TRUE='#'
21598   GL_GENERATE_STDINT_H_FALSE=
21599 fi
21600
21601
21602
21603      REPLACE_STRERROR_0=0
21604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
21605 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
21606 if ${gl_cv_func_strerror_0_works+:} false; then :
21607   $as_echo_n "(cached) " >&6
21608 else
21609   if test "$cross_compiling" = yes; then :
21610   case "$host_os" in
21611                         # Guess yes on glibc systems.
21612          *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
21613                         # Guess yes on native Windows.
21614          mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
21615                         # If we don't know, assume the worst.
21616          *)             gl_cv_func_strerror_0_works="guessing no" ;;
21617        esac
21618
21619 else
21620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h.  */
21622 #include <string.h>
21623            #include <errno.h>
21624
21625 int
21626 main ()
21627 {
21628 int result = 0;
21629            char *str;
21630            errno = 0;
21631            str = strerror (0);
21632            if (!*str) result |= 1;
21633            if (errno) result |= 2;
21634            if (strstr (str, "nknown") || strstr (str, "ndefined"))
21635              result |= 4;
21636            return result;
21637   ;
21638   return 0;
21639 }
21640 _ACEOF
21641 if ac_fn_c_try_run "$LINENO"; then :
21642   gl_cv_func_strerror_0_works=yes
21643 else
21644   gl_cv_func_strerror_0_works=no
21645 fi
21646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21647   conftest.$ac_objext conftest.beam conftest.$ac_ext
21648 fi
21649
21650
21651 fi
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
21653 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
21654   case "$gl_cv_func_strerror_0_works" in
21655     *yes) ;;
21656     *)
21657       REPLACE_STRERROR_0=1
21658
21659 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
21660
21661       ;;
21662   esac
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675      if test $gl_cv_have_include_next = yes; then
21676        gl_cv_next_string_h='<'string.h'>'
21677      else
21678        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21679 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21680 if ${gl_cv_next_string_h+:} false; then :
21681   $as_echo_n "(cached) " >&6
21682 else
21683
21684
21685
21686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h.  */
21688 #include <string.h>
21689 _ACEOF
21690                 case "$host_os" in
21691     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21692     *)    gl_absname_cpp="$ac_cpp" ;;
21693   esac
21694
21695   case "$host_os" in
21696     mingw*)
21697                                           gl_dirsep_regex='[/\\]'
21698       ;;
21699     *)
21700       gl_dirsep_regex='\/'
21701       ;;
21702   esac
21703       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21704   gl_header_literal_regex=`echo 'string.h' \
21705                            | sed -e "$gl_make_literal_regex_sed"`
21706   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21707       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21708       s|^/[^/]|//&|
21709       p
21710       q
21711     }'
21712
21713         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21714   sed -n "$gl_absolute_header_sed"`
21715
21716            gl_header=$gl_cv_absolute_string_h
21717            gl_cv_next_string_h='"'$gl_header'"'
21718
21719
21720 fi
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21722 $as_echo "$gl_cv_next_string_h" >&6; }
21723      fi
21724      NEXT_STRING_H=$gl_cv_next_string_h
21725
21726      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21727        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21728        gl_next_as_first_directive='<'string.h'>'
21729      else
21730        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21731        gl_next_as_first_directive=$gl_cv_next_string_h
21732      fi
21733      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
21744 if test "x$ac_cv_have_decl_strndup" = xyes; then :
21745   ac_have_decl=1
21746 else
21747   ac_have_decl=0
21748 fi
21749
21750 cat >>confdefs.h <<_ACEOF
21751 #define HAVE_DECL_STRNDUP $ac_have_decl
21752 _ACEOF
21753
21754
21755
21756 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
21757 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
21758   ac_have_decl=1
21759 else
21760   ac_have_decl=0
21761 fi
21762
21763 cat >>confdefs.h <<_ACEOF
21764 #define HAVE_DECL_STRNLEN $ac_have_decl
21765 _ACEOF
21766
21767 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
21768 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
21769   ac_have_decl=1
21770 else
21771   ac_have_decl=0
21772 fi
21773
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_DECL_STRSIGNAL $ac_have_decl
21776 _ACEOF
21777
21778 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
21779 /* NetBSD declares sys_siglist in unistd.h.  */
21780 #ifdef HAVE_UNISTD_H
21781 # include <unistd.h>
21782 #endif
21783
21784 "
21785 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
21786   ac_have_decl=1
21787 else
21788   ac_have_decl=0
21789 fi
21790
21791 cat >>confdefs.h <<_ACEOF
21792 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
21793 _ACEOF
21794
21795
21796
21797   GNULIB_PSELECT=0;
21798   GNULIB_SELECT=0;
21799     HAVE_PSELECT=1;
21800   REPLACE_PSELECT=0;
21801   REPLACE_SELECT=0;
21802
21803
21804
21805
21806
21807
21808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21809 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21810 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
21811   $as_echo_n "(cached) " >&6
21812 else
21813
21814                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21815 /* end confdefs.h.  */
21816 #include <sys/select.h>
21817 int
21818 main ()
21819 {
21820 struct timeval b;
21821   ;
21822   return 0;
21823 }
21824 _ACEOF
21825 if ac_fn_c_try_compile "$LINENO"; then :
21826   gl_cv_header_sys_select_h_selfcontained=yes
21827 else
21828   gl_cv_header_sys_select_h_selfcontained=no
21829 fi
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21832         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21833 /* end confdefs.h.  */
21834 #include <sys/select.h>
21835 int
21836 main ()
21837 {
21838 int memset; int bzero;
21839   ;
21840   return 0;
21841 }
21842
21843 _ACEOF
21844 if ac_fn_c_try_compile "$LINENO"; then :
21845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h.  */
21847 #include <sys/select.h>
21848 int
21849 main ()
21850 {
21851
21852                   #undef memset
21853                   #define memset nonexistent_memset
21854                   extern
21855                   #ifdef __cplusplus
21856                   "C"
21857                   #endif
21858                   void *memset (void *, int, unsigned long);
21859                   #undef bzero
21860                   #define bzero nonexistent_bzero
21861                   extern
21862                   #ifdef __cplusplus
21863                   "C"
21864                   #endif
21865                   void bzero (void *, unsigned long);
21866                   fd_set fds;
21867                   FD_ZERO (&fds);
21868
21869   ;
21870   return 0;
21871 }
21872
21873 _ACEOF
21874 if ac_fn_c_try_link "$LINENO"; then :
21875
21876 else
21877   gl_cv_header_sys_select_h_selfcontained=no
21878 fi
21879 rm -f core conftest.err conftest.$ac_objext \
21880     conftest$ac_exeext conftest.$ac_ext
21881
21882 fi
21883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21884       fi
21885
21886 fi
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21888 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898      if test $gl_cv_have_include_next = yes; then
21899        gl_cv_next_sys_select_h='<'sys/select.h'>'
21900      else
21901        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21902 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21903 if ${gl_cv_next_sys_select_h+:} false; then :
21904   $as_echo_n "(cached) " >&6
21905 else
21906
21907              if test $ac_cv_header_sys_select_h = yes; then
21908
21909
21910
21911
21912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h.  */
21914 #include <sys/select.h>
21915 _ACEOF
21916                 case "$host_os" in
21917     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21918     *)    gl_absname_cpp="$ac_cpp" ;;
21919   esac
21920
21921   case "$host_os" in
21922     mingw*)
21923                                           gl_dirsep_regex='[/\\]'
21924       ;;
21925     *)
21926       gl_dirsep_regex='\/'
21927       ;;
21928   esac
21929       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21930   gl_header_literal_regex=`echo 'sys/select.h' \
21931                            | sed -e "$gl_make_literal_regex_sed"`
21932   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21933       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21934       s|^/[^/]|//&|
21935       p
21936       q
21937     }'
21938
21939         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21940   sed -n "$gl_absolute_header_sed"`
21941
21942            gl_header=$gl_cv_absolute_sys_select_h
21943            gl_cv_next_sys_select_h='"'$gl_header'"'
21944           else
21945                gl_cv_next_sys_select_h='<'sys/select.h'>'
21946              fi
21947
21948
21949 fi
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21951 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21952      fi
21953      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21954
21955      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21956        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21957        gl_next_as_first_directive='<'sys/select.h'>'
21958      else
21959        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21960        gl_next_as_first_directive=$gl_cv_next_sys_select_h
21961      fi
21962      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21963
21964
21965
21966
21967   if test $ac_cv_header_sys_select_h = yes; then
21968     HAVE_SYS_SELECT_H=1
21969   else
21970     HAVE_SYS_SELECT_H=0
21971   fi
21972
21973
21974
21975
21976
21977   if test $ac_cv_header_sys_socket_h != yes; then
21978                     for ac_header in winsock2.h
21979 do :
21980   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21981 if test "x$ac_cv_header_winsock2_h" = xyes; then :
21982   cat >>confdefs.h <<_ACEOF
21983 #define HAVE_WINSOCK2_H 1
21984 _ACEOF
21985
21986 fi
21987
21988 done
21989
21990   fi
21991   if test "$ac_cv_header_winsock2_h" = yes; then
21992     HAVE_WINSOCK2_H=1
21993     UNISTD_H_HAVE_WINSOCK2_H=1
21994     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21995   else
21996     HAVE_WINSOCK2_H=0
21997   fi
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027      if test $gl_cv_have_include_next = yes; then
22028        gl_cv_next_sys_types_h='<'sys/types.h'>'
22029      else
22030        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
22031 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
22032 if ${gl_cv_next_sys_types_h+:} false; then :
22033   $as_echo_n "(cached) " >&6
22034 else
22035
22036
22037
22038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22039 /* end confdefs.h.  */
22040 #include <sys/types.h>
22041 _ACEOF
22042                 case "$host_os" in
22043     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22044     *)    gl_absname_cpp="$ac_cpp" ;;
22045   esac
22046
22047   case "$host_os" in
22048     mingw*)
22049                                           gl_dirsep_regex='[/\\]'
22050       ;;
22051     *)
22052       gl_dirsep_regex='\/'
22053       ;;
22054   esac
22055       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22056   gl_header_literal_regex=`echo 'sys/types.h' \
22057                            | sed -e "$gl_make_literal_regex_sed"`
22058   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22059       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22060       s|^/[^/]|//&|
22061       p
22062       q
22063     }'
22064
22065         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22066   sed -n "$gl_absolute_header_sed"`
22067
22068            gl_header=$gl_cv_absolute_sys_types_h
22069            gl_cv_next_sys_types_h='"'$gl_header'"'
22070
22071
22072 fi
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
22074 $as_echo "$gl_cv_next_sys_types_h" >&6; }
22075      fi
22076      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
22077
22078      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22079        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22080        gl_next_as_first_directive='<'sys/types.h'>'
22081      else
22082        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22083        gl_next_as_first_directive=$gl_cv_next_sys_types_h
22084      fi
22085      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098     WINDOWS_STAT_INODES=0
22099
22100
22101
22102
22103   GNULIB_WAITPID=0;
22104
22105
22106
22107
22108
22109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
22110 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
22111 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
22112   $as_echo_n "(cached) " >&6
22113 else
22114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22115 /* end confdefs.h.  */
22116 #include <time.h>
22117
22118 int
22119 main ()
22120 {
22121 static struct timespec x; x.tv_sec = x.tv_nsec;
22122   ;
22123   return 0;
22124 }
22125 _ACEOF
22126 if ac_fn_c_try_compile "$LINENO"; then :
22127   gl_cv_sys_struct_timespec_in_time_h=yes
22128 else
22129   gl_cv_sys_struct_timespec_in_time_h=no
22130 fi
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 fi
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22134 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22135
22136   TIME_H_DEFINES_STRUCT_TIMESPEC=0
22137   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22138   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22139   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
22140   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22141     TIME_H_DEFINES_STRUCT_TIMESPEC=1
22142   else
22143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22144 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22145 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
22146   $as_echo_n "(cached) " >&6
22147 else
22148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22149 /* end confdefs.h.  */
22150 #include <sys/time.h>
22151
22152 int
22153 main ()
22154 {
22155 static struct timespec x; x.tv_sec = x.tv_nsec;
22156   ;
22157   return 0;
22158 }
22159 _ACEOF
22160 if ac_fn_c_try_compile "$LINENO"; then :
22161   gl_cv_sys_struct_timespec_in_sys_time_h=yes
22162 else
22163   gl_cv_sys_struct_timespec_in_sys_time_h=no
22164 fi
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 fi
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22168 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22169     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22170       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22171     else
22172       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22173 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22174 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
22175   $as_echo_n "(cached) " >&6
22176 else
22177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178 /* end confdefs.h.  */
22179 #include <pthread.h>
22180
22181 int
22182 main ()
22183 {
22184 static struct timespec x; x.tv_sec = x.tv_nsec;
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 if ac_fn_c_try_compile "$LINENO"; then :
22190   gl_cv_sys_struct_timespec_in_pthread_h=yes
22191 else
22192   gl_cv_sys_struct_timespec_in_pthread_h=no
22193 fi
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 fi
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22197 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22198       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22199         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22200       else
22201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
22202 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
22203 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
22204   $as_echo_n "(cached) " >&6
22205 else
22206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h.  */
22208 #include <unistd.h>
22209
22210 int
22211 main ()
22212 {
22213 static struct timespec x; x.tv_sec = x.tv_nsec;
22214   ;
22215   return 0;
22216 }
22217 _ACEOF
22218 if ac_fn_c_try_compile "$LINENO"; then :
22219   gl_cv_sys_struct_timespec_in_unistd_h=yes
22220 else
22221   gl_cv_sys_struct_timespec_in_unistd_h=no
22222 fi
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 fi
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
22226 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
22227         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
22228           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
22229         fi
22230       fi
22231     fi
22232   fi
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249      if test $gl_cv_have_include_next = yes; then
22250        gl_cv_next_time_h='<'time.h'>'
22251      else
22252        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22253 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22254 if ${gl_cv_next_time_h+:} false; then :
22255   $as_echo_n "(cached) " >&6
22256 else
22257
22258
22259
22260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261 /* end confdefs.h.  */
22262 #include <time.h>
22263 _ACEOF
22264                 case "$host_os" in
22265     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22266     *)    gl_absname_cpp="$ac_cpp" ;;
22267   esac
22268
22269   case "$host_os" in
22270     mingw*)
22271                                           gl_dirsep_regex='[/\\]'
22272       ;;
22273     *)
22274       gl_dirsep_regex='\/'
22275       ;;
22276   esac
22277       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22278   gl_header_literal_regex=`echo 'time.h' \
22279                            | sed -e "$gl_make_literal_regex_sed"`
22280   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22281       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22282       s|^/[^/]|//&|
22283       p
22284       q
22285     }'
22286
22287         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22288   sed -n "$gl_absolute_header_sed"`
22289
22290            gl_header=$gl_cv_absolute_time_h
22291            gl_cv_next_time_h='"'$gl_header'"'
22292
22293
22294 fi
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22296 $as_echo "$gl_cv_next_time_h" >&6; }
22297      fi
22298      NEXT_TIME_H=$gl_cv_next_time_h
22299
22300      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22301        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22302        gl_next_as_first_directive='<'time.h'>'
22303      else
22304        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22305        gl_next_as_first_directive=$gl_cv_next_time_h
22306      fi
22307      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22308
22309
22310
22311
22312
22313
22314 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22315 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
22316   ac_have_decl=1
22317 else
22318   ac_have_decl=0
22319 fi
22320
22321 cat >>confdefs.h <<_ACEOF
22322 #define HAVE_DECL_UNSETENV $ac_have_decl
22323 _ACEOF
22324
22325
22326
22327
22328
22329
22330
22331   if test $ac_cv_header_features_h = yes; then
22332     HAVE_FEATURES_H=1
22333   else
22334     HAVE_FEATURES_H=0
22335   fi
22336
22337
22338
22339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
22340 $as_echo_n "checking for inttypes.h... " >&6; }
22341 if ${gl_cv_header_inttypes_h+:} false; then :
22342   $as_echo_n "(cached) " >&6
22343 else
22344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22345 /* end confdefs.h.  */
22346
22347 #include <sys/types.h>
22348 #include <inttypes.h>
22349
22350 int
22351 main ()
22352 {
22353 uintmax_t i = (uintmax_t) -1; return !i;
22354   ;
22355   return 0;
22356 }
22357 _ACEOF
22358 if ac_fn_c_try_compile "$LINENO"; then :
22359   gl_cv_header_inttypes_h=yes
22360 else
22361   gl_cv_header_inttypes_h=no
22362 fi
22363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364 fi
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22366 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22367   if test $gl_cv_header_inttypes_h = yes; then
22368
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22371 _ACEOF
22372
22373   fi
22374
22375
22376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22377 $as_echo_n "checking for stdint.h... " >&6; }
22378 if ${gl_cv_header_stdint_h+:} false; then :
22379   $as_echo_n "(cached) " >&6
22380 else
22381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h.  */
22383 #include <sys/types.h>
22384             #include <stdint.h>
22385 int
22386 main ()
22387 {
22388 uintmax_t i = (uintmax_t) -1; return !i;
22389   ;
22390   return 0;
22391 }
22392 _ACEOF
22393 if ac_fn_c_try_compile "$LINENO"; then :
22394   gl_cv_header_stdint_h=yes
22395 else
22396   gl_cv_header_stdint_h=no
22397 fi
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399 fi
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22401 $as_echo "$gl_cv_header_stdint_h" >&6; }
22402   if test $gl_cv_header_stdint_h = yes; then
22403
22404 cat >>confdefs.h <<_ACEOF
22405 #define HAVE_STDINT_H_WITH_UINTMAX 1
22406 _ACEOF
22407
22408   fi
22409
22410
22411
22412
22413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22414 $as_echo_n "checking for intmax_t... " >&6; }
22415 if ${gt_cv_c_intmax_t+:} false; then :
22416   $as_echo_n "(cached) " >&6
22417 else
22418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419 /* end confdefs.h.  */
22420
22421 #include <stddef.h>
22422 #include <stdlib.h>
22423 #if HAVE_STDINT_H_WITH_UINTMAX
22424 #include <stdint.h>
22425 #endif
22426 #if HAVE_INTTYPES_H_WITH_UINTMAX
22427 #include <inttypes.h>
22428 #endif
22429
22430 int
22431 main ()
22432 {
22433 intmax_t x = -1; return !x;
22434   ;
22435   return 0;
22436 }
22437 _ACEOF
22438 if ac_fn_c_try_compile "$LINENO"; then :
22439   gt_cv_c_intmax_t=yes
22440 else
22441   gt_cv_c_intmax_t=no
22442 fi
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 fi
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22446 $as_echo "$gt_cv_c_intmax_t" >&6; }
22447   if test $gt_cv_c_intmax_t = yes; then
22448
22449 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22450
22451   else
22452
22453     test $ac_cv_type_long_long_int = yes \
22454       && ac_type='long long' \
22455       || ac_type='long'
22456
22457 cat >>confdefs.h <<_ACEOF
22458 #define intmax_t $ac_type
22459 _ACEOF
22460
22461   fi
22462
22463
22464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22465 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
22466 if ${gl_cv_cc_double_expbit0+:} false; then :
22467   $as_echo_n "(cached) " >&6
22468 else
22469
22470       if test "$cross_compiling" = yes; then :
22471
22472                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h.  */
22474
22475 #if defined arm || defined __arm || defined __arm__
22476   mixed_endianness
22477 #endif
22478
22479 _ACEOF
22480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22481   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
22482   gl_cv_cc_double_expbit0="unknown"
22483 else
22484
22485                                                          :
22486 if ${ac_cv_c_bigendian+:} false; then :
22487   $as_echo_n "(cached) " >&6
22488 else
22489   ac_cv_c_bigendian=unknown
22490     # See if we're dealing with a universal compiler.
22491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22492 /* end confdefs.h.  */
22493 #ifndef __APPLE_CC__
22494                not a universal capable compiler
22495              #endif
22496              typedef int dummy;
22497
22498 _ACEOF
22499 if ac_fn_c_try_compile "$LINENO"; then :
22500
22501         # Check for potential -arch flags.  It is not universal unless
22502         # there are at least two -arch flags with different values.
22503         ac_arch=
22504         ac_prev=
22505         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22506          if test -n "$ac_prev"; then
22507            case $ac_word in
22508              i?86 | x86_64 | ppc | ppc64)
22509                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22510                  ac_arch=$ac_word
22511                else
22512                  ac_cv_c_bigendian=universal
22513                  break
22514                fi
22515                ;;
22516            esac
22517            ac_prev=
22518          elif test "x$ac_word" = "x-arch"; then
22519            ac_prev=arch
22520          fi
22521        done
22522 fi
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524     if test $ac_cv_c_bigendian = unknown; then
22525       # See if sys/param.h defines the BYTE_ORDER macro.
22526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h.  */
22528 #include <sys/types.h>
22529              #include <sys/param.h>
22530
22531 int
22532 main ()
22533 {
22534 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22535                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22536                      && LITTLE_ENDIAN)
22537               bogus endian macros
22538              #endif
22539
22540   ;
22541   return 0;
22542 }
22543 _ACEOF
22544 if ac_fn_c_try_compile "$LINENO"; then :
22545   # It does; now see whether it defined to BIG_ENDIAN or not.
22546          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h.  */
22548 #include <sys/types.h>
22549                 #include <sys/param.h>
22550
22551 int
22552 main ()
22553 {
22554 #if BYTE_ORDER != BIG_ENDIAN
22555                  not big endian
22556                 #endif
22557
22558   ;
22559   return 0;
22560 }
22561 _ACEOF
22562 if ac_fn_c_try_compile "$LINENO"; then :
22563   ac_cv_c_bigendian=yes
22564 else
22565   ac_cv_c_bigendian=no
22566 fi
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568 fi
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570     fi
22571     if test $ac_cv_c_bigendian = unknown; then
22572       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22574 /* end confdefs.h.  */
22575 #include <limits.h>
22576
22577 int
22578 main ()
22579 {
22580 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22581               bogus endian macros
22582              #endif
22583
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 if ac_fn_c_try_compile "$LINENO"; then :
22589   # It does; now see whether it defined to _BIG_ENDIAN or not.
22590          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22591 /* end confdefs.h.  */
22592 #include <limits.h>
22593
22594 int
22595 main ()
22596 {
22597 #ifndef _BIG_ENDIAN
22598                  not big endian
22599                 #endif
22600
22601   ;
22602   return 0;
22603 }
22604 _ACEOF
22605 if ac_fn_c_try_compile "$LINENO"; then :
22606   ac_cv_c_bigendian=yes
22607 else
22608   ac_cv_c_bigendian=no
22609 fi
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22611 fi
22612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613     fi
22614     if test $ac_cv_c_bigendian = unknown; then
22615       # Compile a test program.
22616       if test "$cross_compiling" = yes; then :
22617   # Try to guess by grepping values from an object file.
22618          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619 /* end confdefs.h.  */
22620 short int ascii_mm[] =
22621                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22622                 short int ascii_ii[] =
22623                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22624                 int use_ascii (int i) {
22625                   return ascii_mm[i] + ascii_ii[i];
22626                 }
22627                 short int ebcdic_ii[] =
22628                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22629                 short int ebcdic_mm[] =
22630                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22631                 int use_ebcdic (int i) {
22632                   return ebcdic_mm[i] + ebcdic_ii[i];
22633                 }
22634                 extern int foo;
22635
22636 int
22637 main ()
22638 {
22639 return use_ascii (foo) == use_ebcdic (foo);
22640   ;
22641   return 0;
22642 }
22643 _ACEOF
22644 if ac_fn_c_try_compile "$LINENO"; then :
22645   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22646               ac_cv_c_bigendian=yes
22647             fi
22648             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22649               if test "$ac_cv_c_bigendian" = unknown; then
22650                 ac_cv_c_bigendian=no
22651               else
22652                 # finding both strings is unlikely to happen, but who knows?
22653                 ac_cv_c_bigendian=unknown
22654               fi
22655             fi
22656 fi
22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658 else
22659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22660 /* end confdefs.h.  */
22661 $ac_includes_default
22662 int
22663 main ()
22664 {
22665
22666              /* Are we little or big endian?  From Harbison&Steele.  */
22667              union
22668              {
22669                long int l;
22670                char c[sizeof (long int)];
22671              } u;
22672              u.l = 1;
22673              return u.c[sizeof (long int) - 1] == 1;
22674
22675   ;
22676   return 0;
22677 }
22678 _ACEOF
22679 if ac_fn_c_try_run "$LINENO"; then :
22680   ac_cv_c_bigendian=no
22681 else
22682   ac_cv_c_bigendian=yes
22683 fi
22684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22685   conftest.$ac_objext conftest.beam conftest.$ac_ext
22686 fi
22687
22688     fi
22689 fi
22690 :
22691  case $ac_cv_c_bigendian in #(
22692    yes)
22693      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22694    no)
22695      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22696    universal)
22697
22698 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22699
22700      ;; #(
22701    *)
22702      gl_cv_cc_double_expbit0="unknown" ;;
22703  esac
22704
22705
22706 fi
22707 rm -f conftest*
22708
22709
22710 else
22711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h.  */
22713
22714 #include <float.h>
22715 #include <stddef.h>
22716 #include <stdio.h>
22717 #include <string.h>
22718 #define NWORDS \
22719   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22720 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22721 static unsigned int ored_words[NWORDS];
22722 static unsigned int anded_words[NWORDS];
22723 static void add_to_ored_words (double x)
22724 {
22725   memory_double m;
22726   size_t i;
22727   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
22728   memset (&m, 0, sizeof (memory_double));
22729   m.value = x;
22730   for (i = 0; i < NWORDS; i++)
22731     {
22732       ored_words[i] |= m.word[i];
22733       anded_words[i] &= m.word[i];
22734     }
22735 }
22736 int main ()
22737 {
22738   size_t j;
22739   FILE *fp = fopen ("conftest.out", "w");
22740   if (fp == NULL)
22741     return 1;
22742   for (j = 0; j < NWORDS; j++)
22743     anded_words[j] = ~ (unsigned int) 0;
22744   add_to_ored_words (0.25);
22745   add_to_ored_words (0.5);
22746   add_to_ored_words (1.0);
22747   add_to_ored_words (2.0);
22748   add_to_ored_words (4.0);
22749   /* Remove bits that are common (e.g. if representation of the first mantissa
22750      bit is explicit).  */
22751   for (j = 0; j < NWORDS; j++)
22752     ored_words[j] &= ~anded_words[j];
22753   /* Now find the nonzero word.  */
22754   for (j = 0; j < NWORDS; j++)
22755     if (ored_words[j] != 0)
22756       break;
22757   if (j < NWORDS)
22758     {
22759       size_t i;
22760       for (i = j + 1; i < NWORDS; i++)
22761         if (ored_words[i] != 0)
22762           {
22763             fprintf (fp, "unknown");
22764             return (fclose (fp) != 0);
22765           }
22766       for (i = 0; ; i++)
22767         if ((ored_words[j] >> i) & 1)
22768           {
22769             fprintf (fp, "word %d bit %d", (int) j, (int) i);
22770             return (fclose (fp) != 0);
22771           }
22772     }
22773   fprintf (fp, "unknown");
22774   return (fclose (fp) != 0);
22775 }
22776
22777 _ACEOF
22778 if ac_fn_c_try_run "$LINENO"; then :
22779   gl_cv_cc_double_expbit0=`cat conftest.out`
22780 else
22781   gl_cv_cc_double_expbit0="unknown"
22782 fi
22783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22784   conftest.$ac_objext conftest.beam conftest.$ac_ext
22785 fi
22786
22787       rm -f conftest.out
22788
22789 fi
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22791 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
22792   case "$gl_cv_cc_double_expbit0" in
22793     word*bit*)
22794       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22795       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22796
22797 cat >>confdefs.h <<_ACEOF
22798 #define DBL_EXPBIT0_WORD $word
22799 _ACEOF
22800
22801
22802 cat >>confdefs.h <<_ACEOF
22803 #define DBL_EXPBIT0_BIT $bit
22804 _ACEOF
22805
22806       ;;
22807   esac
22808
22809
22810
22811
22812
22813
22814   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22815 do :
22816   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22819   cat >>confdefs.h <<_ACEOF
22820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22821 _ACEOF
22822
22823 fi
22824 done
22825
22826       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22827 "
22828 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
22829   ac_have_decl=1
22830 else
22831   ac_have_decl=0
22832 fi
22833
22834 cat >>confdefs.h <<_ACEOF
22835 #define HAVE_DECL__SNPRINTF $ac_have_decl
22836 _ACEOF
22837
22838
22839
22840   case "$gl_cv_func_snprintf_retval_c99" in
22841     *yes)
22842
22843 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22844
22845       ;;
22846   esac
22847
22848
22849   GNULIB_BTOWC=0;
22850   GNULIB_WCTOB=0;
22851   GNULIB_MBSINIT=0;
22852   GNULIB_MBRTOWC=0;
22853   GNULIB_MBRLEN=0;
22854   GNULIB_MBSRTOWCS=0;
22855   GNULIB_MBSNRTOWCS=0;
22856   GNULIB_WCRTOMB=0;
22857   GNULIB_WCSRTOMBS=0;
22858   GNULIB_WCSNRTOMBS=0;
22859   GNULIB_WCWIDTH=0;
22860   GNULIB_WMEMCHR=0;
22861   GNULIB_WMEMCMP=0;
22862   GNULIB_WMEMCPY=0;
22863   GNULIB_WMEMMOVE=0;
22864   GNULIB_WMEMSET=0;
22865   GNULIB_WCSLEN=0;
22866   GNULIB_WCSNLEN=0;
22867   GNULIB_WCSCPY=0;
22868   GNULIB_WCPCPY=0;
22869   GNULIB_WCSNCPY=0;
22870   GNULIB_WCPNCPY=0;
22871   GNULIB_WCSCAT=0;
22872   GNULIB_WCSNCAT=0;
22873   GNULIB_WCSCMP=0;
22874   GNULIB_WCSNCMP=0;
22875   GNULIB_WCSCASECMP=0;
22876   GNULIB_WCSNCASECMP=0;
22877   GNULIB_WCSCOLL=0;
22878   GNULIB_WCSXFRM=0;
22879   GNULIB_WCSDUP=0;
22880   GNULIB_WCSCHR=0;
22881   GNULIB_WCSRCHR=0;
22882   GNULIB_WCSCSPN=0;
22883   GNULIB_WCSSPN=0;
22884   GNULIB_WCSPBRK=0;
22885   GNULIB_WCSSTR=0;
22886   GNULIB_WCSTOK=0;
22887   GNULIB_WCSWIDTH=0;
22888   GNULIB_WCSFTIME=0;
22889     HAVE_BTOWC=1;
22890   HAVE_MBSINIT=1;
22891   HAVE_MBRTOWC=1;
22892   HAVE_MBRLEN=1;
22893   HAVE_MBSRTOWCS=1;
22894   HAVE_MBSNRTOWCS=1;
22895   HAVE_WCRTOMB=1;
22896   HAVE_WCSRTOMBS=1;
22897   HAVE_WCSNRTOMBS=1;
22898   HAVE_WMEMCHR=1;
22899   HAVE_WMEMCMP=1;
22900   HAVE_WMEMCPY=1;
22901   HAVE_WMEMMOVE=1;
22902   HAVE_WMEMSET=1;
22903   HAVE_WCSLEN=1;
22904   HAVE_WCSNLEN=1;
22905   HAVE_WCSCPY=1;
22906   HAVE_WCPCPY=1;
22907   HAVE_WCSNCPY=1;
22908   HAVE_WCPNCPY=1;
22909   HAVE_WCSCAT=1;
22910   HAVE_WCSNCAT=1;
22911   HAVE_WCSCMP=1;
22912   HAVE_WCSNCMP=1;
22913   HAVE_WCSCASECMP=1;
22914   HAVE_WCSNCASECMP=1;
22915   HAVE_WCSCOLL=1;
22916   HAVE_WCSXFRM=1;
22917   HAVE_WCSDUP=1;
22918   HAVE_WCSCHR=1;
22919   HAVE_WCSRCHR=1;
22920   HAVE_WCSCSPN=1;
22921   HAVE_WCSSPN=1;
22922   HAVE_WCSPBRK=1;
22923   HAVE_WCSSTR=1;
22924   HAVE_WCSTOK=1;
22925   HAVE_WCSWIDTH=1;
22926   HAVE_WCSFTIME=1;
22927   HAVE_DECL_WCTOB=1;
22928   HAVE_DECL_WCWIDTH=1;
22929   REPLACE_MBSTATE_T=0;
22930   REPLACE_BTOWC=0;
22931   REPLACE_WCTOB=0;
22932   REPLACE_MBSINIT=0;
22933   REPLACE_MBRTOWC=0;
22934   REPLACE_MBRLEN=0;
22935   REPLACE_MBSRTOWCS=0;
22936   REPLACE_MBSNRTOWCS=0;
22937   REPLACE_WCRTOMB=0;
22938   REPLACE_WCSRTOMBS=0;
22939   REPLACE_WCSNRTOMBS=0;
22940   REPLACE_WCWIDTH=0;
22941   REPLACE_WCSWIDTH=0;
22942   REPLACE_WCSFTIME=0;
22943
22944
22945             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
22946 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
22947 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
22948   $as_echo_n "(cached) " >&6
22949 else
22950   gl_cv_header_wchar_h_correct_inline=yes
22951      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h.  */
22953
22954        #define wcstod renamed_wcstod
22955 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22956    <wchar.h>.
22957    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22958    included before <wchar.h>.  */
22959 #include <stddef.h>
22960 #include <stdio.h>
22961 #include <time.h>
22962 #include <wchar.h>
22963 extern int zero (void);
22964 int main () { return zero(); }
22965
22966 _ACEOF
22967                               save_ac_compile="$ac_compile"
22968      ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
22969      if echo '#include "conftest.c"' >conftest1.c &&
22970         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22971   (eval $ac_compile) 2>&5
22972   ac_status=$?
22973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22974   test $ac_status = 0; }; then
22975        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22976 /* end confdefs.h.  */
22977
22978          #define wcstod renamed_wcstod
22979 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22980    <wchar.h>.
22981    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22982    included before <wchar.h>.  */
22983 #include <stddef.h>
22984 #include <stdio.h>
22985 #include <time.h>
22986 #include <wchar.h>
22987 int zero (void) { return 0; }
22988
22989 _ACEOF
22990               ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
22991        if echo '#include "conftest.c"' >conftest2.c &&
22992           { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22993   (eval $ac_compile) 2>&5
22994   ac_status=$?
22995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22996   test $ac_status = 0; }; then
22997          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
22998            :
22999          else
23000            gl_cv_header_wchar_h_correct_inline=no
23001          fi
23002        fi
23003      fi
23004      ac_compile="$save_ac_compile"
23005      rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
23006
23007 fi
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
23009 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
23010   if test $gl_cv_header_wchar_h_correct_inline = no; then
23011     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
23012 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
23013 C99 mode. You have four options:
23014   - Add the flag -fgnu89-inline to CC and reconfigure, or
23015   - Fix your include files, using parts of
23016     <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
23017   - Use a gcc version older than 4.3, or
23018   - Don't use the flags -std=c99 or -std=gnu99.
23019 Configuration aborted." "$LINENO" 5
23020   fi
23021
23022
23023
23024
23025
23026   if test $ac_cv_header_crtdefs_h = yes; then
23027     HAVE_CRTDEFS_H=1
23028   else
23029     HAVE_CRTDEFS_H=0
23030   fi
23031
23032
23033
23034    if true; then
23035   GL_COND_LIBTOOL_TRUE=
23036   GL_COND_LIBTOOL_FALSE='#'
23037 else
23038   GL_COND_LIBTOOL_TRUE='#'
23039   GL_COND_LIBTOOL_FALSE=
23040 fi
23041
23042   gl_cond_libtool=true
23043   gl_m4_base='gl/m4'
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053   gl_source_base='gl/lib'
23054
23055
23056   if test $ac_cv_func_alloca_works = no; then
23057     :
23058   fi
23059
23060   # Define an additional variable used in the Makefile substitution.
23061   if test $ac_cv_working_alloca_h = yes; then
23062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
23063 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23064 if ${gl_cv_rpl_alloca+:} false; then :
23065   $as_echo_n "(cached) " >&6
23066 else
23067
23068       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23069 /* end confdefs.h.  */
23070
23071 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23072         Need own alloca
23073 #endif
23074
23075 _ACEOF
23076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23077   $EGREP "Need own alloca" >/dev/null 2>&1; then :
23078   gl_cv_rpl_alloca=yes
23079 else
23080   gl_cv_rpl_alloca=no
23081 fi
23082 rm -f conftest*
23083
23084
23085 fi
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
23087 $as_echo "$gl_cv_rpl_alloca" >&6; }
23088     if test $gl_cv_rpl_alloca = yes; then
23089
23090 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23091
23092       ALLOCA_H=alloca.h
23093     else
23094                   ALLOCA_H=
23095     fi
23096   else
23097     ALLOCA_H=alloca.h
23098   fi
23099
23100    if test -n "$ALLOCA_H"; then
23101   GL_GENERATE_ALLOCA_H_TRUE=
23102   GL_GENERATE_ALLOCA_H_FALSE='#'
23103 else
23104   GL_GENERATE_ALLOCA_H_TRUE='#'
23105   GL_GENERATE_ALLOCA_H_FALSE=
23106 fi
23107
23108
23109
23110
23111
23112
23113
23114 cat >>confdefs.h <<_ACEOF
23115 #define GNULIB_DIRNAME 1
23116 _ACEOF
23117
23118
23119
23120
23121
23122
23123
23124
23125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
23126 $as_echo_n "checking whether // is distinct from /... " >&6; }
23127 if ${gl_cv_double_slash_root+:} false; then :
23128   $as_echo_n "(cached) " >&6
23129 else
23130    if test x"$cross_compiling" = xyes ; then
23131         # When cross-compiling, there is no way to tell whether // is special
23132         # short of a list of hosts.  However, the only known hosts to date
23133         # that have a distinct // are Apollo DomainOS (too old to port to),
23134         # Cygwin, and z/OS.  If anyone knows of another system for which // has
23135         # special semantics and is distinct from /, please report it to
23136         # <bug-gnulib@gnu.org>.
23137         case $host in
23138           *-cygwin | i370-ibm-openedition)
23139             gl_cv_double_slash_root=yes ;;
23140           *)
23141             # Be optimistic and assume that / and // are the same when we
23142             # don't know.
23143             gl_cv_double_slash_root='unknown, assuming no' ;;
23144         esac
23145       else
23146         set x `ls -di / // 2>/dev/null`
23147         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
23148           gl_cv_double_slash_root=no
23149         else
23150           gl_cv_double_slash_root=yes
23151         fi
23152       fi
23153 fi
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
23155 $as_echo "$gl_cv_double_slash_root" >&6; }
23156   if test "$gl_cv_double_slash_root" = yes; then
23157
23158 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
23159
23160   fi
23161
23162
23163
23164
23165
23166
23167
23168           GNULIB_ENVIRON=1
23169
23170
23171
23172
23173
23174 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
23175
23176
23177
23178
23179
23180       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
23181 $as_echo_n "checking for error_at_line... " >&6; }
23182 if ${ac_cv_lib_error_at_line+:} false; then :
23183   $as_echo_n "(cached) " >&6
23184 else
23185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h.  */
23187 #include <error.h>
23188 int
23189 main ()
23190 {
23191 error_at_line (0, 0, "", 0, "an error occurred");
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 if ac_fn_c_try_link "$LINENO"; then :
23197   ac_cv_lib_error_at_line=yes
23198 else
23199   ac_cv_lib_error_at_line=no
23200 fi
23201 rm -f core conftest.err conftest.$ac_objext \
23202     conftest$ac_exeext conftest.$ac_ext
23203 fi
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
23205 $as_echo "$ac_cv_lib_error_at_line" >&6; }
23206
23207   if test $ac_cv_lib_error_at_line = no; then
23208
23209
23210
23211
23212
23213
23214
23215
23216   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
23217
23218
23219
23220   :
23221
23222   fi
23223
23224
23225   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
23226
23227
23228
23229   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243      if test $gl_cv_have_include_next = yes; then
23244        gl_cv_next_fcntl_h='<'fcntl.h'>'
23245      else
23246        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23247 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23248 if ${gl_cv_next_fcntl_h+:} false; then :
23249   $as_echo_n "(cached) " >&6
23250 else
23251
23252
23253
23254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23255 /* end confdefs.h.  */
23256 #include <fcntl.h>
23257 _ACEOF
23258                 case "$host_os" in
23259     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23260     *)    gl_absname_cpp="$ac_cpp" ;;
23261   esac
23262
23263   case "$host_os" in
23264     mingw*)
23265                                           gl_dirsep_regex='[/\\]'
23266       ;;
23267     *)
23268       gl_dirsep_regex='\/'
23269       ;;
23270   esac
23271       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23272   gl_header_literal_regex=`echo 'fcntl.h' \
23273                            | sed -e "$gl_make_literal_regex_sed"`
23274   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23275       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23276       s|^/[^/]|//&|
23277       p
23278       q
23279     }'
23280
23281         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23282   sed -n "$gl_absolute_header_sed"`
23283
23284            gl_header=$gl_cv_absolute_fcntl_h
23285            gl_cv_next_fcntl_h='"'$gl_header'"'
23286
23287
23288 fi
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23290 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23291      fi
23292      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23293
23294      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23295        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23296        gl_next_as_first_directive='<'fcntl.h'>'
23297      else
23298        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23299        gl_next_as_first_directive=$gl_cv_next_fcntl_h
23300      fi
23301      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318   FLOAT_H=
23319   REPLACE_FLOAT_LDBL=0
23320   case "$host_os" in
23321     aix* | beos* | openbsd* | mirbsd* | irix*)
23322       FLOAT_H=float.h
23323       ;;
23324     freebsd* | dragonfly*)
23325       case "$host_cpu" in
23326         i[34567]86 )
23327           FLOAT_H=float.h
23328           ;;
23329         x86_64 )
23330           # On x86_64 systems, the C compiler may still be generating
23331           # 32-bit code.
23332           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23333 /* end confdefs.h.  */
23334 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
23335                   int ok;
23336                  #else
23337                   error fail
23338                  #endif
23339
23340 _ACEOF
23341 if ac_fn_c_try_compile "$LINENO"; then :
23342
23343 else
23344   FLOAT_H=float.h
23345 fi
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347           ;;
23348       esac
23349       ;;
23350     linux*)
23351       case "$host_cpu" in
23352         powerpc*)
23353           FLOAT_H=float.h
23354           ;;
23355       esac
23356       ;;
23357   esac
23358   case "$host_os" in
23359     aix* | freebsd* | dragonfly* | linux*)
23360       if test -n "$FLOAT_H"; then
23361         REPLACE_FLOAT_LDBL=1
23362       fi
23363       ;;
23364   esac
23365
23366     REPLACE_ITOLD=0
23367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
23368 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
23369 if ${gl_cv_func_itold_works+:} false; then :
23370   $as_echo_n "(cached) " >&6
23371 else
23372
23373       if test "$cross_compiling" = yes; then :
23374   case "$host" in
23375            sparc*-*-linux*)
23376              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23377 /* end confdefs.h.  */
23378 #if defined __LP64__ || defined __arch64__
23379                     int ok;
23380                    #else
23381                     error fail
23382                    #endif
23383
23384 _ACEOF
23385 if ac_fn_c_try_compile "$LINENO"; then :
23386   gl_cv_func_itold_works="guessing no"
23387 else
23388   gl_cv_func_itold_works="guessing yes"
23389 fi
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23391              ;;
23392                    # Guess yes on native Windows.
23393            mingw*) gl_cv_func_itold_works="guessing yes" ;;
23394            *)      gl_cv_func_itold_works="guessing yes" ;;
23395          esac
23396
23397 else
23398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23399 /* end confdefs.h.  */
23400
23401 int i = -1;
23402 volatile long double ld;
23403 int main ()
23404 {
23405   ld += i * 1.0L;
23406   if (ld > 0)
23407     return 1;
23408   return 0;
23409 }
23410 _ACEOF
23411 if ac_fn_c_try_run "$LINENO"; then :
23412   gl_cv_func_itold_works=yes
23413 else
23414   gl_cv_func_itold_works=no
23415 fi
23416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23417   conftest.$ac_objext conftest.beam conftest.$ac_ext
23418 fi
23419
23420
23421 fi
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
23423 $as_echo "$gl_cv_func_itold_works" >&6; }
23424   case "$gl_cv_func_itold_works" in
23425     *no)
23426       REPLACE_ITOLD=1
23427                   FLOAT_H=float.h
23428       ;;
23429   esac
23430
23431   if test -n "$FLOAT_H"; then
23432
23433
23434
23435
23436
23437
23438
23439
23440      if test $gl_cv_have_include_next = yes; then
23441        gl_cv_next_float_h='<'float.h'>'
23442      else
23443        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
23444 $as_echo_n "checking absolute name of <float.h>... " >&6; }
23445 if ${gl_cv_next_float_h+:} false; then :
23446   $as_echo_n "(cached) " >&6
23447 else
23448
23449
23450
23451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h.  */
23453 #include <float.h>
23454 _ACEOF
23455                 case "$host_os" in
23456     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23457     *)    gl_absname_cpp="$ac_cpp" ;;
23458   esac
23459
23460   case "$host_os" in
23461     mingw*)
23462                                           gl_dirsep_regex='[/\\]'
23463       ;;
23464     *)
23465       gl_dirsep_regex='\/'
23466       ;;
23467   esac
23468       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23469   gl_header_literal_regex=`echo 'float.h' \
23470                            | sed -e "$gl_make_literal_regex_sed"`
23471   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23472       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23473       s|^/[^/]|//&|
23474       p
23475       q
23476     }'
23477
23478         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23479   sed -n "$gl_absolute_header_sed"`
23480
23481            gl_header=$gl_cv_absolute_float_h
23482            gl_cv_next_float_h='"'$gl_header'"'
23483
23484
23485 fi
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
23487 $as_echo "$gl_cv_next_float_h" >&6; }
23488      fi
23489      NEXT_FLOAT_H=$gl_cv_next_float_h
23490
23491      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23492        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23493        gl_next_as_first_directive='<'float.h'>'
23494      else
23495        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23496        gl_next_as_first_directive=$gl_cv_next_float_h
23497      fi
23498      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
23499
23500
23501
23502
23503   fi
23504
23505    if test -n "$FLOAT_H"; then
23506   GL_GENERATE_FLOAT_H_TRUE=
23507   GL_GENERATE_FLOAT_H_FALSE='#'
23508 else
23509   GL_GENERATE_FLOAT_H_TRUE='#'
23510   GL_GENERATE_FLOAT_H_FALSE=
23511 fi
23512
23513
23514
23515   if test $REPLACE_FLOAT_LDBL = 1; then
23516
23517
23518
23519
23520
23521
23522
23523
23524   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
23525
23526   fi
23527   if test $REPLACE_ITOLD = 1; then
23528
23529
23530
23531
23532
23533
23534
23535
23536   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
23537
23538   fi
23539
23540
23541
23542   ac_found=0
23543   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
23544 "
23545 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
23546   ac_have_decl=1
23547 else
23548   ac_have_decl=0
23549 fi
23550
23551 cat >>confdefs.h <<_ACEOF
23552 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
23553 _ACEOF
23554 if test $ac_have_decl = 1; then :
23555   ac_found=1
23556 fi
23557
23558   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
23559 "
23560 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
23561   ac_have_decl=1
23562 else
23563   ac_have_decl=0
23564 fi
23565
23566 cat >>confdefs.h <<_ACEOF
23567 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
23568 _ACEOF
23569 if test $ac_have_decl = 1; then :
23570   ac_found=1
23571 fi
23572
23573   ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
23574 "
23575 if test "x$ac_cv_have_decl___argv" = xyes; then :
23576   ac_have_decl=1
23577 else
23578   ac_have_decl=0
23579 fi
23580
23581 cat >>confdefs.h <<_ACEOF
23582 #define HAVE_DECL___ARGV $ac_have_decl
23583 _ACEOF
23584 if test $ac_have_decl = 1; then :
23585   ac_found=1
23586 fi
23587
23588
23589   # Incur the cost of this test only if none of the above worked.
23590   if test $ac_found = 0; then
23591     # On OpenBSD 5.1, using the global __progname variable appears to be
23592     # the only way to implement getprogname.
23593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
23594 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
23595 if ${gl_cv_var___progname+:} false; then :
23596   $as_echo_n "(cached) " >&6
23597 else
23598
23599         gl_cv_var___progname=
23600         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h.  */
23602 extern char *__progname;
23603 int
23604 main ()
23605 {
23606 return *__progname;
23607
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 if ac_fn_c_try_link "$LINENO"; then :
23613   gl_cv_var___progname=yes
23614
23615 fi
23616 rm -f core conftest.err conftest.$ac_objext \
23617     conftest$ac_exeext conftest.$ac_ext
23618
23619
23620 fi
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
23622 $as_echo "$gl_cv_var___progname" >&6; }
23623     if test "$gl_cv_var___progname" = yes; then
23624
23625 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
23626
23627     fi
23628   fi
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639   gl_gettimeofday_timezone=void
23640   if test $ac_cv_func_gettimeofday != yes; then
23641     HAVE_GETTIMEOFDAY=0
23642   else
23643
23644
23645
23646
23647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23648 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23649 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
23650   $as_echo_n "(cached) " >&6
23651 else
23652   if test "$cross_compiling" = yes; then :
23653   # When cross-compiling:
23654       case "$host_os" in
23655                        # Guess all is fine on glibc systems.
23656         *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23657                        # Guess no on native Windows.
23658         mingw*)        gl_cv_func_gettimeofday_clobber="guessing no" ;;
23659                        # If we don't know, assume the worst.
23660         *)             gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23661       esac
23662
23663 else
23664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h.  */
23666 #include <string.h>
23667           #include <sys/time.h>
23668           #include <time.h>
23669           #include <stdlib.h>
23670
23671 int
23672 main ()
23673 {
23674
23675           time_t t = 0;
23676           struct tm *lt;
23677           struct tm saved_lt;
23678           struct timeval tv;
23679           lt = localtime (&t);
23680           saved_lt = *lt;
23681           gettimeofday (&tv, NULL);
23682           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23683
23684   ;
23685   return 0;
23686 }
23687 _ACEOF
23688 if ac_fn_c_try_run "$LINENO"; then :
23689   gl_cv_func_gettimeofday_clobber=no
23690 else
23691   gl_cv_func_gettimeofday_clobber=yes
23692 fi
23693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23694   conftest.$ac_objext conftest.beam conftest.$ac_ext
23695 fi
23696
23697 fi
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23699 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23700
23701  case "$gl_cv_func_gettimeofday_clobber" in
23702    *yes)
23703      REPLACE_GETTIMEOFDAY=1
23704
23705 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23706
23707
23708
23709
23710   NEED_LOCALTIME_BUFFER=1
23711   REPLACE_GMTIME=1
23712   REPLACE_LOCALTIME=1
23713
23714      ;;
23715  esac
23716
23717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23718 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23719 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
23720   $as_echo_n "(cached) " >&6
23721 else
23722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723 /* end confdefs.h.  */
23724 #include <sys/time.h>
23725               struct timeval c;
23726               int gettimeofday (struct timeval *restrict, void *restrict);
23727
23728 int
23729 main ()
23730 {
23731 /* glibc uses struct timezone * rather than the POSIX void *
23732                  if _GNU_SOURCE is defined.  However, since the only portable
23733                  use of gettimeofday uses NULL as the second parameter, and
23734                  since the glibc definition is actually more typesafe, it is
23735                  not worth wrapping this to get a compliant signature.  */
23736               int (*f) (struct timeval *restrict, void *restrict)
23737                 = gettimeofday;
23738               int x = f (&c, 0);
23739               return !(x | c.tv_sec | c.tv_usec);
23740
23741   ;
23742   return 0;
23743 }
23744 _ACEOF
23745 if ac_fn_c_try_compile "$LINENO"; then :
23746   gl_cv_func_gettimeofday_posix_signature=yes
23747 else
23748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23749 /* end confdefs.h.  */
23750 #include <sys/time.h>
23751 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23752
23753 int
23754 main ()
23755 {
23756
23757   ;
23758   return 0;
23759 }
23760 _ACEOF
23761 if ac_fn_c_try_compile "$LINENO"; then :
23762   gl_cv_func_gettimeofday_posix_signature=almost
23763 else
23764   gl_cv_func_gettimeofday_posix_signature=no
23765 fi
23766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 fi
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769 fi
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23771 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23772     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
23773       gl_gettimeofday_timezone='struct timezone'
23774     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23775       REPLACE_GETTIMEOFDAY=1
23776     fi
23777         if test $REPLACE_STRUCT_TIMEVAL = 1; then
23778       REPLACE_GETTIMEOFDAY=1
23779     fi
23780             case "$host_os" in
23781       mingw*) REPLACE_GETTIMEOFDAY=1 ;;
23782     esac
23783   fi
23784
23785 cat >>confdefs.h <<_ACEOF
23786 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23787 _ACEOF
23788
23789
23790   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
23791
23792
23793
23794
23795
23796
23797
23798
23799   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23800
23801     :
23802   fi
23803
23804
23805
23806
23807
23808           GNULIB_GETTIMEOFDAY=1
23809
23810
23811
23812
23813
23814 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
23815
23816
23817
23818
23819
23820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
23821 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
23822 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
23823   $as_echo_n "(cached) " >&6
23824 else
23825   gl_cv_prog_c_ignore_unused_libraries=none
23826      gl_saved_ldflags=$LDFLAGS
23827      gl_saved_libs=$LIBS
23828      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
23829      # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
23830      LIBS="$LIBS -lm"
23831      # Use long option sequences like '-z ignore' to test for the feature,
23832      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
23833      # GCC + binutils likes '-Wl,--as-needed'.
23834      # GCC + Solaris ld likes '-Wl,-z,ignore'.
23835      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
23836      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
23837      # native cc issues annoying warnings and then ignores it,
23838      # which would cause us to incorrectly conclude that it worked.
23839      for gl_flags in  '-Wl,--as-needed' \
23840   '-Wl,-z,ignore' \
23841   '-z ignore'
23842
23843      do
23844        LDFLAGS="$gl_flags $LDFLAGS"
23845        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23846 /* end confdefs.h.  */
23847
23848 int
23849 main ()
23850 {
23851
23852   ;
23853   return 0;
23854 }
23855 _ACEOF
23856 if ac_fn_c_try_link "$LINENO"; then :
23857   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
23858 fi
23859 rm -f core conftest.err conftest.$ac_objext \
23860     conftest$ac_exeext conftest.$ac_ext
23861        LDFLAGS=$gl_saved_ldflags
23862        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
23863          break
23864      done
23865      LIBS=$gl_saved_libs
23866
23867 fi
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
23869 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
23870   IGNORE_UNUSED_LIBRARIES_CFLAGS=
23871   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
23872     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
23873   fi
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886   gl_LIBOBJS="$gl_LIBOBJS localtime-buffer.$ac_objext"
23887
23888
23889
23890   if test "$gl_threads_api" = posix; then
23891     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
23892     # pthread_rwlock_* functions.
23893     has_rwlock=false
23894     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
23895 "
23896 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
23897   has_rwlock=true
23898
23899 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
23900
23901 fi
23902
23903     if $has_rwlock; then
23904
23905
23906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
23907 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
23908 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
23909   $as_echo_n "(cached) " >&6
23910 else
23911   save_LIBS="$LIBS"
23912      LIBS="$LIBS $LIBMULTITHREAD"
23913      if test "$cross_compiling" = yes; then :
23914   gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
23915 else
23916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h.  */
23918
23919 #include <errno.h>
23920 #include <pthread.h>
23921 #include <stdlib.h>
23922 #include <unistd.h>
23923
23924 #define SUCCEED() exit (0)
23925 #define FAILURE() exit (1)
23926 #define UNEXPECTED(n) (exit (10 + (n)))
23927
23928 /* The main thread creates the waiting writer and the requesting reader threads
23929    in the default way; this guarantees that they have the same priority.
23930    We can reuse the main thread as first reader thread.  */
23931
23932 static pthread_rwlock_t lock;
23933 static pthread_t reader1;
23934 static pthread_t writer;
23935 static pthread_t reader2;
23936 static pthread_t timer;
23937 /* Used to pass control from writer to reader2 and from reader2 to timer,
23938    as in a relay race.
23939    Passing control from one running thread to another running thread
23940    is most likely faster than to create the second thread.  */
23941 static pthread_mutex_t baton;
23942
23943 static void *
23944 timer_func (void *ignored)
23945 {
23946   /* Step 13 (can be before or after step 12):
23947      The timer thread takes the baton, then waits a moment to make sure
23948      it can tell whether the second reader thread is blocked at step 12.  */
23949   if (pthread_mutex_lock (&baton))
23950     UNEXPECTED (13);
23951   usleep (100000);
23952   /* By the time we get here, it's clear that the second reader thread is
23953      blocked at step 12.  This is the desired behaviour.  */
23954   SUCCEED ();
23955 }
23956
23957 static void *
23958 reader2_func (void *ignored)
23959 {
23960   int err;
23961
23962   /* Step 8 (can be before or after step 7):
23963      The second reader thread takes the baton, then waits a moment to make sure
23964      the writer thread has reached step 7.  */
23965   if (pthread_mutex_lock (&baton))
23966     UNEXPECTED (8);
23967   usleep (100000);
23968   /* Step 9: The second reader thread requests the lock.  */
23969   err = pthread_rwlock_tryrdlock (&lock);
23970   if (err == 0)
23971     FAILURE ();
23972   else if (err != EBUSY)
23973     UNEXPECTED (9);
23974   /* Step 10: Launch a timer, to test whether the next call blocks.  */
23975   if (pthread_create (&timer, NULL, timer_func, NULL))
23976     UNEXPECTED (10);
23977   /* Step 11: Release the baton.  */
23978   if (pthread_mutex_unlock (&baton))
23979     UNEXPECTED (11);
23980   /* Step 12: The second reader thread requests the lock.  */
23981   err = pthread_rwlock_rdlock (&lock);
23982   if (err == 0)
23983     FAILURE ();
23984   else
23985     UNEXPECTED (12);
23986 }
23987
23988 static void *
23989 writer_func (void *ignored)
23990 {
23991   /* Step 4: Take the baton, so that the second reader thread does not go ahead
23992      too early.  */
23993   if (pthread_mutex_lock (&baton))
23994     UNEXPECTED (4);
23995   /* Step 5: Create the second reader thread.  */
23996   if (pthread_create (&reader2, NULL, reader2_func, NULL))
23997     UNEXPECTED (5);
23998   /* Step 6: Release the baton.  */
23999   if (pthread_mutex_unlock (&baton))
24000     UNEXPECTED (6);
24001   /* Step 7: The writer thread requests the lock.  */
24002   if (pthread_rwlock_wrlock (&lock))
24003     UNEXPECTED (7);
24004   return NULL;
24005 }
24006
24007 int
24008 main ()
24009 {
24010   reader1 = pthread_self ();
24011
24012   /* Step 1: The main thread initializes the lock and the baton.  */
24013   if (pthread_rwlock_init (&lock, NULL))
24014     UNEXPECTED (1);
24015   if (pthread_mutex_init (&baton, NULL))
24016     UNEXPECTED (1);
24017   /* Step 2: The main thread acquires the lock as a reader.  */
24018   if (pthread_rwlock_rdlock (&lock))
24019     UNEXPECTED (2);
24020   /* Step 3: Create the writer thread.  */
24021   if (pthread_create (&writer, NULL, writer_func, NULL))
24022     UNEXPECTED (3);
24023   /* Job done.  Go to sleep.  */
24024   for (;;)
24025     {
24026       sleep (1);
24027     }
24028 }
24029
24030 _ACEOF
24031 if ac_fn_c_try_run "$LINENO"; then :
24032   gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
24033 else
24034   gl_cv_pthread_rwlock_rdlock_prefer_writer=no
24035 fi
24036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24037   conftest.$ac_objext conftest.beam conftest.$ac_ext
24038 fi
24039
24040      LIBS="$save_LIBS"
24041
24042 fi
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24044 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24045   case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24046     *yes)
24047
24048 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24049
24050       ;;
24051   esac
24052
24053     fi
24054     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24056 /* end confdefs.h.  */
24057
24058       #include <pthread.h>
24059 int
24060 main ()
24061 {
24062
24063 #if __FreeBSD__ == 4
24064 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24065 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24066        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24067 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24068 #else
24069 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24070 return !x;
24071 #endif
24072
24073   ;
24074   return 0;
24075 }
24076 _ACEOF
24077 if ac_fn_c_try_compile "$LINENO"; then :
24078
24079 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24080
24081 fi
24082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083   fi
24084   :
24085
24086
24087
24088 cat >>confdefs.h <<_ACEOF
24089 #define GNULIB_LOCK 1
24090 _ACEOF
24091
24092
24093
24094
24095
24096
24097   if test $ac_cv_func_lstat = yes; then
24098
24099     case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
24100       solaris* | *no)
24101         REPLACE_LSTAT=1
24102         ;;
24103     esac
24104   else
24105     HAVE_LSTAT=0
24106   fi
24107
24108   if test $REPLACE_LSTAT = 1; then
24109
24110
24111
24112
24113
24114
24115
24116
24117   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24118
24119     :
24120   fi
24121
24122
24123
24124
24125
24126           GNULIB_LSTAT=1
24127
24128
24129
24130
24131
24132 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
24133
24134
24135
24136
24137
24138
24139   if test $gl_cv_func_malloc_posix = yes; then
24140
24141 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24142
24143   else
24144     REPLACE_MALLOC=1
24145   fi
24146
24147   if test $REPLACE_MALLOC = 1; then
24148
24149
24150
24151
24152
24153
24154
24155
24156   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24157
24158   fi
24159
24160
24161
24162
24163
24164           GNULIB_MALLOC_POSIX=1
24165
24166
24167
24168
24169
24170 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24171
24172
24173
24174
24175
24176
24177
24178
24179   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
24180
24181
24182
24183
24184
24185
24186
24187
24188   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24189
24190
24191   for ac_header in bp-sym.h
24192 do :
24193   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24194 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
24195   cat >>confdefs.h <<_ACEOF
24196 #define HAVE_BP_SYM_H 1
24197 _ACEOF
24198
24199 fi
24200
24201 done
24202
24203
24204   fi
24205
24206
24207
24208
24209
24210           GNULIB_MEMCHR=1
24211
24212
24213
24214
24215
24216 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24217
24218
24219
24220
24221
24222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24223 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
24224 if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
24225   $as_echo_n "(cached) " >&6
24226 else
24227   rm -rf conftest.dir
24228       if test "$cross_compiling" = yes; then :
24229   case "$host_os" in
24230                           # Guess yes on Linux systems.
24231          linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24232                           # Guess yes on glibc systems.
24233          *-gnu* | gnu*)   gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24234                           # Guess yes on MSVC, no on mingw.
24235          mingw*)          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24236 /* end confdefs.h.  */
24237
24238 #ifdef _MSC_VER
24239  Known
24240 #endif
24241
24242 _ACEOF
24243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24244   $EGREP "Known" >/dev/null 2>&1; then :
24245   gl_cv_func_mkdir_trailing_slash_works="guessing yes"
24246 else
24247   gl_cv_func_mkdir_trailing_slash_works="guessing no"
24248 fi
24249 rm -f conftest*
24250
24251                           ;;
24252                           # If we don't know, assume the worst.
24253          *)               gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
24254        esac
24255
24256 else
24257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24258 /* end confdefs.h.  */
24259
24260 #       include <sys/types.h>
24261 #       include <sys/stat.h>
24262
24263 int
24264 main ()
24265 {
24266 return mkdir ("conftest.dir/", 0700);
24267   ;
24268   return 0;
24269 }
24270 _ACEOF
24271 if ac_fn_c_try_run "$LINENO"; then :
24272   gl_cv_func_mkdir_trailing_slash_works=yes
24273 else
24274   gl_cv_func_mkdir_trailing_slash_works=no
24275 fi
24276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24277   conftest.$ac_objext conftest.beam conftest.$ac_ext
24278 fi
24279
24280     rm -rf conftest.dir
24281
24282
24283 fi
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24285 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24286   case "$gl_cv_func_mkdir_trailing_slash_works" in
24287     *yes) ;;
24288     *)
24289       REPLACE_MKDIR=1
24290       ;;
24291   esac
24292
24293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24294 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
24295 if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
24296   $as_echo_n "(cached) " >&6
24297 else
24298   rm -rf conftest.dir
24299       if test "$cross_compiling" = yes; then :
24300   case "$host_os" in
24301                         # Guess yes on glibc systems.
24302          *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
24303                         # Guess no on native Windows.
24304          mingw*)        gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24305                         # If we don't know, assume the worst.
24306          *)             gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24307        esac
24308
24309 else
24310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h.  */
24312
24313 #       include <sys/types.h>
24314 #       include <sys/stat.h>
24315
24316 int
24317 main ()
24318 {
24319 return !mkdir ("conftest.dir/./", 0700);
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 if ac_fn_c_try_run "$LINENO"; then :
24325   gl_cv_func_mkdir_trailing_dot_works=yes
24326 else
24327   gl_cv_func_mkdir_trailing_dot_works=no
24328 fi
24329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24330   conftest.$ac_objext conftest.beam conftest.$ac_ext
24331 fi
24332
24333     rm -rf conftest.dir
24334
24335
24336 fi
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
24338 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
24339   case "$gl_cv_func_mkdir_trailing_dot_works" in
24340     *yes) ;;
24341     *)
24342       REPLACE_MKDIR=1
24343
24344 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
24345
24346       ;;
24347   esac
24348
24349   if test $REPLACE_MKDIR = 1; then
24350
24351
24352
24353
24354
24355
24356
24357
24358   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
24359
24360   fi
24361
24362
24363   for ac_func in mkdtemp
24364 do :
24365   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
24366 if test "x$ac_cv_func_mkdtemp" = xyes; then :
24367   cat >>confdefs.h <<_ACEOF
24368 #define HAVE_MKDTEMP 1
24369 _ACEOF
24370
24371 fi
24372 done
24373
24374   if test $ac_cv_func_mkdtemp = no; then
24375     HAVE_MKDTEMP=0
24376   fi
24377
24378   if test $HAVE_MKDTEMP = 0; then
24379
24380
24381
24382
24383
24384
24385
24386
24387   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
24388
24389     :
24390
24391   fi
24392
24393
24394
24395
24396
24397           GNULIB_MKDTEMP=1
24398
24399
24400
24401
24402
24403 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
24404
24405
24406
24407
24408   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24409
24410
24411
24412
24413
24414
24415
24416
24417   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
24418
24419   fi
24420
24421   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24422
24423
24424
24425
24426
24427
24428
24429
24430   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24431
24432   fi
24433
24434
24435 cat >>confdefs.h <<_ACEOF
24436 #define GNULIB_MSVC_NOTHROW 1
24437 _ACEOF
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447   for ac_func in raise
24448 do :
24449   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
24450 if test "x$ac_cv_func_raise" = xyes; then :
24451   cat >>confdefs.h <<_ACEOF
24452 #define HAVE_RAISE 1
24453 _ACEOF
24454
24455 fi
24456 done
24457
24458   if test $ac_cv_func_raise = no; then
24459     HAVE_RAISE=0
24460   else
24461
24462
24463       if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24464         REPLACE_RAISE=1
24465       fi
24466
24467
24468
24469
24470
24471   if test $gl_cv_type_sigset_t = yes; then
24472     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24473 if test "x$ac_cv_func_sigprocmask" = xyes; then :
24474   gl_cv_func_sigprocmask=1
24475 fi
24476
24477   fi
24478   if test -z "$gl_cv_func_sigprocmask"; then
24479     HAVE_POSIX_SIGNALBLOCKING=0
24480   fi
24481
24482       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
24483         :
24484       fi
24485
24486   fi
24487
24488   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
24489
24490
24491
24492
24493
24494
24495
24496
24497   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
24498
24499     :
24500   fi
24501
24502
24503
24504
24505
24506           GNULIB_RAISE=1
24507
24508
24509
24510
24511
24512 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
24513
24514
24515
24516
24517
24518
24519
24520     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24521       REPLACE_READ=1
24522     fi
24523
24524
24525
24526   if test $REPLACE_READ = 1; then
24527
24528
24529
24530
24531
24532
24533
24534
24535   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
24536
24537     :
24538   fi
24539
24540
24541
24542
24543
24544           GNULIB_READ=1
24545
24546
24547
24548
24549
24550 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564      if test $ac_cv_func_setenv = no; then
24565     HAVE_SETENV=0
24566   else
24567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
24568 $as_echo_n "checking whether setenv validates arguments... " >&6; }
24569 if ${gl_cv_func_setenv_works+:} false; then :
24570   $as_echo_n "(cached) " >&6
24571 else
24572   if test "$cross_compiling" = yes; then :
24573   case "$host_os" in
24574                         # Guess yes on glibc systems.
24575          *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
24576                         # If we don't know, assume the worst.
24577          *)             gl_cv_func_setenv_works="guessing no" ;;
24578        esac
24579
24580 else
24581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24582 /* end confdefs.h.  */
24583
24584        #include <stdlib.h>
24585        #include <errno.h>
24586        #include <string.h>
24587
24588 int
24589 main ()
24590 {
24591
24592        int result = 0;
24593        {
24594          if (setenv ("", "", 0) != -1)
24595            result |= 1;
24596          else if (errno != EINVAL)
24597            result |= 2;
24598        }
24599        {
24600          if (setenv ("a", "=", 1) != 0)
24601            result |= 4;
24602          else if (strcmp (getenv ("a"), "=") != 0)
24603            result |= 8;
24604        }
24605        return result;
24606
24607   ;
24608   return 0;
24609 }
24610 _ACEOF
24611 if ac_fn_c_try_run "$LINENO"; then :
24612   gl_cv_func_setenv_works=yes
24613 else
24614   gl_cv_func_setenv_works=no
24615 fi
24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24617   conftest.$ac_objext conftest.beam conftest.$ac_ext
24618 fi
24619
24620 fi
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
24622 $as_echo "$gl_cv_func_setenv_works" >&6; }
24623     case "$gl_cv_func_setenv_works" in
24624       *yes) ;;
24625       *)
24626         REPLACE_SETENV=1
24627         ;;
24628     esac
24629   fi
24630
24631   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
24632
24633
24634
24635
24636
24637
24638
24639
24640   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
24641
24642   fi
24643
24644
24645
24646
24647
24648           GNULIB_SETENV=1
24649
24650
24651
24652
24653
24654 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
24655
24656
24657
24658
24659
24660
24661   if test $ac_cv_func_sigaction = yes; then
24662     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
24663 "
24664 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
24665
24666 cat >>confdefs.h <<_ACEOF
24667 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
24668 _ACEOF
24669
24670
24671 fi
24672
24673     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
24674       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
24675     fi
24676   else
24677     HAVE_SIGACTION=0
24678   fi
24679
24680   if test $HAVE_SIGACTION = 0; then
24681
24682
24683
24684
24685
24686
24687
24688
24689   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
24690
24691
24692
24693
24694
24695
24696
24697   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
24698 #include <signal.h>
24699
24700 "
24701 if test "x$ac_cv_type_siginfo_t" = xyes; then :
24702
24703 cat >>confdefs.h <<_ACEOF
24704 #define HAVE_SIGINFO_T 1
24705 _ACEOF
24706
24707
24708 fi
24709
24710   if test $ac_cv_type_siginfo_t = no; then
24711     HAVE_SIGINFO_T=0
24712   fi
24713
24714   fi
24715
24716
24717
24718
24719
24720           GNULIB_SIGACTION=1
24721
24722
24723
24724
24725
24726 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741      if test $gl_cv_have_include_next = yes; then
24742        gl_cv_next_signal_h='<'signal.h'>'
24743      else
24744        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
24745 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
24746 if ${gl_cv_next_signal_h+:} false; then :
24747   $as_echo_n "(cached) " >&6
24748 else
24749
24750
24751
24752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753 /* end confdefs.h.  */
24754 #include <signal.h>
24755 _ACEOF
24756                 case "$host_os" in
24757     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24758     *)    gl_absname_cpp="$ac_cpp" ;;
24759   esac
24760
24761   case "$host_os" in
24762     mingw*)
24763                                           gl_dirsep_regex='[/\\]'
24764       ;;
24765     *)
24766       gl_dirsep_regex='\/'
24767       ;;
24768   esac
24769       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24770   gl_header_literal_regex=`echo 'signal.h' \
24771                            | sed -e "$gl_make_literal_regex_sed"`
24772   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24773       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24774       s|^/[^/]|//&|
24775       p
24776       q
24777     }'
24778
24779         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24780   sed -n "$gl_absolute_header_sed"`
24781
24782            gl_header=$gl_cv_absolute_signal_h
24783            gl_cv_next_signal_h='"'$gl_header'"'
24784
24785
24786 fi
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
24788 $as_echo "$gl_cv_next_signal_h" >&6; }
24789      fi
24790      NEXT_SIGNAL_H=$gl_cv_next_signal_h
24791
24792      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24793        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24794        gl_next_as_first_directive='<'signal.h'>'
24795      else
24796        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24797        gl_next_as_first_directive=$gl_cv_next_signal_h
24798      fi
24799      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
24800
24801
24802
24803
24804
24805 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
24806 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
24807   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
24808 #include <signal.h>
24809
24810 "
24811 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
24812
24813 else
24814   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
24815 fi
24816
24817
24818
24819
24820
24821
24822
24823   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24824 #include <signal.h>
24825
24826 "
24827 if test "x$ac_cv_type_sighandler_t" = xyes; then :
24828
24829 else
24830   HAVE_SIGHANDLER_T=0
24831 fi
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841   if test $gl_cv_type_sigset_t = yes; then
24842     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24843 if test "x$ac_cv_func_sigprocmask" = xyes; then :
24844   gl_cv_func_sigprocmask=1
24845 fi
24846
24847   fi
24848   if test -z "$gl_cv_func_sigprocmask"; then
24849     HAVE_POSIX_SIGNALBLOCKING=0
24850   fi
24851
24852   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
24853
24854
24855
24856
24857
24858
24859
24860
24861   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
24862
24863     :
24864   fi
24865
24866
24867
24868
24869
24870           GNULIB_SIGPROCMASK=1
24871
24872
24873
24874
24875
24876 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
24877
24878
24879
24880
24881   for ac_header in stdint.h
24882 do :
24883   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24884 if test "x$ac_cv_header_stdint_h" = xyes; then :
24885   cat >>confdefs.h <<_ACEOF
24886 #define HAVE_STDINT_H 1
24887 _ACEOF
24888
24889 fi
24890
24891 done
24892
24893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
24894 $as_echo_n "checking for SIZE_MAX... " >&6; }
24895 if ${gl_cv_size_max+:} false; then :
24896   $as_echo_n "(cached) " >&6
24897 else
24898
24899     gl_cv_size_max=
24900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24901 /* end confdefs.h.  */
24902
24903 #include <limits.h>
24904 #if HAVE_STDINT_H
24905 #include <stdint.h>
24906 #endif
24907 #ifdef SIZE_MAX
24908 Found it
24909 #endif
24910
24911 _ACEOF
24912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24913   $EGREP "Found it" >/dev/null 2>&1; then :
24914   gl_cv_size_max=yes
24915 fi
24916 rm -f conftest*
24917
24918     if test -z "$gl_cv_size_max"; then
24919                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
24920 #include <limits.h>"; then :
24921
24922 else
24923   size_t_bits_minus_1=
24924 fi
24925
24926       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
24927
24928 else
24929   fits_in_uint=
24930 fi
24931
24932       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
24933         if test $fits_in_uint = 1; then
24934                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24935 /* end confdefs.h.  */
24936 #include <stddef.h>
24937                  extern size_t foo;
24938                  extern unsigned long foo;
24939
24940 int
24941 main ()
24942 {
24943
24944   ;
24945   return 0;
24946 }
24947 _ACEOF
24948 if ac_fn_c_try_compile "$LINENO"; then :
24949   fits_in_uint=0
24950 fi
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952         fi
24953                                 if test $fits_in_uint = 1; then
24954           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
24955         else
24956           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
24957         fi
24958       else
24959                 gl_cv_size_max='((size_t)~(size_t)0)'
24960       fi
24961     fi
24962
24963 fi
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
24965 $as_echo "$gl_cv_size_max" >&6; }
24966   if test "$gl_cv_size_max" != yes; then
24967
24968 cat >>confdefs.h <<_ACEOF
24969 #define SIZE_MAX $gl_cv_size_max
24970 _ACEOF
24971
24972   fi
24973
24974
24975
24976
24977   gl_cv_func_snprintf_usable=no
24978   for ac_func in snprintf
24979 do :
24980   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
24981 if test "x$ac_cv_func_snprintf" = xyes; then :
24982   cat >>confdefs.h <<_ACEOF
24983 #define HAVE_SNPRINTF 1
24984 _ACEOF
24985
24986 fi
24987 done
24988
24989   if test $ac_cv_func_snprintf = yes; then
24990
24991
24992
24993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
24994 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
24995 if ${gl_cv_func_snprintf_size1+:} false; then :
24996   $as_echo_n "(cached) " >&6
24997 else
24998
24999       if test "$cross_compiling" = yes; then :
25000   case "$host_os" in
25001                             # Guess yes on Android.
25002            linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
25003                             # Guess yes on native Windows.
25004            mingw*)          gl_cv_func_snprintf_size1="guessing yes" ;;
25005            *)               gl_cv_func_snprintf_size1="guessing yes" ;;
25006          esac
25007
25008 else
25009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h.  */
25011
25012 #include <stdio.h>
25013 #if HAVE_SNPRINTF
25014 # define my_snprintf snprintf
25015 #else
25016 # include <stdarg.h>
25017 static int my_snprintf (char *buf, int size, const char *format, ...)
25018 {
25019   va_list args;
25020   int ret;
25021   va_start (args, format);
25022   ret = vsnprintf (buf, size, format, args);
25023   va_end (args);
25024   return ret;
25025 }
25026 #endif
25027 int main()
25028 {
25029   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25030   my_snprintf (buf, 1, "%d", 12345);
25031   return buf[1] != 'E';
25032 }
25033 _ACEOF
25034 if ac_fn_c_try_run "$LINENO"; then :
25035   gl_cv_func_snprintf_size1=yes
25036 else
25037   gl_cv_func_snprintf_size1=no
25038 fi
25039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25040   conftest.$ac_objext conftest.beam conftest.$ac_ext
25041 fi
25042
25043
25044 fi
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25046 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
25047
25048     case "$gl_cv_func_snprintf_size1" in
25049       *yes)
25050
25051         case "$gl_cv_func_snprintf_retval_c99" in
25052           *yes)
25053
25054
25055      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25056 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25057 if ${gl_cv_func_printf_positions+:} false; then :
25058   $as_echo_n "(cached) " >&6
25059 else
25060
25061       if test "$cross_compiling" = yes; then :
25062
25063          case "$host_os" in
25064            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25065                             gl_cv_func_printf_positions="guessing no";;
25066            beos*)           gl_cv_func_printf_positions="guessing no";;
25067                             # Guess yes on Android.
25068            linux*-android*) gl_cv_func_printf_positions="guessing yes";;
25069                             # Guess no on native Windows.
25070            mingw* | pw*)    gl_cv_func_printf_positions="guessing no";;
25071            *)               gl_cv_func_printf_positions="guessing yes";;
25072          esac
25073
25074 else
25075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25076 /* end confdefs.h.  */
25077
25078 #include <stdio.h>
25079 #include <string.h>
25080 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25081    dollar expansion (possibly an autoconf bug).  */
25082 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25083 static char buf[100];
25084 int main ()
25085 {
25086   sprintf (buf, format, 33, 55);
25087   return (strcmp (buf, "55 33") != 0);
25088 }
25089 _ACEOF
25090 if ac_fn_c_try_run "$LINENO"; then :
25091   gl_cv_func_printf_positions=yes
25092 else
25093   gl_cv_func_printf_positions=no
25094 fi
25095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25096   conftest.$ac_objext conftest.beam conftest.$ac_ext
25097 fi
25098
25099
25100 fi
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25102 $as_echo "$gl_cv_func_printf_positions" >&6; }
25103
25104             case "$gl_cv_func_printf_positions" in
25105               *yes)
25106                 gl_cv_func_snprintf_usable=yes
25107                 ;;
25108             esac
25109             ;;
25110         esac
25111         ;;
25112     esac
25113   fi
25114   if test $gl_cv_func_snprintf_usable = no; then
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
25126
25127   if test $ac_cv_func_snprintf = yes; then
25128     REPLACE_SNPRINTF=1
25129   else
25130
25131     if test $ac_cv_have_decl_snprintf = yes; then
25132                         REPLACE_SNPRINTF=1
25133     fi
25134   fi
25135   :
25136
25137   fi
25138
25139   if test $ac_cv_have_decl_snprintf = no; then
25140     HAVE_DECL_SNPRINTF=0
25141   fi
25142
25143
25144
25145
25146
25147
25148           GNULIB_SNPRINTF=1
25149
25150
25151
25152
25153
25154 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
25155
25156
25157
25158
25159
25160 cat >>confdefs.h <<_ACEOF
25161 #define GNULIB_SNPRINTF 1
25162 _ACEOF
25163
25164
25165
25166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25167 $as_echo_n "checking for ssize_t... " >&6; }
25168 if ${gt_cv_ssize_t+:} false; then :
25169   $as_echo_n "(cached) " >&6
25170 else
25171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h.  */
25173 #include <sys/types.h>
25174 int
25175 main ()
25176 {
25177 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25178             return !x;
25179   ;
25180   return 0;
25181 }
25182 _ACEOF
25183 if ac_fn_c_try_compile "$LINENO"; then :
25184   gt_cv_ssize_t=yes
25185 else
25186   gt_cv_ssize_t=no
25187 fi
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 fi
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25191 $as_echo "$gt_cv_ssize_t" >&6; }
25192   if test $gt_cv_ssize_t = no; then
25193
25194 $as_echo "#define ssize_t int" >>confdefs.h
25195
25196   fi
25197
25198
25199
25200
25201
25202   case "$host_os" in
25203     mingw*)
25204                   REPLACE_STAT=1
25205       ;;
25206     *)
25207                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25208 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25209 if ${gl_cv_func_stat_file_slash+:} false; then :
25210   $as_echo_n "(cached) " >&6
25211 else
25212   touch conftest.tmp
25213          # Assume that if we have lstat, we can also check symlinks.
25214          if test $ac_cv_func_lstat = yes; then
25215            ln -s conftest.tmp conftest.lnk
25216          fi
25217          if test "$cross_compiling" = yes; then :
25218   case "$host_os" in
25219                                # Guess yes on Linux systems.
25220               linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
25221                                # Guess yes on glibc systems.
25222               *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
25223                                # If we don't know, assume the worst.
25224               *)               gl_cv_func_stat_file_slash="guessing no" ;;
25225             esac
25226
25227 else
25228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h.  */
25230 #include <sys/stat.h>
25231
25232 int
25233 main ()
25234 {
25235 int result = 0;
25236                struct stat st;
25237                if (!stat ("conftest.tmp/", &st))
25238                  result |= 1;
25239 #if HAVE_LSTAT
25240                if (!stat ("conftest.lnk/", &st))
25241                  result |= 2;
25242 #endif
25243                return result;
25244
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 if ac_fn_c_try_run "$LINENO"; then :
25250   gl_cv_func_stat_file_slash=yes
25251 else
25252   gl_cv_func_stat_file_slash=no
25253 fi
25254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25255   conftest.$ac_objext conftest.beam conftest.$ac_ext
25256 fi
25257
25258          rm -f conftest.tmp conftest.lnk
25259 fi
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25261 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25262       case $gl_cv_func_stat_file_slash in
25263         *no)
25264           REPLACE_STAT=1
25265
25266 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25267 ;;
25268       esac
25269       case $host_os in
25270                 solaris*)
25271           REPLACE_FSTAT=1 ;;
25272       esac
25273       ;;
25274   esac
25275
25276   if test $REPLACE_STAT = 1; then
25277
25278
25279
25280
25281
25282
25283
25284
25285   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25286
25287     case "$host_os" in
25288       mingw*)
25289
25290
25291
25292
25293
25294
25295
25296
25297   gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
25298
25299         ;;
25300     esac
25301
25302
25303   :
25304
25305   fi
25306
25307
25308
25309
25310
25311           GNULIB_STAT=1
25312
25313
25314
25315
25316
25317 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
25318
25319
25320
25321
25322
25323
25324
25325   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>
25326      #include <sys/stat.h>
25327 "
25328 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
25329
25330 cat >>confdefs.h <<_ACEOF
25331 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25332 _ACEOF
25333
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25335 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25336 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
25337   $as_echo_n "(cached) " >&6
25338 else
25339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25340 /* end confdefs.h.  */
25341
25342             #include <sys/types.h>
25343             #include <sys/stat.h>
25344             #if HAVE_SYS_TIME_H
25345             # include <sys/time.h>
25346             #endif
25347             #include <time.h>
25348             struct timespec ts;
25349             struct stat st;
25350
25351 int
25352 main ()
25353 {
25354
25355             st.st_atim = ts;
25356
25357   ;
25358   return 0;
25359 }
25360 _ACEOF
25361 if ac_fn_c_try_compile "$LINENO"; then :
25362   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25363 else
25364   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25365 fi
25366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25367 fi
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25369 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25370      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25371
25372 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25373
25374      fi
25375 else
25376   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>
25377         #include <sys/stat.h>
25378 "
25379 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
25380
25381 cat >>confdefs.h <<_ACEOF
25382 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25383 _ACEOF
25384
25385
25386 else
25387   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25388            #include <sys/stat.h>
25389 "
25390 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
25391
25392 cat >>confdefs.h <<_ACEOF
25393 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25394 _ACEOF
25395
25396
25397 else
25398   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>
25399               #include <sys/stat.h>
25400 "
25401 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
25402
25403 cat >>confdefs.h <<_ACEOF
25404 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25405 _ACEOF
25406
25407
25408 fi
25409
25410 fi
25411
25412 fi
25413
25414 fi
25415
25416
25417
25418
25419
25420   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>
25421      #include <sys/stat.h>
25422 "
25423 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
25424
25425 cat >>confdefs.h <<_ACEOF
25426 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25427 _ACEOF
25428
25429
25430 else
25431   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25432         #include <sys/stat.h>
25433 "
25434 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
25435
25436 cat >>confdefs.h <<_ACEOF
25437 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25438 _ACEOF
25439
25440
25441 else
25442   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>
25443           #include <sys/stat.h>
25444 "
25445 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
25446
25447 cat >>confdefs.h <<_ACEOF
25448 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25449 _ACEOF
25450
25451
25452 fi
25453
25454 fi
25455
25456 fi
25457
25458
25459
25460   STDARG_H=''
25461   NEXT_STDARG_H='<stdarg.h>'
25462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25463 $as_echo_n "checking for va_copy... " >&6; }
25464 if ${gl_cv_func_va_copy+:} false; then :
25465   $as_echo_n "(cached) " >&6
25466 else
25467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468 /* end confdefs.h.  */
25469 #include <stdarg.h>
25470 int
25471 main ()
25472 {
25473
25474 #ifndef va_copy
25475 void (*func) (va_list, va_list) = va_copy;
25476 #endif
25477
25478   ;
25479   return 0;
25480 }
25481 _ACEOF
25482 if ac_fn_c_try_compile "$LINENO"; then :
25483   gl_cv_func_va_copy=yes
25484 else
25485   gl_cv_func_va_copy=no
25486 fi
25487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25488
25489 fi
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25491 $as_echo "$gl_cv_func_va_copy" >&6; }
25492   if test $gl_cv_func_va_copy = no; then
25493                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25494 /* end confdefs.h.  */
25495 #if defined _AIX && !defined __GNUC__
25496         AIX vaccine
25497        #endif
25498
25499 _ACEOF
25500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25501   $EGREP "vaccine" >/dev/null 2>&1; then :
25502   gl_aixcc=yes
25503 else
25504   gl_aixcc=no
25505 fi
25506 rm -f conftest*
25507
25508     if test $gl_aixcc = yes; then
25509             STDARG_H=stdarg.h
25510
25511
25512
25513
25514
25515
25516
25517
25518      if test $gl_cv_have_include_next = yes; then
25519        gl_cv_next_stdarg_h='<'stdarg.h'>'
25520      else
25521        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25522 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25523 if ${gl_cv_next_stdarg_h+:} false; then :
25524   $as_echo_n "(cached) " >&6
25525 else
25526
25527
25528
25529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25530 /* end confdefs.h.  */
25531 #include <stdarg.h>
25532 _ACEOF
25533                 case "$host_os" in
25534     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25535     *)    gl_absname_cpp="$ac_cpp" ;;
25536   esac
25537
25538   case "$host_os" in
25539     mingw*)
25540                                           gl_dirsep_regex='[/\\]'
25541       ;;
25542     *)
25543       gl_dirsep_regex='\/'
25544       ;;
25545   esac
25546       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25547   gl_header_literal_regex=`echo 'stdarg.h' \
25548                            | sed -e "$gl_make_literal_regex_sed"`
25549   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25550       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25551       s|^/[^/]|//&|
25552       p
25553       q
25554     }'
25555
25556         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25557   sed -n "$gl_absolute_header_sed"`
25558
25559            gl_header=$gl_cv_absolute_stdarg_h
25560            gl_cv_next_stdarg_h='"'$gl_header'"'
25561
25562
25563 fi
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25565 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25566      fi
25567      NEXT_STDARG_H=$gl_cv_next_stdarg_h
25568
25569      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25570        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25571        gl_next_as_first_directive='<'stdarg.h'>'
25572      else
25573        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25574        gl_next_as_first_directive=$gl_cv_next_stdarg_h
25575      fi
25576      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
25577
25578
25579
25580
25581             if test "$gl_cv_next_stdarg_h" = '""'; then
25582         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
25583         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
25584       fi
25585     else
25586
25587   saved_as_echo_n="$as_echo_n"
25588   as_echo_n=':'
25589   if ${gl_cv_func___va_copy+:} false; then :
25590   $as_echo_n "(cached) " >&6
25591 else
25592
25593         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25594 /* end confdefs.h.  */
25595 #include <stdarg.h>
25596 int
25597 main ()
25598 {
25599
25600 #ifndef __va_copy
25601 error, bail out
25602 #endif
25603
25604   ;
25605   return 0;
25606 }
25607 _ACEOF
25608 if ac_fn_c_try_compile "$LINENO"; then :
25609   gl_cv_func___va_copy=yes
25610 else
25611   gl_cv_func___va_copy=no
25612 fi
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614 fi
25615
25616   as_echo_n="$saved_as_echo_n"
25617
25618       if test $gl_cv_func___va_copy = yes; then
25619
25620 $as_echo "#define va_copy __va_copy" >>confdefs.h
25621
25622       else
25623
25624
25625 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
25626
25627       fi
25628     fi
25629   fi
25630
25631    if test -n "$STDARG_H"; then
25632   GL_GENERATE_STDARG_H_TRUE=
25633   GL_GENERATE_STDARG_H_FALSE='#'
25634 else
25635   GL_GENERATE_STDARG_H_TRUE='#'
25636   GL_GENERATE_STDARG_H_FALSE=
25637 fi
25638
25639
25640
25641
25642
25643
25644   # Define two additional variables used in the Makefile substitution.
25645
25646   if test "$ac_cv_header_stdbool_h" = yes; then
25647     STDBOOL_H=''
25648   else
25649     STDBOOL_H='stdbool.h'
25650   fi
25651
25652    if test -n "$STDBOOL_H"; then
25653   GL_GENERATE_STDBOOL_H_TRUE=
25654   GL_GENERATE_STDBOOL_H_FALSE='#'
25655 else
25656   GL_GENERATE_STDBOOL_H_TRUE='#'
25657   GL_GENERATE_STDBOOL_H_FALSE=
25658 fi
25659
25660
25661   if test "$ac_cv_type__Bool" = yes; then
25662     HAVE__BOOL=1
25663   else
25664     HAVE__BOOL=0
25665   fi
25666
25667
25668
25669
25670
25671   STDDEF_H=
25672
25673       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
25674 $as_echo_n "checking for good max_align_t... " >&6; }
25675 if ${gl_cv_type_max_align_t+:} false; then :
25676   $as_echo_n "(cached) " >&6
25677 else
25678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25679 /* end confdefs.h.  */
25680 #include <stddef.h>
25681             unsigned int s = sizeof (max_align_t);
25682             #if defined __GNUC__ || defined __IBM__ALIGNOF__
25683             int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
25684             int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
25685             #endif
25686
25687 int
25688 main ()
25689 {
25690
25691   ;
25692   return 0;
25693 }
25694 _ACEOF
25695 if ac_fn_c_try_compile "$LINENO"; then :
25696   gl_cv_type_max_align_t=yes
25697 else
25698   gl_cv_type_max_align_t=no
25699 fi
25700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25701
25702 fi
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
25704 $as_echo "$gl_cv_type_max_align_t" >&6; }
25705   if test $gl_cv_type_max_align_t = no; then
25706     HAVE_MAX_ALIGN_T=0
25707     STDDEF_H=stddef.h
25708   fi
25709
25710   if test $gt_cv_c_wchar_t = no; then
25711     HAVE_WCHAR_T=0
25712     STDDEF_H=stddef.h
25713   fi
25714
25715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25716 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25717 if ${gl_cv_decl_null_works+:} false; then :
25718   $as_echo_n "(cached) " >&6
25719 else
25720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h.  */
25722 #include <stddef.h>
25723       int test[2 * (sizeof NULL == sizeof (void *)) -1];
25724
25725 int
25726 main ()
25727 {
25728
25729   ;
25730   return 0;
25731 }
25732 _ACEOF
25733 if ac_fn_c_try_compile "$LINENO"; then :
25734   gl_cv_decl_null_works=yes
25735 else
25736   gl_cv_decl_null_works=no
25737 fi
25738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739 fi
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25741 $as_echo "$gl_cv_decl_null_works" >&6; }
25742   if test $gl_cv_decl_null_works = no; then
25743     REPLACE_NULL=1
25744     STDDEF_H=stddef.h
25745   fi
25746
25747
25748    if test -n "$STDDEF_H"; then
25749   GL_GENERATE_STDDEF_H_TRUE=
25750   GL_GENERATE_STDDEF_H_FALSE='#'
25751 else
25752   GL_GENERATE_STDDEF_H_TRUE='#'
25753   GL_GENERATE_STDDEF_H_FALSE=
25754 fi
25755
25756   if test -n "$STDDEF_H"; then
25757
25758
25759
25760
25761
25762
25763
25764
25765      if test $gl_cv_have_include_next = yes; then
25766        gl_cv_next_stddef_h='<'stddef.h'>'
25767      else
25768        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25769 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25770 if ${gl_cv_next_stddef_h+:} false; then :
25771   $as_echo_n "(cached) " >&6
25772 else
25773
25774
25775
25776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h.  */
25778 #include <stddef.h>
25779 _ACEOF
25780                 case "$host_os" in
25781     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25782     *)    gl_absname_cpp="$ac_cpp" ;;
25783   esac
25784
25785   case "$host_os" in
25786     mingw*)
25787                                           gl_dirsep_regex='[/\\]'
25788       ;;
25789     *)
25790       gl_dirsep_regex='\/'
25791       ;;
25792   esac
25793       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25794   gl_header_literal_regex=`echo 'stddef.h' \
25795                            | sed -e "$gl_make_literal_regex_sed"`
25796   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25797       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25798       s|^/[^/]|//&|
25799       p
25800       q
25801     }'
25802
25803         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25804   sed -n "$gl_absolute_header_sed"`
25805
25806            gl_header=$gl_cv_absolute_stddef_h
25807            gl_cv_next_stddef_h='"'$gl_header'"'
25808
25809
25810 fi
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25812 $as_echo "$gl_cv_next_stddef_h" >&6; }
25813      fi
25814      NEXT_STDDEF_H=$gl_cv_next_stddef_h
25815
25816      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25817        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25818        gl_next_as_first_directive='<'stddef.h'>'
25819      else
25820        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25821        gl_next_as_first_directive=$gl_cv_next_stddef_h
25822      fi
25823      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
25824
25825
25826
25827
25828   fi
25829
25830
25831
25832
25833   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844      if test $gl_cv_have_include_next = yes; then
25845        gl_cv_next_stdio_h='<'stdio.h'>'
25846      else
25847        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25848 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25849 if ${gl_cv_next_stdio_h+:} false; then :
25850   $as_echo_n "(cached) " >&6
25851 else
25852
25853
25854
25855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h.  */
25857 #include <stdio.h>
25858 _ACEOF
25859                 case "$host_os" in
25860     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25861     *)    gl_absname_cpp="$ac_cpp" ;;
25862   esac
25863
25864   case "$host_os" in
25865     mingw*)
25866                                           gl_dirsep_regex='[/\\]'
25867       ;;
25868     *)
25869       gl_dirsep_regex='\/'
25870       ;;
25871   esac
25872       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25873   gl_header_literal_regex=`echo 'stdio.h' \
25874                            | sed -e "$gl_make_literal_regex_sed"`
25875   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25876       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25877       s|^/[^/]|//&|
25878       p
25879       q
25880     }'
25881
25882         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25883   sed -n "$gl_absolute_header_sed"`
25884
25885            gl_header=$gl_cv_absolute_stdio_h
25886            gl_cv_next_stdio_h='"'$gl_header'"'
25887
25888
25889 fi
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25891 $as_echo "$gl_cv_next_stdio_h" >&6; }
25892      fi
25893      NEXT_STDIO_H=$gl_cv_next_stdio_h
25894
25895      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25896        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25897        gl_next_as_first_directive='<'stdio.h'>'
25898      else
25899        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25900        gl_next_as_first_directive=$gl_cv_next_stdio_h
25901      fi
25902      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
25903
25904
25905
25906
25907
25908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
25909 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
25910 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
25911   $as_echo_n "(cached) " >&6
25912 else
25913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25914 /* end confdefs.h.  */
25915
25916        #define __STDC_FORMAT_MACROS 1
25917        #include <stdio.h>
25918        #include <inttypes.h>
25919        /* For non-mingw systems, compilation will trivially succeed.
25920           For mingw, compilation will succeed for older mingw (system
25921           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
25922        #if (defined _WIN32 && ! defined __CYGWIN__) && \
25923          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
25924        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
25925        #endif
25926
25927 int
25928 main ()
25929 {
25930
25931   ;
25932   return 0;
25933 }
25934 _ACEOF
25935 if ac_fn_c_try_compile "$LINENO"; then :
25936   gl_cv_func_printf_attribute_flavor=system
25937 else
25938   gl_cv_func_printf_attribute_flavor=gnu
25939 fi
25940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25941 fi
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
25943 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
25944   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
25945
25946 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
25947
25948   fi
25949
25950       GNULIB_FSCANF=1
25951
25952
25953 cat >>confdefs.h <<_ACEOF
25954 #define GNULIB_FSCANF 1
25955 _ACEOF
25956
25957
25958   GNULIB_SCANF=1
25959
25960
25961 cat >>confdefs.h <<_ACEOF
25962 #define GNULIB_SCANF 1
25963 _ACEOF
25964
25965
25966   GNULIB_FGETC=1
25967   GNULIB_GETC=1
25968   GNULIB_GETCHAR=1
25969   GNULIB_FGETS=1
25970   GNULIB_FREAD=1
25971
25972
25973       GNULIB_FPRINTF=1
25974   GNULIB_PRINTF=1
25975   GNULIB_VFPRINTF=1
25976   GNULIB_VPRINTF=1
25977   GNULIB_FPUTC=1
25978   GNULIB_PUTC=1
25979   GNULIB_PUTCHAR=1
25980   GNULIB_FPUTS=1
25981   GNULIB_PUTS=1
25982   GNULIB_FWRITE=1
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000      if test $gl_cv_have_include_next = yes; then
26001        gl_cv_next_stdlib_h='<'stdlib.h'>'
26002      else
26003        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26004 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26005 if ${gl_cv_next_stdlib_h+:} false; then :
26006   $as_echo_n "(cached) " >&6
26007 else
26008
26009
26010
26011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26012 /* end confdefs.h.  */
26013 #include <stdlib.h>
26014 _ACEOF
26015                 case "$host_os" in
26016     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26017     *)    gl_absname_cpp="$ac_cpp" ;;
26018   esac
26019
26020   case "$host_os" in
26021     mingw*)
26022                                           gl_dirsep_regex='[/\\]'
26023       ;;
26024     *)
26025       gl_dirsep_regex='\/'
26026       ;;
26027   esac
26028       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26029   gl_header_literal_regex=`echo 'stdlib.h' \
26030                            | sed -e "$gl_make_literal_regex_sed"`
26031   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26032       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26033       s|^/[^/]|//&|
26034       p
26035       q
26036     }'
26037
26038         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26039   sed -n "$gl_absolute_header_sed"`
26040
26041            gl_header=$gl_cv_absolute_stdlib_h
26042            gl_cv_next_stdlib_h='"'$gl_header'"'
26043
26044
26045 fi
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26047 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26048      fi
26049      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26050
26051      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26052        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26053        gl_next_as_first_directive='<'stdlib.h'>'
26054      else
26055        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26056        gl_next_as_first_directive=$gl_cv_next_stdlib_h
26057      fi
26058      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26075 $as_echo_n "checking for working strerror function... " >&6; }
26076 if ${gl_cv_func_working_strerror+:} false; then :
26077   $as_echo_n "(cached) " >&6
26078 else
26079   if test "$cross_compiling" = yes; then :
26080   case "$host_os" in
26081                           # Guess yes on glibc systems.
26082            *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
26083                           # If we don't know, assume the worst.
26084            *)             gl_cv_func_working_strerror="guessing no" ;;
26085          esac
26086
26087 else
26088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h.  */
26090 #include <string.h>
26091
26092 int
26093 main ()
26094 {
26095 if (!*strerror (-2)) return 1;
26096   ;
26097   return 0;
26098 }
26099 _ACEOF
26100 if ac_fn_c_try_run "$LINENO"; then :
26101   gl_cv_func_working_strerror=yes
26102 else
26103   gl_cv_func_working_strerror=no
26104 fi
26105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26106   conftest.$ac_objext conftest.beam conftest.$ac_ext
26107 fi
26108
26109
26110 fi
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26112 $as_echo "$gl_cv_func_working_strerror" >&6; }
26113     case "$gl_cv_func_working_strerror" in
26114       *yes) ;;
26115       *)
26116                         REPLACE_STRERROR=1
26117         ;;
26118     esac
26119
26120   else
26121             REPLACE_STRERROR=1
26122   fi
26123
26124   if test $REPLACE_STRERROR = 1; then
26125
26126
26127
26128
26129
26130
26131
26132
26133   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
26134
26135   fi
26136
26137
26138 cat >>confdefs.h <<_ACEOF
26139 #define GNULIB_STRERROR 1
26140 _ACEOF
26141
26142
26143
26144
26145
26146
26147
26148           GNULIB_STRERROR=1
26149
26150
26151
26152
26153
26154 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26155
26156
26157
26158
26159
26160   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
26161
26162
26163
26164
26165
26166
26167
26168
26169   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
26170
26171
26172
26173
26174
26175   if test $ac_cv_header_sys_socket_h != yes; then
26176                     for ac_header in winsock2.h
26177 do :
26178   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26179 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26180   cat >>confdefs.h <<_ACEOF
26181 #define HAVE_WINSOCK2_H 1
26182 _ACEOF
26183
26184 fi
26185
26186 done
26187
26188   fi
26189   if test "$ac_cv_header_winsock2_h" = yes; then
26190     HAVE_WINSOCK2_H=1
26191     UNISTD_H_HAVE_WINSOCK2_H=1
26192     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26193   else
26194     HAVE_WINSOCK2_H=0
26195   fi
26196
26197
26198   fi
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208   if test $ac_cv_have_decl_strndup = no; then
26209     HAVE_DECL_STRNDUP=0
26210   fi
26211
26212   if test $ac_cv_func_strndup = yes; then
26213     HAVE_STRNDUP=1
26214     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
26215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
26216 $as_echo_n "checking for working strndup... " >&6; }
26217 if ${gl_cv_func_strndup_works+:} false; then :
26218   $as_echo_n "(cached) " >&6
26219 else
26220   if test "$cross_compiling" = yes; then :
26221
26222           case $host_os in
26223             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
26224             *)               gl_cv_func_strndup_works="guessing yes";;
26225           esac
26226
26227 else
26228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26229 /* end confdefs.h.  */
26230
26231          #include <string.h>
26232                            #include <stdlib.h>
26233 int
26234 main ()
26235 {
26236
26237 #if !HAVE_DECL_STRNDUP
26238   extern
26239   #ifdef __cplusplus
26240   "C"
26241   #endif
26242   char *strndup (const char *, size_t);
26243 #endif
26244   int result;
26245   char *s;
26246   s = strndup ("some longer string", 15);
26247   free (s);
26248   s = strndup ("shorter string", 13);
26249   result = s[13] != '\0';
26250   free (s);
26251   return result;
26252   ;
26253   return 0;
26254 }
26255 _ACEOF
26256 if ac_fn_c_try_run "$LINENO"; then :
26257   gl_cv_func_strndup_works=yes
26258 else
26259   gl_cv_func_strndup_works=no
26260 fi
26261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26262   conftest.$ac_objext conftest.beam conftest.$ac_ext
26263 fi
26264
26265 fi
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
26267 $as_echo "$gl_cv_func_strndup_works" >&6; }
26268     case $gl_cv_func_strndup_works in
26269       *no) REPLACE_STRNDUP=1 ;;
26270     esac
26271   else
26272     HAVE_STRNDUP=0
26273   fi
26274
26275   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
26276
26277
26278
26279
26280
26281
26282
26283
26284   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
26285
26286   fi
26287
26288
26289
26290
26291
26292           GNULIB_STRNDUP=1
26293
26294
26295
26296
26297
26298 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308   if test $ac_cv_have_decl_strnlen = no; then
26309     HAVE_DECL_STRNLEN=0
26310   else
26311
26312          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
26313 $as_echo_n "checking for working strnlen... " >&6; }
26314 if ${ac_cv_func_strnlen_working+:} false; then :
26315   $as_echo_n "(cached) " >&6
26316 else
26317   if test "$cross_compiling" = yes; then :
26318   # Guess no on AIX systems, yes otherwise.
26319                 case "$host_os" in
26320                   aix*) ac_cv_func_strnlen_working=no;;
26321                   *)    ac_cv_func_strnlen_working=yes;;
26322                 esac
26323 else
26324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26325 /* end confdefs.h.  */
26326 $ac_includes_default
26327 int
26328 main ()
26329 {
26330
26331 #define S "foobar"
26332 #define S_LEN (sizeof S - 1)
26333
26334   /* At least one implementation is buggy: that of AIX 4.3 would
26335      give strnlen (S, 1) == 3.  */
26336
26337   int i;
26338   for (i = 0; i < S_LEN + 1; ++i)
26339     {
26340       int expected = i <= S_LEN ? i : S_LEN;
26341       if (strnlen (S, i) != expected)
26342         return 1;
26343     }
26344   return 0;
26345
26346   ;
26347   return 0;
26348 }
26349 _ACEOF
26350 if ac_fn_c_try_run "$LINENO"; then :
26351   ac_cv_func_strnlen_working=yes
26352 else
26353   ac_cv_func_strnlen_working=no
26354 fi
26355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26356   conftest.$ac_objext conftest.beam conftest.$ac_ext
26357 fi
26358
26359 fi
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
26361 $as_echo "$ac_cv_func_strnlen_working" >&6; }
26362 test $ac_cv_func_strnlen_working = no && :
26363
26364
26365     if test $ac_cv_func_strnlen_working = no; then
26366       REPLACE_STRNLEN=1
26367     fi
26368   fi
26369
26370   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
26371
26372
26373
26374
26375
26376
26377
26378
26379   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
26380
26381     :
26382   fi
26383
26384
26385
26386
26387
26388           GNULIB_STRNLEN=1
26389
26390
26391
26392
26393
26394 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404   if test $ac_cv_have_decl_strsignal = no; then
26405     HAVE_DECL_STRSIGNAL=0
26406   fi
26407
26408   for ac_func in strsignal
26409 do :
26410   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
26411 if test "x$ac_cv_func_strsignal" = xyes; then :
26412   cat >>confdefs.h <<_ACEOF
26413 #define HAVE_STRSIGNAL 1
26414 _ACEOF
26415
26416 fi
26417 done
26418
26419   if test $ac_cv_func_strsignal = yes; then
26420     HAVE_STRSIGNAL=1
26421             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
26422 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
26423 if ${gl_cv_func_working_strsignal+:} false; then :
26424   $as_echo_n "(cached) " >&6
26425 else
26426   if test "$cross_compiling" = yes; then :
26427   case "$host_os" in
26428             solaris* | aix*) gl_cv_func_working_strsignal=no;;
26429             *)               gl_cv_func_working_strsignal="guessing yes";;
26430           esac
26431 else
26432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433 /* end confdefs.h.  */
26434 #include <string.h>
26435 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
26436
26437 int
26438 main ()
26439 {
26440 int result = 0;
26441               char *s = strsignal (-1);
26442               if (s == (char *) 0)
26443                 result |= 1;
26444               if (s == (char *) -1)
26445                 result |= 2;
26446               return result;
26447
26448   ;
26449   return 0;
26450 }
26451 _ACEOF
26452 if ac_fn_c_try_run "$LINENO"; then :
26453   gl_cv_func_working_strsignal=yes
26454 else
26455   gl_cv_func_working_strsignal=no
26456 fi
26457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26458   conftest.$ac_objext conftest.beam conftest.$ac_ext
26459 fi
26460
26461 fi
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
26463 $as_echo "$gl_cv_func_working_strsignal" >&6; }
26464     if test "$gl_cv_func_working_strsignal" = no; then
26465       REPLACE_STRSIGNAL=1
26466     fi
26467   else
26468     HAVE_STRSIGNAL=0
26469   fi
26470
26471   if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
26472
26473
26474
26475
26476
26477
26478
26479
26480   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
26481
26482
26483
26484
26485   ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
26486 "
26487 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
26488   ac_have_decl=1
26489 else
26490   ac_have_decl=0
26491 fi
26492
26493 cat >>confdefs.h <<_ACEOF
26494 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
26495 _ACEOF
26496
26497
26498   fi
26499
26500
26501
26502
26503
26504           GNULIB_STRSIGNAL=1
26505
26506
26507
26508
26509
26510 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530      if test $gl_cv_have_include_next = yes; then
26531        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26532      else
26533        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26534 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26535 if ${gl_cv_next_sys_stat_h+:} false; then :
26536   $as_echo_n "(cached) " >&6
26537 else
26538
26539              if test $ac_cv_header_sys_stat_h = yes; then
26540
26541
26542
26543
26544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26545 /* end confdefs.h.  */
26546 #include <sys/stat.h>
26547 _ACEOF
26548                 case "$host_os" in
26549     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26550     *)    gl_absname_cpp="$ac_cpp" ;;
26551   esac
26552
26553   case "$host_os" in
26554     mingw*)
26555                                           gl_dirsep_regex='[/\\]'
26556       ;;
26557     *)
26558       gl_dirsep_regex='\/'
26559       ;;
26560   esac
26561       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26562   gl_header_literal_regex=`echo 'sys/stat.h' \
26563                            | sed -e "$gl_make_literal_regex_sed"`
26564   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26565       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26566       s|^/[^/]|//&|
26567       p
26568       q
26569     }'
26570
26571         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26572   sed -n "$gl_absolute_header_sed"`
26573
26574            gl_header=$gl_cv_absolute_sys_stat_h
26575            gl_cv_next_sys_stat_h='"'$gl_header'"'
26576           else
26577                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26578              fi
26579
26580
26581 fi
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26583 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26584      fi
26585      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
26586
26587      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26588        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26589        gl_next_as_first_directive='<'sys/stat.h'>'
26590      else
26591        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26592        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
26593      fi
26594      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
26595
26596
26597
26598
26599
26600
26601
26602
26603     WINDOWS_STAT_TIMESPEC=0
26604
26605
26606
26607
26608
26609
26610
26611
26612       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26613      #include <sys/stat.h>
26614 "
26615 if test "x$ac_cv_type_nlink_t" = xyes; then :
26616
26617 else
26618
26619 $as_echo "#define nlink_t int" >>confdefs.h
26620
26621 fi
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647      if test $gl_cv_have_include_next = yes; then
26648        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
26649      else
26650        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
26651 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
26652 if ${gl_cv_next_sys_wait_h+:} false; then :
26653   $as_echo_n "(cached) " >&6
26654 else
26655
26656              if test $ac_cv_header_sys_wait_h = yes; then
26657
26658
26659
26660
26661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26662 /* end confdefs.h.  */
26663 #include <sys/wait.h>
26664 _ACEOF
26665                 case "$host_os" in
26666     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26667     *)    gl_absname_cpp="$ac_cpp" ;;
26668   esac
26669
26670   case "$host_os" in
26671     mingw*)
26672                                           gl_dirsep_regex='[/\\]'
26673       ;;
26674     *)
26675       gl_dirsep_regex='\/'
26676       ;;
26677   esac
26678       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26679   gl_header_literal_regex=`echo 'sys/wait.h' \
26680                            | sed -e "$gl_make_literal_regex_sed"`
26681   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26682       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26683       s|^/[^/]|//&|
26684       p
26685       q
26686     }'
26687
26688         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26689   sed -n "$gl_absolute_header_sed"`
26690
26691            gl_header=$gl_cv_absolute_sys_wait_h
26692            gl_cv_next_sys_wait_h='"'$gl_header'"'
26693           else
26694                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
26695              fi
26696
26697
26698 fi
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
26700 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
26701      fi
26702      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
26703
26704      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26705        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26706        gl_next_as_first_directive='<'sys/wait.h'>'
26707      else
26708        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26709        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
26710      fi
26711      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726   :
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751      if test $gl_cv_have_include_next = yes; then
26752        gl_cv_next_unistd_h='<'unistd.h'>'
26753      else
26754        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26755 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26756 if ${gl_cv_next_unistd_h+:} false; then :
26757   $as_echo_n "(cached) " >&6
26758 else
26759
26760              if test $ac_cv_header_unistd_h = yes; then
26761
26762
26763
26764
26765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26766 /* end confdefs.h.  */
26767 #include <unistd.h>
26768 _ACEOF
26769                 case "$host_os" in
26770     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26771     *)    gl_absname_cpp="$ac_cpp" ;;
26772   esac
26773
26774   case "$host_os" in
26775     mingw*)
26776                                           gl_dirsep_regex='[/\\]'
26777       ;;
26778     *)
26779       gl_dirsep_regex='\/'
26780       ;;
26781   esac
26782       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26783   gl_header_literal_regex=`echo 'unistd.h' \
26784                            | sed -e "$gl_make_literal_regex_sed"`
26785   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26786       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26787       s|^/[^/]|//&|
26788       p
26789       q
26790     }'
26791
26792         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26793   sed -n "$gl_absolute_header_sed"`
26794
26795            gl_header=$gl_cv_absolute_unistd_h
26796            gl_cv_next_unistd_h='"'$gl_header'"'
26797           else
26798                gl_cv_next_unistd_h='<'unistd.h'>'
26799              fi
26800
26801
26802 fi
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26804 $as_echo "$gl_cv_next_unistd_h" >&6; }
26805      fi
26806      NEXT_UNISTD_H=$gl_cv_next_unistd_h
26807
26808      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26809        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26810        gl_next_as_first_directive='<'unistd.h'>'
26811      else
26812        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26813        gl_next_as_first_directive=$gl_cv_next_unistd_h
26814      fi
26815      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
26816
26817
26818
26819
26820   if test $ac_cv_header_unistd_h = yes; then
26821     HAVE_UNISTD_H=1
26822   else
26823     HAVE_UNISTD_H=0
26824   fi
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838   if test $ac_cv_have_decl_unsetenv = no; then
26839     HAVE_DECL_UNSETENV=0
26840   fi
26841   for ac_func in unsetenv
26842 do :
26843   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
26844 if test "x$ac_cv_func_unsetenv" = xyes; then :
26845   cat >>confdefs.h <<_ACEOF
26846 #define HAVE_UNSETENV 1
26847 _ACEOF
26848
26849 fi
26850 done
26851
26852   if test $ac_cv_func_unsetenv = no; then
26853     HAVE_UNSETENV=0
26854   else
26855     HAVE_UNSETENV=1
26856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
26857 $as_echo_n "checking for unsetenv() return type... " >&6; }
26858 if ${gt_cv_func_unsetenv_ret+:} false; then :
26859   $as_echo_n "(cached) " >&6
26860 else
26861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h.  */
26863
26864 #undef _BSD
26865 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
26866 #include <stdlib.h>
26867 extern
26868 #ifdef __cplusplus
26869 "C"
26870 #endif
26871 int unsetenv (const char *name);
26872
26873 int
26874 main ()
26875 {
26876
26877   ;
26878   return 0;
26879 }
26880 _ACEOF
26881 if ac_fn_c_try_compile "$LINENO"; then :
26882   gt_cv_func_unsetenv_ret='int'
26883 else
26884   gt_cv_func_unsetenv_ret='void'
26885 fi
26886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887 fi
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
26889 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
26890     if test $gt_cv_func_unsetenv_ret = 'void'; then
26891
26892 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
26893
26894       REPLACE_UNSETENV=1
26895     fi
26896
26897                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
26898 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
26899 if ${gl_cv_func_unsetenv_works+:} false; then :
26900   $as_echo_n "(cached) " >&6
26901 else
26902   if test "$cross_compiling" = yes; then :
26903   case "$host_os" in
26904                  # Guess yes on glibc systems.
26905          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
26906                  # If we don't know, assume the worst.
26907          *)      gl_cv_func_unsetenv_works="guessing no" ;;
26908        esac
26909
26910 else
26911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h.  */
26913
26914        #include <stdlib.h>
26915        #include <errno.h>
26916        extern char **environ;
26917
26918 int
26919 main ()
26920 {
26921
26922        char entry1[] = "a=1";
26923        char entry2[] = "b=2";
26924        char *env[] = { entry1, entry2, NULL };
26925        if (putenv ((char *) "a=1")) return 1;
26926        if (putenv (entry2)) return 2;
26927        entry2[0] = 'a';
26928        unsetenv ("a");
26929        if (getenv ("a")) return 3;
26930        if (!unsetenv ("") || errno != EINVAL) return 4;
26931        entry2[0] = 'b';
26932        environ = env;
26933        if (!getenv ("a")) return 5;
26934        entry2[0] = 'a';
26935        unsetenv ("a");
26936        if (getenv ("a")) return 6;
26937
26938   ;
26939   return 0;
26940 }
26941 _ACEOF
26942 if ac_fn_c_try_run "$LINENO"; then :
26943   gl_cv_func_unsetenv_works=yes
26944 else
26945   gl_cv_func_unsetenv_works=no
26946 fi
26947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26948   conftest.$ac_objext conftest.beam conftest.$ac_ext
26949 fi
26950
26951 fi
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
26953 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
26954     case "$gl_cv_func_unsetenv_works" in
26955       *yes) ;;
26956       *)
26957         REPLACE_UNSETENV=1
26958         ;;
26959     esac
26960   fi
26961
26962   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
26963
26964
26965
26966
26967
26968
26969
26970
26971   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
26972
26973
26974
26975
26976
26977   fi
26978
26979
26980
26981
26982
26983           GNULIB_UNSETENV=1
26984
26985
26986
26987
26988
26989 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
26990
26991
26992
26993
26994
26995   if test $ac_cv_func_vasnprintf = no; then
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
27037
27038   if test $ac_cv_func_vasnprintf = yes; then
27039
27040 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
27041
27042   fi
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
27055 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
27056
27057 else
27058
27059 $as_echo "#define ptrdiff_t long" >>confdefs.h
27060
27061
27062 fi
27063
27064
27065
27066
27067
27068
27069
27070   fi
27071
27072
27073   for ac_func in vasprintf
27074 do :
27075   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
27076 if test "x$ac_cv_func_vasprintf" = xyes; then :
27077   cat >>confdefs.h <<_ACEOF
27078 #define HAVE_VASPRINTF 1
27079 _ACEOF
27080
27081 fi
27082 done
27083
27084   if test $ac_cv_func_vasprintf = no; then
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
27105
27106
27107   if test $ac_cv_func_vasprintf = yes; then
27108     REPLACE_VASPRINTF=1
27109   else
27110     HAVE_VASPRINTF=0
27111   fi
27112
27113
27114
27115
27116
27117
27118
27119
27120   fi
27121
27122
27123
27124
27125
27126
27127           GNULIB_VASPRINTF=1
27128
27129
27130
27131
27132
27133 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
27134
27135
27136
27137
27138
27139   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
27140
27141
27142
27143   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
27144
27145
27146
27147   HAVE_WAITPID=1
27148   case $host_os in
27149     mingw*) HAVE_WAITPID=0 ;;
27150   esac
27151
27152   if test $HAVE_WAITPID = 0; then
27153
27154
27155
27156
27157
27158
27159
27160
27161   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
27162
27163   fi
27164
27165
27166
27167
27168
27169           GNULIB_WAITPID=1
27170
27171
27172
27173
27174
27175 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191      if test $gl_cv_have_include_next = yes; then
27192        gl_cv_next_wchar_h='<'wchar.h'>'
27193      else
27194        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
27195 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
27196 if ${gl_cv_next_wchar_h+:} false; then :
27197   $as_echo_n "(cached) " >&6
27198 else
27199
27200              if test $ac_cv_header_wchar_h = yes; then
27201
27202
27203
27204
27205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h.  */
27207 #include <wchar.h>
27208 _ACEOF
27209                 case "$host_os" in
27210     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27211     *)    gl_absname_cpp="$ac_cpp" ;;
27212   esac
27213
27214   case "$host_os" in
27215     mingw*)
27216                                           gl_dirsep_regex='[/\\]'
27217       ;;
27218     *)
27219       gl_dirsep_regex='\/'
27220       ;;
27221   esac
27222       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27223   gl_header_literal_regex=`echo 'wchar.h' \
27224                            | sed -e "$gl_make_literal_regex_sed"`
27225   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27226       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27227       s|^/[^/]|//&|
27228       p
27229       q
27230     }'
27231
27232         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27233   sed -n "$gl_absolute_header_sed"`
27234
27235            gl_header=$gl_cv_absolute_wchar_h
27236            gl_cv_next_wchar_h='"'$gl_header'"'
27237           else
27238                gl_cv_next_wchar_h='<'wchar.h'>'
27239              fi
27240
27241
27242 fi
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
27244 $as_echo "$gl_cv_next_wchar_h" >&6; }
27245      fi
27246      NEXT_WCHAR_H=$gl_cv_next_wchar_h
27247
27248      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27249        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27250        gl_next_as_first_directive='<'wchar.h'>'
27251      else
27252        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27253        gl_next_as_first_directive=$gl_cv_next_wchar_h
27254      fi
27255      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
27256
27257
27258
27259
27260   if test $ac_cv_header_wchar_h = yes; then
27261     HAVE_WCHAR_H=1
27262   else
27263     HAVE_WCHAR_H=0
27264   fi
27265
27266
27267
27268
27269
27270   if test $gt_cv_c_wint_t = yes; then
27271     HAVE_WINT_T=1
27272   else
27273     HAVE_WINT_T=0
27274   fi
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27288       REPLACE_WRITE=1
27289     fi
27290
27291
27292
27293
27294   if test $REPLACE_WRITE = 1; then
27295
27296
27297
27298
27299
27300
27301
27302
27303   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
27304
27305     :
27306   fi
27307
27308
27309
27310
27311
27312           GNULIB_WRITE=1
27313
27314
27315
27316
27317
27318 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
27319
27320
27321
27322   :
27323
27324
27325   for ac_header in stdint.h
27326 do :
27327   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
27328 if test "x$ac_cv_header_stdint_h" = xyes; then :
27329   cat >>confdefs.h <<_ACEOF
27330 #define HAVE_STDINT_H 1
27331 _ACEOF
27332
27333 fi
27334
27335 done
27336
27337
27338
27339
27340   :
27341
27342
27343   :
27344
27345
27346   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
27347
27348   # End of code from modules
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358   gltests_libdeps=
27359   gltests_ltlibdeps=
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369   gl_source_base='tests'
27370   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
27371
27372   gl_module_indicator_condition=$gltests_WITNESS
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383 for ac_header in fcntl.h
27384 do :
27385   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
27386 if test "x$ac_cv_header_fcntl_h" = xyes; then :
27387   cat >>confdefs.h <<_ACEOF
27388 #define HAVE_FCNTL_H 1
27389 _ACEOF
27390
27391 fi
27392
27393 done
27394
27395 for ac_func in clearenv
27396 do :
27397   ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
27398 if test "x$ac_cv_func_clearenv" = xyes; then :
27399   cat >>confdefs.h <<_ACEOF
27400 #define HAVE_CLEARENV 1
27401 _ACEOF
27402
27403 fi
27404 done
27405
27406
27407 # Checks for structures and compiler characteristics.
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27409 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27410 if ${ac_cv_c_const+:} false; then :
27411   $as_echo_n "(cached) " >&6
27412 else
27413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414 /* end confdefs.h.  */
27415
27416 int
27417 main ()
27418 {
27419
27420 #ifndef __cplusplus
27421   /* Ultrix mips cc rejects this sort of thing.  */
27422   typedef int charset[2];
27423   const charset cs = { 0, 0 };
27424   /* SunOS 4.1.1 cc rejects this.  */
27425   char const *const *pcpcc;
27426   char **ppc;
27427   /* NEC SVR4.0.2 mips cc rejects this.  */
27428   struct point {int x, y;};
27429   static struct point const zero = {0,0};
27430   /* AIX XL C 1.02.0.0 rejects this.
27431      It does not let you subtract one const X* pointer from another in
27432      an arm of an if-expression whose if-part is not a constant
27433      expression */
27434   const char *g = "string";
27435   pcpcc = &g + (g ? g-g : 0);
27436   /* HPUX 7.0 cc rejects these. */
27437   ++pcpcc;
27438   ppc = (char**) pcpcc;
27439   pcpcc = (char const *const *) ppc;
27440   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27441     char tx;
27442     char *t = &tx;
27443     char const *s = 0 ? (char *) 0 : (char const *) 0;
27444
27445     *t++ = 0;
27446     if (s) return 0;
27447   }
27448   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27449     int x[] = {25, 17};
27450     const int *foo = &x[0];
27451     ++foo;
27452   }
27453   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27454     typedef const int *iptr;
27455     iptr p = 0;
27456     ++p;
27457   }
27458   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27459        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27460     struct s { int j; const int *ap[3]; } bx;
27461     struct s *b = &bx; b->j = 5;
27462   }
27463   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27464     const int foo = 10;
27465     if (!foo) return 0;
27466   }
27467   return !cs[0] && !zero.x;
27468 #endif
27469
27470   ;
27471   return 0;
27472 }
27473 _ACEOF
27474 if ac_fn_c_try_compile "$LINENO"; then :
27475   ac_cv_c_const=yes
27476 else
27477   ac_cv_c_const=no
27478 fi
27479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27480 fi
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27482 $as_echo "$ac_cv_c_const" >&6; }
27483 if test $ac_cv_c_const = no; then
27484
27485 $as_echo "#define const /**/" >>confdefs.h
27486
27487 fi
27488
27489 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27490 if test "x$ac_cv_type_pid_t" = xyes; then :
27491
27492 else
27493
27494 cat >>confdefs.h <<_ACEOF
27495 #define pid_t int
27496 _ACEOF
27497
27498 fi
27499
27500 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27501 if test "x$ac_cv_type_size_t" = xyes; then :
27502
27503 else
27504
27505 cat >>confdefs.h <<_ACEOF
27506 #define size_t unsigned int
27507 _ACEOF
27508
27509 fi
27510
27511
27512 # We must have fork(2) support.
27513 for ac_header in vfork.h
27514 do :
27515   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
27516 if test "x$ac_cv_header_vfork_h" = xyes; then :
27517   cat >>confdefs.h <<_ACEOF
27518 #define HAVE_VFORK_H 1
27519 _ACEOF
27520
27521 fi
27522
27523 done
27524
27525 for ac_func in fork vfork
27526 do :
27527   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27530   cat >>confdefs.h <<_ACEOF
27531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27532 _ACEOF
27533
27534 fi
27535 done
27536
27537 if test "x$ac_cv_func_fork" = xyes; then
27538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
27539 $as_echo_n "checking for working fork... " >&6; }
27540 if ${ac_cv_func_fork_works+:} false; then :
27541   $as_echo_n "(cached) " >&6
27542 else
27543   if test "$cross_compiling" = yes; then :
27544   ac_cv_func_fork_works=cross
27545 else
27546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27547 /* end confdefs.h.  */
27548 $ac_includes_default
27549 int
27550 main ()
27551 {
27552
27553           /* By Ruediger Kuhlmann. */
27554           return fork () < 0;
27555
27556   ;
27557   return 0;
27558 }
27559 _ACEOF
27560 if ac_fn_c_try_run "$LINENO"; then :
27561   ac_cv_func_fork_works=yes
27562 else
27563   ac_cv_func_fork_works=no
27564 fi
27565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27566   conftest.$ac_objext conftest.beam conftest.$ac_ext
27567 fi
27568
27569 fi
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
27571 $as_echo "$ac_cv_func_fork_works" >&6; }
27572
27573 else
27574   ac_cv_func_fork_works=$ac_cv_func_fork
27575 fi
27576 if test "x$ac_cv_func_fork_works" = xcross; then
27577   case $host in
27578     *-*-amigaos* | *-*-msdosdjgpp*)
27579       # Override, as these systems have only a dummy fork() stub
27580       ac_cv_func_fork_works=no
27581       ;;
27582     *)
27583       ac_cv_func_fork_works=yes
27584       ;;
27585   esac
27586   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27587 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27588 fi
27589 ac_cv_func_vfork_works=$ac_cv_func_vfork
27590 if test "x$ac_cv_func_vfork" = xyes; then
27591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
27592 $as_echo_n "checking for working vfork... " >&6; }
27593 if ${ac_cv_func_vfork_works+:} false; then :
27594   $as_echo_n "(cached) " >&6
27595 else
27596   if test "$cross_compiling" = yes; then :
27597   ac_cv_func_vfork_works=cross
27598 else
27599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27600 /* end confdefs.h.  */
27601 /* Thanks to Paul Eggert for this test.  */
27602 $ac_includes_default
27603 #include <sys/wait.h>
27604 #ifdef HAVE_VFORK_H
27605 # include <vfork.h>
27606 #endif
27607 /* On some sparc systems, changes by the child to local and incoming
27608    argument registers are propagated back to the parent.  The compiler
27609    is told about this with #include <vfork.h>, but some compilers
27610    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
27611    static variable whose address is put into a register that is
27612    clobbered by the vfork.  */
27613 static void
27614 #ifdef __cplusplus
27615 sparc_address_test (int arg)
27616 # else
27617 sparc_address_test (arg) int arg;
27618 #endif
27619 {
27620   static pid_t child;
27621   if (!child) {
27622     child = vfork ();
27623     if (child < 0) {
27624       perror ("vfork");
27625       _exit(2);
27626     }
27627     if (!child) {
27628       arg = getpid();
27629       write(-1, "", 0);
27630       _exit (arg);
27631     }
27632   }
27633 }
27634
27635 int
27636 main ()
27637 {
27638   pid_t parent = getpid ();
27639   pid_t child;
27640
27641   sparc_address_test (0);
27642
27643   child = vfork ();
27644
27645   if (child == 0) {
27646     /* Here is another test for sparc vfork register problems.  This
27647        test uses lots of local variables, at least as many local
27648        variables as main has allocated so far including compiler
27649        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
27650        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
27651        reuse the register of parent for one of the local variables,
27652        since it will think that parent can't possibly be used any more
27653        in this routine.  Assigning to the local variable will thus
27654        munge parent in the parent process.  */
27655     pid_t
27656       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
27657       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
27658     /* Convince the compiler that p..p7 are live; otherwise, it might
27659        use the same hardware register for all 8 local variables.  */
27660     if (p != p1 || p != p2 || p != p3 || p != p4
27661         || p != p5 || p != p6 || p != p7)
27662       _exit(1);
27663
27664     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
27665        from child file descriptors.  If the child closes a descriptor
27666        before it execs or exits, this munges the parent's descriptor
27667        as well.  Test for this by closing stdout in the child.  */
27668     _exit(close(fileno(stdout)) != 0);
27669   } else {
27670     int status;
27671     struct stat st;
27672
27673     while (wait(&status) != child)
27674       ;
27675     return (
27676          /* Was there some problem with vforking?  */
27677          child < 0
27678
27679          /* Did the child fail?  (This shouldn't happen.)  */
27680          || status
27681
27682          /* Did the vfork/compiler bug occur?  */
27683          || parent != getpid()
27684
27685          /* Did the file descriptor bug occur?  */
27686          || fstat(fileno(stdout), &st) != 0
27687          );
27688   }
27689 }
27690 _ACEOF
27691 if ac_fn_c_try_run "$LINENO"; then :
27692   ac_cv_func_vfork_works=yes
27693 else
27694   ac_cv_func_vfork_works=no
27695 fi
27696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27697   conftest.$ac_objext conftest.beam conftest.$ac_ext
27698 fi
27699
27700 fi
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
27702 $as_echo "$ac_cv_func_vfork_works" >&6; }
27703
27704 fi;
27705 if test "x$ac_cv_func_fork_works" = xcross; then
27706   ac_cv_func_vfork_works=$ac_cv_func_vfork
27707   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
27708 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
27709 fi
27710
27711 if test "x$ac_cv_func_vfork_works" = xyes; then
27712
27713 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
27714
27715 else
27716
27717 $as_echo "#define vfork fork" >>confdefs.h
27718
27719 fi
27720 if test "x$ac_cv_func_fork_works" = xyes; then
27721
27722 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
27723
27724 fi
27725
27726 if test "x$ac_cv_func_fork_works" != xyes; then
27727   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27729 as_fn_error $? "cannot use libpipeline on systems without fork
27730 See \`config.log' for more details" "$LINENO" 5; }
27731 fi
27732
27733 # Check for socketpair(2) as fast replacement for pipe(2).
27734 # Check whether --enable-socketpair-pipe was given.
27735 if test "${enable_socketpair_pipe+set}" = set; then :
27736   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
27737     then
27738        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
27739 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
27740   if ${pipeline_cv_socketpair_pipe+:} false; then :
27741   $as_echo_n "(cached) " >&6
27742 else
27743
27744     if test "$cross_compiling" = yes; then :
27745   pipeline_cv_socketpair_pipe=no
27746 else
27747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h.  */
27749
27750 #include <netdb.h>
27751 #include <netinet/in.h>
27752 #include <signal.h>
27753 #include <sys/socket.h>
27754 #include <sys/types.h>
27755 #include <sys/wait.h>
27756 #include <unistd.h>
27757 #ifndef SHUT_RD
27758 #       define SHUT_RD  0
27759 #endif
27760 #ifndef SHUT_WR
27761 #       define SHUT_WR  1
27762 #endif
27763
27764 static void sigpipe(int sig)
27765 {
27766         _exit(0);
27767 }
27768
27769 int main()
27770 {
27771         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
27772         char buf[256];
27773         int sfd[2], s;
27774         pid_t pid;
27775         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27776                 return 1;
27777         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27778                 return 1;
27779         if ((pid = fork()) < 0)
27780                 return 1;
27781         if (pid) {
27782                 close(sfd[1]);
27783                 waitpid(-1,&s,0);
27784                 if (read(sfd[0],buf,sizeof(buf)) < 0)
27785                         return 1;
27786         } else {
27787                 close(sfd[0]);
27788                 write(sfd[1],test,sizeof(test) - 1);
27789                 return 0;
27790         }
27791         close(sfd[0]);
27792         signal(SIGPIPE, sigpipe);
27793         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27794                 return 1;
27795         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27796                 return 1;
27797         close(sfd[0]);
27798         write(sfd[1],test,sizeof(test) - 1);
27799         return 1;
27800 }
27801 _ACEOF
27802 if ac_fn_c_try_run "$LINENO"; then :
27803   pipeline_cv_socketpair_pipe=yes
27804 else
27805   pipeline_cv_socketpair_pipe=no
27806 fi
27807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27808   conftest.$ac_objext conftest.beam conftest.$ac_ext
27809 fi
27810
27811
27812 fi
27813
27814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
27815 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
27816   if test "$pipeline_cv_socketpair_pipe" = yes; then
27817
27818 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
27819
27820   fi
27821
27822       if test "$pipeline_cv_socketpair_pipe" = yes; then
27823          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
27824 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
27825   if ${pipeline_cv_socketpair_mode+:} false; then :
27826   $as_echo_n "(cached) " >&6
27827 else
27828
27829     if test "$cross_compiling" = yes; then :
27830   pipeline_cv_socketpair_mode=no
27831 else
27832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27833 /* end confdefs.h.  */
27834
27835 #include <netdb.h>
27836 #include <netinet/in.h>
27837 #include <sys/stat.h>
27838 #include <sys/socket.h>
27839 #include <sys/types.h>
27840 #include <unistd.h>
27841 #ifndef SHUT_RD
27842 #       define SHUT_RD  0
27843 #endif
27844 #ifndef SHUT_WR
27845 #       define SHUT_WR  1
27846 #endif
27847
27848 int main()
27849 {
27850         int sfd[2];
27851         struct stat st[2];
27852         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27853                 return 1;
27854         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27855                 return 1;
27856         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
27857                 return 1;
27858         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
27859                 return 1;
27860         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
27861                 return 1;
27862         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
27863                 return 1;
27864         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
27865                 return 1;
27866         return 0;
27867 }
27868 _ACEOF
27869 if ac_fn_c_try_run "$LINENO"; then :
27870   pipeline_cv_socketpair_mode=yes
27871 else
27872   pipeline_cv_socketpair_mode=no
27873 fi
27874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27875   conftest.$ac_objext conftest.beam conftest.$ac_ext
27876 fi
27877
27878
27879 fi
27880
27881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
27882 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
27883   if test "$pipeline_cv_socketpair_mode" = yes; then
27884
27885 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
27886
27887   fi
27888
27889       fi
27890     fi
27891
27892 fi
27893
27894
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
27896 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
27898 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
27900 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
27902 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
27904 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
27906 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
27907
27908 ac_config_files="$ac_config_files Makefile gl/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
27909
27910 cat >confcache <<\_ACEOF
27911 # This file is a shell script that caches the results of configure
27912 # tests run on this system so they can be shared between configure
27913 # scripts and configure runs, see configure's option --config-cache.
27914 # It is not useful on other systems.  If it contains results you don't
27915 # want to keep, you may remove or edit it.
27916 #
27917 # config.status only pays attention to the cache file if you give it
27918 # the --recheck option to rerun configure.
27919 #
27920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27922 # following values.
27923
27924 _ACEOF
27925
27926 # The following way of writing the cache mishandles newlines in values,
27927 # but we know of no workaround that is simple, portable, and efficient.
27928 # So, we kill variables containing newlines.
27929 # Ultrix sh set writes to stderr and can't be redirected directly,
27930 # and sets the high bit in the cache file unless we assign to the vars.
27931 (
27932   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27933     eval ac_val=\$$ac_var
27934     case $ac_val in #(
27935     *${as_nl}*)
27936       case $ac_var in #(
27937       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27939       esac
27940       case $ac_var in #(
27941       _ | IFS | as_nl) ;; #(
27942       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27943       *) { eval $ac_var=; unset $ac_var;} ;;
27944       esac ;;
27945     esac
27946   done
27947
27948   (set) 2>&1 |
27949     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27950     *${as_nl}ac_space=\ *)
27951       # `set' does not quote correctly, so add quotes: double-quote
27952       # substitution turns \\\\ into \\, and sed turns \\ into \.
27953       sed -n \
27954         "s/'/'\\\\''/g;
27955           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27956       ;; #(
27957     *)
27958       # `set' quotes correctly as required by POSIX, so do not add quotes.
27959       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27960       ;;
27961     esac |
27962     sort
27963 ) |
27964   sed '
27965      /^ac_cv_env_/b end
27966      t clear
27967      :clear
27968      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27969      t end
27970      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27971      :end' >>confcache
27972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27973   if test -w "$cache_file"; then
27974     if test "x$cache_file" != "x/dev/null"; then
27975       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27976 $as_echo "$as_me: updating cache $cache_file" >&6;}
27977       if test ! -f "$cache_file" || test -h "$cache_file"; then
27978         cat confcache >"$cache_file"
27979       else
27980         case $cache_file in #(
27981         */* | ?:*)
27982           mv -f confcache "$cache_file"$$ &&
27983           mv -f "$cache_file"$$ "$cache_file" ;; #(
27984         *)
27985           mv -f confcache "$cache_file" ;;
27986         esac
27987       fi
27988     fi
27989   else
27990     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27992   fi
27993 fi
27994 rm -f confcache
27995
27996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27997 # Let make expand exec_prefix.
27998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27999
28000 DEFS=-DHAVE_CONFIG_H
28001
28002 ac_libobjs=
28003 ac_ltlibobjs=
28004 U=
28005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28006   # 1. Remove the extension, and $U if already installed.
28007   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28008   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28009   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28010   #    will be set to the directory where LIBOBJS objects are built.
28011   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28012   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28013 done
28014 LIBOBJS=$ac_libobjs
28015
28016 LTLIBOBJS=$ac_ltlibobjs
28017
28018
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28020 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28021    if test -n "$am_sleep_pid"; then
28022      # Hide warnings about reused PIDs.
28023      wait $am_sleep_pid 2>/dev/null
28024    fi
28025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28026 $as_echo "done" >&6; }
28027  if test -n "$EXEEXT"; then
28028   am__EXEEXT_TRUE=
28029   am__EXEEXT_FALSE='#'
28030 else
28031   am__EXEEXT_TRUE='#'
28032   am__EXEEXT_FALSE=
28033 fi
28034
28035 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28036   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28038 fi
28039 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28040   as_fn_error $? "conditional \"AMDEP\" was never defined.
28041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28042 fi
28043 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28044   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28046 fi
28047 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28048   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28050 fi
28051 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
28052   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
28053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28054 fi
28055 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28056   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28058 fi
28059 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28060   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28062 fi
28063 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28064   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28066 fi
28067 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28068   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28070 fi
28071 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28072   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28074 fi
28075 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28076   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
28077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28078 fi
28079 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28080   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28082 fi
28083 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28084   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28086 fi
28087 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28088   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28090 fi
28091 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28092   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28094 fi
28095
28096
28097     gl_libobjs=
28098     gl_ltlibobjs=
28099     if test -n "$gl_LIBOBJS"; then
28100       # Remove the extension.
28101       sed_drop_objext='s/\.o$//;s/\.obj$//'
28102       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28103         gl_libobjs="$gl_libobjs $i.$ac_objext"
28104         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28105       done
28106     fi
28107     gl_LIBOBJS=$gl_libobjs
28108
28109     gl_LTLIBOBJS=$gl_ltlibobjs
28110
28111
28112
28113     gltests_libobjs=
28114     gltests_ltlibobjs=
28115     if test -n "$gltests_LIBOBJS"; then
28116       # Remove the extension.
28117       sed_drop_objext='s/\.o$//;s/\.obj$//'
28118       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28119         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28120         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28121       done
28122     fi
28123     gltests_LIBOBJS=$gltests_libobjs
28124
28125     gltests_LTLIBOBJS=$gltests_ltlibobjs
28126
28127
28128
28129 : "${CONFIG_STATUS=./config.status}"
28130 ac_write_fail=0
28131 ac_clean_files_save=$ac_clean_files
28132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28134 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28135 as_write_fail=0
28136 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28137 #! $SHELL
28138 # Generated by $as_me.
28139 # Run this file to recreate the current configuration.
28140 # Compiler output produced by configure, useful for debugging
28141 # configure, is in config.log if it exists.
28142
28143 debug=false
28144 ac_cs_recheck=false
28145 ac_cs_silent=false
28146
28147 SHELL=\${CONFIG_SHELL-$SHELL}
28148 export SHELL
28149 _ASEOF
28150 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28151 ## -------------------- ##
28152 ## M4sh Initialization. ##
28153 ## -------------------- ##
28154
28155 # Be more Bourne compatible
28156 DUALCASE=1; export DUALCASE # for MKS sh
28157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28158   emulate sh
28159   NULLCMD=:
28160   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28161   # is contrary to our usage.  Disable this feature.
28162   alias -g '${1+"$@"}'='"$@"'
28163   setopt NO_GLOB_SUBST
28164 else
28165   case `(set -o) 2>/dev/null` in #(
28166   *posix*) :
28167     set -o posix ;; #(
28168   *) :
28169      ;;
28170 esac
28171 fi
28172
28173
28174 as_nl='
28175 '
28176 export as_nl
28177 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28178 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28179 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28181 # Prefer a ksh shell builtin over an external printf program on Solaris,
28182 # but without wasting forks for bash or zsh.
28183 if test -z "$BASH_VERSION$ZSH_VERSION" \
28184     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28185   as_echo='print -r --'
28186   as_echo_n='print -rn --'
28187 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28188   as_echo='printf %s\n'
28189   as_echo_n='printf %s'
28190 else
28191   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28192     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28193     as_echo_n='/usr/ucb/echo -n'
28194   else
28195     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28196     as_echo_n_body='eval
28197       arg=$1;
28198       case $arg in #(
28199       *"$as_nl"*)
28200         expr "X$arg" : "X\\(.*\\)$as_nl";
28201         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28202       esac;
28203       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28204     '
28205     export as_echo_n_body
28206     as_echo_n='sh -c $as_echo_n_body as_echo'
28207   fi
28208   export as_echo_body
28209   as_echo='sh -c $as_echo_body as_echo'
28210 fi
28211
28212 # The user is always right.
28213 if test "${PATH_SEPARATOR+set}" != set; then
28214   PATH_SEPARATOR=:
28215   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28216     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28217       PATH_SEPARATOR=';'
28218   }
28219 fi
28220
28221
28222 # IFS
28223 # We need space, tab and new line, in precisely that order.  Quoting is
28224 # there to prevent editors from complaining about space-tab.
28225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28226 # splitting by setting IFS to empty value.)
28227 IFS=" ""        $as_nl"
28228
28229 # Find who we are.  Look in the path if we contain no directory separator.
28230 as_myself=
28231 case $0 in #((
28232   *[\\/]* ) as_myself=$0 ;;
28233   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28234 for as_dir in $PATH
28235 do
28236   IFS=$as_save_IFS
28237   test -z "$as_dir" && as_dir=.
28238     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28239   done
28240 IFS=$as_save_IFS
28241
28242      ;;
28243 esac
28244 # We did not find ourselves, most probably we were run as `sh COMMAND'
28245 # in which case we are not to be found in the path.
28246 if test "x$as_myself" = x; then
28247   as_myself=$0
28248 fi
28249 if test ! -f "$as_myself"; then
28250   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28251   exit 1
28252 fi
28253
28254 # Unset variables that we do not need and which cause bugs (e.g. in
28255 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28256 # suppresses any "Segmentation fault" message there.  '((' could
28257 # trigger a bug in pdksh 5.2.14.
28258 for as_var in BASH_ENV ENV MAIL MAILPATH
28259 do eval test x\${$as_var+set} = xset \
28260   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28261 done
28262 PS1='$ '
28263 PS2='> '
28264 PS4='+ '
28265
28266 # NLS nuisances.
28267 LC_ALL=C
28268 export LC_ALL
28269 LANGUAGE=C
28270 export LANGUAGE
28271
28272 # CDPATH.
28273 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28274
28275
28276 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28277 # ----------------------------------------
28278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28280 # script with STATUS, using 1 if that was 0.
28281 as_fn_error ()
28282 {
28283   as_status=$1; test $as_status -eq 0 && as_status=1
28284   if test "$4"; then
28285     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28286     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28287   fi
28288   $as_echo "$as_me: error: $2" >&2
28289   as_fn_exit $as_status
28290 } # as_fn_error
28291
28292
28293 # as_fn_set_status STATUS
28294 # -----------------------
28295 # Set $? to STATUS, without forking.
28296 as_fn_set_status ()
28297 {
28298   return $1
28299 } # as_fn_set_status
28300
28301 # as_fn_exit STATUS
28302 # -----------------
28303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28304 as_fn_exit ()
28305 {
28306   set +e
28307   as_fn_set_status $1
28308   exit $1
28309 } # as_fn_exit
28310
28311 # as_fn_unset VAR
28312 # ---------------
28313 # Portably unset VAR.
28314 as_fn_unset ()
28315 {
28316   { eval $1=; unset $1;}
28317 }
28318 as_unset=as_fn_unset
28319 # as_fn_append VAR VALUE
28320 # ----------------------
28321 # Append the text in VALUE to the end of the definition contained in VAR. Take
28322 # advantage of any shell optimizations that allow amortized linear growth over
28323 # repeated appends, instead of the typical quadratic growth present in naive
28324 # implementations.
28325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28326   eval 'as_fn_append ()
28327   {
28328     eval $1+=\$2
28329   }'
28330 else
28331   as_fn_append ()
28332   {
28333     eval $1=\$$1\$2
28334   }
28335 fi # as_fn_append
28336
28337 # as_fn_arith ARG...
28338 # ------------------
28339 # Perform arithmetic evaluation on the ARGs, and store the result in the
28340 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28341 # must be portable across $(()) and expr.
28342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28343   eval 'as_fn_arith ()
28344   {
28345     as_val=$(( $* ))
28346   }'
28347 else
28348   as_fn_arith ()
28349   {
28350     as_val=`expr "$@" || test $? -eq 1`
28351   }
28352 fi # as_fn_arith
28353
28354
28355 if expr a : '\(a\)' >/dev/null 2>&1 &&
28356    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28357   as_expr=expr
28358 else
28359   as_expr=false
28360 fi
28361
28362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28363   as_basename=basename
28364 else
28365   as_basename=false
28366 fi
28367
28368 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28369   as_dirname=dirname
28370 else
28371   as_dirname=false
28372 fi
28373
28374 as_me=`$as_basename -- "$0" ||
28375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28376          X"$0" : 'X\(//\)$' \| \
28377          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28378 $as_echo X/"$0" |
28379     sed '/^.*\/\([^/][^/]*\)\/*$/{
28380             s//\1/
28381             q
28382           }
28383           /^X\/\(\/\/\)$/{
28384             s//\1/
28385             q
28386           }
28387           /^X\/\(\/\).*/{
28388             s//\1/
28389             q
28390           }
28391           s/.*/./; q'`
28392
28393 # Avoid depending upon Character Ranges.
28394 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28395 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28396 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28397 as_cr_digits='0123456789'
28398 as_cr_alnum=$as_cr_Letters$as_cr_digits
28399
28400 ECHO_C= ECHO_N= ECHO_T=
28401 case `echo -n x` in #(((((
28402 -n*)
28403   case `echo 'xy\c'` in
28404   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28405   xy)  ECHO_C='\c';;
28406   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28407        ECHO_T=' ';;
28408   esac;;
28409 *)
28410   ECHO_N='-n';;
28411 esac
28412
28413 rm -f conf$$ conf$$.exe conf$$.file
28414 if test -d conf$$.dir; then
28415   rm -f conf$$.dir/conf$$.file
28416 else
28417   rm -f conf$$.dir
28418   mkdir conf$$.dir 2>/dev/null
28419 fi
28420 if (echo >conf$$.file) 2>/dev/null; then
28421   if ln -s conf$$.file conf$$ 2>/dev/null; then
28422     as_ln_s='ln -s'
28423     # ... but there are two gotchas:
28424     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28425     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28426     # In both cases, we have to default to `cp -pR'.
28427     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28428       as_ln_s='cp -pR'
28429   elif ln conf$$.file conf$$ 2>/dev/null; then
28430     as_ln_s=ln
28431   else
28432     as_ln_s='cp -pR'
28433   fi
28434 else
28435   as_ln_s='cp -pR'
28436 fi
28437 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28438 rmdir conf$$.dir 2>/dev/null
28439
28440
28441 # as_fn_mkdir_p
28442 # -------------
28443 # Create "$as_dir" as a directory, including parents if necessary.
28444 as_fn_mkdir_p ()
28445 {
28446
28447   case $as_dir in #(
28448   -*) as_dir=./$as_dir;;
28449   esac
28450   test -d "$as_dir" || eval $as_mkdir_p || {
28451     as_dirs=
28452     while :; do
28453       case $as_dir in #(
28454       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28455       *) as_qdir=$as_dir;;
28456       esac
28457       as_dirs="'$as_qdir' $as_dirs"
28458       as_dir=`$as_dirname -- "$as_dir" ||
28459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28460          X"$as_dir" : 'X\(//\)[^/]' \| \
28461          X"$as_dir" : 'X\(//\)$' \| \
28462          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28463 $as_echo X"$as_dir" |
28464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28465             s//\1/
28466             q
28467           }
28468           /^X\(\/\/\)[^/].*/{
28469             s//\1/
28470             q
28471           }
28472           /^X\(\/\/\)$/{
28473             s//\1/
28474             q
28475           }
28476           /^X\(\/\).*/{
28477             s//\1/
28478             q
28479           }
28480           s/.*/./; q'`
28481       test -d "$as_dir" && break
28482     done
28483     test -z "$as_dirs" || eval "mkdir $as_dirs"
28484   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28485
28486
28487 } # as_fn_mkdir_p
28488 if mkdir -p . 2>/dev/null; then
28489   as_mkdir_p='mkdir -p "$as_dir"'
28490 else
28491   test -d ./-p && rmdir ./-p
28492   as_mkdir_p=false
28493 fi
28494
28495
28496 # as_fn_executable_p FILE
28497 # -----------------------
28498 # Test if FILE is an executable regular file.
28499 as_fn_executable_p ()
28500 {
28501   test -f "$1" && test -x "$1"
28502 } # as_fn_executable_p
28503 as_test_x='test -x'
28504 as_executable_p=as_fn_executable_p
28505
28506 # Sed expression to map a string onto a valid CPP name.
28507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28508
28509 # Sed expression to map a string onto a valid variable name.
28510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28511
28512
28513 exec 6>&1
28514 ## ----------------------------------- ##
28515 ## Main body of $CONFIG_STATUS script. ##
28516 ## ----------------------------------- ##
28517 _ASEOF
28518 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28519
28520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28521 # Save the log message, to keep $0 and so on meaningful, and to
28522 # report actual input values of CONFIG_FILES etc. instead of their
28523 # values after options handling.
28524 ac_log="
28525 This file was extended by libpipeline $as_me 1.5.1, which was
28526 generated by GNU Autoconf 2.69.  Invocation command line was
28527
28528   CONFIG_FILES    = $CONFIG_FILES
28529   CONFIG_HEADERS  = $CONFIG_HEADERS
28530   CONFIG_LINKS    = $CONFIG_LINKS
28531   CONFIG_COMMANDS = $CONFIG_COMMANDS
28532   $ $0 $@
28533
28534 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28535 "
28536
28537 _ACEOF
28538
28539 case $ac_config_files in *"
28540 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28541 esac
28542
28543 case $ac_config_headers in *"
28544 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28545 esac
28546
28547
28548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28549 # Files that config.status was made for.
28550 config_files="$ac_config_files"
28551 config_headers="$ac_config_headers"
28552 config_commands="$ac_config_commands"
28553
28554 _ACEOF
28555
28556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28557 ac_cs_usage="\
28558 \`$as_me' instantiates files and other configuration actions
28559 from templates according to the current configuration.  Unless the files
28560 and actions are specified as TAGs, all are instantiated by default.
28561
28562 Usage: $0 [OPTION]... [TAG]...
28563
28564   -h, --help       print this help, then exit
28565   -V, --version    print version number and configuration settings, then exit
28566       --config     print configuration, then exit
28567   -q, --quiet, --silent
28568                    do not print progress messages
28569   -d, --debug      don't remove temporary files
28570       --recheck    update $as_me by reconfiguring in the same conditions
28571       --file=FILE[:TEMPLATE]
28572                    instantiate the configuration file FILE
28573       --header=FILE[:TEMPLATE]
28574                    instantiate the configuration header FILE
28575
28576 Configuration files:
28577 $config_files
28578
28579 Configuration headers:
28580 $config_headers
28581
28582 Configuration commands:
28583 $config_commands
28584
28585 Report bugs to <cjwatson@debian.org>."
28586
28587 _ACEOF
28588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28590 ac_cs_version="\\
28591 libpipeline config.status 1.5.1
28592 configured by $0, generated by GNU Autoconf 2.69,
28593   with options \\"\$ac_cs_config\\"
28594
28595 Copyright (C) 2012 Free Software Foundation, Inc.
28596 This config.status script is free software; the Free Software Foundation
28597 gives unlimited permission to copy, distribute and modify it."
28598
28599 ac_pwd='$ac_pwd'
28600 srcdir='$srcdir'
28601 INSTALL='$INSTALL'
28602 MKDIR_P='$MKDIR_P'
28603 AWK='$AWK'
28604 test -n "\$AWK" || AWK=awk
28605 _ACEOF
28606
28607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28608 # The default lists apply if the user does not specify any file.
28609 ac_need_defaults=:
28610 while test $# != 0
28611 do
28612   case $1 in
28613   --*=?*)
28614     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28615     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28616     ac_shift=:
28617     ;;
28618   --*=)
28619     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28620     ac_optarg=
28621     ac_shift=:
28622     ;;
28623   *)
28624     ac_option=$1
28625     ac_optarg=$2
28626     ac_shift=shift
28627     ;;
28628   esac
28629
28630   case $ac_option in
28631   # Handling of the options.
28632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28633     ac_cs_recheck=: ;;
28634   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28635     $as_echo "$ac_cs_version"; exit ;;
28636   --config | --confi | --conf | --con | --co | --c )
28637     $as_echo "$ac_cs_config"; exit ;;
28638   --debug | --debu | --deb | --de | --d | -d )
28639     debug=: ;;
28640   --file | --fil | --fi | --f )
28641     $ac_shift
28642     case $ac_optarg in
28643     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28644     '') as_fn_error $? "missing file argument" ;;
28645     esac
28646     as_fn_append CONFIG_FILES " '$ac_optarg'"
28647     ac_need_defaults=false;;
28648   --header | --heade | --head | --hea )
28649     $ac_shift
28650     case $ac_optarg in
28651     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28652     esac
28653     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28654     ac_need_defaults=false;;
28655   --he | --h)
28656     # Conflict between --help and --header
28657     as_fn_error $? "ambiguous option: \`$1'
28658 Try \`$0 --help' for more information.";;
28659   --help | --hel | -h )
28660     $as_echo "$ac_cs_usage"; exit ;;
28661   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28662   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28663     ac_cs_silent=: ;;
28664
28665   # This is an error.
28666   -*) as_fn_error $? "unrecognized option: \`$1'
28667 Try \`$0 --help' for more information." ;;
28668
28669   *) as_fn_append ac_config_targets " $1"
28670      ac_need_defaults=false ;;
28671
28672   esac
28673   shift
28674 done
28675
28676 ac_configure_extra_args=
28677
28678 if $ac_cs_silent; then
28679   exec 6>/dev/null
28680   ac_configure_extra_args="$ac_configure_extra_args --silent"
28681 fi
28682
28683 _ACEOF
28684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28685 if \$ac_cs_recheck; then
28686   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28687   shift
28688   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28689   CONFIG_SHELL='$SHELL'
28690   export CONFIG_SHELL
28691   exec "\$@"
28692 fi
28693
28694 _ACEOF
28695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28696 exec 5>>config.log
28697 {
28698   echo
28699   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28700 ## Running $as_me. ##
28701 _ASBOX
28702   $as_echo "$ac_log"
28703 } >&5
28704
28705 _ACEOF
28706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28707 #
28708 # INIT-COMMANDS
28709 #
28710 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28711
28712
28713 # The HP-UX ksh and POSIX shell print the target directory to stdout
28714 # if CDPATH is set.
28715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28716
28717 sed_quote_subst='$sed_quote_subst'
28718 double_quote_subst='$double_quote_subst'
28719 delay_variable_subst='$delay_variable_subst'
28720 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28721 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28722 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28723 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28724 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28725 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28726 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28727 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28728 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28729 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28730 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28731 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28732 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28733 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28734 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28735 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28736 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28737 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28738 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28739 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28740 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28741 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28742 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28743 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28744 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28745 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28746 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28747 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28748 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28749 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28750 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28751 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28752 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28753 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28754 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28755 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28756 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28757 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28758 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28759 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28760 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28761 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28762 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28763 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28764 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28765 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28766 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28767 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28768 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28769 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28770 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28771 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28772 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28773 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28774 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28775 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28776 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28777 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28778 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"`'
28779 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28780 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28781 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28782 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28783 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28784 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28785 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28786 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28787 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28788 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28789 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28790 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28791 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28792 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28793 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28794 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28795 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28796 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28797 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28798 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28799 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28800 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28801 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28802 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28803 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28804 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28805 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28806 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28807 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28808 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28809 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28810 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28811 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28812 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28813 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28814 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28815 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28816 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28817 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28818 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28819 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28820 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28821 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28822 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28823 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28824 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28825 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28826 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28827 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28828 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28829 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28830 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28831 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28832 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28833 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28834 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28835 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28836 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28837 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28838 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28839 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28840 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28841 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28842 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28843 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28844 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28845 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28846 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28847 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28848 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28849 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28850 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28851 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28852 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28853 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28854 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28855
28856 LTCC='$LTCC'
28857 LTCFLAGS='$LTCFLAGS'
28858 compiler='$compiler_DEFAULT'
28859
28860 # A function that is used when there is no print builtin or printf.
28861 func_fallback_echo ()
28862 {
28863   eval 'cat <<_LTECHO_EOF
28864 \$1
28865 _LTECHO_EOF'
28866 }
28867
28868 # Quote evaled strings.
28869 for var in SHELL \
28870 ECHO \
28871 PATH_SEPARATOR \
28872 SED \
28873 GREP \
28874 EGREP \
28875 FGREP \
28876 LD \
28877 NM \
28878 LN_S \
28879 lt_SP2NL \
28880 lt_NL2SP \
28881 reload_flag \
28882 OBJDUMP \
28883 deplibs_check_method \
28884 file_magic_cmd \
28885 file_magic_glob \
28886 want_nocaseglob \
28887 DLLTOOL \
28888 sharedlib_from_linklib_cmd \
28889 AR \
28890 AR_FLAGS \
28891 archiver_list_spec \
28892 STRIP \
28893 RANLIB \
28894 CC \
28895 CFLAGS \
28896 compiler \
28897 lt_cv_sys_global_symbol_pipe \
28898 lt_cv_sys_global_symbol_to_cdecl \
28899 lt_cv_sys_global_symbol_to_import \
28900 lt_cv_sys_global_symbol_to_c_name_address \
28901 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28902 lt_cv_nm_interface \
28903 nm_file_list_spec \
28904 lt_cv_truncate_bin \
28905 lt_prog_compiler_no_builtin_flag \
28906 lt_prog_compiler_pic \
28907 lt_prog_compiler_wl \
28908 lt_prog_compiler_static \
28909 lt_cv_prog_compiler_c_o \
28910 need_locks \
28911 MANIFEST_TOOL \
28912 DSYMUTIL \
28913 NMEDIT \
28914 LIPO \
28915 OTOOL \
28916 OTOOL64 \
28917 shrext_cmds \
28918 export_dynamic_flag_spec \
28919 whole_archive_flag_spec \
28920 compiler_needs_object \
28921 with_gnu_ld \
28922 allow_undefined_flag \
28923 no_undefined_flag \
28924 hardcode_libdir_flag_spec \
28925 hardcode_libdir_separator \
28926 exclude_expsyms \
28927 include_expsyms \
28928 file_list_spec \
28929 variables_saved_for_relink \
28930 libname_spec \
28931 library_names_spec \
28932 soname_spec \
28933 install_override_mode \
28934 finish_eval \
28935 old_striplib \
28936 striplib; do
28937     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28938     *[\\\\\\\`\\"\\\$]*)
28939       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28940       ;;
28941     *)
28942       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28943       ;;
28944     esac
28945 done
28946
28947 # Double-quote double-evaled strings.
28948 for var in reload_cmds \
28949 old_postinstall_cmds \
28950 old_postuninstall_cmds \
28951 old_archive_cmds \
28952 extract_expsyms_cmds \
28953 old_archive_from_new_cmds \
28954 old_archive_from_expsyms_cmds \
28955 archive_cmds \
28956 archive_expsym_cmds \
28957 module_cmds \
28958 module_expsym_cmds \
28959 export_symbols_cmds \
28960 prelink_cmds \
28961 postlink_cmds \
28962 postinstall_cmds \
28963 postuninstall_cmds \
28964 finish_cmds \
28965 sys_lib_search_path_spec \
28966 configure_time_dlsearch_path \
28967 configure_time_lt_sys_library_path; do
28968     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28969     *[\\\\\\\`\\"\\\$]*)
28970       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28971       ;;
28972     *)
28973       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28974       ;;
28975     esac
28976 done
28977
28978 ac_aux_dir='$ac_aux_dir'
28979
28980 # See if we are running on zsh, and set the options that allow our
28981 # commands through without removal of \ escapes INIT.
28982 if test -n "\${ZSH_VERSION+set}"; then
28983    setopt NO_GLOB_SUBST
28984 fi
28985
28986
28987     PACKAGE='$PACKAGE'
28988     VERSION='$VERSION'
28989     RM='$RM'
28990     ofile='$ofile'
28991
28992
28993
28994
28995 _ACEOF
28996
28997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28998
28999 # Handling of arguments.
29000 for ac_config_target in $ac_config_targets
29001 do
29002   case $ac_config_target in
29003     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29004     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29005     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29006     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29007     "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;;
29008     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29009     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
29010     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
29011     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29012
29013   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29014   esac
29015 done
29016
29017
29018 # If the user did not use the arguments to specify the items to instantiate,
29019 # then the envvar interface is used.  Set only those that are not.
29020 # We use the long form for the default assignment because of an extremely
29021 # bizarre bug on SunOS 4.1.3.
29022 if $ac_need_defaults; then
29023   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29024   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29025   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29026 fi
29027
29028 # Have a temporary directory for convenience.  Make it in the build tree
29029 # simply because there is no reason against having it here, and in addition,
29030 # creating and moving files from /tmp can sometimes cause problems.
29031 # Hook for its removal unless debugging.
29032 # Note that there is a small window in which the directory will not be cleaned:
29033 # after its creation but before its name has been assigned to `$tmp'.
29034 $debug ||
29035 {
29036   tmp= ac_tmp=
29037   trap 'exit_status=$?
29038   : "${ac_tmp:=$tmp}"
29039   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29040 ' 0
29041   trap 'as_fn_exit 1' 1 2 13 15
29042 }
29043 # Create a (secure) tmp directory for tmp files.
29044
29045 {
29046   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29047   test -d "$tmp"
29048 }  ||
29049 {
29050   tmp=./conf$$-$RANDOM
29051   (umask 077 && mkdir "$tmp")
29052 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29053 ac_tmp=$tmp
29054
29055 # Set up the scripts for CONFIG_FILES section.
29056 # No need to generate them if there are no CONFIG_FILES.
29057 # This happens for instance with `./config.status config.h'.
29058 if test -n "$CONFIG_FILES"; then
29059
29060
29061 ac_cr=`echo X | tr X '\015'`
29062 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29063 # But we know of no other shell where ac_cr would be empty at this
29064 # point, so we can use a bashism as a fallback.
29065 if test "x$ac_cr" = x; then
29066   eval ac_cr=\$\'\\r\'
29067 fi
29068 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29069 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29070   ac_cs_awk_cr='\\r'
29071 else
29072   ac_cs_awk_cr=$ac_cr
29073 fi
29074
29075 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29076 _ACEOF
29077
29078
29079 {
29080   echo "cat >conf$$subs.awk <<_ACEOF" &&
29081   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29082   echo "_ACEOF"
29083 } >conf$$subs.sh ||
29084   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29085 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29086 ac_delim='%!_!# '
29087 for ac_last_try in false false false false false :; do
29088   . ./conf$$subs.sh ||
29089     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29090
29091   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29092   if test $ac_delim_n = $ac_delim_num; then
29093     break
29094   elif $ac_last_try; then
29095     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29096   else
29097     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29098   fi
29099 done
29100 rm -f conf$$subs.sh
29101
29102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29103 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29104 _ACEOF
29105 sed -n '
29106 h
29107 s/^/S["/; s/!.*/"]=/
29108 p
29109 g
29110 s/^[^!]*!//
29111 :repl
29112 t repl
29113 s/'"$ac_delim"'$//
29114 t delim
29115 :nl
29116 h
29117 s/\(.\{148\}\)..*/\1/
29118 t more1
29119 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29120 p
29121 n
29122 b repl
29123 :more1
29124 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29125 p
29126 g
29127 s/.\{148\}//
29128 t nl
29129 :delim
29130 h
29131 s/\(.\{148\}\)..*/\1/
29132 t more2
29133 s/["\\]/\\&/g; s/^/"/; s/$/"/
29134 p
29135 b
29136 :more2
29137 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29138 p
29139 g
29140 s/.\{148\}//
29141 t delim
29142 ' <conf$$subs.awk | sed '
29143 /^[^""]/{
29144   N
29145   s/\n//
29146 }
29147 ' >>$CONFIG_STATUS || ac_write_fail=1
29148 rm -f conf$$subs.awk
29149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29150 _ACAWK
29151 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29152   for (key in S) S_is_set[key] = 1
29153   FS = "\a"
29154
29155 }
29156 {
29157   line = $ 0
29158   nfields = split(line, field, "@")
29159   substed = 0
29160   len = length(field[1])
29161   for (i = 2; i < nfields; i++) {
29162     key = field[i]
29163     keylen = length(key)
29164     if (S_is_set[key]) {
29165       value = S[key]
29166       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29167       len += length(value) + length(field[++i])
29168       substed = 1
29169     } else
29170       len += 1 + keylen
29171   }
29172
29173   print line
29174 }
29175
29176 _ACAWK
29177 _ACEOF
29178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29179 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29180   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29181 else
29182   cat
29183 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29184   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29185 _ACEOF
29186
29187 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29188 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29189 # trailing colons and then remove the whole line if VPATH becomes empty
29190 # (actually we leave an empty line to preserve line numbers).
29191 if test "x$srcdir" = x.; then
29192   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
29193 h
29194 s///
29195 s/^/:/
29196 s/[      ]*$/:/
29197 s/:\$(srcdir):/:/g
29198 s/:\${srcdir}:/:/g
29199 s/:@srcdir@:/:/g
29200 s/^:*//
29201 s/:*$//
29202 x
29203 s/\(=[   ]*\).*/\1/
29204 G
29205 s/\n//
29206 s/^[^=]*=[       ]*$//
29207 }'
29208 fi
29209
29210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29211 fi # test -n "$CONFIG_FILES"
29212
29213 # Set up the scripts for CONFIG_HEADERS section.
29214 # No need to generate them if there are no CONFIG_HEADERS.
29215 # This happens for instance with `./config.status Makefile'.
29216 if test -n "$CONFIG_HEADERS"; then
29217 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29218 BEGIN {
29219 _ACEOF
29220
29221 # Transform confdefs.h into an awk script `defines.awk', embedded as
29222 # here-document in config.status, that substitutes the proper values into
29223 # config.h.in to produce config.h.
29224
29225 # Create a delimiter string that does not exist in confdefs.h, to ease
29226 # handling of long lines.
29227 ac_delim='%!_!# '
29228 for ac_last_try in false false :; do
29229   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29230   if test -z "$ac_tt"; then
29231     break
29232   elif $ac_last_try; then
29233     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29234   else
29235     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29236   fi
29237 done
29238
29239 # For the awk script, D is an array of macro values keyed by name,
29240 # likewise P contains macro parameters if any.  Preserve backslash
29241 # newline sequences.
29242
29243 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29244 sed -n '
29245 s/.\{148\}/&'"$ac_delim"'/g
29246 t rset
29247 :rset
29248 s/^[     ]*#[    ]*define[       ][      ]*/ /
29249 t def
29250 d
29251 :def
29252 s/\\$//
29253 t bsnl
29254 s/["\\]/\\&/g
29255 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29256 D["\1"]=" \3"/p
29257 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29258 d
29259 :bsnl
29260 s/["\\]/\\&/g
29261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29262 D["\1"]=" \3\\\\\\n"\\/p
29263 t cont
29264 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29265 t cont
29266 d
29267 :cont
29268 n
29269 s/.\{148\}/&'"$ac_delim"'/g
29270 t clear
29271 :clear
29272 s/\\$//
29273 t bsnlc
29274 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29275 d
29276 :bsnlc
29277 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29278 b cont
29279 ' <confdefs.h | sed '
29280 s/'"$ac_delim"'/"\\\
29281 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29282
29283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29284   for (key in D) D_is_set[key] = 1
29285   FS = "\a"
29286 }
29287 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29288   line = \$ 0
29289   split(line, arg, " ")
29290   if (arg[1] == "#") {
29291     defundef = arg[2]
29292     mac1 = arg[3]
29293   } else {
29294     defundef = substr(arg[1], 2)
29295     mac1 = arg[2]
29296   }
29297   split(mac1, mac2, "(") #)
29298   macro = mac2[1]
29299   prefix = substr(line, 1, index(line, defundef) - 1)
29300   if (D_is_set[macro]) {
29301     # Preserve the white space surrounding the "#".
29302     print prefix "define", macro P[macro] D[macro]
29303     next
29304   } else {
29305     # Replace #undef with comments.  This is necessary, for example,
29306     # in the case of _POSIX_SOURCE, which is predefined and required
29307     # on some systems where configure will not decide to define it.
29308     if (defundef == "undef") {
29309       print "/*", prefix defundef, macro, "*/"
29310       next
29311     }
29312   }
29313 }
29314 { print }
29315 _ACAWK
29316 _ACEOF
29317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29318   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29319 fi # test -n "$CONFIG_HEADERS"
29320
29321
29322 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29323 shift
29324 for ac_tag
29325 do
29326   case $ac_tag in
29327   :[FHLC]) ac_mode=$ac_tag; continue;;
29328   esac
29329   case $ac_mode$ac_tag in
29330   :[FHL]*:*);;
29331   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29332   :[FH]-) ac_tag=-:-;;
29333   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29334   esac
29335   ac_save_IFS=$IFS
29336   IFS=:
29337   set x $ac_tag
29338   IFS=$ac_save_IFS
29339   shift
29340   ac_file=$1
29341   shift
29342
29343   case $ac_mode in
29344   :L) ac_source=$1;;
29345   :[FH])
29346     ac_file_inputs=
29347     for ac_f
29348     do
29349       case $ac_f in
29350       -) ac_f="$ac_tmp/stdin";;
29351       *) # Look for the file first in the build tree, then in the source tree
29352          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29353          # because $ac_f cannot contain `:'.
29354          test -f "$ac_f" ||
29355            case $ac_f in
29356            [\\/$]*) false;;
29357            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29358            esac ||
29359            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29360       esac
29361       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29362       as_fn_append ac_file_inputs " '$ac_f'"
29363     done
29364
29365     # Let's still pretend it is `configure' which instantiates (i.e., don't
29366     # use $as_me), people would be surprised to read:
29367     #    /* config.h.  Generated by config.status.  */
29368     configure_input='Generated from '`
29369           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29370         `' by configure.'
29371     if test x"$ac_file" != x-; then
29372       configure_input="$ac_file.  $configure_input"
29373       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29374 $as_echo "$as_me: creating $ac_file" >&6;}
29375     fi
29376     # Neutralize special characters interpreted by sed in replacement strings.
29377     case $configure_input in #(
29378     *\&* | *\|* | *\\* )
29379        ac_sed_conf_input=`$as_echo "$configure_input" |
29380        sed 's/[\\\\&|]/\\\\&/g'`;; #(
29381     *) ac_sed_conf_input=$configure_input;;
29382     esac
29383
29384     case $ac_tag in
29385     *:-:* | *:-) cat >"$ac_tmp/stdin" \
29386       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29387     esac
29388     ;;
29389   esac
29390
29391   ac_dir=`$as_dirname -- "$ac_file" ||
29392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29393          X"$ac_file" : 'X\(//\)[^/]' \| \
29394          X"$ac_file" : 'X\(//\)$' \| \
29395          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29396 $as_echo X"$ac_file" |
29397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29398             s//\1/
29399             q
29400           }
29401           /^X\(\/\/\)[^/].*/{
29402             s//\1/
29403             q
29404           }
29405           /^X\(\/\/\)$/{
29406             s//\1/
29407             q
29408           }
29409           /^X\(\/\).*/{
29410             s//\1/
29411             q
29412           }
29413           s/.*/./; q'`
29414   as_dir="$ac_dir"; as_fn_mkdir_p
29415   ac_builddir=.
29416
29417 case "$ac_dir" in
29418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29419 *)
29420   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29421   # A ".." for each directory in $ac_dir_suffix.
29422   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29423   case $ac_top_builddir_sub in
29424   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29425   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29426   esac ;;
29427 esac
29428 ac_abs_top_builddir=$ac_pwd
29429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29430 # for backward compatibility:
29431 ac_top_builddir=$ac_top_build_prefix
29432
29433 case $srcdir in
29434   .)  # We are building in place.
29435     ac_srcdir=.
29436     ac_top_srcdir=$ac_top_builddir_sub
29437     ac_abs_top_srcdir=$ac_pwd ;;
29438   [\\/]* | ?:[\\/]* )  # Absolute name.
29439     ac_srcdir=$srcdir$ac_dir_suffix;
29440     ac_top_srcdir=$srcdir
29441     ac_abs_top_srcdir=$srcdir ;;
29442   *) # Relative name.
29443     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29444     ac_top_srcdir=$ac_top_build_prefix$srcdir
29445     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29446 esac
29447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29448
29449
29450   case $ac_mode in
29451   :F)
29452   #
29453   # CONFIG_FILE
29454   #
29455
29456   case $INSTALL in
29457   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29458   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29459   esac
29460   ac_MKDIR_P=$MKDIR_P
29461   case $MKDIR_P in
29462   [\\/$]* | ?:[\\/]* ) ;;
29463   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29464   esac
29465 _ACEOF
29466
29467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29468 # If the template does not know about datarootdir, expand it.
29469 # FIXME: This hack should be removed a few years after 2.60.
29470 ac_datarootdir_hack=; ac_datarootdir_seen=
29471 ac_sed_dataroot='
29472 /datarootdir/ {
29473   p
29474   q
29475 }
29476 /@datadir@/p
29477 /@docdir@/p
29478 /@infodir@/p
29479 /@localedir@/p
29480 /@mandir@/p'
29481 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29482 *datarootdir*) ac_datarootdir_seen=yes;;
29483 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29484   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29485 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29486 _ACEOF
29487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29488   ac_datarootdir_hack='
29489   s&@datadir@&$datadir&g
29490   s&@docdir@&$docdir&g
29491   s&@infodir@&$infodir&g
29492   s&@localedir@&$localedir&g
29493   s&@mandir@&$mandir&g
29494   s&\\\${datarootdir}&$datarootdir&g' ;;
29495 esac
29496 _ACEOF
29497
29498 # Neutralize VPATH when `$srcdir' = `.'.
29499 # Shell code in configure.ac might set extrasub.
29500 # FIXME: do we really want to maintain this feature?
29501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29502 ac_sed_extra="$ac_vpsub
29503 $extrasub
29504 _ACEOF
29505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29506 :t
29507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29508 s|@configure_input@|$ac_sed_conf_input|;t t
29509 s&@top_builddir@&$ac_top_builddir_sub&;t t
29510 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29511 s&@srcdir@&$ac_srcdir&;t t
29512 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29513 s&@top_srcdir@&$ac_top_srcdir&;t t
29514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29515 s&@builddir@&$ac_builddir&;t t
29516 s&@abs_builddir@&$ac_abs_builddir&;t t
29517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29518 s&@INSTALL@&$ac_INSTALL&;t t
29519 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29520 $ac_datarootdir_hack
29521 "
29522 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29523   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29524
29525 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29526   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29527   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
29528       "$ac_tmp/out"`; test -z "$ac_out"; } &&
29529   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29530 which seems to be undefined.  Please make sure it is defined" >&5
29531 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29532 which seems to be undefined.  Please make sure it is defined" >&2;}
29533
29534   rm -f "$ac_tmp/stdin"
29535   case $ac_file in
29536   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29537   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29538   esac \
29539   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29540  ;;
29541   :H)
29542   #
29543   # CONFIG_HEADER
29544   #
29545   if test x"$ac_file" != x-; then
29546     {
29547       $as_echo "/* $configure_input  */" \
29548       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29549     } >"$ac_tmp/config.h" \
29550       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29551     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29552       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29553 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29554     else
29555       rm -f "$ac_file"
29556       mv "$ac_tmp/config.h" "$ac_file" \
29557         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29558     fi
29559   else
29560     $as_echo "/* $configure_input  */" \
29561       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29562       || as_fn_error $? "could not create -" "$LINENO" 5
29563   fi
29564 # Compute "$ac_file"'s index in $config_headers.
29565 _am_arg="$ac_file"
29566 _am_stamp_count=1
29567 for _am_header in $config_headers :; do
29568   case $_am_header in
29569     $_am_arg | $_am_arg:* )
29570       break ;;
29571     * )
29572       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29573   esac
29574 done
29575 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29576 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29577          X"$_am_arg" : 'X\(//\)[^/]' \| \
29578          X"$_am_arg" : 'X\(//\)$' \| \
29579          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29580 $as_echo X"$_am_arg" |
29581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29582             s//\1/
29583             q
29584           }
29585           /^X\(\/\/\)[^/].*/{
29586             s//\1/
29587             q
29588           }
29589           /^X\(\/\/\)$/{
29590             s//\1/
29591             q
29592           }
29593           /^X\(\/\).*/{
29594             s//\1/
29595             q
29596           }
29597           s/.*/./; q'`/stamp-h$_am_stamp_count
29598  ;;
29599
29600   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29601 $as_echo "$as_me: executing $ac_file commands" >&6;}
29602  ;;
29603   esac
29604
29605
29606   case $ac_file$ac_mode in
29607     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29608   # Older Autoconf quotes --file arguments for eval, but not when files
29609   # are listed without --file.  Let's play safe and only enable the eval
29610   # if we detect the quoting.
29611   # TODO: see whether this extra hack can be removed once we start
29612   # requiring Autoconf 2.70 or later.
29613   case $CONFIG_FILES in #(
29614   *\'*) :
29615     eval set x "$CONFIG_FILES" ;; #(
29616   *) :
29617     set x $CONFIG_FILES ;; #(
29618   *) :
29619      ;;
29620 esac
29621   shift
29622   # Used to flag and report bootstrapping failures.
29623   am_rc=0
29624   for am_mf
29625   do
29626     # Strip MF so we end up with the name of the file.
29627     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
29628     # Check whether this is an Automake generated Makefile which includes
29629     # dependency-tracking related rules and includes.
29630     # Grep'ing the whole file directly is not great: AIX grep has a line
29631     # limit of 2048, but all sed's we know have understand at least 4000.
29632     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29633       || continue
29634     am_dirpart=`$as_dirname -- "$am_mf" ||
29635 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29636          X"$am_mf" : 'X\(//\)[^/]' \| \
29637          X"$am_mf" : 'X\(//\)$' \| \
29638          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29639 $as_echo X"$am_mf" |
29640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29641             s//\1/
29642             q
29643           }
29644           /^X\(\/\/\)[^/].*/{
29645             s//\1/
29646             q
29647           }
29648           /^X\(\/\/\)$/{
29649             s//\1/
29650             q
29651           }
29652           /^X\(\/\).*/{
29653             s//\1/
29654             q
29655           }
29656           s/.*/./; q'`
29657     am_filepart=`$as_basename -- "$am_mf" ||
29658 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29659          X"$am_mf" : 'X\(//\)$' \| \
29660          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29661 $as_echo X/"$am_mf" |
29662     sed '/^.*\/\([^/][^/]*\)\/*$/{
29663             s//\1/
29664             q
29665           }
29666           /^X\/\(\/\/\)$/{
29667             s//\1/
29668             q
29669           }
29670           /^X\/\(\/\).*/{
29671             s//\1/
29672             q
29673           }
29674           s/.*/./; q'`
29675     { echo "$as_me:$LINENO: cd "$am_dirpart" \
29676       && sed -e '/# am--include-marker/d' "$am_filepart" \
29677         | $MAKE -f - am--depfiles" >&5
29678    (cd "$am_dirpart" \
29679       && sed -e '/# am--include-marker/d' "$am_filepart" \
29680         | $MAKE -f - am--depfiles) >&5 2>&5
29681    ac_status=$?
29682    echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683    (exit $ac_status); } || am_rc=$?
29684   done
29685   if test $am_rc -ne 0; then
29686     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29688 as_fn_error $? "Something went wrong bootstrapping makefile fragments
29689     for automatic dependency tracking.  Try re-running configure with the
29690     '--disable-dependency-tracking' option to at least be able to build
29691     the package (albeit without support for automatic dependency tracking).
29692 See \`config.log' for more details" "$LINENO" 5; }
29693   fi
29694   { am_dirpart=; unset am_dirpart;}
29695   { am_filepart=; unset am_filepart;}
29696   { am_mf=; unset am_mf;}
29697   { am_rc=; unset am_rc;}
29698   rm -f conftest-deps.mk
29699 }
29700  ;;
29701     "libtool":C)
29702
29703     # See if we are running on zsh, and set the options that allow our
29704     # commands through without removal of \ escapes.
29705     if test -n "${ZSH_VERSION+set}"; then
29706       setopt NO_GLOB_SUBST
29707     fi
29708
29709     cfgfile=${ofile}T
29710     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29711     $RM "$cfgfile"
29712
29713     cat <<_LT_EOF >> "$cfgfile"
29714 #! $SHELL
29715 # Generated automatically by $as_me ($PACKAGE) $VERSION
29716 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29717
29718 # Provide generalized library-building support services.
29719 # Written by Gordon Matzigkeit, 1996
29720
29721 # Copyright (C) 2014 Free Software Foundation, Inc.
29722 # This is free software; see the source for copying conditions.  There is NO
29723 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29724
29725 # GNU Libtool is free software; you can redistribute it and/or modify
29726 # it under the terms of the GNU General Public License as published by
29727 # the Free Software Foundation; either version 2 of of the License, or
29728 # (at your option) any later version.
29729 #
29730 # As a special exception to the GNU General Public License, if you
29731 # distribute this file as part of a program or library that is built
29732 # using GNU Libtool, you may include this file under the  same
29733 # distribution terms that you use for the rest of that program.
29734 #
29735 # GNU Libtool is distributed in the hope that it will be useful, but
29736 # WITHOUT ANY WARRANTY; without even the implied warranty of
29737 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29738 # GNU General Public License for more details.
29739 #
29740 # You should have received a copy of the GNU General Public License
29741 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
29742
29743
29744 # The names of the tagged configurations supported by this script.
29745 available_tags=''
29746
29747 # Configured defaults for sys_lib_dlsearch_path munging.
29748 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29749
29750 # ### BEGIN LIBTOOL CONFIG
29751
29752 # Which release of libtool.m4 was used?
29753 macro_version=$macro_version
29754 macro_revision=$macro_revision
29755
29756 # Whether or not to build static libraries.
29757 build_old_libs=$enable_static
29758
29759 # Whether or not to build shared libraries.
29760 build_libtool_libs=$enable_shared
29761
29762 # What type of objects to build.
29763 pic_mode=$pic_mode
29764
29765 # Whether or not to optimize for fast installation.
29766 fast_install=$enable_fast_install
29767
29768 # Shared archive member basename,for filename based shared library versioning on AIX.
29769 shared_archive_member_spec=$shared_archive_member_spec
29770
29771 # Shell to use when invoking shell scripts.
29772 SHELL=$lt_SHELL
29773
29774 # An echo program that protects backslashes.
29775 ECHO=$lt_ECHO
29776
29777 # The PATH separator for the build system.
29778 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29779
29780 # The host system.
29781 host_alias=$host_alias
29782 host=$host
29783 host_os=$host_os
29784
29785 # The build system.
29786 build_alias=$build_alias
29787 build=$build
29788 build_os=$build_os
29789
29790 # A sed program that does not truncate output.
29791 SED=$lt_SED
29792
29793 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29794 Xsed="\$SED -e 1s/^X//"
29795
29796 # A grep program that handles long lines.
29797 GREP=$lt_GREP
29798
29799 # An ERE matcher.
29800 EGREP=$lt_EGREP
29801
29802 # A literal string matcher.
29803 FGREP=$lt_FGREP
29804
29805 # A BSD- or MS-compatible name lister.
29806 NM=$lt_NM
29807
29808 # Whether we need soft or hard links.
29809 LN_S=$lt_LN_S
29810
29811 # What is the maximum length of a command?
29812 max_cmd_len=$max_cmd_len
29813
29814 # Object file suffix (normally "o").
29815 objext=$ac_objext
29816
29817 # Executable file suffix (normally "").
29818 exeext=$exeext
29819
29820 # whether the shell understands "unset".
29821 lt_unset=$lt_unset
29822
29823 # turn spaces into newlines.
29824 SP2NL=$lt_lt_SP2NL
29825
29826 # turn newlines into spaces.
29827 NL2SP=$lt_lt_NL2SP
29828
29829 # convert \$build file names to \$host format.
29830 to_host_file_cmd=$lt_cv_to_host_file_cmd
29831
29832 # convert \$build files to toolchain format.
29833 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29834
29835 # An object symbol dumper.
29836 OBJDUMP=$lt_OBJDUMP
29837
29838 # Method to check whether dependent libraries are shared objects.
29839 deplibs_check_method=$lt_deplibs_check_method
29840
29841 # Command to use when deplibs_check_method = "file_magic".
29842 file_magic_cmd=$lt_file_magic_cmd
29843
29844 # How to find potential files when deplibs_check_method = "file_magic".
29845 file_magic_glob=$lt_file_magic_glob
29846
29847 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29848 want_nocaseglob=$lt_want_nocaseglob
29849
29850 # DLL creation program.
29851 DLLTOOL=$lt_DLLTOOL
29852
29853 # Command to associate shared and link libraries.
29854 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29855
29856 # The archiver.
29857 AR=$lt_AR
29858
29859 # Flags to create an archive.
29860 AR_FLAGS=$lt_AR_FLAGS
29861
29862 # How to feed a file listing to the archiver.
29863 archiver_list_spec=$lt_archiver_list_spec
29864
29865 # A symbol stripping program.
29866 STRIP=$lt_STRIP
29867
29868 # Commands used to install an old-style archive.
29869 RANLIB=$lt_RANLIB
29870 old_postinstall_cmds=$lt_old_postinstall_cmds
29871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29872
29873 # Whether to use a lock for old archive extraction.
29874 lock_old_archive_extraction=$lock_old_archive_extraction
29875
29876 # A C compiler.
29877 LTCC=$lt_CC
29878
29879 # LTCC compiler flags.
29880 LTCFLAGS=$lt_CFLAGS
29881
29882 # Take the output of nm and produce a listing of raw symbols and C names.
29883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29884
29885 # Transform the output of nm in a proper C declaration.
29886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29887
29888 # Transform the output of nm into a list of symbols to manually relocate.
29889 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29890
29891 # Transform the output of nm in a C name address pair.
29892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29893
29894 # Transform the output of nm in a C name address pair when lib prefix is needed.
29895 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29896
29897 # The name lister interface.
29898 nm_interface=$lt_lt_cv_nm_interface
29899
29900 # Specify filename containing input files for \$NM.
29901 nm_file_list_spec=$lt_nm_file_list_spec
29902
29903 # The root where to search for dependent libraries,and where our libraries should be installed.
29904 lt_sysroot=$lt_sysroot
29905
29906 # Command to truncate a binary pipe.
29907 lt_truncate_bin=$lt_lt_cv_truncate_bin
29908
29909 # The name of the directory that contains temporary libtool files.
29910 objdir=$objdir
29911
29912 # Used to examine libraries when file_magic_cmd begins with "file".
29913 MAGIC_CMD=$MAGIC_CMD
29914
29915 # Must we lock files when doing compilation?
29916 need_locks=$lt_need_locks
29917
29918 # Manifest tool.
29919 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29920
29921 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29922 DSYMUTIL=$lt_DSYMUTIL
29923
29924 # Tool to change global to local symbols on Mac OS X.
29925 NMEDIT=$lt_NMEDIT
29926
29927 # Tool to manipulate fat objects and archives on Mac OS X.
29928 LIPO=$lt_LIPO
29929
29930 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29931 OTOOL=$lt_OTOOL
29932
29933 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29934 OTOOL64=$lt_OTOOL64
29935
29936 # Old archive suffix (normally "a").
29937 libext=$libext
29938
29939 # Shared library suffix (normally ".so").
29940 shrext_cmds=$lt_shrext_cmds
29941
29942 # The commands to extract the exported symbol list from a shared archive.
29943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29944
29945 # Variables whose values should be saved in libtool wrapper scripts and
29946 # restored at link time.
29947 variables_saved_for_relink=$lt_variables_saved_for_relink
29948
29949 # Do we need the "lib" prefix for modules?
29950 need_lib_prefix=$need_lib_prefix
29951
29952 # Do we need a version for libraries?
29953 need_version=$need_version
29954
29955 # Library versioning type.
29956 version_type=$version_type
29957
29958 # Shared library runtime path variable.
29959 runpath_var=$runpath_var
29960
29961 # Shared library path variable.
29962 shlibpath_var=$shlibpath_var
29963
29964 # Is shlibpath searched before the hard-coded library search path?
29965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29966
29967 # Format of library name prefix.
29968 libname_spec=$lt_libname_spec
29969
29970 # List of archive names.  First name is the real one, the rest are links.
29971 # The last name is the one that the linker finds with -lNAME
29972 library_names_spec=$lt_library_names_spec
29973
29974 # The coded name of the library, if different from the real name.
29975 soname_spec=$lt_soname_spec
29976
29977 # Permission mode override for installation of shared libraries.
29978 install_override_mode=$lt_install_override_mode
29979
29980 # Command to use after installation of a shared archive.
29981 postinstall_cmds=$lt_postinstall_cmds
29982
29983 # Command to use after uninstallation of a shared archive.
29984 postuninstall_cmds=$lt_postuninstall_cmds
29985
29986 # Commands used to finish a libtool library installation in a directory.
29987 finish_cmds=$lt_finish_cmds
29988
29989 # As "finish_cmds", except a single script fragment to be evaled but
29990 # not shown.
29991 finish_eval=$lt_finish_eval
29992
29993 # Whether we should hardcode library paths into libraries.
29994 hardcode_into_libs=$hardcode_into_libs
29995
29996 # Compile-time system search path for libraries.
29997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29998
29999 # Detected run-time system search path for libraries.
30000 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30001
30002 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30003 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30004
30005 # Whether dlopen is supported.
30006 dlopen_support=$enable_dlopen
30007
30008 # Whether dlopen of programs is supported.
30009 dlopen_self=$enable_dlopen_self
30010
30011 # Whether dlopen of statically linked programs is supported.
30012 dlopen_self_static=$enable_dlopen_self_static
30013
30014 # Commands to strip libraries.
30015 old_striplib=$lt_old_striplib
30016 striplib=$lt_striplib
30017
30018
30019 # The linker used to build libraries.
30020 LD=$lt_LD
30021
30022 # How to create reloadable object files.
30023 reload_flag=$lt_reload_flag
30024 reload_cmds=$lt_reload_cmds
30025
30026 # Commands used to build an old-style archive.
30027 old_archive_cmds=$lt_old_archive_cmds
30028
30029 # A language specific compiler.
30030 CC=$lt_compiler
30031
30032 # Is the compiler the GNU compiler?
30033 with_gcc=$GCC
30034
30035 # Compiler flag to turn off builtin functions.
30036 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30037
30038 # Additional compiler flags for building library objects.
30039 pic_flag=$lt_lt_prog_compiler_pic
30040
30041 # How to pass a linker flag through the compiler.
30042 wl=$lt_lt_prog_compiler_wl
30043
30044 # Compiler flag to prevent dynamic linking.
30045 link_static_flag=$lt_lt_prog_compiler_static
30046
30047 # Does compiler simultaneously support -c and -o options?
30048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30049
30050 # Whether or not to add -lc for building shared libraries.
30051 build_libtool_need_lc=$archive_cmds_need_lc
30052
30053 # Whether or not to disallow shared libs when runtime libs are static.
30054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30055
30056 # Compiler flag to allow reflexive dlopens.
30057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30058
30059 # Compiler flag to generate shared objects directly from archives.
30060 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30061
30062 # Whether the compiler copes with passing no objects directly.
30063 compiler_needs_object=$lt_compiler_needs_object
30064
30065 # Create an old-style archive from a shared archive.
30066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30067
30068 # Create a temporary old-style archive to link instead of a shared archive.
30069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30070
30071 # Commands used to build a shared archive.
30072 archive_cmds=$lt_archive_cmds
30073 archive_expsym_cmds=$lt_archive_expsym_cmds
30074
30075 # Commands used to build a loadable module if different from building
30076 # a shared archive.
30077 module_cmds=$lt_module_cmds
30078 module_expsym_cmds=$lt_module_expsym_cmds
30079
30080 # Whether we are building with GNU ld or not.
30081 with_gnu_ld=$lt_with_gnu_ld
30082
30083 # Flag that allows shared libraries with undefined symbols to be built.
30084 allow_undefined_flag=$lt_allow_undefined_flag
30085
30086 # Flag that enforces no undefined symbols.
30087 no_undefined_flag=$lt_no_undefined_flag
30088
30089 # Flag to hardcode \$libdir into a binary during linking.
30090 # This must work even if \$libdir does not exist
30091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30092
30093 # Whether we need a single "-rpath" flag with a separated argument.
30094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30095
30096 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30097 # DIR into the resulting binary.
30098 hardcode_direct=$hardcode_direct
30099
30100 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30101 # DIR into the resulting binary and the resulting library dependency is
30102 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30103 # library is relocated.
30104 hardcode_direct_absolute=$hardcode_direct_absolute
30105
30106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30107 # into the resulting binary.
30108 hardcode_minus_L=$hardcode_minus_L
30109
30110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30111 # into the resulting binary.
30112 hardcode_shlibpath_var=$hardcode_shlibpath_var
30113
30114 # Set to "yes" if building a shared library automatically hardcodes DIR
30115 # into the library and all subsequent libraries and executables linked
30116 # against it.
30117 hardcode_automatic=$hardcode_automatic
30118
30119 # Set to yes if linker adds runtime paths of dependent libraries
30120 # to runtime path list.
30121 inherit_rpath=$inherit_rpath
30122
30123 # Whether libtool must link a program against all its dependency libraries.
30124 link_all_deplibs=$link_all_deplibs
30125
30126 # Set to "yes" if exported symbols are required.
30127 always_export_symbols=$always_export_symbols
30128
30129 # The commands to list exported symbols.
30130 export_symbols_cmds=$lt_export_symbols_cmds
30131
30132 # Symbols that should not be listed in the preloaded symbols.
30133 exclude_expsyms=$lt_exclude_expsyms
30134
30135 # Symbols that must always be exported.
30136 include_expsyms=$lt_include_expsyms
30137
30138 # Commands necessary for linking programs (against libraries) with templates.
30139 prelink_cmds=$lt_prelink_cmds
30140
30141 # Commands necessary for finishing linking programs.
30142 postlink_cmds=$lt_postlink_cmds
30143
30144 # Specify filename containing input files.
30145 file_list_spec=$lt_file_list_spec
30146
30147 # How to hardcode a shared library path into an executable.
30148 hardcode_action=$hardcode_action
30149
30150 # ### END LIBTOOL CONFIG
30151
30152 _LT_EOF
30153
30154     cat <<'_LT_EOF' >> "$cfgfile"
30155
30156 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30157
30158 # func_munge_path_list VARIABLE PATH
30159 # -----------------------------------
30160 # VARIABLE is name of variable containing _space_ separated list of
30161 # directories to be munged by the contents of PATH, which is string
30162 # having a format:
30163 # "DIR[:DIR]:"
30164 #       string "DIR[ DIR]" will be prepended to VARIABLE
30165 # ":DIR[:DIR]"
30166 #       string "DIR[ DIR]" will be appended to VARIABLE
30167 # "DIRP[:DIRP]::[DIRA:]DIRA"
30168 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30169 #       "DIRA[ DIRA]" will be appended to VARIABLE
30170 # "DIR[:DIR]"
30171 #       VARIABLE will be replaced by "DIR[ DIR]"
30172 func_munge_path_list ()
30173 {
30174     case x$2 in
30175     x)
30176         ;;
30177     *:)
30178         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30179         ;;
30180     x:*)
30181         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30182         ;;
30183     *::*)
30184         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30185         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30186         ;;
30187     *)
30188         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30189         ;;
30190     esac
30191 }
30192
30193
30194 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
30195 func_cc_basename ()
30196 {
30197     for cc_temp in $*""; do
30198       case $cc_temp in
30199         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30200         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30201         \-*) ;;
30202         *) break;;
30203       esac
30204     done
30205     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30206 }
30207
30208
30209 # ### END FUNCTIONS SHARED WITH CONFIGURE
30210
30211 _LT_EOF
30212
30213   case $host_os in
30214   aix3*)
30215     cat <<\_LT_EOF >> "$cfgfile"
30216 # AIX sometimes has problems with the GCC collect2 program.  For some
30217 # reason, if we set the COLLECT_NAMES environment variable, the problems
30218 # vanish in a puff of smoke.
30219 if test set != "${COLLECT_NAMES+set}"; then
30220   COLLECT_NAMES=
30221   export COLLECT_NAMES
30222 fi
30223 _LT_EOF
30224     ;;
30225   esac
30226
30227
30228 ltmain=$ac_aux_dir/ltmain.sh
30229
30230
30231   # We use sed instead of cat because bash on DJGPP gets confused if
30232   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30233   # text mode, it properly converts lines to CR/LF.  This bash problem
30234   # is reportedly fixed, but why not run on old versions too?
30235   sed '$q' "$ltmain" >> "$cfgfile" \
30236      || (rm -f "$cfgfile"; exit 1)
30237
30238    mv -f "$cfgfile" "$ofile" ||
30239     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30240   chmod +x "$ofile"
30241
30242  ;;
30243
30244   esac
30245 done # for ac_tag
30246
30247
30248 as_fn_exit 0
30249 _ACEOF
30250 ac_clean_files=$ac_clean_files_save
30251
30252 test $ac_write_fail = 0 ||
30253   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30254
30255
30256 # configure is writing to config.log, and then calls config.status.
30257 # config.status does its own redirection, appending to config.log.
30258 # Unfortunately, on DOS this fails, as config.log is still kept open
30259 # by configure, so config.status won't be able to write to it; its
30260 # output is simply discarded.  So we exec the FD to /dev/null,
30261 # effectively closing config.log, so it can be properly (re)opened and
30262 # appended to by config.status.  When coming back to configure, we
30263 # need to make the FD available again.
30264 if test "$no_create" != yes; then
30265   ac_cs_success=:
30266   ac_config_status_args=
30267   test "$silent" = yes &&
30268     ac_config_status_args="$ac_config_status_args --quiet"
30269   exec 5>/dev/null
30270   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30271   exec 5>>config.log
30272   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30273   # would make configure fail if this is the last instruction.
30274   $ac_cs_success || as_fn_exit 1
30275 fi
30276 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30277   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30278 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30279 fi
30280