Imported Upstream version 1.2.6
[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.2.6.
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.2.6'
594 PACKAGE_STRING='libpipeline 1.2.6'
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 gl_header_list=
637 gl_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_WINT_T
648 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
649 NEXT_WCHAR_H
650 REPLACE_WCSWIDTH
651 REPLACE_WCWIDTH
652 REPLACE_WCSNRTOMBS
653 REPLACE_WCSRTOMBS
654 REPLACE_WCRTOMB
655 REPLACE_MBSNRTOWCS
656 REPLACE_MBSRTOWCS
657 REPLACE_MBRLEN
658 REPLACE_MBRTOWC
659 REPLACE_MBSINIT
660 REPLACE_WCTOB
661 REPLACE_BTOWC
662 REPLACE_MBSTATE_T
663 HAVE_DECL_WCWIDTH
664 HAVE_DECL_WCTOB
665 HAVE_WCSWIDTH
666 HAVE_WCSTOK
667 HAVE_WCSSTR
668 HAVE_WCSPBRK
669 HAVE_WCSSPN
670 HAVE_WCSCSPN
671 HAVE_WCSRCHR
672 HAVE_WCSCHR
673 HAVE_WCSDUP
674 HAVE_WCSXFRM
675 HAVE_WCSCOLL
676 HAVE_WCSNCASECMP
677 HAVE_WCSCASECMP
678 HAVE_WCSNCMP
679 HAVE_WCSCMP
680 HAVE_WCSNCAT
681 HAVE_WCSCAT
682 HAVE_WCPNCPY
683 HAVE_WCSNCPY
684 HAVE_WCPCPY
685 HAVE_WCSCPY
686 HAVE_WCSNLEN
687 HAVE_WCSLEN
688 HAVE_WMEMSET
689 HAVE_WMEMMOVE
690 HAVE_WMEMCPY
691 HAVE_WMEMCMP
692 HAVE_WMEMCHR
693 HAVE_WCSNRTOMBS
694 HAVE_WCSRTOMBS
695 HAVE_WCRTOMB
696 HAVE_MBSNRTOWCS
697 HAVE_MBSRTOWCS
698 HAVE_MBRLEN
699 HAVE_MBRTOWC
700 HAVE_MBSINIT
701 HAVE_BTOWC
702 GNULIB_WCSWIDTH
703 GNULIB_WCSTOK
704 GNULIB_WCSSTR
705 GNULIB_WCSPBRK
706 GNULIB_WCSSPN
707 GNULIB_WCSCSPN
708 GNULIB_WCSRCHR
709 GNULIB_WCSCHR
710 GNULIB_WCSDUP
711 GNULIB_WCSXFRM
712 GNULIB_WCSCOLL
713 GNULIB_WCSNCASECMP
714 GNULIB_WCSCASECMP
715 GNULIB_WCSNCMP
716 GNULIB_WCSCMP
717 GNULIB_WCSNCAT
718 GNULIB_WCSCAT
719 GNULIB_WCPNCPY
720 GNULIB_WCSNCPY
721 GNULIB_WCPCPY
722 GNULIB_WCSCPY
723 GNULIB_WCSNLEN
724 GNULIB_WCSLEN
725 GNULIB_WMEMSET
726 GNULIB_WMEMMOVE
727 GNULIB_WMEMCPY
728 GNULIB_WMEMCMP
729 GNULIB_WMEMCHR
730 GNULIB_WCWIDTH
731 GNULIB_WCSNRTOMBS
732 GNULIB_WCSRTOMBS
733 GNULIB_WCRTOMB
734 GNULIB_MBSNRTOWCS
735 GNULIB_MBSRTOWCS
736 GNULIB_MBRLEN
737 GNULIB_MBRTOWC
738 GNULIB_MBSINIT
739 GNULIB_WCTOB
740 GNULIB_BTOWC
741 HAVE_FEATURES_H
742 HAVE_UNISTD_H
743 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
744 NEXT_UNISTD_H
745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
746 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
747 TIME_H_DEFINES_STRUCT_TIMESPEC
748 NEXT_AS_FIRST_DIRECTIVE_TIME_H
749 NEXT_TIME_H
750 REPLACE_TIMEGM
751 REPLACE_NANOSLEEP
752 REPLACE_MKTIME
753 REPLACE_LOCALTIME_R
754 HAVE_TIMEGM
755 HAVE_STRPTIME
756 HAVE_NANOSLEEP
757 HAVE_DECL_LOCALTIME_R
758 GNULIB_TIME_R
759 GNULIB_TIMEGM
760 GNULIB_STRPTIME
761 GNULIB_NANOSLEEP
762 GNULIB_MKTIME
763 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
764 NEXT_SYS_WAIT_H
765 GNULIB_WAITPID
766 WINDOWS_64_BIT_OFF_T
767 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
768 NEXT_SYS_TYPES_H
769 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
770 NEXT_SYS_TIME_H
771 REPLACE_STRUCT_TIMEVAL
772 REPLACE_GETTIMEOFDAY
773 HAVE_SYS_TIME_H
774 HAVE_STRUCT_TIMEVAL
775 HAVE_GETTIMEOFDAY
776 GNULIB_GETTIMEOFDAY
777 WINDOWS_64_BIT_ST_SIZE
778 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
779 NEXT_SYS_STAT_H
780 REPLACE_UTIMENSAT
781 REPLACE_STAT
782 REPLACE_MKNOD
783 REPLACE_MKFIFO
784 REPLACE_MKDIR
785 REPLACE_LSTAT
786 REPLACE_FUTIMENS
787 REPLACE_FSTATAT
788 REPLACE_FSTAT
789 HAVE_UTIMENSAT
790 HAVE_MKNODAT
791 HAVE_MKNOD
792 HAVE_MKFIFOAT
793 HAVE_MKFIFO
794 HAVE_MKDIRAT
795 HAVE_LSTAT
796 HAVE_LCHMOD
797 HAVE_FUTIMENS
798 HAVE_FSTATAT
799 HAVE_FCHMODAT
800 GNULIB_UTIMENSAT
801 GNULIB_STAT
802 GNULIB_MKNODAT
803 GNULIB_MKNOD
804 GNULIB_MKFIFOAT
805 GNULIB_MKFIFO
806 GNULIB_MKDIRAT
807 GNULIB_LSTAT
808 GNULIB_LCHMOD
809 GNULIB_FUTIMENS
810 GNULIB_FSTATAT
811 GNULIB_FSTAT
812 GNULIB_FCHMODAT
813 HAVE_SYS_SELECT_H
814 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
815 NEXT_SYS_SELECT_H
816 REPLACE_SELECT
817 REPLACE_PSELECT
818 HAVE_PSELECT
819 GNULIB_SELECT
820 GNULIB_PSELECT
821 NEXT_AS_FIRST_DIRECTIVE_STRING_H
822 NEXT_STRING_H
823 HAVE_WINSOCK2_H
824 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
825 NEXT_STDLIB_H
826 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
827 NEXT_STDIO_H
828 GL_GENERATE_STDINT_H_FALSE
829 GL_GENERATE_STDINT_H_TRUE
830 STDINT_H
831 WINT_T_SUFFIX
832 WCHAR_T_SUFFIX
833 SIG_ATOMIC_T_SUFFIX
834 SIZE_T_SUFFIX
835 PTRDIFF_T_SUFFIX
836 HAVE_SIGNED_WINT_T
837 HAVE_SIGNED_WCHAR_T
838 HAVE_SIGNED_SIG_ATOMIC_T
839 BITSIZEOF_WINT_T
840 BITSIZEOF_WCHAR_T
841 BITSIZEOF_SIG_ATOMIC_T
842 BITSIZEOF_SIZE_T
843 BITSIZEOF_PTRDIFF_T
844 HAVE_SYS_BITYPES_H
845 HAVE_SYS_INTTYPES_H
846 HAVE_STDINT_H
847 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
848 NEXT_STDINT_H
849 HAVE_SYS_TYPES_H
850 HAVE_INTTYPES_H
851 HAVE_WCHAR_H
852 HAVE_UNSIGNED_LONG_LONG_INT
853 HAVE_LONG_LONG_INT
854 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
855 NEXT_STDDEF_H
856 GL_GENERATE_STDDEF_H_FALSE
857 GL_GENERATE_STDDEF_H_TRUE
858 STDDEF_H
859 HAVE_WCHAR_T
860 REPLACE_NULL
861 HAVE__BOOL
862 GL_GENERATE_STDBOOL_H_FALSE
863 GL_GENERATE_STDBOOL_H_TRUE
864 STDBOOL_H
865 GL_GENERATE_STDARG_H_FALSE
866 GL_GENERATE_STDARG_H_TRUE
867 STDARG_H
868 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
869 NEXT_STDARG_H
870 REPLACE_VSPRINTF
871 REPLACE_VSNPRINTF
872 REPLACE_VPRINTF
873 REPLACE_VFPRINTF
874 REPLACE_VDPRINTF
875 REPLACE_VASPRINTF
876 REPLACE_TMPFILE
877 REPLACE_STDIO_WRITE_FUNCS
878 REPLACE_STDIO_READ_FUNCS
879 REPLACE_SPRINTF
880 REPLACE_SNPRINTF
881 REPLACE_RENAMEAT
882 REPLACE_RENAME
883 REPLACE_REMOVE
884 REPLACE_PRINTF
885 REPLACE_POPEN
886 REPLACE_PERROR
887 REPLACE_OBSTACK_PRINTF
888 REPLACE_GETLINE
889 REPLACE_GETDELIM
890 REPLACE_FTELLO
891 REPLACE_FTELL
892 REPLACE_FSEEKO
893 REPLACE_FSEEK
894 REPLACE_FREOPEN
895 REPLACE_FPURGE
896 REPLACE_FPRINTF
897 REPLACE_FOPEN
898 REPLACE_FFLUSH
899 REPLACE_FDOPEN
900 REPLACE_FCLOSE
901 REPLACE_DPRINTF
902 HAVE_VDPRINTF
903 HAVE_VASPRINTF
904 HAVE_RENAMEAT
905 HAVE_POPEN
906 HAVE_PCLOSE
907 HAVE_FTELLO
908 HAVE_FSEEKO
909 HAVE_DPRINTF
910 HAVE_DECL_VSNPRINTF
911 HAVE_DECL_SNPRINTF
912 HAVE_DECL_OBSTACK_PRINTF
913 HAVE_DECL_GETLINE
914 HAVE_DECL_GETDELIM
915 HAVE_DECL_FTELLO
916 HAVE_DECL_FSEEKO
917 HAVE_DECL_FPURGE
918 GNULIB_VSPRINTF_POSIX
919 GNULIB_VSNPRINTF
920 GNULIB_VPRINTF_POSIX
921 GNULIB_VPRINTF
922 GNULIB_VFPRINTF_POSIX
923 GNULIB_VFPRINTF
924 GNULIB_VDPRINTF
925 GNULIB_VSCANF
926 GNULIB_VFSCANF
927 GNULIB_VASPRINTF
928 GNULIB_TMPFILE
929 GNULIB_STDIO_H_SIGPIPE
930 GNULIB_STDIO_H_NONBLOCKING
931 GNULIB_SPRINTF_POSIX
932 GNULIB_SNPRINTF
933 GNULIB_SCANF
934 GNULIB_RENAMEAT
935 GNULIB_RENAME
936 GNULIB_REMOVE
937 GNULIB_PUTS
938 GNULIB_PUTCHAR
939 GNULIB_PUTC
940 GNULIB_PRINTF_POSIX
941 GNULIB_PRINTF
942 GNULIB_POPEN
943 GNULIB_PERROR
944 GNULIB_PCLOSE
945 GNULIB_OBSTACK_PRINTF_POSIX
946 GNULIB_OBSTACK_PRINTF
947 GNULIB_GETLINE
948 GNULIB_GETDELIM
949 GNULIB_GETCHAR
950 GNULIB_GETC
951 GNULIB_FWRITE
952 GNULIB_FTELLO
953 GNULIB_FTELL
954 GNULIB_FSEEKO
955 GNULIB_FSEEK
956 GNULIB_FSCANF
957 GNULIB_FREOPEN
958 GNULIB_FREAD
959 GNULIB_FPUTS
960 GNULIB_FPUTC
961 GNULIB_FPURGE
962 GNULIB_FPRINTF_POSIX
963 GNULIB_FPRINTF
964 GNULIB_FOPEN
965 GNULIB_FGETS
966 GNULIB_FGETC
967 GNULIB_FFLUSH
968 GNULIB_FDOPEN
969 GNULIB_FCLOSE
970 GNULIB_DPRINTF
971 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
972 NEXT_SIGNAL_H
973 REPLACE_RAISE
974 REPLACE_PTHREAD_SIGMASK
975 HAVE_SIGHANDLER_T
976 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
977 HAVE_STRUCT_SIGACTION_SA_SIGACTION
978 HAVE_SIGACTION
979 HAVE_SIGINFO_T
980 HAVE_SIGSET_T
981 HAVE_RAISE
982 HAVE_PTHREAD_SIGMASK
983 HAVE_POSIX_SIGNALBLOCKING
984 GNULIB_SIGACTION
985 GNULIB_SIGPROCMASK
986 GNULIB_SIGNAL_H_SIGPIPE
987 GNULIB_RAISE
988 GNULIB_PTHREAD_SIGMASK
989 APPLE_UNIVERSAL_BUILD
990 HAVE_MSVC_INVALID_PARAMETER_HANDLER
991 UNDEFINE_STRTOK_R
992 REPLACE_STRTOK_R
993 REPLACE_STRSIGNAL
994 REPLACE_STRNLEN
995 REPLACE_STRNDUP
996 REPLACE_STRNCAT
997 REPLACE_STRERROR_R
998 REPLACE_STRERROR
999 REPLACE_STRCHRNUL
1000 REPLACE_STRCASESTR
1001 REPLACE_STRSTR
1002 REPLACE_STRDUP
1003 REPLACE_STPNCPY
1004 REPLACE_MEMMEM
1005 REPLACE_MEMCHR
1006 HAVE_STRVERSCMP
1007 HAVE_DECL_STRSIGNAL
1008 HAVE_DECL_STRERROR_R
1009 HAVE_DECL_STRTOK_R
1010 HAVE_STRCASESTR
1011 HAVE_STRSEP
1012 HAVE_STRPBRK
1013 HAVE_DECL_STRNLEN
1014 HAVE_DECL_STRNDUP
1015 HAVE_DECL_STRDUP
1016 HAVE_STRCHRNUL
1017 HAVE_STPNCPY
1018 HAVE_STPCPY
1019 HAVE_RAWMEMCHR
1020 HAVE_DECL_MEMRCHR
1021 HAVE_MEMPCPY
1022 HAVE_DECL_MEMMEM
1023 HAVE_MEMCHR
1024 HAVE_FFSLL
1025 HAVE_FFSL
1026 HAVE_MBSLEN
1027 GNULIB_STRVERSCMP
1028 GNULIB_STRSIGNAL
1029 GNULIB_STRERROR_R
1030 GNULIB_STRERROR
1031 GNULIB_MBSTOK_R
1032 GNULIB_MBSSEP
1033 GNULIB_MBSSPN
1034 GNULIB_MBSPBRK
1035 GNULIB_MBSCSPN
1036 GNULIB_MBSCASESTR
1037 GNULIB_MBSPCASECMP
1038 GNULIB_MBSNCASECMP
1039 GNULIB_MBSCASECMP
1040 GNULIB_MBSSTR
1041 GNULIB_MBSRCHR
1042 GNULIB_MBSCHR
1043 GNULIB_MBSNLEN
1044 GNULIB_MBSLEN
1045 GNULIB_STRTOK_R
1046 GNULIB_STRCASESTR
1047 GNULIB_STRSTR
1048 GNULIB_STRSEP
1049 GNULIB_STRPBRK
1050 GNULIB_STRNLEN
1051 GNULIB_STRNDUP
1052 GNULIB_STRNCAT
1053 GNULIB_STRDUP
1054 GNULIB_STRCHRNUL
1055 GNULIB_STPNCPY
1056 GNULIB_STPCPY
1057 GNULIB_RAWMEMCHR
1058 GNULIB_MEMRCHR
1059 GNULIB_MEMPCPY
1060 GNULIB_MEMMEM
1061 GNULIB_MEMCHR
1062 GNULIB_FFSLL
1063 GNULIB_FFSL
1064 REPLACE_WCTOMB
1065 REPLACE_UNSETENV
1066 REPLACE_STRTOD
1067 REPLACE_SETENV
1068 REPLACE_REALPATH
1069 REPLACE_REALLOC
1070 REPLACE_RANDOM_R
1071 REPLACE_PUTENV
1072 REPLACE_PTSNAME_R
1073 REPLACE_PTSNAME
1074 REPLACE_MKSTEMP
1075 REPLACE_MBTOWC
1076 REPLACE_MALLOC
1077 REPLACE_CANONICALIZE_FILE_NAME
1078 REPLACE_CALLOC
1079 HAVE_DECL_UNSETENV
1080 HAVE_UNLOCKPT
1081 HAVE_SYS_LOADAVG_H
1082 HAVE_STRUCT_RANDOM_DATA
1083 HAVE_STRTOULL
1084 HAVE_STRTOLL
1085 HAVE_STRTOD
1086 HAVE_DECL_SETENV
1087 HAVE_SETENV
1088 HAVE_SECURE_GETENV
1089 HAVE_RPMATCH
1090 HAVE_REALPATH
1091 HAVE_RANDOM_R
1092 HAVE_RANDOM_H
1093 HAVE_RANDOM
1094 HAVE_PTSNAME_R
1095 HAVE_PTSNAME
1096 HAVE_POSIX_OPENPT
1097 HAVE_MKSTEMPS
1098 HAVE_MKSTEMP
1099 HAVE_MKOSTEMPS
1100 HAVE_MKOSTEMP
1101 HAVE_MKDTEMP
1102 HAVE_GRANTPT
1103 HAVE_GETSUBOPT
1104 HAVE_DECL_GETLOADAVG
1105 HAVE_CANONICALIZE_FILE_NAME
1106 HAVE_ATOLL
1107 HAVE__EXIT
1108 GNULIB_WCTOMB
1109 GNULIB_UNSETENV
1110 GNULIB_UNLOCKPT
1111 GNULIB_SYSTEM_POSIX
1112 GNULIB_STRTOULL
1113 GNULIB_STRTOLL
1114 GNULIB_STRTOD
1115 GNULIB_SETENV
1116 GNULIB_SECURE_GETENV
1117 GNULIB_RPMATCH
1118 GNULIB_REALPATH
1119 GNULIB_REALLOC_POSIX
1120 GNULIB_RANDOM_R
1121 GNULIB_RANDOM
1122 GNULIB_PUTENV
1123 GNULIB_PTSNAME_R
1124 GNULIB_PTSNAME
1125 GNULIB_POSIX_OPENPT
1126 GNULIB_MKSTEMPS
1127 GNULIB_MKSTEMP
1128 GNULIB_MKOSTEMPS
1129 GNULIB_MKOSTEMP
1130 GNULIB_MKDTEMP
1131 GNULIB_MBTOWC
1132 GNULIB_MALLOC_POSIX
1133 GNULIB_GRANTPT
1134 GNULIB_GETSUBOPT
1135 GNULIB_GETLOADAVG
1136 GNULIB_CANONICALIZE_FILE_NAME
1137 GNULIB_CALLOC_POSIX
1138 GNULIB_ATOLL
1139 GNULIB__EXIT
1140 LTLIBMULTITHREAD
1141 LIBMULTITHREAD
1142 LTLIBTHREAD
1143 LIBTHREAD
1144 LIBPTH_PREFIX
1145 LTLIBPTH
1146 LIBPTH
1147 IGNORE_UNUSED_LIBRARIES_CFLAGS
1148 LTLIBINTL
1149 LIBINTL
1150 REPLACE_ITOLD
1151 GL_GENERATE_FLOAT_H_FALSE
1152 GL_GENERATE_FLOAT_H_TRUE
1153 FLOAT_H
1154 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1155 NEXT_FLOAT_H
1156 EOVERFLOW_VALUE
1157 EOVERFLOW_HIDDEN
1158 ENOLINK_VALUE
1159 ENOLINK_HIDDEN
1160 EMULTIHOP_VALUE
1161 EMULTIHOP_HIDDEN
1162 GL_GENERATE_ERRNO_H_FALSE
1163 GL_GENERATE_ERRNO_H_TRUE
1164 ERRNO_H
1165 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1166 NEXT_ERRNO_H
1167 PRAGMA_COLUMNS
1168 PRAGMA_SYSTEM_HEADER
1169 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1170 INCLUDE_NEXT
1171 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1172 UNISTD_H_HAVE_WINSOCK2_H
1173 REPLACE_WRITE
1174 REPLACE_USLEEP
1175 REPLACE_UNLINKAT
1176 REPLACE_UNLINK
1177 REPLACE_TTYNAME_R
1178 REPLACE_SYMLINK
1179 REPLACE_SLEEP
1180 REPLACE_RMDIR
1181 REPLACE_READLINK
1182 REPLACE_READ
1183 REPLACE_PWRITE
1184 REPLACE_PREAD
1185 REPLACE_LSEEK
1186 REPLACE_LINKAT
1187 REPLACE_LINK
1188 REPLACE_LCHOWN
1189 REPLACE_ISATTY
1190 REPLACE_GETPAGESIZE
1191 REPLACE_GETGROUPS
1192 REPLACE_GETLOGIN_R
1193 REPLACE_GETDOMAINNAME
1194 REPLACE_GETCWD
1195 REPLACE_FTRUNCATE
1196 REPLACE_FCHOWNAT
1197 REPLACE_DUP2
1198 REPLACE_DUP
1199 REPLACE_CLOSE
1200 REPLACE_CHOWN
1201 HAVE_SYS_PARAM_H
1202 HAVE_OS_H
1203 HAVE_DECL_TTYNAME_R
1204 HAVE_DECL_SETHOSTNAME
1205 HAVE_DECL_GETUSERSHELL
1206 HAVE_DECL_GETPAGESIZE
1207 HAVE_DECL_GETLOGIN_R
1208 HAVE_DECL_GETDOMAINNAME
1209 HAVE_DECL_FDATASYNC
1210 HAVE_DECL_FCHDIR
1211 HAVE_DECL_ENVIRON
1212 HAVE_USLEEP
1213 HAVE_UNLINKAT
1214 HAVE_SYMLINKAT
1215 HAVE_SYMLINK
1216 HAVE_SLEEP
1217 HAVE_SETHOSTNAME
1218 HAVE_READLINKAT
1219 HAVE_READLINK
1220 HAVE_PWRITE
1221 HAVE_PREAD
1222 HAVE_PIPE2
1223 HAVE_PIPE
1224 HAVE_LINKAT
1225 HAVE_LINK
1226 HAVE_LCHOWN
1227 HAVE_GROUP_MEMBER
1228 HAVE_GETPAGESIZE
1229 HAVE_GETLOGIN
1230 HAVE_GETHOSTNAME
1231 HAVE_GETGROUPS
1232 HAVE_GETDTABLESIZE
1233 HAVE_FTRUNCATE
1234 HAVE_FSYNC
1235 HAVE_FDATASYNC
1236 HAVE_FCHOWNAT
1237 HAVE_FCHDIR
1238 HAVE_FACCESSAT
1239 HAVE_EUIDACCESS
1240 HAVE_DUP3
1241 HAVE_DUP2
1242 HAVE_CHOWN
1243 GNULIB_WRITE
1244 GNULIB_USLEEP
1245 GNULIB_UNLINKAT
1246 GNULIB_UNLINK
1247 GNULIB_UNISTD_H_SIGPIPE
1248 GNULIB_UNISTD_H_NONBLOCKING
1249 GNULIB_TTYNAME_R
1250 GNULIB_SYMLINKAT
1251 GNULIB_SYMLINK
1252 GNULIB_SLEEP
1253 GNULIB_SETHOSTNAME
1254 GNULIB_RMDIR
1255 GNULIB_READLINKAT
1256 GNULIB_READLINK
1257 GNULIB_READ
1258 GNULIB_PWRITE
1259 GNULIB_PREAD
1260 GNULIB_PIPE2
1261 GNULIB_PIPE
1262 GNULIB_LSEEK
1263 GNULIB_LINKAT
1264 GNULIB_LINK
1265 GNULIB_LCHOWN
1266 GNULIB_ISATTY
1267 GNULIB_GROUP_MEMBER
1268 GNULIB_GETUSERSHELL
1269 GNULIB_GETPAGESIZE
1270 GNULIB_GETLOGIN_R
1271 GNULIB_GETLOGIN
1272 GNULIB_GETHOSTNAME
1273 GNULIB_GETGROUPS
1274 GNULIB_GETDTABLESIZE
1275 GNULIB_GETDOMAINNAME
1276 GNULIB_GETCWD
1277 GNULIB_FTRUNCATE
1278 GNULIB_FSYNC
1279 GNULIB_FDATASYNC
1280 GNULIB_FCHOWNAT
1281 GNULIB_FCHDIR
1282 GNULIB_FACCESSAT
1283 GNULIB_EUIDACCESS
1284 GNULIB_ENVIRON
1285 GNULIB_DUP3
1286 GNULIB_DUP2
1287 GNULIB_DUP
1288 GNULIB_CLOSE
1289 GNULIB_CHOWN
1290 GNULIB_CHDIR
1291 GL_GENERATE_ALLOCA_H_FALSE
1292 GL_GENERATE_ALLOCA_H_TRUE
1293 ALLOCA_H
1294 ALLOCA
1295 GL_COND_LIBTOOL_FALSE
1296 GL_COND_LIBTOOL_TRUE
1297 RUN_TESTS_FALSE
1298 RUN_TESTS_TRUE
1299 CHECK_LIBS
1300 CHECK_CFLAGS
1301 PKG_CONFIG_LIBDIR
1302 PKG_CONFIG_PATH
1303 PKG_CONFIG
1304 WARN_CFLAGS
1305 ARFLAGS
1306 OTOOL64
1307 OTOOL
1308 LIPO
1309 NMEDIT
1310 DSYMUTIL
1311 MANIFEST_TOOL
1312 RANLIB
1313 DLLTOOL
1314 OBJDUMP
1315 LN_S
1316 NM
1317 ac_ct_DUMPBIN
1318 DUMPBIN
1319 LD
1320 FGREP
1321 SED
1322 host_os
1323 host_vendor
1324 host_cpu
1325 host
1326 build_os
1327 build_vendor
1328 build_cpu
1329 build
1330 LIBTOOL
1331 ac_ct_AR
1332 AR
1333 EGREP
1334 GREP
1335 CPP
1336 am__fastdepCC_FALSE
1337 am__fastdepCC_TRUE
1338 CCDEPMODE
1339 am__nodep
1340 AMDEPBACKSLASH
1341 AMDEP_FALSE
1342 AMDEP_TRUE
1343 am__quote
1344 am__include
1345 DEPDIR
1346 OBJEXT
1347 EXEEXT
1348 ac_ct_CC
1349 CPPFLAGS
1350 LDFLAGS
1351 CFLAGS
1352 CC
1353 MAINT
1354 MAINTAINER_MODE_FALSE
1355 MAINTAINER_MODE_TRUE
1356 AM_BACKSLASH
1357 AM_DEFAULT_VERBOSITY
1358 AM_DEFAULT_V
1359 AM_V
1360 am__untar
1361 am__tar
1362 AMTAR
1363 am__leading_dot
1364 SET_MAKE
1365 AWK
1366 mkdir_p
1367 MKDIR_P
1368 INSTALL_STRIP_PROGRAM
1369 STRIP
1370 install_sh
1371 MAKEINFO
1372 AUTOHEADER
1373 AUTOMAKE
1374 AUTOCONF
1375 ACLOCAL
1376 VERSION
1377 PACKAGE
1378 CYGPATH_W
1379 am__isrc
1380 INSTALL_DATA
1381 INSTALL_SCRIPT
1382 INSTALL_PROGRAM
1383 target_alias
1384 host_alias
1385 build_alias
1386 LIBS
1387 ECHO_T
1388 ECHO_N
1389 ECHO_C
1390 DEFS
1391 mandir
1392 localedir
1393 libdir
1394 psdir
1395 pdfdir
1396 dvidir
1397 htmldir
1398 infodir
1399 docdir
1400 oldincludedir
1401 includedir
1402 localstatedir
1403 sharedstatedir
1404 sysconfdir
1405 datadir
1406 datarootdir
1407 libexecdir
1408 sbindir
1409 bindir
1410 program_transform_name
1411 prefix
1412 exec_prefix
1413 PACKAGE_URL
1414 PACKAGE_BUGREPORT
1415 PACKAGE_STRING
1416 PACKAGE_VERSION
1417 PACKAGE_TARNAME
1418 PACKAGE_NAME
1419 PATH_SEPARATOR
1420 SHELL'
1421 ac_subst_files=''
1422 ac_user_opts='
1423 enable_option_checking
1424 enable_silent_rules
1425 enable_maintainer_mode
1426 enable_dependency_tracking
1427 enable_static
1428 enable_shared
1429 with_pic
1430 enable_fast_install
1431 with_gnu_ld
1432 with_sysroot
1433 enable_libtool_lock
1434 enable_largefile
1435 enable_threads
1436 enable_rpath
1437 with_libpth_prefix
1438 enable_socketpair_pipe
1439 '
1440       ac_precious_vars='build_alias
1441 host_alias
1442 target_alias
1443 CC
1444 CFLAGS
1445 LDFLAGS
1446 LIBS
1447 CPPFLAGS
1448 CPP
1449 PKG_CONFIG
1450 PKG_CONFIG_PATH
1451 PKG_CONFIG_LIBDIR
1452 CHECK_CFLAGS
1453 CHECK_LIBS'
1454
1455
1456 # Initialize some variables set by options.
1457 ac_init_help=
1458 ac_init_version=false
1459 ac_unrecognized_opts=
1460 ac_unrecognized_sep=
1461 # The variables have the same names as the options, with
1462 # dashes changed to underlines.
1463 cache_file=/dev/null
1464 exec_prefix=NONE
1465 no_create=
1466 no_recursion=
1467 prefix=NONE
1468 program_prefix=NONE
1469 program_suffix=NONE
1470 program_transform_name=s,x,x,
1471 silent=
1472 site=
1473 srcdir=
1474 verbose=
1475 x_includes=NONE
1476 x_libraries=NONE
1477
1478 # Installation directory options.
1479 # These are left unexpanded so users can "make install exec_prefix=/foo"
1480 # and all the variables that are supposed to be based on exec_prefix
1481 # by default will actually change.
1482 # Use braces instead of parens because sh, perl, etc. also accept them.
1483 # (The list follows the same order as the GNU Coding Standards.)
1484 bindir='${exec_prefix}/bin'
1485 sbindir='${exec_prefix}/sbin'
1486 libexecdir='${exec_prefix}/libexec'
1487 datarootdir='${prefix}/share'
1488 datadir='${datarootdir}'
1489 sysconfdir='${prefix}/etc'
1490 sharedstatedir='${prefix}/com'
1491 localstatedir='${prefix}/var'
1492 includedir='${prefix}/include'
1493 oldincludedir='/usr/include'
1494 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1495 infodir='${datarootdir}/info'
1496 htmldir='${docdir}'
1497 dvidir='${docdir}'
1498 pdfdir='${docdir}'
1499 psdir='${docdir}'
1500 libdir='${exec_prefix}/lib'
1501 localedir='${datarootdir}/locale'
1502 mandir='${datarootdir}/man'
1503
1504 ac_prev=
1505 ac_dashdash=
1506 for ac_option
1507 do
1508   # If the previous option needs an argument, assign it.
1509   if test -n "$ac_prev"; then
1510     eval $ac_prev=\$ac_option
1511     ac_prev=
1512     continue
1513   fi
1514
1515   case $ac_option in
1516   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1517   *=)   ac_optarg= ;;
1518   *)    ac_optarg=yes ;;
1519   esac
1520
1521   # Accept the important Cygnus configure options, so we can diagnose typos.
1522
1523   case $ac_dashdash$ac_option in
1524   --)
1525     ac_dashdash=yes ;;
1526
1527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1528     ac_prev=bindir ;;
1529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1530     bindir=$ac_optarg ;;
1531
1532   -build | --build | --buil | --bui | --bu)
1533     ac_prev=build_alias ;;
1534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1535     build_alias=$ac_optarg ;;
1536
1537   -cache-file | --cache-file | --cache-fil | --cache-fi \
1538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1539     ac_prev=cache_file ;;
1540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1542     cache_file=$ac_optarg ;;
1543
1544   --config-cache | -C)
1545     cache_file=config.cache ;;
1546
1547   -datadir | --datadir | --datadi | --datad)
1548     ac_prev=datadir ;;
1549   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1550     datadir=$ac_optarg ;;
1551
1552   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1553   | --dataroo | --dataro | --datar)
1554     ac_prev=datarootdir ;;
1555   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1556   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1557     datarootdir=$ac_optarg ;;
1558
1559   -disable-* | --disable-*)
1560     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1561     # Reject names that are not valid shell variable names.
1562     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1563       as_fn_error $? "invalid feature name: $ac_useropt"
1564     ac_useropt_orig=$ac_useropt
1565     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566     case $ac_user_opts in
1567       *"
1568 "enable_$ac_useropt"
1569 "*) ;;
1570       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1571          ac_unrecognized_sep=', ';;
1572     esac
1573     eval enable_$ac_useropt=no ;;
1574
1575   -docdir | --docdir | --docdi | --doc | --do)
1576     ac_prev=docdir ;;
1577   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1578     docdir=$ac_optarg ;;
1579
1580   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1581     ac_prev=dvidir ;;
1582   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1583     dvidir=$ac_optarg ;;
1584
1585   -enable-* | --enable-*)
1586     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1587     # Reject names that are not valid shell variable names.
1588     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1589       as_fn_error $? "invalid feature name: $ac_useropt"
1590     ac_useropt_orig=$ac_useropt
1591     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592     case $ac_user_opts in
1593       *"
1594 "enable_$ac_useropt"
1595 "*) ;;
1596       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1597          ac_unrecognized_sep=', ';;
1598     esac
1599     eval enable_$ac_useropt=\$ac_optarg ;;
1600
1601   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1602   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1603   | --exec | --exe | --ex)
1604     ac_prev=exec_prefix ;;
1605   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1606   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1607   | --exec=* | --exe=* | --ex=*)
1608     exec_prefix=$ac_optarg ;;
1609
1610   -gas | --gas | --ga | --g)
1611     # Obsolete; use --with-gas.
1612     with_gas=yes ;;
1613
1614   -help | --help | --hel | --he | -h)
1615     ac_init_help=long ;;
1616   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1617     ac_init_help=recursive ;;
1618   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1619     ac_init_help=short ;;
1620
1621   -host | --host | --hos | --ho)
1622     ac_prev=host_alias ;;
1623   -host=* | --host=* | --hos=* | --ho=*)
1624     host_alias=$ac_optarg ;;
1625
1626   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1627     ac_prev=htmldir ;;
1628   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1629   | --ht=*)
1630     htmldir=$ac_optarg ;;
1631
1632   -includedir | --includedir | --includedi | --included | --include \
1633   | --includ | --inclu | --incl | --inc)
1634     ac_prev=includedir ;;
1635   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1636   | --includ=* | --inclu=* | --incl=* | --inc=*)
1637     includedir=$ac_optarg ;;
1638
1639   -infodir | --infodir | --infodi | --infod | --info | --inf)
1640     ac_prev=infodir ;;
1641   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1642     infodir=$ac_optarg ;;
1643
1644   -libdir | --libdir | --libdi | --libd)
1645     ac_prev=libdir ;;
1646   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1647     libdir=$ac_optarg ;;
1648
1649   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1650   | --libexe | --libex | --libe)
1651     ac_prev=libexecdir ;;
1652   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1653   | --libexe=* | --libex=* | --libe=*)
1654     libexecdir=$ac_optarg ;;
1655
1656   -localedir | --localedir | --localedi | --localed | --locale)
1657     ac_prev=localedir ;;
1658   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1659     localedir=$ac_optarg ;;
1660
1661   -localstatedir | --localstatedir | --localstatedi | --localstated \
1662   | --localstate | --localstat | --localsta | --localst | --locals)
1663     ac_prev=localstatedir ;;
1664   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1665   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1666     localstatedir=$ac_optarg ;;
1667
1668   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1669     ac_prev=mandir ;;
1670   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1671     mandir=$ac_optarg ;;
1672
1673   -nfp | --nfp | --nf)
1674     # Obsolete; use --without-fp.
1675     with_fp=no ;;
1676
1677   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1678   | --no-cr | --no-c | -n)
1679     no_create=yes ;;
1680
1681   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1682   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1683     no_recursion=yes ;;
1684
1685   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1686   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1687   | --oldin | --oldi | --old | --ol | --o)
1688     ac_prev=oldincludedir ;;
1689   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1690   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1691   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1692     oldincludedir=$ac_optarg ;;
1693
1694   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1695     ac_prev=prefix ;;
1696   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1697     prefix=$ac_optarg ;;
1698
1699   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1700   | --program-pre | --program-pr | --program-p)
1701     ac_prev=program_prefix ;;
1702   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1703   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1704     program_prefix=$ac_optarg ;;
1705
1706   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1707   | --program-suf | --program-su | --program-s)
1708     ac_prev=program_suffix ;;
1709   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1710   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1711     program_suffix=$ac_optarg ;;
1712
1713   -program-transform-name | --program-transform-name \
1714   | --program-transform-nam | --program-transform-na \
1715   | --program-transform-n | --program-transform- \
1716   | --program-transform | --program-transfor \
1717   | --program-transfo | --program-transf \
1718   | --program-trans | --program-tran \
1719   | --progr-tra | --program-tr | --program-t)
1720     ac_prev=program_transform_name ;;
1721   -program-transform-name=* | --program-transform-name=* \
1722   | --program-transform-nam=* | --program-transform-na=* \
1723   | --program-transform-n=* | --program-transform-=* \
1724   | --program-transform=* | --program-transfor=* \
1725   | --program-transfo=* | --program-transf=* \
1726   | --program-trans=* | --program-tran=* \
1727   | --progr-tra=* | --program-tr=* | --program-t=*)
1728     program_transform_name=$ac_optarg ;;
1729
1730   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1731     ac_prev=pdfdir ;;
1732   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1733     pdfdir=$ac_optarg ;;
1734
1735   -psdir | --psdir | --psdi | --psd | --ps)
1736     ac_prev=psdir ;;
1737   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1738     psdir=$ac_optarg ;;
1739
1740   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741   | -silent | --silent | --silen | --sile | --sil)
1742     silent=yes ;;
1743
1744   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1745     ac_prev=sbindir ;;
1746   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1747   | --sbi=* | --sb=*)
1748     sbindir=$ac_optarg ;;
1749
1750   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1751   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1752   | --sharedst | --shareds | --shared | --share | --shar \
1753   | --sha | --sh)
1754     ac_prev=sharedstatedir ;;
1755   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1756   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1757   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1758   | --sha=* | --sh=*)
1759     sharedstatedir=$ac_optarg ;;
1760
1761   -site | --site | --sit)
1762     ac_prev=site ;;
1763   -site=* | --site=* | --sit=*)
1764     site=$ac_optarg ;;
1765
1766   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1767     ac_prev=srcdir ;;
1768   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1769     srcdir=$ac_optarg ;;
1770
1771   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1772   | --syscon | --sysco | --sysc | --sys | --sy)
1773     ac_prev=sysconfdir ;;
1774   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1775   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1776     sysconfdir=$ac_optarg ;;
1777
1778   -target | --target | --targe | --targ | --tar | --ta | --t)
1779     ac_prev=target_alias ;;
1780   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1781     target_alias=$ac_optarg ;;
1782
1783   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1784     verbose=yes ;;
1785
1786   -version | --version | --versio | --versi | --vers | -V)
1787     ac_init_version=: ;;
1788
1789   -with-* | --with-*)
1790     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1791     # Reject names that are not valid shell variable names.
1792     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1793       as_fn_error $? "invalid package name: $ac_useropt"
1794     ac_useropt_orig=$ac_useropt
1795     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1796     case $ac_user_opts in
1797       *"
1798 "with_$ac_useropt"
1799 "*) ;;
1800       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1801          ac_unrecognized_sep=', ';;
1802     esac
1803     eval with_$ac_useropt=\$ac_optarg ;;
1804
1805   -without-* | --without-*)
1806     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1807     # Reject names that are not valid shell variable names.
1808     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1809       as_fn_error $? "invalid package name: $ac_useropt"
1810     ac_useropt_orig=$ac_useropt
1811     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1812     case $ac_user_opts in
1813       *"
1814 "with_$ac_useropt"
1815 "*) ;;
1816       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1817          ac_unrecognized_sep=', ';;
1818     esac
1819     eval with_$ac_useropt=no ;;
1820
1821   --x)
1822     # Obsolete; use --with-x.
1823     with_x=yes ;;
1824
1825   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1826   | --x-incl | --x-inc | --x-in | --x-i)
1827     ac_prev=x_includes ;;
1828   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1829   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1830     x_includes=$ac_optarg ;;
1831
1832   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1833   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1834     ac_prev=x_libraries ;;
1835   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1836   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1837     x_libraries=$ac_optarg ;;
1838
1839   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1840 Try \`$0 --help' for more information"
1841     ;;
1842
1843   *=*)
1844     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1845     # Reject names that are not valid shell variable names.
1846     case $ac_envvar in #(
1847       '' | [0-9]* | *[!_$as_cr_alnum]* )
1848       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1849     esac
1850     eval $ac_envvar=\$ac_optarg
1851     export $ac_envvar ;;
1852
1853   *)
1854     # FIXME: should be removed in autoconf 3.0.
1855     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1856     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1857       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1858     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1859     ;;
1860
1861   esac
1862 done
1863
1864 if test -n "$ac_prev"; then
1865   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1866   as_fn_error $? "missing argument to $ac_option"
1867 fi
1868
1869 if test -n "$ac_unrecognized_opts"; then
1870   case $enable_option_checking in
1871     no) ;;
1872     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1873     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1874   esac
1875 fi
1876
1877 # Check all directory arguments for consistency.
1878 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1879                 datadir sysconfdir sharedstatedir localstatedir includedir \
1880                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1881                 libdir localedir mandir
1882 do
1883   eval ac_val=\$$ac_var
1884   # Remove trailing slashes.
1885   case $ac_val in
1886     */ )
1887       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1888       eval $ac_var=\$ac_val;;
1889   esac
1890   # Be sure to have absolute directory names.
1891   case $ac_val in
1892     [\\/$]* | ?:[\\/]* )  continue;;
1893     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1894   esac
1895   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1896 done
1897
1898 # There might be people who depend on the old broken behavior: `$host'
1899 # used to hold the argument of --host etc.
1900 # FIXME: To remove some day.
1901 build=$build_alias
1902 host=$host_alias
1903 target=$target_alias
1904
1905 # FIXME: To remove some day.
1906 if test "x$host_alias" != x; then
1907   if test "x$build_alias" = x; then
1908     cross_compiling=maybe
1909   elif test "x$build_alias" != "x$host_alias"; then
1910     cross_compiling=yes
1911   fi
1912 fi
1913
1914 ac_tool_prefix=
1915 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1916
1917 test "$silent" = yes && exec 6>/dev/null
1918
1919
1920 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1921 ac_ls_di=`ls -di .` &&
1922 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1923   as_fn_error $? "working directory cannot be determined"
1924 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1925   as_fn_error $? "pwd does not report name of working directory"
1926
1927
1928 # Find the source files, if location was not specified.
1929 if test -z "$srcdir"; then
1930   ac_srcdir_defaulted=yes
1931   # Try the directory containing this script, then the parent directory.
1932   ac_confdir=`$as_dirname -- "$as_myself" ||
1933 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1934          X"$as_myself" : 'X\(//\)[^/]' \| \
1935          X"$as_myself" : 'X\(//\)$' \| \
1936          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1937 $as_echo X"$as_myself" |
1938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1939             s//\1/
1940             q
1941           }
1942           /^X\(\/\/\)[^/].*/{
1943             s//\1/
1944             q
1945           }
1946           /^X\(\/\/\)$/{
1947             s//\1/
1948             q
1949           }
1950           /^X\(\/\).*/{
1951             s//\1/
1952             q
1953           }
1954           s/.*/./; q'`
1955   srcdir=$ac_confdir
1956   if test ! -r "$srcdir/$ac_unique_file"; then
1957     srcdir=..
1958   fi
1959 else
1960   ac_srcdir_defaulted=no
1961 fi
1962 if test ! -r "$srcdir/$ac_unique_file"; then
1963   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1964   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1965 fi
1966 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1967 ac_abs_confdir=`(
1968         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1969         pwd)`
1970 # When building in place, set srcdir=.
1971 if test "$ac_abs_confdir" = "$ac_pwd"; then
1972   srcdir=.
1973 fi
1974 # Remove unnecessary trailing slashes from srcdir.
1975 # Double slashes in file names in object file debugging info
1976 # mess up M-x gdb in Emacs.
1977 case $srcdir in
1978 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1979 esac
1980 for ac_var in $ac_precious_vars; do
1981   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1982   eval ac_env_${ac_var}_value=\$${ac_var}
1983   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1984   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1985 done
1986
1987 #
1988 # Report the --help message.
1989 #
1990 if test "$ac_init_help" = "long"; then
1991   # Omit some internal or obsolete options to make the list less imposing.
1992   # This message is too long to be a string in the A/UX 3.1 sh.
1993   cat <<_ACEOF
1994 \`configure' configures libpipeline 1.2.6 to adapt to many kinds of systems.
1995
1996 Usage: $0 [OPTION]... [VAR=VALUE]...
1997
1998 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1999 VAR=VALUE.  See below for descriptions of some of the useful variables.
2000
2001 Defaults for the options are specified in brackets.
2002
2003 Configuration:
2004   -h, --help              display this help and exit
2005       --help=short        display options specific to this package
2006       --help=recursive    display the short help of all the included packages
2007   -V, --version           display version information and exit
2008   -q, --quiet, --silent   do not print \`checking ...' messages
2009       --cache-file=FILE   cache test results in FILE [disabled]
2010   -C, --config-cache      alias for \`--cache-file=config.cache'
2011   -n, --no-create         do not create output files
2012       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2013
2014 Installation directories:
2015   --prefix=PREFIX         install architecture-independent files in PREFIX
2016                           [$ac_default_prefix]
2017   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2018                           [PREFIX]
2019
2020 By default, \`make install' will install all the files in
2021 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2022 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2023 for instance \`--prefix=\$HOME'.
2024
2025 For better control, use the options below.
2026
2027 Fine tuning of the installation directories:
2028   --bindir=DIR            user executables [EPREFIX/bin]
2029   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2030   --libexecdir=DIR        program executables [EPREFIX/libexec]
2031   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2032   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2033   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2034   --libdir=DIR            object code libraries [EPREFIX/lib]
2035   --includedir=DIR        C header files [PREFIX/include]
2036   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2037   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2038   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2039   --infodir=DIR           info documentation [DATAROOTDIR/info]
2040   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2041   --mandir=DIR            man documentation [DATAROOTDIR/man]
2042   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2043   --htmldir=DIR           html documentation [DOCDIR]
2044   --dvidir=DIR            dvi documentation [DOCDIR]
2045   --pdfdir=DIR            pdf documentation [DOCDIR]
2046   --psdir=DIR             ps documentation [DOCDIR]
2047 _ACEOF
2048
2049   cat <<\_ACEOF
2050
2051 Program names:
2052   --program-prefix=PREFIX            prepend PREFIX to installed program names
2053   --program-suffix=SUFFIX            append SUFFIX to installed program names
2054   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2055
2056 System types:
2057   --build=BUILD     configure for building on BUILD [guessed]
2058   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2059 _ACEOF
2060 fi
2061
2062 if test -n "$ac_init_help"; then
2063   case $ac_init_help in
2064      short | recursive ) echo "Configuration of libpipeline 1.2.6:";;
2065    esac
2066   cat <<\_ACEOF
2067
2068 Optional Features:
2069   --disable-option-checking  ignore unrecognized --enable/--with options
2070   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2071   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2072   --enable-silent-rules   less verbose build output (undo: "make V=1")
2073   --disable-silent-rules  verbose build output (undo: "make V=0")
2074   --enable-maintainer-mode
2075                           enable make rules and dependencies not useful (and
2076                           sometimes confusing) to the casual installer
2077   --enable-dependency-tracking
2078                           do not reject slow dependency extractors
2079   --disable-dependency-tracking
2080                           speeds up one-time build
2081   --enable-static[=PKGS]  build static libraries [default=no]
2082   --enable-shared[=PKGS]  build shared libraries [default=yes]
2083   --enable-fast-install[=PKGS]
2084                           optimize for fast installation [default=yes]
2085   --disable-libtool-lock  avoid locking (might break parallel builds)
2086   --disable-largefile     omit support for large files
2087   --enable-threads={posix|solaris|pth|windows}
2088                           specify multithreading API
2089   --disable-threads       build without multithread safety
2090   --disable-rpath         do not hardcode runtime library paths
2091   --enable-socketpair-pipe
2092                           Use socketpair(2) as fast replacement for pipe(2)
2093
2094 Optional Packages:
2095   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2096   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2097   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2098                           both]
2099   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2100   --with-sysroot=DIR Search for dependent libraries within DIR
2101                         (or the compiler's sysroot if not specified).
2102   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2103   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2104   --without-libpth-prefix     don't search for libpth in includedir and libdir
2105
2106 Some influential environment variables:
2107   CC          C compiler command
2108   CFLAGS      C compiler flags
2109   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2110               nonstandard directory <lib dir>
2111   LIBS        libraries to pass to the linker, e.g. -l<library>
2112   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2113               you have headers in a nonstandard directory <include dir>
2114   CPP         C preprocessor
2115   PKG_CONFIG  path to pkg-config utility
2116   PKG_CONFIG_PATH
2117               directories to add to pkg-config's search path
2118   PKG_CONFIG_LIBDIR
2119               path overriding pkg-config's built-in search path
2120   CHECK_CFLAGS
2121               C compiler flags for CHECK, overriding pkg-config
2122   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2123
2124 Use these variables to override the choices made by `configure' or to help
2125 it to find libraries and programs with nonstandard names/locations.
2126
2127 Report bugs to <cjwatson@debian.org>.
2128 _ACEOF
2129 ac_status=$?
2130 fi
2131
2132 if test "$ac_init_help" = "recursive"; then
2133   # If there are subdirs, report their specific --help.
2134   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2135     test -d "$ac_dir" ||
2136       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2137       continue
2138     ac_builddir=.
2139
2140 case "$ac_dir" in
2141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2142 *)
2143   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2144   # A ".." for each directory in $ac_dir_suffix.
2145   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2146   case $ac_top_builddir_sub in
2147   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2148   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2149   esac ;;
2150 esac
2151 ac_abs_top_builddir=$ac_pwd
2152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2153 # for backward compatibility:
2154 ac_top_builddir=$ac_top_build_prefix
2155
2156 case $srcdir in
2157   .)  # We are building in place.
2158     ac_srcdir=.
2159     ac_top_srcdir=$ac_top_builddir_sub
2160     ac_abs_top_srcdir=$ac_pwd ;;
2161   [\\/]* | ?:[\\/]* )  # Absolute name.
2162     ac_srcdir=$srcdir$ac_dir_suffix;
2163     ac_top_srcdir=$srcdir
2164     ac_abs_top_srcdir=$srcdir ;;
2165   *) # Relative name.
2166     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2167     ac_top_srcdir=$ac_top_build_prefix$srcdir
2168     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2169 esac
2170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2171
2172     cd "$ac_dir" || { ac_status=$?; continue; }
2173     # Check for guested configure.
2174     if test -f "$ac_srcdir/configure.gnu"; then
2175       echo &&
2176       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2177     elif test -f "$ac_srcdir/configure"; then
2178       echo &&
2179       $SHELL "$ac_srcdir/configure" --help=recursive
2180     else
2181       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2182     fi || ac_status=$?
2183     cd "$ac_pwd" || { ac_status=$?; break; }
2184   done
2185 fi
2186
2187 test -n "$ac_init_help" && exit $ac_status
2188 if $ac_init_version; then
2189   cat <<\_ACEOF
2190 libpipeline configure 1.2.6
2191 generated by GNU Autoconf 2.69
2192
2193 Copyright (C) 2012 Free Software Foundation, Inc.
2194 This configure script is free software; the Free Software Foundation
2195 gives unlimited permission to copy, distribute and modify it.
2196 _ACEOF
2197   exit
2198 fi
2199
2200 ## ------------------------ ##
2201 ## Autoconf initialization. ##
2202 ## ------------------------ ##
2203
2204 # ac_fn_c_try_compile LINENO
2205 # --------------------------
2206 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2207 ac_fn_c_try_compile ()
2208 {
2209   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210   rm -f conftest.$ac_objext
2211   if { { ac_try="$ac_compile"
2212 case "(($ac_try" in
2213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214   *) ac_try_echo=$ac_try;;
2215 esac
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218   (eval "$ac_compile") 2>conftest.err
2219   ac_status=$?
2220   if test -s conftest.err; then
2221     grep -v '^ *+' conftest.err >conftest.er1
2222     cat conftest.er1 >&5
2223     mv -f conftest.er1 conftest.err
2224   fi
2225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226   test $ac_status = 0; } && {
2227          test -z "$ac_c_werror_flag" ||
2228          test ! -s conftest.err
2229        } && test -s conftest.$ac_objext; then :
2230   ac_retval=0
2231 else
2232   $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235         ac_retval=1
2236 fi
2237   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238   as_fn_set_status $ac_retval
2239
2240 } # ac_fn_c_try_compile
2241
2242 # ac_fn_c_try_cpp LINENO
2243 # ----------------------
2244 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2245 ac_fn_c_try_cpp ()
2246 {
2247   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248   if { { ac_try="$ac_cpp conftest.$ac_ext"
2249 case "(($ac_try" in
2250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251   *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2256   ac_status=$?
2257   if test -s conftest.err; then
2258     grep -v '^ *+' conftest.err >conftest.er1
2259     cat conftest.er1 >&5
2260     mv -f conftest.er1 conftest.err
2261   fi
2262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263   test $ac_status = 0; } > conftest.i && {
2264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2265          test ! -s conftest.err
2266        }; then :
2267   ac_retval=0
2268 else
2269   $as_echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272     ac_retval=1
2273 fi
2274   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275   as_fn_set_status $ac_retval
2276
2277 } # ac_fn_c_try_cpp
2278
2279 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2280 # -------------------------------------------------------
2281 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2282 # the include files in INCLUDES and setting the cache variable VAR
2283 # accordingly.
2284 ac_fn_c_check_header_mongrel ()
2285 {
2286   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287   if eval \${$3+:} false; then :
2288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289 $as_echo_n "checking for $2... " >&6; }
2290 if eval \${$3+:} false; then :
2291   $as_echo_n "(cached) " >&6
2292 fi
2293 eval ac_res=\$$3
2294                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 else
2297   # Is the header compilable?
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2299 $as_echo_n "checking $2 usability... " >&6; }
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $4
2303 #include <$2>
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306   ac_header_compiler=yes
2307 else
2308   ac_header_compiler=no
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2312 $as_echo "$ac_header_compiler" >&6; }
2313
2314 # Is the header present?
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2316 $as_echo_n "checking $2 presence... " >&6; }
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h.  */
2319 #include <$2>
2320 _ACEOF
2321 if ac_fn_c_try_cpp "$LINENO"; then :
2322   ac_header_preproc=yes
2323 else
2324   ac_header_preproc=no
2325 fi
2326 rm -f conftest.err conftest.i conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2328 $as_echo "$ac_header_preproc" >&6; }
2329
2330 # So?  What about this header?
2331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2332   yes:no: )
2333     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2334 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2335     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2336 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2337     ;;
2338   no:yes:* )
2339     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2340 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2341     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2342 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2343     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2344 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2345     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2346 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2347     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2348 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2349 ( $as_echo "## ---------------------------------- ##
2350 ## Report this to cjwatson@debian.org ##
2351 ## ---------------------------------- ##"
2352      ) | sed "s/^/$as_me: WARNING:     /" >&2
2353     ;;
2354 esac
2355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2356 $as_echo_n "checking for $2... " >&6; }
2357 if eval \${$3+:} false; then :
2358   $as_echo_n "(cached) " >&6
2359 else
2360   eval "$3=\$ac_header_compiler"
2361 fi
2362 eval ac_res=\$$3
2363                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 fi
2366   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368 } # ac_fn_c_check_header_mongrel
2369
2370 # ac_fn_c_try_run LINENO
2371 # ----------------------
2372 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2373 # that executables *can* be run.
2374 ac_fn_c_try_run ()
2375 {
2376   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377   if { { ac_try="$ac_link"
2378 case "(($ac_try" in
2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380   *) ac_try_echo=$ac_try;;
2381 esac
2382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2383 $as_echo "$ac_try_echo"; } >&5
2384   (eval "$ac_link") 2>&5
2385   ac_status=$?
2386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2388   { { case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394   (eval "$ac_try") 2>&5
2395   ac_status=$?
2396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397   test $ac_status = 0; }; }; then :
2398   ac_retval=0
2399 else
2400   $as_echo "$as_me: program exited with status $ac_status" >&5
2401        $as_echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404        ac_retval=$ac_status
2405 fi
2406   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2407   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408   as_fn_set_status $ac_retval
2409
2410 } # ac_fn_c_try_run
2411
2412 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2413 # -------------------------------------------------------
2414 # Tests whether HEADER exists and can be compiled using the include files in
2415 # INCLUDES, setting the cache variable VAR accordingly.
2416 ac_fn_c_check_header_compile ()
2417 {
2418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 $as_echo_n "checking for $2... " >&6; }
2421 if eval \${$3+:} false; then :
2422   $as_echo_n "(cached) " >&6
2423 else
2424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h.  */
2426 $4
2427 #include <$2>
2428 _ACEOF
2429 if ac_fn_c_try_compile "$LINENO"; then :
2430   eval "$3=yes"
2431 else
2432   eval "$3=no"
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 fi
2436 eval ac_res=\$$3
2437                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438 $as_echo "$ac_res" >&6; }
2439   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440
2441 } # ac_fn_c_check_header_compile
2442
2443 # ac_fn_c_try_link LINENO
2444 # -----------------------
2445 # Try to link conftest.$ac_ext, and return whether this succeeded.
2446 ac_fn_c_try_link ()
2447 {
2448   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449   rm -f conftest.$ac_objext conftest$ac_exeext
2450   if { { ac_try="$ac_link"
2451 case "(($ac_try" in
2452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453   *) ac_try_echo=$ac_try;;
2454 esac
2455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2456 $as_echo "$ac_try_echo"; } >&5
2457   (eval "$ac_link") 2>conftest.err
2458   ac_status=$?
2459   if test -s conftest.err; then
2460     grep -v '^ *+' conftest.err >conftest.er1
2461     cat conftest.er1 >&5
2462     mv -f conftest.er1 conftest.err
2463   fi
2464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2465   test $ac_status = 0; } && {
2466          test -z "$ac_c_werror_flag" ||
2467          test ! -s conftest.err
2468        } && test -s conftest$ac_exeext && {
2469          test "$cross_compiling" = yes ||
2470          test -x conftest$ac_exeext
2471        }; then :
2472   ac_retval=0
2473 else
2474   $as_echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477         ac_retval=1
2478 fi
2479   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2480   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2481   # interfere with the next link command; also delete a directory that is
2482   # left behind by Apple's compiler.  We do this before executing the actions.
2483   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2484   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2485   as_fn_set_status $ac_retval
2486
2487 } # ac_fn_c_try_link
2488
2489 # ac_fn_c_check_func LINENO FUNC VAR
2490 # ----------------------------------
2491 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2492 ac_fn_c_check_func ()
2493 {
2494   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if eval \${$3+:} false; then :
2498   $as_echo_n "(cached) " >&6
2499 else
2500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h.  */
2502 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2504 #define $2 innocuous_$2
2505
2506 /* System header to define __stub macros and hopefully few prototypes,
2507     which can conflict with char $2 (); below.
2508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509     <limits.h> exists even on freestanding compilers.  */
2510
2511 #ifdef __STDC__
2512 # include <limits.h>
2513 #else
2514 # include <assert.h>
2515 #endif
2516
2517 #undef $2
2518
2519 /* Override any GCC internal prototype to avoid an error.
2520    Use char because int might match the return type of a GCC
2521    builtin and then its argument prototype would still apply.  */
2522 #ifdef __cplusplus
2523 extern "C"
2524 #endif
2525 char $2 ();
2526 /* The GNU C library defines this for functions which it implements
2527     to always fail with ENOSYS.  Some functions are actually named
2528     something starting with __ and the normal name is an alias.  */
2529 #if defined __stub_$2 || defined __stub___$2
2530 choke me
2531 #endif
2532
2533 int
2534 main ()
2535 {
2536 return $2 ();
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_link "$LINENO"; then :
2542   eval "$3=yes"
2543 else
2544   eval "$3=no"
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext \
2547     conftest$ac_exeext conftest.$ac_ext
2548 fi
2549 eval ac_res=\$$3
2550                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553
2554 } # ac_fn_c_check_func
2555
2556 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2557 # -------------------------------------------
2558 # Tests whether TYPE exists after having included INCLUDES, setting cache
2559 # variable VAR accordingly.
2560 ac_fn_c_check_type ()
2561 {
2562   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if eval \${$3+:} false; then :
2566   $as_echo_n "(cached) " >&6
2567 else
2568   eval "$3=no"
2569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h.  */
2571 $4
2572 int
2573 main ()
2574 {
2575 if (sizeof ($2))
2576          return 0;
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 if ac_fn_c_try_compile "$LINENO"; then :
2582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h.  */
2584 $4
2585 int
2586 main ()
2587 {
2588 if (sizeof (($2)))
2589             return 0;
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595
2596 else
2597   eval "$3=yes"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$3
2604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2607
2608 } # ac_fn_c_check_type
2609
2610 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2611 # --------------------------------------------
2612 # Tries to find the compile-time value of EXPR in a program that includes
2613 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2614 # computed
2615 ac_fn_c_compute_int ()
2616 {
2617   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618   if test "$cross_compiling" = yes; then
2619     # Depending upon the size, compute the lo and hi bounds.
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 $4
2623 int
2624 main ()
2625 {
2626 static int test_array [1 - 2 * !(($2) >= 0)];
2627 test_array [0] = 0;
2628 return test_array [0];
2629
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_c_try_compile "$LINENO"; then :
2635   ac_lo=0 ac_mid=0
2636   while :; do
2637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h.  */
2639 $4
2640 int
2641 main ()
2642 {
2643 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2644 test_array [0] = 0;
2645 return test_array [0];
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_c_try_compile "$LINENO"; then :
2652   ac_hi=$ac_mid; break
2653 else
2654   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2655                         if test $ac_lo -le $ac_mid; then
2656                           ac_lo= ac_hi=
2657                           break
2658                         fi
2659                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2660 fi
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662   done
2663 else
2664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h.  */
2666 $4
2667 int
2668 main ()
2669 {
2670 static int test_array [1 - 2 * !(($2) < 0)];
2671 test_array [0] = 0;
2672 return test_array [0];
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679   ac_hi=-1 ac_mid=-1
2680   while :; do
2681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h.  */
2683 $4
2684 int
2685 main ()
2686 {
2687 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2688 test_array [0] = 0;
2689 return test_array [0];
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696   ac_lo=$ac_mid; break
2697 else
2698   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2699                         if test $ac_mid -le $ac_hi; then
2700                           ac_lo= ac_hi=
2701                           break
2702                         fi
2703                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2704 fi
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706   done
2707 else
2708   ac_lo= ac_hi=
2709 fi
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 # Binary search between lo and hi bounds.
2714 while test "x$ac_lo" != "x$ac_hi"; do
2715   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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
2732 else
2733   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2734 fi
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 done
2737 case $ac_lo in #((
2738 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2739 '') ac_retval=1 ;;
2740 esac
2741   else
2742     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h.  */
2744 $4
2745 static long int longval () { return $2; }
2746 static unsigned long int ulongval () { return $2; }
2747 #include <stdio.h>
2748 #include <stdlib.h>
2749 int
2750 main ()
2751 {
2752
2753   FILE *f = fopen ("conftest.val", "w");
2754   if (! f)
2755     return 1;
2756   if (($2) < 0)
2757     {
2758       long int i = longval ();
2759       if (i != ($2))
2760         return 1;
2761       fprintf (f, "%ld", i);
2762     }
2763   else
2764     {
2765       unsigned long int i = ulongval ();
2766       if (i != ($2))
2767         return 1;
2768       fprintf (f, "%lu", i);
2769     }
2770   /* Do not output a trailing newline, as this causes \r\n confusion
2771      on some platforms.  */
2772   return ferror (f) || fclose (f) != 0;
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_c_try_run "$LINENO"; then :
2779   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2780 else
2781   ac_retval=1
2782 fi
2783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2784   conftest.$ac_objext conftest.beam conftest.$ac_ext
2785 rm -f conftest.val
2786
2787   fi
2788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789   as_fn_set_status $ac_retval
2790
2791 } # ac_fn_c_compute_int
2792
2793 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2794 # ---------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2796 # accordingly.
2797 ac_fn_c_check_decl ()
2798 {
2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800   as_decl_name=`echo $2|sed 's/ *(.*//'`
2801   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \${$3+:} false; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h.  */
2809 $4
2810 int
2811 main ()
2812 {
2813 #ifndef $as_decl_name
2814 #ifdef __cplusplus
2815   (void) $as_decl_use;
2816 #else
2817   (void) $as_decl_name;
2818 #endif
2819 #endif
2820
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 if ac_fn_c_try_compile "$LINENO"; then :
2826   eval "$3=yes"
2827 else
2828   eval "$3=no"
2829 fi
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 fi
2832 eval ac_res=\$$3
2833                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836
2837 } # ac_fn_c_check_decl
2838
2839 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2840 # ----------------------------------------------------
2841 # Tries to find if the field MEMBER exists in type AGGR, after including
2842 # INCLUDES, setting cache variable VAR accordingly.
2843 ac_fn_c_check_member ()
2844 {
2845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2847 $as_echo_n "checking for $2.$3... " >&6; }
2848 if eval \${$4+:} false; then :
2849   $as_echo_n "(cached) " >&6
2850 else
2851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h.  */
2853 $5
2854 int
2855 main ()
2856 {
2857 static $2 ac_aggr;
2858 if (ac_aggr.$3)
2859 return 0;
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 if ac_fn_c_try_compile "$LINENO"; then :
2865   eval "$4=yes"
2866 else
2867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h.  */
2869 $5
2870 int
2871 main ()
2872 {
2873 static $2 ac_aggr;
2874 if (sizeof ac_aggr.$3)
2875 return 0;
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
2880 if ac_fn_c_try_compile "$LINENO"; then :
2881   eval "$4=yes"
2882 else
2883   eval "$4=no"
2884 fi
2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 fi
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 fi
2889 eval ac_res=\$$4
2890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2891 $as_echo "$ac_res" >&6; }
2892   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2893
2894 } # ac_fn_c_check_member
2895 cat >config.log <<_ACEOF
2896 This file contains any messages produced by compilers while
2897 running configure, to aid debugging if configure makes a mistake.
2898
2899 It was created by libpipeline $as_me 1.2.6, which was
2900 generated by GNU Autoconf 2.69.  Invocation command line was
2901
2902   $ $0 $@
2903
2904 _ACEOF
2905 exec 5>>config.log
2906 {
2907 cat <<_ASUNAME
2908 ## --------- ##
2909 ## Platform. ##
2910 ## --------- ##
2911
2912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2917
2918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2919 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2920
2921 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2922 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2924 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2925 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2926 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2927 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2928
2929 _ASUNAME
2930
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     $as_echo "PATH: $as_dir"
2937   done
2938 IFS=$as_save_IFS
2939
2940 } >&5
2941
2942 cat >&5 <<_ACEOF
2943
2944
2945 ## ----------- ##
2946 ## Core tests. ##
2947 ## ----------- ##
2948
2949 _ACEOF
2950
2951
2952 # Keep a trace of the command line.
2953 # Strip out --no-create and --no-recursion so they do not pile up.
2954 # Strip out --silent because we don't want to record it for future runs.
2955 # Also quote any args containing shell meta-characters.
2956 # Make two passes to allow for proper duplicate-argument suppression.
2957 ac_configure_args=
2958 ac_configure_args0=
2959 ac_configure_args1=
2960 ac_must_keep_next=false
2961 for ac_pass in 1 2
2962 do
2963   for ac_arg
2964   do
2965     case $ac_arg in
2966     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2967     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2968     | -silent | --silent | --silen | --sile | --sil)
2969       continue ;;
2970     *\'*)
2971       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2972     esac
2973     case $ac_pass in
2974     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2975     2)
2976       as_fn_append ac_configure_args1 " '$ac_arg'"
2977       if test $ac_must_keep_next = true; then
2978         ac_must_keep_next=false # Got value, back to normal.
2979       else
2980         case $ac_arg in
2981           *=* | --config-cache | -C | -disable-* | --disable-* \
2982           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2983           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2984           | -with-* | --with-* | -without-* | --without-* | --x)
2985             case "$ac_configure_args0 " in
2986               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2987             esac
2988             ;;
2989           -* ) ac_must_keep_next=true ;;
2990         esac
2991       fi
2992       as_fn_append ac_configure_args " '$ac_arg'"
2993       ;;
2994     esac
2995   done
2996 done
2997 { ac_configure_args0=; unset ac_configure_args0;}
2998 { ac_configure_args1=; unset ac_configure_args1;}
2999
3000 # When interrupted or exit'd, cleanup temporary files, and complete
3001 # config.log.  We remove comments because anyway the quotes in there
3002 # would cause problems or look ugly.
3003 # WARNING: Use '\'' to represent an apostrophe within the trap.
3004 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3005 trap 'exit_status=$?
3006   # Save into config.log some information that might help in debugging.
3007   {
3008     echo
3009
3010     $as_echo "## ---------------- ##
3011 ## Cache variables. ##
3012 ## ---------------- ##"
3013     echo
3014     # The following way of writing the cache mishandles newlines in values,
3015 (
3016   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3017     eval ac_val=\$$ac_var
3018     case $ac_val in #(
3019     *${as_nl}*)
3020       case $ac_var in #(
3021       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3023       esac
3024       case $ac_var in #(
3025       _ | IFS | as_nl) ;; #(
3026       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3027       *) { eval $ac_var=; unset $ac_var;} ;;
3028       esac ;;
3029     esac
3030   done
3031   (set) 2>&1 |
3032     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3033     *${as_nl}ac_space=\ *)
3034       sed -n \
3035         "s/'\''/'\''\\\\'\'''\''/g;
3036           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3037       ;; #(
3038     *)
3039       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3040       ;;
3041     esac |
3042     sort
3043 )
3044     echo
3045
3046     $as_echo "## ----------------- ##
3047 ## Output variables. ##
3048 ## ----------------- ##"
3049     echo
3050     for ac_var in $ac_subst_vars
3051     do
3052       eval ac_val=\$$ac_var
3053       case $ac_val in
3054       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3055       esac
3056       $as_echo "$ac_var='\''$ac_val'\''"
3057     done | sort
3058     echo
3059
3060     if test -n "$ac_subst_files"; then
3061       $as_echo "## ------------------- ##
3062 ## File substitutions. ##
3063 ## ------------------- ##"
3064       echo
3065       for ac_var in $ac_subst_files
3066       do
3067         eval ac_val=\$$ac_var
3068         case $ac_val in
3069         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3070         esac
3071         $as_echo "$ac_var='\''$ac_val'\''"
3072       done | sort
3073       echo
3074     fi
3075
3076     if test -s confdefs.h; then
3077       $as_echo "## ----------- ##
3078 ## confdefs.h. ##
3079 ## ----------- ##"
3080       echo
3081       cat confdefs.h
3082       echo
3083     fi
3084     test "$ac_signal" != 0 &&
3085       $as_echo "$as_me: caught signal $ac_signal"
3086     $as_echo "$as_me: exit $exit_status"
3087   } >&5
3088   rm -f core *.core core.conftest.* &&
3089     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3090     exit $exit_status
3091 ' 0
3092 for ac_signal in 1 2 13 15; do
3093   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3094 done
3095 ac_signal=0
3096
3097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3098 rm -f -r conftest* confdefs.h
3099
3100 $as_echo "/* confdefs.h */" > confdefs.h
3101
3102 # Predefined preprocessor variables.
3103
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE_NAME "$PACKAGE_NAME"
3106 _ACEOF
3107
3108 cat >>confdefs.h <<_ACEOF
3109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3110 _ACEOF
3111
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3114 _ACEOF
3115
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_STRING "$PACKAGE_STRING"
3118 _ACEOF
3119
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3122 _ACEOF
3123
3124 cat >>confdefs.h <<_ACEOF
3125 #define PACKAGE_URL "$PACKAGE_URL"
3126 _ACEOF
3127
3128
3129 # Let the site file select an alternate cache file if it wants to.
3130 # Prefer an explicitly selected file to automatically selected ones.
3131 ac_site_file1=NONE
3132 ac_site_file2=NONE
3133 if test -n "$CONFIG_SITE"; then
3134   # We do not want a PATH search for config.site.
3135   case $CONFIG_SITE in #((
3136     -*)  ac_site_file1=./$CONFIG_SITE;;
3137     */*) ac_site_file1=$CONFIG_SITE;;
3138     *)   ac_site_file1=./$CONFIG_SITE;;
3139   esac
3140 elif test "x$prefix" != xNONE; then
3141   ac_site_file1=$prefix/share/config.site
3142   ac_site_file2=$prefix/etc/config.site
3143 else
3144   ac_site_file1=$ac_default_prefix/share/config.site
3145   ac_site_file2=$ac_default_prefix/etc/config.site
3146 fi
3147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3148 do
3149   test "x$ac_site_file" = xNONE && continue
3150   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3153     sed 's/^/| /' "$ac_site_file" >&5
3154     . "$ac_site_file" \
3155       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "failed to load site script $ac_site_file
3158 See \`config.log' for more details" "$LINENO" 5; }
3159   fi
3160 done
3161
3162 if test -r "$cache_file"; then
3163   # Some versions of bash will fail to source /dev/null (special files
3164   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3165   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3166     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3167 $as_echo "$as_me: loading cache $cache_file" >&6;}
3168     case $cache_file in
3169       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3170       *)                      . "./$cache_file";;
3171     esac
3172   fi
3173 else
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3175 $as_echo "$as_me: creating cache $cache_file" >&6;}
3176   >$cache_file
3177 fi
3178
3179 gl_header_list="$gl_header_list unistd.h"
3180 gl_header_list="$gl_header_list sys/mman.h"
3181 gl_func_list="$gl_func_list mprotect"
3182 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3183 gl_func_list="$gl_func_list setenv"
3184 gl_func_list="$gl_func_list sigaction"
3185 gl_func_list="$gl_func_list sigaltstack"
3186 gl_func_list="$gl_func_list siginterrupt"
3187 gl_func_list="$gl_func_list snprintf"
3188 gl_header_list="$gl_header_list wchar.h"
3189 gl_header_list="$gl_header_list stdint.h"
3190 gl_header_list="$gl_header_list sys/socket.h"
3191 gl_func_list="$gl_func_list strndup"
3192 gl_header_list="$gl_header_list sys/select.h"
3193 gl_header_list="$gl_header_list sys/stat.h"
3194 gl_header_list="$gl_header_list sys/time.h"
3195 gl_header_list="$gl_header_list sys/wait.h"
3196 gl_func_list="$gl_func_list vasnprintf"
3197 gl_header_list="$gl_header_list features.h"
3198 # Check that the precious variables saved in the cache have kept the same
3199 # value.
3200 ac_cache_corrupted=false
3201 for ac_var in $ac_precious_vars; do
3202   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3203   eval ac_new_set=\$ac_env_${ac_var}_set
3204   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3205   eval ac_new_val=\$ac_env_${ac_var}_value
3206   case $ac_old_set,$ac_new_set in
3207     set,)
3208       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3209 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3210       ac_cache_corrupted=: ;;
3211     ,set)
3212       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3213 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3214       ac_cache_corrupted=: ;;
3215     ,);;
3216     *)
3217       if test "x$ac_old_val" != "x$ac_new_val"; then
3218         # differences in whitespace do not lead to failure.
3219         ac_old_val_w=`echo x $ac_old_val`
3220         ac_new_val_w=`echo x $ac_new_val`
3221         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3222           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3223 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3224           ac_cache_corrupted=:
3225         else
3226           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3227 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3228           eval $ac_var=\$ac_old_val
3229         fi
3230         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3231 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3232         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3233 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3234       fi;;
3235   esac
3236   # Pass precious variables to config.status.
3237   if test "$ac_new_set" = set; then
3238     case $ac_new_val in
3239     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3240     *) ac_arg=$ac_var=$ac_new_val ;;
3241     esac
3242     case " $ac_configure_args " in
3243       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3244       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3245     esac
3246   fi
3247 done
3248 if $ac_cache_corrupted; then
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3252 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3253   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3254 fi
3255 ## -------------------- ##
3256 ## Main body of script. ##
3257 ## -------------------- ##
3258
3259 ac_ext=c
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265
3266 ac_aux_dir=
3267 for ac_dir in tools "$srcdir"/tools; do
3268   if test -f "$ac_dir/install-sh"; then
3269     ac_aux_dir=$ac_dir
3270     ac_install_sh="$ac_aux_dir/install-sh -c"
3271     break
3272   elif test -f "$ac_dir/install.sh"; then
3273     ac_aux_dir=$ac_dir
3274     ac_install_sh="$ac_aux_dir/install.sh -c"
3275     break
3276   elif test -f "$ac_dir/shtool"; then
3277     ac_aux_dir=$ac_dir
3278     ac_install_sh="$ac_aux_dir/shtool install -c"
3279     break
3280   fi
3281 done
3282 if test -z "$ac_aux_dir"; then
3283   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3284 fi
3285
3286 # These three variables are undocumented and unsupported,
3287 # and are intended to be withdrawn in a future Autoconf release.
3288 # They can cause serious problems if a builder's source tree is in a directory
3289 # whose full name contains unusual characters.
3290 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3291 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3292 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3293
3294
3295 am__api_version='1.14'
3296
3297 # Find a good install program.  We prefer a C program (faster),
3298 # so one script is as good as another.  But avoid the broken or
3299 # incompatible versions:
3300 # SysV /etc/install, /usr/sbin/install
3301 # SunOS /usr/etc/install
3302 # IRIX /sbin/install
3303 # AIX /bin/install
3304 # AmigaOS /C/install, which installs bootblocks on floppy discs
3305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3308 # OS/2's system install, which has a completely different semantic
3309 # ./install, which can be erroneously created by make from ./install.sh.
3310 # Reject install programs that cannot install multiple files.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3312 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3313 if test -z "$INSTALL"; then
3314 if ${ac_cv_path_install+:} false; then :
3315   $as_echo_n "(cached) " >&6
3316 else
3317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322     # Account for people who put trailing slashes in PATH elements.
3323 case $as_dir/ in #((
3324   ./ | .// | /[cC]/* | \
3325   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3326   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3327   /usr/ucb/* ) ;;
3328   *)
3329     # OSF1 and SCO ODT 3.0 have their own names for install.
3330     # Don't use installbsd from OSF since it installs stuff as root
3331     # by default.
3332     for ac_prog in ginstall scoinst install; do
3333       for ac_exec_ext in '' $ac_executable_extensions; do
3334         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3335           if test $ac_prog = install &&
3336             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337             # AIX install.  It has an incompatible calling convention.
3338             :
3339           elif test $ac_prog = install &&
3340             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3341             # program-specific install script used by HP pwplus--don't use.
3342             :
3343           else
3344             rm -rf conftest.one conftest.two conftest.dir
3345             echo one > conftest.one
3346             echo two > conftest.two
3347             mkdir conftest.dir
3348             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3349               test -s conftest.one && test -s conftest.two &&
3350               test -s conftest.dir/conftest.one &&
3351               test -s conftest.dir/conftest.two
3352             then
3353               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3354               break 3
3355             fi
3356           fi
3357         fi
3358       done
3359     done
3360     ;;
3361 esac
3362
3363   done
3364 IFS=$as_save_IFS
3365
3366 rm -rf conftest.one conftest.two conftest.dir
3367
3368 fi
3369   if test "${ac_cv_path_install+set}" = set; then
3370     INSTALL=$ac_cv_path_install
3371   else
3372     # As a last resort, use the slow shell script.  Don't cache a
3373     # value for INSTALL within a source directory, because that will
3374     # break other packages using the cache if that directory is
3375     # removed, or if the value is a relative name.
3376     INSTALL=$ac_install_sh
3377   fi
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3380 $as_echo "$INSTALL" >&6; }
3381
3382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3383 # It thinks the first close brace ends the variable substitution.
3384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3385
3386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3387
3388 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3389
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3391 $as_echo_n "checking whether build environment is sane... " >&6; }
3392 # Reject unsafe characters in $srcdir or the absolute working directory
3393 # name.  Accept space and tab only in the latter.
3394 am_lf='
3395 '
3396 case `pwd` in
3397   *[\\\"\#\$\&\'\`$am_lf]*)
3398     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3399 esac
3400 case $srcdir in
3401   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3402     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3403 esac
3404
3405 # Do 'set' in a subshell so we don't clobber the current shell's
3406 # arguments.  Must try -L first in case configure is actually a
3407 # symlink; some systems play weird games with the mod time of symlinks
3408 # (eg FreeBSD returns the mod time of the symlink's containing
3409 # directory).
3410 if (
3411    am_has_slept=no
3412    for am_try in 1 2; do
3413      echo "timestamp, slept: $am_has_slept" > conftest.file
3414      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3415      if test "$*" = "X"; then
3416         # -L didn't work.
3417         set X `ls -t "$srcdir/configure" conftest.file`
3418      fi
3419      if test "$*" != "X $srcdir/configure conftest.file" \
3420         && test "$*" != "X conftest.file $srcdir/configure"; then
3421
3422         # If neither matched, then we have a broken ls.  This can happen
3423         # if, for instance, CONFIG_SHELL is bash and it inherits a
3424         # broken ls alias from the environment.  This has actually
3425         # happened.  Such a system could not be considered "sane".
3426         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3427   alias in your environment" "$LINENO" 5
3428      fi
3429      if test "$2" = conftest.file || test $am_try -eq 2; then
3430        break
3431      fi
3432      # Just in case.
3433      sleep 1
3434      am_has_slept=yes
3435    done
3436    test "$2" = conftest.file
3437    )
3438 then
3439    # Ok.
3440    :
3441 else
3442    as_fn_error $? "newly created file is older than distributed files!
3443 Check your system clock" "$LINENO" 5
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446 $as_echo "yes" >&6; }
3447 # If we didn't sleep, we still need to ensure time stamps of config.status and
3448 # generated files are strictly newer.
3449 am_sleep_pid=
3450 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3451   ( sleep 1 ) &
3452   am_sleep_pid=$!
3453 fi
3454
3455 rm -f conftest.file
3456
3457 test "$program_prefix" != NONE &&
3458   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3459 # Use a double $ so make ignores it.
3460 test "$program_suffix" != NONE &&
3461   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3462 # Double any \ or $.
3463 # By default was `s,x,x', remove it if useless.
3464 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3465 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3466
3467 # expand $ac_aux_dir to an absolute path
3468 am_aux_dir=`cd $ac_aux_dir && pwd`
3469
3470 if test x"${MISSING+set}" != xset; then
3471   case $am_aux_dir in
3472   *\ * | *\     *)
3473     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3474   *)
3475     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3476   esac
3477 fi
3478 # Use eval to expand $SHELL
3479 if eval "$MISSING --is-lightweight"; then
3480   am_missing_run="$MISSING "
3481 else
3482   am_missing_run=
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3484 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3485 fi
3486
3487 if test x"${install_sh}" != xset; then
3488   case $am_aux_dir in
3489   *\ * | *\     *)
3490     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3491   *)
3492     install_sh="\${SHELL} $am_aux_dir/install-sh"
3493   esac
3494 fi
3495
3496 # Installed binaries are usually stripped using 'strip' when the user
3497 # run "make install-strip".  However 'strip' might not be the right
3498 # tool to use in cross-compilation environments, therefore Automake
3499 # will honor the 'STRIP' environment variable to overrule this program.
3500 if test "$cross_compiling" != no; then
3501   if test -n "$ac_tool_prefix"; then
3502   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3503 set dummy ${ac_tool_prefix}strip; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_STRIP+:} false; then :
3507   $as_echo_n "(cached) " >&6
3508 else
3509   if test -n "$STRIP"; then
3510   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517     for ac_exec_ext in '' $ac_executable_extensions; do
3518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524   done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 STRIP=$ac_cv_prog_STRIP
3530 if test -n "$STRIP"; then
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3532 $as_echo "$STRIP" >&6; }
3533 else
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 if test -z "$ac_cv_prog_STRIP"; then
3541   ac_ct_STRIP=$STRIP
3542   # Extract the first word of "strip", so it can be a program name with args.
3543 set dummy strip; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3547   $as_echo_n "(cached) " >&6
3548 else
3549   if test -n "$ac_ct_STRIP"; then
3550   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557     for ac_exec_ext in '' $ac_executable_extensions; do
3558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559     ac_cv_prog_ac_ct_STRIP="strip"
3560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561     break 2
3562   fi
3563 done
3564   done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3570 if test -n "$ac_ct_STRIP"; then
3571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3572 $as_echo "$ac_ct_STRIP" >&6; }
3573 else
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 fi
3577
3578   if test "x$ac_ct_STRIP" = x; then
3579     STRIP=":"
3580   else
3581     case $cross_compiling:$ac_tool_warned in
3582 yes:)
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3586 esac
3587     STRIP=$ac_ct_STRIP
3588   fi
3589 else
3590   STRIP="$ac_cv_prog_STRIP"
3591 fi
3592
3593 fi
3594 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3597 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3598 if test -z "$MKDIR_P"; then
3599   if ${ac_cv_path_mkdir+:} false; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607     for ac_prog in mkdir gmkdir; do
3608          for ac_exec_ext in '' $ac_executable_extensions; do
3609            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3610            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3611              'mkdir (GNU coreutils) '* | \
3612              'mkdir (coreutils) '* | \
3613              'mkdir (fileutils) '4.1*)
3614                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3615                break 3;;
3616            esac
3617          done
3618        done
3619   done
3620 IFS=$as_save_IFS
3621
3622 fi
3623
3624   test -d ./--version && rmdir ./--version
3625   if test "${ac_cv_path_mkdir+set}" = set; then
3626     MKDIR_P="$ac_cv_path_mkdir -p"
3627   else
3628     # As a last resort, use the slow shell script.  Don't cache a
3629     # value for MKDIR_P within a source directory, because that will
3630     # break other packages using the cache if that directory is
3631     # removed, or if the value is a relative name.
3632     MKDIR_P="$ac_install_sh -d"
3633   fi
3634 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3636 $as_echo "$MKDIR_P" >&6; }
3637
3638 for ac_prog in gawk mawk nawk awk
3639 do
3640   # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_AWK+:} false; then :
3645   $as_echo_n "(cached) " >&6
3646 else
3647   if test -n "$AWK"; then
3648   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3652 do
3653   IFS=$as_save_IFS
3654   test -z "$as_dir" && as_dir=.
3655     for ac_exec_ext in '' $ac_executable_extensions; do
3656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657     ac_cv_prog_AWK="$ac_prog"
3658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659     break 2
3660   fi
3661 done
3662   done
3663 IFS=$as_save_IFS
3664
3665 fi
3666 fi
3667 AWK=$ac_cv_prog_AWK
3668 if test -n "$AWK"; then
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3670 $as_echo "$AWK" >&6; }
3671 else
3672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 fi
3675
3676
3677   test -n "$AWK" && break
3678 done
3679
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3681 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3682 set x ${MAKE-make}
3683 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3684 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3685   $as_echo_n "(cached) " >&6
3686 else
3687   cat >conftest.make <<\_ACEOF
3688 SHELL = /bin/sh
3689 all:
3690         @echo '@@@%%%=$(MAKE)=@@@%%%'
3691 _ACEOF
3692 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3693 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3694   *@@@%%%=?*=@@@%%%*)
3695     eval ac_cv_prog_make_${ac_make}_set=yes;;
3696   *)
3697     eval ac_cv_prog_make_${ac_make}_set=no;;
3698 esac
3699 rm -f conftest.make
3700 fi
3701 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3704   SET_MAKE=
3705 else
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708   SET_MAKE="MAKE=${MAKE-make}"
3709 fi
3710
3711 rm -rf .tst 2>/dev/null
3712 mkdir .tst 2>/dev/null
3713 if test -d .tst; then
3714   am__leading_dot=.
3715 else
3716   am__leading_dot=_
3717 fi
3718 rmdir .tst 2>/dev/null
3719
3720 # Check whether --enable-silent-rules was given.
3721 if test "${enable_silent_rules+set}" = set; then :
3722   enableval=$enable_silent_rules;
3723 fi
3724
3725 case $enable_silent_rules in # (((
3726   yes) AM_DEFAULT_VERBOSITY=0;;
3727    no) AM_DEFAULT_VERBOSITY=1;;
3728     *) AM_DEFAULT_VERBOSITY=1;;
3729 esac
3730 am_make=${MAKE-make}
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3732 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3733 if ${am_cv_make_support_nested_variables+:} false; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   if $as_echo 'TRUE=$(BAR$(V))
3737 BAR0=false
3738 BAR1=true
3739 V=1
3740 am__doit:
3741         @$(TRUE)
3742 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3743   am_cv_make_support_nested_variables=yes
3744 else
3745   am_cv_make_support_nested_variables=no
3746 fi
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3749 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3750 if test $am_cv_make_support_nested_variables = yes; then
3751     AM_V='$(V)'
3752   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3753 else
3754   AM_V=$AM_DEFAULT_VERBOSITY
3755   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3756 fi
3757 AM_BACKSLASH='\'
3758
3759 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3760   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3761   # is not polluted with repeated "-I."
3762   am__isrc=' -I$(srcdir)'
3763   # test to see if srcdir already configured
3764   if test -f $srcdir/config.status; then
3765     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3766   fi
3767 fi
3768
3769 # test whether we have cygpath
3770 if test -z "$CYGPATH_W"; then
3771   if (cygpath --version) >/dev/null 2>/dev/null; then
3772     CYGPATH_W='cygpath -w'
3773   else
3774     CYGPATH_W=echo
3775   fi
3776 fi
3777
3778
3779 # Define the identity of the package.
3780  PACKAGE='libpipeline'
3781  VERSION='1.2.6'
3782
3783
3784 cat >>confdefs.h <<_ACEOF
3785 #define PACKAGE "$PACKAGE"
3786 _ACEOF
3787
3788
3789 cat >>confdefs.h <<_ACEOF
3790 #define VERSION "$VERSION"
3791 _ACEOF
3792
3793 # Some tools Automake needs.
3794
3795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3796
3797
3798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3799
3800
3801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3802
3803
3804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3805
3806
3807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3808
3809 # For better backward compatibility.  To be removed once Automake 1.9.x
3810 # dies out for good.  For more background, see:
3811 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3812 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3813 mkdir_p='$(MKDIR_P)'
3814
3815 # We need awk for the "check" target.  The system "awk" is bad on
3816 # some platforms.
3817 # Always define AMTAR for backward compatibility.  Yes, it's still used
3818 # in the wild :-(  We should find a proper way to deprecate it ...
3819 AMTAR='$${TAR-tar}'
3820
3821
3822 # We'll loop over all known methods to create a tar archive until one works.
3823 _am_tools='gnutar  pax cpio none'
3824
3825 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3826
3827
3828
3829
3830
3831
3832 # POSIX will say in a future version that running "rm -f" with no argument
3833 # is OK; and we want to be able to make that assumption in our Makefile
3834 # recipes.  So use an aggressive probe to check that the usage we want is
3835 # actually supported "in the wild" to an acceptable degree.
3836 # See automake bug#10828.
3837 # To make any issue more visible, cause the running configure to be aborted
3838 # by default if the 'rm' program in use doesn't match our expectations; the
3839 # user can still override this though.
3840 if rm -f && rm -fr && rm -rf; then : OK; else
3841   cat >&2 <<'END'
3842 Oops!
3843
3844 Your 'rm' program seems unable to run without file operands specified
3845 on the command line, even when the '-f' option is present.  This is contrary
3846 to the behaviour of most rm programs out there, and not conforming with
3847 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3848
3849 Please tell bug-automake@gnu.org about your system, including the value
3850 of your $PATH and any error possibly output before this message.  This
3851 can help us improve future automake versions.
3852
3853 END
3854   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3855     echo 'Configuration will proceed anyway, since you have set the' >&2
3856     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3857     echo >&2
3858   else
3859     cat >&2 <<'END'
3860 Aborting the configuration process, to ensure you take notice of the issue.
3861
3862 You can download and install GNU coreutils to get an 'rm' implementation
3863 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3864
3865 If you want to complete the configuration process using your problematic
3866 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3867 to "yes", and re-run configure.
3868
3869 END
3870     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3871   fi
3872 fi
3873
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3875 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3876     # Check whether --enable-maintainer-mode was given.
3877 if test "${enable_maintainer_mode+set}" = set; then :
3878   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3879 else
3880   USE_MAINTAINER_MODE=no
3881 fi
3882
3883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3884 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3885    if test $USE_MAINTAINER_MODE = yes; then
3886   MAINTAINER_MODE_TRUE=
3887   MAINTAINER_MODE_FALSE='#'
3888 else
3889   MAINTAINER_MODE_TRUE='#'
3890   MAINTAINER_MODE_FALSE=
3891 fi
3892
3893   MAINT=$MAINTAINER_MODE_TRUE
3894
3895
3896 # Check whether --enable-silent-rules was given.
3897 if test "${enable_silent_rules+set}" = set; then :
3898   enableval=$enable_silent_rules;
3899 fi
3900
3901 case $enable_silent_rules in # (((
3902   yes) AM_DEFAULT_VERBOSITY=0;;
3903    no) AM_DEFAULT_VERBOSITY=1;;
3904     *) AM_DEFAULT_VERBOSITY=0;;
3905 esac
3906 am_make=${MAKE-make}
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3908 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3909 if ${am_cv_make_support_nested_variables+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   if $as_echo 'TRUE=$(BAR$(V))
3913 BAR0=false
3914 BAR1=true
3915 V=1
3916 am__doit:
3917         @$(TRUE)
3918 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3919   am_cv_make_support_nested_variables=yes
3920 else
3921   am_cv_make_support_nested_variables=no
3922 fi
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3925 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3926 if test $am_cv_make_support_nested_variables = yes; then
3927     AM_V='$(V)'
3928   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3929 else
3930   AM_V=$AM_DEFAULT_VERBOSITY
3931   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3932 fi
3933 AM_BACKSLASH='\'
3934
3935
3936
3937 DEPDIR="${am__leading_dot}deps"
3938
3939 ac_config_commands="$ac_config_commands depfiles"
3940
3941
3942 am_make=${MAKE-make}
3943 cat > confinc << 'END'
3944 am__doit:
3945         @echo this is the am__doit target
3946 .PHONY: am__doit
3947 END
3948 # If we don't find an include directive, just comment out the code.
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3950 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3951 am__include="#"
3952 am__quote=
3953 _am_result=none
3954 # First try GNU make style include.
3955 echo "include confinc" > confmf
3956 # Ignore all kinds of additional output from 'make'.
3957 case `$am_make -s -f confmf 2> /dev/null` in #(
3958 *the\ am__doit\ target*)
3959   am__include=include
3960   am__quote=
3961   _am_result=GNU
3962   ;;
3963 esac
3964 # Now try BSD make style include.
3965 if test "$am__include" = "#"; then
3966    echo '.include "confinc"' > confmf
3967    case `$am_make -s -f confmf 2> /dev/null` in #(
3968    *the\ am__doit\ target*)
3969      am__include=.include
3970      am__quote="\""
3971      _am_result=BSD
3972      ;;
3973    esac
3974 fi
3975
3976
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3978 $as_echo "$_am_result" >&6; }
3979 rm -f confinc confmf
3980
3981 # Check whether --enable-dependency-tracking was given.
3982 if test "${enable_dependency_tracking+set}" = set; then :
3983   enableval=$enable_dependency_tracking;
3984 fi
3985
3986 if test "x$enable_dependency_tracking" != xno; then
3987   am_depcomp="$ac_aux_dir/depcomp"
3988   AMDEPBACKSLASH='\'
3989   am__nodep='_no'
3990 fi
3991  if test "x$enable_dependency_tracking" != xno; then
3992   AMDEP_TRUE=
3993   AMDEP_FALSE='#'
3994 else
3995   AMDEP_TRUE='#'
3996   AMDEP_FALSE=
3997 fi
3998
3999
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 if test -n "$ac_tool_prefix"; then
4006   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if ${ac_cv_prog_CC+:} false; then :
4011   $as_echo_n "(cached) " >&6
4012 else
4013   if test -n "$CC"; then
4014   ac_cv_prog_CC="$CC" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021     for ac_exec_ext in '' $ac_executable_extensions; do
4022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025     break 2
4026   fi
4027 done
4028   done
4029 IFS=$as_save_IFS
4030
4031 fi
4032 fi
4033 CC=$ac_cv_prog_CC
4034 if test -n "$CC"; then
4035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036 $as_echo "$CC" >&6; }
4037 else
4038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4040 fi
4041
4042
4043 fi
4044 if test -z "$ac_cv_prog_CC"; then
4045   ac_ct_CC=$CC
4046   # Extract the first word of "gcc", so it can be a program name with args.
4047 set dummy gcc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   if test -n "$ac_ct_CC"; then
4054   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061     for ac_exec_ext in '' $ac_executable_extensions; do
4062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063     ac_cv_prog_ac_ct_CC="gcc"
4064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068   done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4074 if test -n "$ac_ct_CC"; then
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4076 $as_echo "$ac_ct_CC" >&6; }
4077 else
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 fi
4081
4082   if test "x$ac_ct_CC" = x; then
4083     CC=""
4084   else
4085     case $cross_compiling:$ac_tool_warned in
4086 yes:)
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4089 ac_tool_warned=yes ;;
4090 esac
4091     CC=$ac_ct_CC
4092   fi
4093 else
4094   CC="$ac_cv_prog_CC"
4095 fi
4096
4097 if test -z "$CC"; then
4098           if test -n "$ac_tool_prefix"; then
4099     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}cc; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_CC+:} false; then :
4104   $as_echo_n "(cached) " >&6
4105 else
4106   if test -n "$CC"; then
4107   ac_cv_prog_CC="$CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114     for ac_exec_ext in '' $ac_executable_extensions; do
4115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116     ac_cv_prog_CC="${ac_tool_prefix}cc"
4117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118     break 2
4119   fi
4120 done
4121   done
4122 IFS=$as_save_IFS
4123
4124 fi
4125 fi
4126 CC=$ac_cv_prog_CC
4127 if test -n "$CC"; then
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 $as_echo "$CC" >&6; }
4130 else
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4133 fi
4134
4135
4136   fi
4137 fi
4138 if test -z "$CC"; then
4139   # Extract the first word of "cc", so it can be a program name with args.
4140 set dummy cc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$CC"; then
4147   ac_cv_prog_CC="$CC" # Let the user override the test.
4148 else
4149   ac_prog_rejected=no
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155     for ac_exec_ext in '' $ac_executable_extensions; do
4156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4158        ac_prog_rejected=yes
4159        continue
4160      fi
4161     ac_cv_prog_CC="cc"
4162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166   done
4167 IFS=$as_save_IFS
4168
4169 if test $ac_prog_rejected = yes; then
4170   # We found a bogon in the path, so make sure we never use it.
4171   set dummy $ac_cv_prog_CC
4172   shift
4173   if test $# != 0; then
4174     # We chose a different compiler from the bogus one.
4175     # However, it has the same basename, so the bogon will be chosen
4176     # first if we set CC to just the basename; use the full file name.
4177     shift
4178     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4179   fi
4180 fi
4181 fi
4182 fi
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 $as_echo "$CC" >&6; }
4187 else
4188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4190 fi
4191
4192
4193 fi
4194 if test -z "$CC"; then
4195   if test -n "$ac_tool_prefix"; then
4196   for ac_prog in cl.exe
4197   do
4198     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if ${ac_cv_prog_CC+:} false; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205   if test -n "$CC"; then
4206   ac_cv_prog_CC="$CC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213     for ac_exec_ext in '' $ac_executable_extensions; do
4214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220   done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 CC=$ac_cv_prog_CC
4226 if test -n "$CC"; then
4227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4228 $as_echo "$CC" >&6; }
4229 else
4230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234
4235     test -n "$CC" && break
4236   done
4237 fi
4238 if test -z "$CC"; then
4239   ac_ct_CC=$CC
4240   for ac_prog in cl.exe
4241 do
4242   # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   if test -n "$ac_ct_CC"; then
4250   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257     for ac_exec_ext in '' $ac_executable_extensions; do
4258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     ac_cv_prog_ac_ct_CC="$ac_prog"
4260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264   done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4273 else
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278
4279   test -n "$ac_ct_CC" && break
4280 done
4281
4282   if test "x$ac_ct_CC" = x; then
4283     CC=""
4284   else
4285     case $cross_compiling:$ac_tool_warned in
4286 yes:)
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289 ac_tool_warned=yes ;;
4290 esac
4291     CC=$ac_ct_CC
4292   fi
4293 fi
4294
4295 fi
4296
4297
4298 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error $? "no acceptable C compiler found in \$PATH
4301 See \`config.log' for more details" "$LINENO" 5; }
4302
4303 # Provide some information about the compiler.
4304 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4305 set X $ac_compile
4306 ac_compiler=$2
4307 for ac_option in --version -v -V -qversion; do
4308   { { ac_try="$ac_compiler $ac_option >&5"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4316   ac_status=$?
4317   if test -s conftest.err; then
4318     sed '10a\
4319 ... rest of stderr output deleted ...
4320          10q' conftest.err >conftest.er1
4321     cat conftest.er1 >&5
4322   fi
4323   rm -f conftest.er1 conftest.err
4324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325   test $ac_status = 0; }
4326 done
4327
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h.  */
4330
4331 int
4332 main ()
4333 {
4334
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 ac_clean_files_save=$ac_clean_files
4340 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4341 # Try to create an executable without -o first, disregard a.out.
4342 # It will help us diagnose broken compilers, and finding out an intuition
4343 # of exeext.
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4345 $as_echo_n "checking whether the C compiler works... " >&6; }
4346 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4347
4348 # The possible output files:
4349 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4350
4351 ac_rmfiles=
4352 for ac_file in $ac_files
4353 do
4354   case $ac_file in
4355     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4356     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4357   esac
4358 done
4359 rm -f $ac_rmfiles
4360
4361 if { { ac_try="$ac_link_default"
4362 case "(($ac_try" in
4363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364   *) ac_try_echo=$ac_try;;
4365 esac
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368   (eval "$ac_link_default") 2>&5
4369   ac_status=$?
4370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371   test $ac_status = 0; }; then :
4372   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4373 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4374 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4375 # so that the user can short-circuit this test for compilers unknown to
4376 # Autoconf.
4377 for ac_file in $ac_files ''
4378 do
4379   test -f "$ac_file" || continue
4380   case $ac_file in
4381     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4382         ;;
4383     [ab].out )
4384         # We found the default executable, but exeext='' is most
4385         # certainly right.
4386         break;;
4387     *.* )
4388         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4389         then :; else
4390            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4391         fi
4392         # We set ac_cv_exeext here because the later test for it is not
4393         # safe: cross compilers may not add the suffix if given an `-o'
4394         # argument, so we may need to know it at that point already.
4395         # Even if this section looks crufty: it has the advantage of
4396         # actually working.
4397         break;;
4398     * )
4399         break;;
4400   esac
4401 done
4402 test "$ac_cv_exeext" = no && ac_cv_exeext=
4403
4404 else
4405   ac_file=''
4406 fi
4407 if test -z "$ac_file"; then :
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error 77 "C compiler cannot create executables
4416 See \`config.log' for more details" "$LINENO" 5; }
4417 else
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419 $as_echo "yes" >&6; }
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4422 $as_echo_n "checking for C compiler default output file name... " >&6; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4424 $as_echo "$ac_file" >&6; }
4425 ac_exeext=$ac_cv_exeext
4426
4427 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4428 ac_clean_files=$ac_clean_files_save
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430 $as_echo_n "checking for suffix of executables... " >&6; }
4431 if { { ac_try="$ac_link"
4432 case "(($ac_try" in
4433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434   *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438   (eval "$ac_link") 2>&5
4439   ac_status=$?
4440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441   test $ac_status = 0; }; then :
4442   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4444 # work properly (i.e., refer to `conftest.exe'), while it won't with
4445 # `rm'.
4446 for ac_file in conftest.exe conftest conftest.*; do
4447   test -f "$ac_file" || continue
4448   case $ac_file in
4449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4450     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4451           break;;
4452     * ) break;;
4453   esac
4454 done
4455 else
4456   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4459 See \`config.log' for more details" "$LINENO" 5; }
4460 fi
4461 rm -f conftest conftest$ac_cv_exeext
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463 $as_echo "$ac_cv_exeext" >&6; }
4464
4465 rm -f conftest.$ac_ext
4466 EXEEXT=$ac_cv_exeext
4467 ac_exeext=$EXEEXT
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470 #include <stdio.h>
4471 int
4472 main ()
4473 {
4474 FILE *f = fopen ("conftest.out", "w");
4475  return ferror (f) || fclose (f) != 0;
4476
4477   ;
4478   return 0;
4479 }
4480 _ACEOF
4481 ac_clean_files="$ac_clean_files conftest.out"
4482 # Check that the compiler produces executables we can run.  If not, either
4483 # the compiler is broken, or we cross compile.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4485 $as_echo_n "checking whether we are cross compiling... " >&6; }
4486 if test "$cross_compiling" != yes; then
4487   { { ac_try="$ac_link"
4488 case "(($ac_try" in
4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490   *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494   (eval "$ac_link") 2>&5
4495   ac_status=$?
4496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497   test $ac_status = 0; }
4498   if { ac_try='./conftest$ac_cv_exeext'
4499   { { case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505   (eval "$ac_try") 2>&5
4506   ac_status=$?
4507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508   test $ac_status = 0; }; }; then
4509     cross_compiling=no
4510   else
4511     if test "$cross_compiling" = maybe; then
4512         cross_compiling=yes
4513     else
4514         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error $? "cannot run C compiled programs.
4517 If you meant to cross compile, use \`--host'.
4518 See \`config.log' for more details" "$LINENO" 5; }
4519     fi
4520   fi
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4523 $as_echo "$cross_compiling" >&6; }
4524
4525 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4526 ac_clean_files=$ac_clean_files_save
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4528 $as_echo_n "checking for suffix of object files... " >&6; }
4529 if ${ac_cv_objext+:} false; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h.  */
4534
4535 int
4536 main ()
4537 {
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.o conftest.obj
4544 if { { ac_try="$ac_compile"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551   (eval "$ac_compile") 2>&5
4552   ac_status=$?
4553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4554   test $ac_status = 0; }; then :
4555   for ac_file in conftest.o conftest.obj conftest.*; do
4556   test -f "$ac_file" || continue;
4557   case $ac_file in
4558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4559     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4560        break;;
4561   esac
4562 done
4563 else
4564   $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569 as_fn_error $? "cannot compute suffix of object files: cannot compile
4570 See \`config.log' for more details" "$LINENO" 5; }
4571 fi
4572 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4575 $as_echo "$ac_cv_objext" >&6; }
4576 OBJEXT=$ac_cv_objext
4577 ac_objext=$OBJEXT
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4579 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4580 if ${ac_cv_c_compiler_gnu+:} false; then :
4581   $as_echo_n "(cached) " >&6
4582 else
4583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h.  */
4585
4586 int
4587 main ()
4588 {
4589 #ifndef __GNUC__
4590        choke me
4591 #endif
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 if ac_fn_c_try_compile "$LINENO"; then :
4598   ac_compiler_gnu=yes
4599 else
4600   ac_compiler_gnu=no
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4604
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4607 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4608 if test $ac_compiler_gnu = yes; then
4609   GCC=yes
4610 else
4611   GCC=
4612 fi
4613 ac_test_CFLAGS=${CFLAGS+set}
4614 ac_save_CFLAGS=$CFLAGS
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4616 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4617 if ${ac_cv_prog_cc_g+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   ac_save_c_werror_flag=$ac_c_werror_flag
4621    ac_c_werror_flag=yes
4622    ac_cv_prog_cc_g=no
4623    CFLAGS="-g"
4624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626
4627 int
4628 main ()
4629 {
4630
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636   ac_cv_prog_cc_g=yes
4637 else
4638   CFLAGS=""
4639       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h.  */
4641
4642 int
4643 main ()
4644 {
4645
4646   ;
4647   return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4651
4652 else
4653   ac_c_werror_flag=$ac_save_c_werror_flag
4654          CFLAGS="-g"
4655          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h.  */
4657
4658 int
4659 main ()
4660 {
4661
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667   ac_cv_prog_cc_g=yes
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674    ac_c_werror_flag=$ac_save_c_werror_flag
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4677 $as_echo "$ac_cv_prog_cc_g" >&6; }
4678 if test "$ac_test_CFLAGS" = set; then
4679   CFLAGS=$ac_save_CFLAGS
4680 elif test $ac_cv_prog_cc_g = yes; then
4681   if test "$GCC" = yes; then
4682     CFLAGS="-g -O2"
4683   else
4684     CFLAGS="-g"
4685   fi
4686 else
4687   if test "$GCC" = yes; then
4688     CFLAGS="-O2"
4689   else
4690     CFLAGS=
4691   fi
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4694 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4695 if ${ac_cv_prog_cc_c89+:} false; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698   ac_cv_prog_cc_c89=no
4699 ac_save_CC=$CC
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702 #include <stdarg.h>
4703 #include <stdio.h>
4704 struct stat;
4705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4706 struct buf { int x; };
4707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4708 static char *e (p, i)
4709      char **p;
4710      int i;
4711 {
4712   return p[i];
4713 }
4714 static char *f (char * (*g) (char **, int), char **p, ...)
4715 {
4716   char *s;
4717   va_list v;
4718   va_start (v,p);
4719   s = g (p, va_arg (v,int));
4720   va_end (v);
4721   return s;
4722 }
4723
4724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4725    function prototypes and stuff, but not '\xHH' hex character constants.
4726    These don't provoke an error unfortunately, instead are silently treated
4727    as 'x'.  The following induces an error, until -std is added to get
4728    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4729    array size at least.  It's necessary to write '\x00'==0 to get something
4730    that's true only with -std.  */
4731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4732
4733 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4734    inside strings and character constants.  */
4735 #define FOO(x) 'x'
4736 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4737
4738 int test (int i, double x);
4739 struct s1 {int (*f) (int a);};
4740 struct s2 {int (*f) (double a);};
4741 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4742 int argc;
4743 char **argv;
4744 int
4745 main ()
4746 {
4747 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4753         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4754 do
4755   CC="$ac_save_CC $ac_arg"
4756   if ac_fn_c_try_compile "$LINENO"; then :
4757   ac_cv_prog_cc_c89=$ac_arg
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext
4760   test "x$ac_cv_prog_cc_c89" != "xno" && break
4761 done
4762 rm -f conftest.$ac_ext
4763 CC=$ac_save_CC
4764
4765 fi
4766 # AC_CACHE_VAL
4767 case "x$ac_cv_prog_cc_c89" in
4768   x)
4769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4770 $as_echo "none needed" >&6; } ;;
4771   xno)
4772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4773 $as_echo "unsupported" >&6; } ;;
4774   *)
4775     CC="$CC $ac_cv_prog_cc_c89"
4776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4778 esac
4779 if test "x$ac_cv_prog_cc_c89" != xno; then :
4780
4781 fi
4782
4783 ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4795 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4796 if ${am_cv_prog_cc_c_o+:} false; then :
4797   $as_echo_n "(cached) " >&6
4798 else
4799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h.  */
4801
4802 int
4803 main ()
4804 {
4805
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810   # Make sure it works both with $CC and with simple cc.
4811   # Following AC_PROG_CC_C_O, we do the test twice because some
4812   # compilers refuse to overwrite an existing .o file with -o,
4813   # though they will create one.
4814   am_cv_prog_cc_c_o=yes
4815   for am_i in 1 2; do
4816     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4817    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4818    ac_status=$?
4819    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820    (exit $ac_status); } \
4821          && test -f conftest2.$ac_objext; then
4822       : OK
4823     else
4824       am_cv_prog_cc_c_o=no
4825       break
4826     fi
4827   done
4828   rm -f core conftest*
4829   unset am_i
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4832 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4833 if test "$am_cv_prog_cc_c_o" != yes; then
4834    # Losing compiler, so override with the script.
4835    # FIXME: It is wrong to rewrite CC.
4836    # But if we don't then we get into trouble of one sort or another.
4837    # A longer-term fix would be to have automake use am__CC in this case,
4838    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4839    CC="$am_aux_dir/compile $CC"
4840 fi
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847
4848 depcc="$CC"   am_compiler_list=
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4851 $as_echo_n "checking dependency style of $depcc... " >&6; }
4852 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4856   # We make a subdir and do the tests there.  Otherwise we can end up
4857   # making bogus files that we don't know about and never remove.  For
4858   # instance it was reported that on HP-UX the gcc test will end up
4859   # making a dummy file named 'D' -- because '-MD' means "put the output
4860   # in D".
4861   rm -rf conftest.dir
4862   mkdir conftest.dir
4863   # Copy depcomp to subdir because otherwise we won't find it if we're
4864   # using a relative directory.
4865   cp "$am_depcomp" conftest.dir
4866   cd conftest.dir
4867   # We will build objects and dependencies in a subdirectory because
4868   # it helps to detect inapplicable dependency modes.  For instance
4869   # both Tru64's cc and ICC support -MD to output dependencies as a
4870   # side effect of compilation, but ICC will put the dependencies in
4871   # the current directory while Tru64 will put them in the object
4872   # directory.
4873   mkdir sub
4874
4875   am_cv_CC_dependencies_compiler_type=none
4876   if test "$am_compiler_list" = ""; then
4877      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4878   fi
4879   am__universal=false
4880   case " $depcc " in #(
4881      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4882      esac
4883
4884   for depmode in $am_compiler_list; do
4885     # Setup a source with many dependencies, because some compilers
4886     # like to wrap large dependency lists on column 80 (with \), and
4887     # we should not choose a depcomp mode which is confused by this.
4888     #
4889     # We need to recreate these files for each test, as the compiler may
4890     # overwrite some of them when testing with obscure command lines.
4891     # This happens at least with the AIX C compiler.
4892     : > sub/conftest.c
4893     for i in 1 2 3 4 5 6; do
4894       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4896       # Solaris 10 /bin/sh.
4897       echo '/* dummy */' > sub/conftst$i.h
4898     done
4899     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4900
4901     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4902     # mode.  It turns out that the SunPro C++ compiler does not properly
4903     # handle '-M -o', and we need to detect this.  Also, some Intel
4904     # versions had trouble with output in subdirs.
4905     am__obj=sub/conftest.${OBJEXT-o}
4906     am__minus_obj="-o $am__obj"
4907     case $depmode in
4908     gcc)
4909       # This depmode causes a compiler race in universal mode.
4910       test "$am__universal" = false || continue
4911       ;;
4912     nosideeffect)
4913       # After this tag, mechanisms are not by side-effect, so they'll
4914       # only be used when explicitly requested.
4915       if test "x$enable_dependency_tracking" = xyes; then
4916         continue
4917       else
4918         break
4919       fi
4920       ;;
4921     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4922       # This compiler won't grok '-c -o', but also, the minuso test has
4923       # not run yet.  These depmodes are late enough in the game, and
4924       # so weak that their functioning should not be impacted.
4925       am__obj=conftest.${OBJEXT-o}
4926       am__minus_obj=
4927       ;;
4928     none) break ;;
4929     esac
4930     if depmode=$depmode \
4931        source=sub/conftest.c object=$am__obj \
4932        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4934          >/dev/null 2>conftest.err &&
4935        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4936        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4938        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939       # icc doesn't choke on unknown options, it will just issue warnings
4940       # or remarks (even with -Werror).  So we grep stderr for any message
4941       # that says an option was ignored or not supported.
4942       # When given -MP, icc 7.0 and 7.1 complain thusly:
4943       #   icc: Command line warning: ignoring option '-M'; no argument required
4944       # The diagnosis changed in icc 8.0:
4945       #   icc: Command line remark: option '-MP' not supported
4946       if (grep 'ignoring option' conftest.err ||
4947           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948         am_cv_CC_dependencies_compiler_type=$depmode
4949         break
4950       fi
4951     fi
4952   done
4953
4954   cd ..
4955   rm -rf conftest.dir
4956 else
4957   am_cv_CC_dependencies_compiler_type=none
4958 fi
4959
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4962 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4964
4965  if
4966   test "x$enable_dependency_tracking" != xno \
4967   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4968   am__fastdepCC_TRUE=
4969   am__fastdepCC_FALSE='#'
4970 else
4971   am__fastdepCC_TRUE='#'
4972   am__fastdepCC_FALSE=
4973 fi
4974
4975
4976
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4983 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4984 # On Suns, sometimes $CPP names a directory.
4985 if test -n "$CPP" && test -d "$CPP"; then
4986   CPP=
4987 fi
4988 if test -z "$CPP"; then
4989   if ${ac_cv_prog_CPP+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992       # Double quotes because CPP needs to be expanded
4993     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4994     do
4995       ac_preproc_ok=false
4996 for ac_c_preproc_warn_flag in '' yes
4997 do
4998   # Use a header file that comes with gcc, so configuring glibc
4999   # with a fresh cross-compiler works.
5000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001   # <limits.h> exists even on freestanding compilers.
5002   # On the NeXT, cc -E runs the code through the compiler's parser,
5003   # not just through cpp. "Syntax error" is here to catch this case.
5004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h.  */
5006 #ifdef __STDC__
5007 # include <limits.h>
5008 #else
5009 # include <assert.h>
5010 #endif
5011                      Syntax error
5012 _ACEOF
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5014
5015 else
5016   # Broken: fails on valid input.
5017 continue
5018 fi
5019 rm -f conftest.err conftest.i conftest.$ac_ext
5020
5021   # OK, works on sane cases.  Now check whether nonexistent headers
5022   # can be detected and how.
5023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h.  */
5025 #include <ac_nonexistent.h>
5026 _ACEOF
5027 if ac_fn_c_try_cpp "$LINENO"; then :
5028   # Broken: success on invalid input.
5029 continue
5030 else
5031   # Passes both tests.
5032 ac_preproc_ok=:
5033 break
5034 fi
5035 rm -f conftest.err conftest.i conftest.$ac_ext
5036
5037 done
5038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039 rm -f conftest.i conftest.err conftest.$ac_ext
5040 if $ac_preproc_ok; then :
5041   break
5042 fi
5043
5044     done
5045     ac_cv_prog_CPP=$CPP
5046
5047 fi
5048   CPP=$ac_cv_prog_CPP
5049 else
5050   ac_cv_prog_CPP=$CPP
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5053 $as_echo "$CPP" >&6; }
5054 ac_preproc_ok=false
5055 for ac_c_preproc_warn_flag in '' yes
5056 do
5057   # Use a header file that comes with gcc, so configuring glibc
5058   # with a fresh cross-compiler works.
5059   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060   # <limits.h> exists even on freestanding compilers.
5061   # On the NeXT, cc -E runs the code through the compiler's parser,
5062   # not just through cpp. "Syntax error" is here to catch this case.
5063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h.  */
5065 #ifdef __STDC__
5066 # include <limits.h>
5067 #else
5068 # include <assert.h>
5069 #endif
5070                      Syntax error
5071 _ACEOF
5072 if ac_fn_c_try_cpp "$LINENO"; then :
5073
5074 else
5075   # Broken: fails on valid input.
5076 continue
5077 fi
5078 rm -f conftest.err conftest.i conftest.$ac_ext
5079
5080   # OK, works on sane cases.  Now check whether nonexistent headers
5081   # can be detected and how.
5082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h.  */
5084 #include <ac_nonexistent.h>
5085 _ACEOF
5086 if ac_fn_c_try_cpp "$LINENO"; then :
5087   # Broken: success on invalid input.
5088 continue
5089 else
5090   # Passes both tests.
5091 ac_preproc_ok=:
5092 break
5093 fi
5094 rm -f conftest.err conftest.i conftest.$ac_ext
5095
5096 done
5097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098 rm -f conftest.i conftest.err conftest.$ac_ext
5099 if $ac_preproc_ok; then :
5100
5101 else
5102   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5104 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5105 See \`config.log' for more details" "$LINENO" 5; }
5106 fi
5107
5108 ac_ext=c
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5116 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5117 if ${ac_cv_path_GREP+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   if test -z "$GREP"; then
5121   ac_path_GREP_found=false
5122   # Loop through the user's path and test for each of PROGNAME-LIST
5123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128     for ac_prog in grep ggrep; do
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5131       as_fn_executable_p "$ac_path_GREP" || continue
5132 # Check for GNU ac_path_GREP and select it if it is found.
5133   # Check for GNU $ac_path_GREP
5134 case `"$ac_path_GREP" --version 2>&1` in
5135 *GNU*)
5136   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5137 *)
5138   ac_count=0
5139   $as_echo_n 0123456789 >"conftest.in"
5140   while :
5141   do
5142     cat "conftest.in" "conftest.in" >"conftest.tmp"
5143     mv "conftest.tmp" "conftest.in"
5144     cp "conftest.in" "conftest.nl"
5145     $as_echo 'GREP' >> "conftest.nl"
5146     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5147     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5148     as_fn_arith $ac_count + 1 && ac_count=$as_val
5149     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5150       # Best one so far, save it but keep looking for a better one
5151       ac_cv_path_GREP="$ac_path_GREP"
5152       ac_path_GREP_max=$ac_count
5153     fi
5154     # 10*(2^10) chars as input seems more than enough
5155     test $ac_count -gt 10 && break
5156   done
5157   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5158 esac
5159
5160       $ac_path_GREP_found && break 3
5161     done
5162   done
5163   done
5164 IFS=$as_save_IFS
5165   if test -z "$ac_cv_path_GREP"; then
5166     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5167   fi
5168 else
5169   ac_cv_path_GREP=$GREP
5170 fi
5171
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5174 $as_echo "$ac_cv_path_GREP" >&6; }
5175  GREP="$ac_cv_path_GREP"
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5179 $as_echo_n "checking for egrep... " >&6; }
5180 if ${ac_cv_path_EGREP+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5184    then ac_cv_path_EGREP="$GREP -E"
5185    else
5186      if test -z "$EGREP"; then
5187   ac_path_EGREP_found=false
5188   # Loop through the user's path and test for each of PROGNAME-LIST
5189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194     for ac_prog in egrep; do
5195     for ac_exec_ext in '' $ac_executable_extensions; do
5196       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5197       as_fn_executable_p "$ac_path_EGREP" || continue
5198 # Check for GNU ac_path_EGREP and select it if it is found.
5199   # Check for GNU $ac_path_EGREP
5200 case `"$ac_path_EGREP" --version 2>&1` in
5201 *GNU*)
5202   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5203 *)
5204   ac_count=0
5205   $as_echo_n 0123456789 >"conftest.in"
5206   while :
5207   do
5208     cat "conftest.in" "conftest.in" >"conftest.tmp"
5209     mv "conftest.tmp" "conftest.in"
5210     cp "conftest.in" "conftest.nl"
5211     $as_echo 'EGREP' >> "conftest.nl"
5212     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214     as_fn_arith $ac_count + 1 && ac_count=$as_val
5215     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5216       # Best one so far, save it but keep looking for a better one
5217       ac_cv_path_EGREP="$ac_path_EGREP"
5218       ac_path_EGREP_max=$ac_count
5219     fi
5220     # 10*(2^10) chars as input seems more than enough
5221     test $ac_count -gt 10 && break
5222   done
5223   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224 esac
5225
5226       $ac_path_EGREP_found && break 3
5227     done
5228   done
5229   done
5230 IFS=$as_save_IFS
5231   if test -z "$ac_cv_path_EGREP"; then
5232     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233   fi
5234 else
5235   ac_cv_path_EGREP=$EGREP
5236 fi
5237
5238    fi
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5241 $as_echo "$ac_cv_path_EGREP" >&6; }
5242  EGREP="$ac_cv_path_EGREP"
5243
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5246 $as_echo_n "checking for ANSI C header files... " >&6; }
5247 if ${ac_cv_header_stdc+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h.  */
5252 #include <stdlib.h>
5253 #include <stdarg.h>
5254 #include <string.h>
5255 #include <float.h>
5256
5257 int
5258 main ()
5259 {
5260
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266   ac_cv_header_stdc=yes
5267 else
5268   ac_cv_header_stdc=no
5269 fi
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271
5272 if test $ac_cv_header_stdc = yes; then
5273   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h.  */
5276 #include <string.h>
5277
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280   $EGREP "memchr" >/dev/null 2>&1; then :
5281
5282 else
5283   ac_cv_header_stdc=no
5284 fi
5285 rm -f conftest*
5286
5287 fi
5288
5289 if test $ac_cv_header_stdc = yes; then
5290   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h.  */
5293 #include <stdlib.h>
5294
5295 _ACEOF
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297   $EGREP "free" >/dev/null 2>&1; then :
5298
5299 else
5300   ac_cv_header_stdc=no
5301 fi
5302 rm -f conftest*
5303
5304 fi
5305
5306 if test $ac_cv_header_stdc = yes; then
5307   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308   if test "$cross_compiling" = yes; then :
5309   :
5310 else
5311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h.  */
5313 #include <ctype.h>
5314 #include <stdlib.h>
5315 #if ((' ' & 0x0FF) == 0x020)
5316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5318 #else
5319 # define ISLOWER(c) \
5320                    (('a' <= (c) && (c) <= 'i') \
5321                      || ('j' <= (c) && (c) <= 'r') \
5322                      || ('s' <= (c) && (c) <= 'z'))
5323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5324 #endif
5325
5326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5327 int
5328 main ()
5329 {
5330   int i;
5331   for (i = 0; i < 256; i++)
5332     if (XOR (islower (i), ISLOWER (i))
5333         || toupper (i) != TOUPPER (i))
5334       return 2;
5335   return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_run "$LINENO"; then :
5339
5340 else
5341   ac_cv_header_stdc=no
5342 fi
5343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5344   conftest.$ac_objext conftest.beam conftest.$ac_ext
5345 fi
5346
5347 fi
5348 fi
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5350 $as_echo "$ac_cv_header_stdc" >&6; }
5351 if test $ac_cv_header_stdc = yes; then
5352
5353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5354
5355 fi
5356
5357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5359                   inttypes.h stdint.h unistd.h
5360 do :
5361   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5363 "
5364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5365   cat >>confdefs.h <<_ACEOF
5366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367 _ACEOF
5368
5369 fi
5370
5371 done
5372
5373
5374
5375   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5376 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5377   MINIX=yes
5378 else
5379   MINIX=
5380 fi
5381
5382
5383   if test "$MINIX" = yes; then
5384
5385 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5386
5387
5388 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5389
5390
5391 $as_echo "#define _MINIX 1" >>confdefs.h
5392
5393
5394 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5395
5396   fi
5397
5398
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5400 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5401 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h.  */
5406
5407 #         define __EXTENSIONS__ 1
5408           $ac_includes_default
5409 int
5410 main ()
5411 {
5412
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418   ac_cv_safe_to_define___extensions__=yes
5419 else
5420   ac_cv_safe_to_define___extensions__=no
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5425 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5426   test $ac_cv_safe_to_define___extensions__ = yes &&
5427     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5428
5429   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5430
5431   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5432
5433   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5434
5435   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5436
5437   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5438
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5440 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5441 if ${ac_cv_should_define__xopen_source+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   ac_cv_should_define__xopen_source=no
5445      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h.  */
5447
5448           #include <wchar.h>
5449           mbstate_t x;
5450 int
5451 main ()
5452 {
5453
5454   ;
5455   return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459
5460 else
5461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h.  */
5463
5464              #define _XOPEN_SOURCE 500
5465              #include <wchar.h>
5466              mbstate_t x;
5467 int
5468 main ()
5469 {
5470
5471   ;
5472   return 0;
5473 }
5474 _ACEOF
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476   ac_cv_should_define__xopen_source=yes
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5483 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5484   test $ac_cv_should_define__xopen_source = yes &&
5485     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5486
5487
5488
5489 if test -n "$ac_tool_prefix"; then
5490   for ac_prog in ar lib "link -lib"
5491   do
5492     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_AR+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   if test -n "$AR"; then
5500   ac_cv_prog_AR="$AR" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505   IFS=$as_save_IFS
5506   test -z "$as_dir" && as_dir=.
5507     for ac_exec_ext in '' $ac_executable_extensions; do
5508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511     break 2
5512   fi
5513 done
5514   done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 AR=$ac_cv_prog_AR
5520 if test -n "$AR"; then
5521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5522 $as_echo "$AR" >&6; }
5523 else
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529     test -n "$AR" && break
5530   done
5531 fi
5532 if test -z "$AR"; then
5533   ac_ct_AR=$AR
5534   for ac_prog in ar lib "link -lib"
5535 do
5536   # Extract the first word of "$ac_prog", so it can be a program name with args.
5537 set dummy $ac_prog; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   if test -n "$ac_ct_AR"; then
5544   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551     for ac_exec_ext in '' $ac_executable_extensions; do
5552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553     ac_cv_prog_ac_ct_AR="$ac_prog"
5554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558   done
5559 IFS=$as_save_IFS
5560
5561 fi
5562 fi
5563 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5564 if test -n "$ac_ct_AR"; then
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5566 $as_echo "$ac_ct_AR" >&6; }
5567 else
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572
5573   test -n "$ac_ct_AR" && break
5574 done
5575
5576   if test "x$ac_ct_AR" = x; then
5577     AR="false"
5578   else
5579     case $cross_compiling:$ac_tool_warned in
5580 yes:)
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583 ac_tool_warned=yes ;;
5584 esac
5585     AR=$ac_ct_AR
5586   fi
5587 fi
5588
5589 : ${AR=ar}
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5592 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5593 if ${am_cv_ar_interface+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   ac_ext=c
5597 ac_cpp='$CPP $CPPFLAGS'
5598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601
5602    am_cv_ar_interface=ar
5603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h.  */
5605 int some_variable = 0;
5606 _ACEOF
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5609       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5610   (eval $am_ar_try) 2>&5
5611   ac_status=$?
5612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613   test $ac_status = 0; }
5614       if test "$ac_status" -eq 0; then
5615         am_cv_ar_interface=ar
5616       else
5617         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5618         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5619   (eval $am_ar_try) 2>&5
5620   ac_status=$?
5621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622   test $ac_status = 0; }
5623         if test "$ac_status" -eq 0; then
5624           am_cv_ar_interface=lib
5625         else
5626           am_cv_ar_interface=unknown
5627         fi
5628       fi
5629       rm -f conftest.lib libconftest.a
5630
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633    ac_ext=c
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5641 $as_echo "$am_cv_ar_interface" >&6; }
5642
5643 case $am_cv_ar_interface in
5644 ar)
5645   ;;
5646 lib)
5647   # Microsoft lib, so override with the ar-lib wrapper script.
5648   # FIXME: It is wrong to rewrite AR.
5649   # But if we don't then we get into trouble of one sort or another.
5650   # A longer-term fix would be to have automake use am__AR in this case,
5651   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5652   # similar.
5653   AR="$am_aux_dir/ar-lib $AR"
5654   ;;
5655 unknown)
5656   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5657   ;;
5658 esac
5659
5660 case `pwd` in
5661   *\ * | *\     *)
5662     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5663 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5664 esac
5665
5666
5667
5668 macro_version='2.4.2'
5669 macro_revision='1.3337'
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 ltmain="$ac_aux_dir/ltmain.sh"
5684
5685 # Make sure we can run config.sub.
5686 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5687   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5690 $as_echo_n "checking build system type... " >&6; }
5691 if ${ac_cv_build+:} false; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   ac_build_alias=$build_alias
5695 test "x$ac_build_alias" = x &&
5696   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5697 test "x$ac_build_alias" = x &&
5698   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5699 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5700   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5701
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5704 $as_echo "$ac_cv_build" >&6; }
5705 case $ac_cv_build in
5706 *-*-*) ;;
5707 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5708 esac
5709 build=$ac_cv_build
5710 ac_save_IFS=$IFS; IFS='-'
5711 set x $ac_cv_build
5712 shift
5713 build_cpu=$1
5714 build_vendor=$2
5715 shift; shift
5716 # Remember, the first character of IFS is used to create $*,
5717 # except with old shells:
5718 build_os=$*
5719 IFS=$ac_save_IFS
5720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5724 $as_echo_n "checking host system type... " >&6; }
5725 if ${ac_cv_host+:} false; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   if test "x$host_alias" = x; then
5729   ac_cv_host=$ac_cv_build
5730 else
5731   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5732     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5733 fi
5734
5735 fi
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5737 $as_echo "$ac_cv_host" >&6; }
5738 case $ac_cv_host in
5739 *-*-*) ;;
5740 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5741 esac
5742 host=$ac_cv_host
5743 ac_save_IFS=$IFS; IFS='-'
5744 set x $ac_cv_host
5745 shift
5746 host_cpu=$1
5747 host_vendor=$2
5748 shift; shift
5749 # Remember, the first character of IFS is used to create $*,
5750 # except with old shells:
5751 host_os=$*
5752 IFS=$ac_save_IFS
5753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5754
5755
5756 # Backslashify metacharacters that are still active within
5757 # double-quoted strings.
5758 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5759
5760 # Same as above, but do not quote variable references.
5761 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5762
5763 # Sed substitution to delay expansion of an escaped shell variable in a
5764 # double_quote_subst'ed string.
5765 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5766
5767 # Sed substitution to delay expansion of an escaped single quote.
5768 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5769
5770 # Sed substitution to avoid accidental globbing in evaled expressions
5771 no_glob_subst='s/\*/\\\*/g'
5772
5773 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5774 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5775 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5778 $as_echo_n "checking how to print strings... " >&6; }
5779 # Test print first, because it will be a builtin if present.
5780 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5781    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5782   ECHO='print -r --'
5783 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5784   ECHO='printf %s\n'
5785 else
5786   # Use this function as a fallback that always works.
5787   func_fallback_echo ()
5788   {
5789     eval 'cat <<_LTECHO_EOF
5790 $1
5791 _LTECHO_EOF'
5792   }
5793   ECHO='func_fallback_echo'
5794 fi
5795
5796 # func_echo_all arg...
5797 # Invoke $ECHO with all args, space-separated.
5798 func_echo_all ()
5799 {
5800     $ECHO ""
5801 }
5802
5803 case "$ECHO" in
5804   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5805 $as_echo "printf" >&6; } ;;
5806   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5807 $as_echo "print -r" >&6; } ;;
5808   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5809 $as_echo "cat" >&6; } ;;
5810 esac
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5826 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5827 if ${ac_cv_path_SED+:} false; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5831      for ac_i in 1 2 3 4 5 6 7; do
5832        ac_script="$ac_script$as_nl$ac_script"
5833      done
5834      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5835      { ac_script=; unset ac_script;}
5836      if test -z "$SED"; then
5837   ac_path_SED_found=false
5838   # Loop through the user's path and test for each of PROGNAME-LIST
5839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_prog in sed gsed; do
5845     for ac_exec_ext in '' $ac_executable_extensions; do
5846       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5847       as_fn_executable_p "$ac_path_SED" || continue
5848 # Check for GNU ac_path_SED and select it if it is found.
5849   # Check for GNU $ac_path_SED
5850 case `"$ac_path_SED" --version 2>&1` in
5851 *GNU*)
5852   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5853 *)
5854   ac_count=0
5855   $as_echo_n 0123456789 >"conftest.in"
5856   while :
5857   do
5858     cat "conftest.in" "conftest.in" >"conftest.tmp"
5859     mv "conftest.tmp" "conftest.in"
5860     cp "conftest.in" "conftest.nl"
5861     $as_echo '' >> "conftest.nl"
5862     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864     as_fn_arith $ac_count + 1 && ac_count=$as_val
5865     if test $ac_count -gt ${ac_path_SED_max-0}; then
5866       # Best one so far, save it but keep looking for a better one
5867       ac_cv_path_SED="$ac_path_SED"
5868       ac_path_SED_max=$ac_count
5869     fi
5870     # 10*(2^10) chars as input seems more than enough
5871     test $ac_count -gt 10 && break
5872   done
5873   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5874 esac
5875
5876       $ac_path_SED_found && break 3
5877     done
5878   done
5879   done
5880 IFS=$as_save_IFS
5881   if test -z "$ac_cv_path_SED"; then
5882     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5883   fi
5884 else
5885   ac_cv_path_SED=$SED
5886 fi
5887
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5890 $as_echo "$ac_cv_path_SED" >&6; }
5891  SED="$ac_cv_path_SED"
5892   rm -f conftest.sed
5893
5894 test -z "$SED" && SED=sed
5895 Xsed="$SED -e 1s/^X//"
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5908 $as_echo_n "checking for fgrep... " >&6; }
5909 if ${ac_cv_path_FGREP+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5913    then ac_cv_path_FGREP="$GREP -F"
5914    else
5915      if test -z "$FGREP"; then
5916   ac_path_FGREP_found=false
5917   # Loop through the user's path and test for each of PROGNAME-LIST
5918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923     for ac_prog in fgrep; do
5924     for ac_exec_ext in '' $ac_executable_extensions; do
5925       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5926       as_fn_executable_p "$ac_path_FGREP" || continue
5927 # Check for GNU ac_path_FGREP and select it if it is found.
5928   # Check for GNU $ac_path_FGREP
5929 case `"$ac_path_FGREP" --version 2>&1` in
5930 *GNU*)
5931   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5932 *)
5933   ac_count=0
5934   $as_echo_n 0123456789 >"conftest.in"
5935   while :
5936   do
5937     cat "conftest.in" "conftest.in" >"conftest.tmp"
5938     mv "conftest.tmp" "conftest.in"
5939     cp "conftest.in" "conftest.nl"
5940     $as_echo 'FGREP' >> "conftest.nl"
5941     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5942     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5943     as_fn_arith $ac_count + 1 && ac_count=$as_val
5944     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5945       # Best one so far, save it but keep looking for a better one
5946       ac_cv_path_FGREP="$ac_path_FGREP"
5947       ac_path_FGREP_max=$ac_count
5948     fi
5949     # 10*(2^10) chars as input seems more than enough
5950     test $ac_count -gt 10 && break
5951   done
5952   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5953 esac
5954
5955       $ac_path_FGREP_found && break 3
5956     done
5957   done
5958   done
5959 IFS=$as_save_IFS
5960   if test -z "$ac_cv_path_FGREP"; then
5961     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5962   fi
5963 else
5964   ac_cv_path_FGREP=$FGREP
5965 fi
5966
5967    fi
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5970 $as_echo "$ac_cv_path_FGREP" >&6; }
5971  FGREP="$ac_cv_path_FGREP"
5972
5973
5974 test -z "$GREP" && GREP=grep
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994 # Check whether --with-gnu-ld was given.
5995 if test "${with_gnu_ld+set}" = set; then :
5996   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5997 else
5998   with_gnu_ld=no
5999 fi
6000
6001 ac_prog=ld
6002 if test "$GCC" = yes; then
6003   # Check if gcc -print-prog-name=ld gives a path.
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6005 $as_echo_n "checking for ld used by $CC... " >&6; }
6006   case $host in
6007   *-*-mingw*)
6008     # gcc leaves a trailing carriage return which upsets mingw
6009     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6010   *)
6011     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6012   esac
6013   case $ac_prog in
6014     # Accept absolute paths.
6015     [\\/]* | ?:[\\/]*)
6016       re_direlt='/[^/][^/]*/\.\./'
6017       # Canonicalize the pathname of ld
6018       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6019       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6020         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6021       done
6022       test -z "$LD" && LD="$ac_prog"
6023       ;;
6024   "")
6025     # If it fails, then pretend we aren't using GCC.
6026     ac_prog=ld
6027     ;;
6028   *)
6029     # If it is relative, then search for the first ld in PATH.
6030     with_gnu_ld=unknown
6031     ;;
6032   esac
6033 elif test "$with_gnu_ld" = yes; then
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6035 $as_echo_n "checking for GNU ld... " >&6; }
6036 else
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6038 $as_echo_n "checking for non-GNU ld... " >&6; }
6039 fi
6040 if ${lt_cv_path_LD+:} false; then :
6041   $as_echo_n "(cached) " >&6
6042 else
6043   if test -z "$LD"; then
6044   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6045   for ac_dir in $PATH; do
6046     IFS="$lt_save_ifs"
6047     test -z "$ac_dir" && ac_dir=.
6048     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6049       lt_cv_path_LD="$ac_dir/$ac_prog"
6050       # Check to see if the program is GNU ld.  I'd rather use --version,
6051       # but apparently some variants of GNU ld only accept -v.
6052       # Break only if it was the GNU/non-GNU ld that we prefer.
6053       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6054       *GNU* | *'with BFD'*)
6055         test "$with_gnu_ld" != no && break
6056         ;;
6057       *)
6058         test "$with_gnu_ld" != yes && break
6059         ;;
6060       esac
6061     fi
6062   done
6063   IFS="$lt_save_ifs"
6064 else
6065   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6066 fi
6067 fi
6068
6069 LD="$lt_cv_path_LD"
6070 if test -n "$LD"; then
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6072 $as_echo "$LD" >&6; }
6073 else
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6079 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6080 if ${lt_cv_prog_gnu_ld+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6084 case `$LD -v 2>&1 </dev/null` in
6085 *GNU* | *'with BFD'*)
6086   lt_cv_prog_gnu_ld=yes
6087   ;;
6088 *)
6089   lt_cv_prog_gnu_ld=no
6090   ;;
6091 esac
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6094 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6095 with_gnu_ld=$lt_cv_prog_gnu_ld
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6106 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6107 if ${lt_cv_path_NM+:} false; then :
6108   $as_echo_n "(cached) " >&6
6109 else
6110   if test -n "$NM"; then
6111   # Let the user override the test.
6112   lt_cv_path_NM="$NM"
6113 else
6114   lt_nm_to_check="${ac_tool_prefix}nm"
6115   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6116     lt_nm_to_check="$lt_nm_to_check nm"
6117   fi
6118   for lt_tmp_nm in $lt_nm_to_check; do
6119     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6120     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6121       IFS="$lt_save_ifs"
6122       test -z "$ac_dir" && ac_dir=.
6123       tmp_nm="$ac_dir/$lt_tmp_nm"
6124       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6125         # Check to see if the nm accepts a BSD-compat flag.
6126         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6127         #   nm: unknown option "B" ignored
6128         # Tru64's nm complains that /dev/null is an invalid object file
6129         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6130         */dev/null* | *'Invalid file or object type'*)
6131           lt_cv_path_NM="$tmp_nm -B"
6132           break
6133           ;;
6134         *)
6135           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6136           */dev/null*)
6137             lt_cv_path_NM="$tmp_nm -p"
6138             break
6139             ;;
6140           *)
6141             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6142             continue # so that we can try to find one that supports BSD flags
6143             ;;
6144           esac
6145           ;;
6146         esac
6147       fi
6148     done
6149     IFS="$lt_save_ifs"
6150   done
6151   : ${lt_cv_path_NM=no}
6152 fi
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6155 $as_echo "$lt_cv_path_NM" >&6; }
6156 if test "$lt_cv_path_NM" != "no"; then
6157   NM="$lt_cv_path_NM"
6158 else
6159   # Didn't find any BSD compatible name lister, look for dumpbin.
6160   if test -n "$DUMPBIN"; then :
6161     # Let the user override the test.
6162   else
6163     if test -n "$ac_tool_prefix"; then
6164   for ac_prog in dumpbin "link -dump"
6165   do
6166     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_DUMPBIN+:} false; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test -n "$DUMPBIN"; then
6174   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188   done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 DUMPBIN=$ac_cv_prog_DUMPBIN
6194 if test -n "$DUMPBIN"; then
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6196 $as_echo "$DUMPBIN" >&6; }
6197 else
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203     test -n "$DUMPBIN" && break
6204   done
6205 fi
6206 if test -z "$DUMPBIN"; then
6207   ac_ct_DUMPBIN=$DUMPBIN
6208   for ac_prog in dumpbin "link -dump"
6209 do
6210   # Extract the first word of "$ac_prog", so it can be a program name with args.
6211 set dummy $ac_prog; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test -n "$ac_ct_DUMPBIN"; then
6218   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225     for ac_exec_ext in '' $ac_executable_extensions; do
6226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232   done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6238 if test -n "$ac_ct_DUMPBIN"; then
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6240 $as_echo "$ac_ct_DUMPBIN" >&6; }
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246
6247   test -n "$ac_ct_DUMPBIN" && break
6248 done
6249
6250   if test "x$ac_ct_DUMPBIN" = x; then
6251     DUMPBIN=":"
6252   else
6253     case $cross_compiling:$ac_tool_warned in
6254 yes:)
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257 ac_tool_warned=yes ;;
6258 esac
6259     DUMPBIN=$ac_ct_DUMPBIN
6260   fi
6261 fi
6262
6263     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6264     *COFF*)
6265       DUMPBIN="$DUMPBIN -symbols"
6266       ;;
6267     *)
6268       DUMPBIN=:
6269       ;;
6270     esac
6271   fi
6272
6273   if test "$DUMPBIN" != ":"; then
6274     NM="$DUMPBIN"
6275   fi
6276 fi
6277 test -z "$NM" && NM=nm
6278
6279
6280
6281
6282
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6285 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6286 if ${lt_cv_nm_interface+:} false; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289   lt_cv_nm_interface="BSD nm"
6290   echo "int some_variable = 0;" > conftest.$ac_ext
6291   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6292   (eval "$ac_compile" 2>conftest.err)
6293   cat conftest.err >&5
6294   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6295   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6296   cat conftest.err >&5
6297   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6298   cat conftest.out >&5
6299   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6300     lt_cv_nm_interface="MS dumpbin"
6301   fi
6302   rm -f conftest*
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6305 $as_echo "$lt_cv_nm_interface" >&6; }
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6308 $as_echo_n "checking whether ln -s works... " >&6; }
6309 LN_S=$as_ln_s
6310 if test "$LN_S" = "ln -s"; then
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6312 $as_echo "yes" >&6; }
6313 else
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6315 $as_echo "no, using $LN_S" >&6; }
6316 fi
6317
6318 # find the maximum length of command line arguments
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6320 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6321 if ${lt_cv_sys_max_cmd_len+:} false; then :
6322   $as_echo_n "(cached) " >&6
6323 else
6324     i=0
6325   teststring="ABCD"
6326
6327   case $build_os in
6328   msdosdjgpp*)
6329     # On DJGPP, this test can blow up pretty badly due to problems in libc
6330     # (any single argument exceeding 2000 bytes causes a buffer overrun
6331     # during glob expansion).  Even if it were fixed, the result of this
6332     # check would be larger than it should be.
6333     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6334     ;;
6335
6336   gnu*)
6337     # Under GNU Hurd, this test is not required because there is
6338     # no limit to the length of command line arguments.
6339     # Libtool will interpret -1 as no limit whatsoever
6340     lt_cv_sys_max_cmd_len=-1;
6341     ;;
6342
6343   cygwin* | mingw* | cegcc*)
6344     # On Win9x/ME, this test blows up -- it succeeds, but takes
6345     # about 5 minutes as the teststring grows exponentially.
6346     # Worse, since 9x/ME are not pre-emptively multitasking,
6347     # you end up with a "frozen" computer, even though with patience
6348     # the test eventually succeeds (with a max line length of 256k).
6349     # Instead, let's just punt: use the minimum linelength reported by
6350     # all of the supported platforms: 8192 (on NT/2K/XP).
6351     lt_cv_sys_max_cmd_len=8192;
6352     ;;
6353
6354   mint*)
6355     # On MiNT this can take a long time and run out of memory.
6356     lt_cv_sys_max_cmd_len=8192;
6357     ;;
6358
6359   amigaos*)
6360     # On AmigaOS with pdksh, this test takes hours, literally.
6361     # So we just punt and use a minimum line length of 8192.
6362     lt_cv_sys_max_cmd_len=8192;
6363     ;;
6364
6365   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6366     # This has been around since 386BSD, at least.  Likely further.
6367     if test -x /sbin/sysctl; then
6368       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6369     elif test -x /usr/sbin/sysctl; then
6370       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6371     else
6372       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6373     fi
6374     # And add a safety zone
6375     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377     ;;
6378
6379   interix*)
6380     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6381     lt_cv_sys_max_cmd_len=196608
6382     ;;
6383
6384   os2*)
6385     # The test takes a long time on OS/2.
6386     lt_cv_sys_max_cmd_len=8192
6387     ;;
6388
6389   osf*)
6390     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6391     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6392     # nice to cause kernel panics so lets avoid the loop below.
6393     # First set a reasonable default.
6394     lt_cv_sys_max_cmd_len=16384
6395     #
6396     if test -x /sbin/sysconfig; then
6397       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6398         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6399       esac
6400     fi
6401     ;;
6402   sco3.2v5*)
6403     lt_cv_sys_max_cmd_len=102400
6404     ;;
6405   sysv5* | sco5v6* | sysv4.2uw2*)
6406     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6407     if test -n "$kargmax"; then
6408       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6409     else
6410       lt_cv_sys_max_cmd_len=32768
6411     fi
6412     ;;
6413   *)
6414     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6415     if test -n "$lt_cv_sys_max_cmd_len" && \
6416         test undefined != "$lt_cv_sys_max_cmd_len"; then
6417       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6418       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6419     else
6420       # Make teststring a little bigger before we do anything with it.
6421       # a 1K string should be a reasonable start.
6422       for i in 1 2 3 4 5 6 7 8 ; do
6423         teststring=$teststring$teststring
6424       done
6425       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6426       # If test is not a shell built-in, we'll probably end up computing a
6427       # maximum length that is only half of the actual maximum length, but
6428       # we can't tell.
6429       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6430                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6431               test $i != 17 # 1/2 MB should be enough
6432       do
6433         i=`expr $i + 1`
6434         teststring=$teststring$teststring
6435       done
6436       # Only check the string length outside the loop.
6437       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6438       teststring=
6439       # Add a significant safety factor because C++ compilers can tack on
6440       # massive amounts of additional arguments before passing them to the
6441       # linker.  It appears as though 1/2 is a usable value.
6442       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6443     fi
6444     ;;
6445   esac
6446
6447 fi
6448
6449 if test -n $lt_cv_sys_max_cmd_len ; then
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6451 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6454 $as_echo "none" >&6; }
6455 fi
6456 max_cmd_len=$lt_cv_sys_max_cmd_len
6457
6458
6459
6460
6461
6462
6463 : ${CP="cp -f"}
6464 : ${MV="mv -f"}
6465 : ${RM="rm -f"}
6466
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6468 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6469 # Try some XSI features
6470 xsi_shell=no
6471 ( _lt_dummy="a/b/c"
6472   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6473       = c,a/b,b/c, \
6474     && eval 'test $(( 1 + 1 )) -eq 2 \
6475     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6476   && xsi_shell=yes
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6478 $as_echo "$xsi_shell" >&6; }
6479
6480
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6482 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6483 lt_shell_append=no
6484 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6485     >/dev/null 2>&1 \
6486   && lt_shell_append=yes
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6488 $as_echo "$lt_shell_append" >&6; }
6489
6490
6491 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6492   lt_unset=unset
6493 else
6494   lt_unset=false
6495 fi
6496
6497
6498
6499
6500
6501 # test EBCDIC or ASCII
6502 case `echo X|tr X '\101'` in
6503  A) # ASCII based system
6504     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6505   lt_SP2NL='tr \040 \012'
6506   lt_NL2SP='tr \015\012 \040\040'
6507   ;;
6508  *) # EBCDIC based system
6509   lt_SP2NL='tr \100 \n'
6510   lt_NL2SP='tr \r\n \100\100'
6511   ;;
6512 esac
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6523 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6524 if ${lt_cv_to_host_file_cmd+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   case $host in
6528   *-*-mingw* )
6529     case $build in
6530       *-*-mingw* ) # actually msys
6531         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6532         ;;
6533       *-*-cygwin* )
6534         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6535         ;;
6536       * ) # otherwise, assume *nix
6537         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6538         ;;
6539     esac
6540     ;;
6541   *-*-cygwin* )
6542     case $build in
6543       *-*-mingw* ) # actually msys
6544         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6545         ;;
6546       *-*-cygwin* )
6547         lt_cv_to_host_file_cmd=func_convert_file_noop
6548         ;;
6549       * ) # otherwise, assume *nix
6550         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6551         ;;
6552     esac
6553     ;;
6554   * ) # unhandled hosts (and "normal" native builds)
6555     lt_cv_to_host_file_cmd=func_convert_file_noop
6556     ;;
6557 esac
6558
6559 fi
6560
6561 to_host_file_cmd=$lt_cv_to_host_file_cmd
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6563 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6564
6565
6566
6567
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6570 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6571 if ${lt_cv_to_tool_file_cmd+:} false; then :
6572   $as_echo_n "(cached) " >&6
6573 else
6574   #assume ordinary cross tools, or native build.
6575 lt_cv_to_tool_file_cmd=func_convert_file_noop
6576 case $host in
6577   *-*-mingw* )
6578     case $build in
6579       *-*-mingw* ) # actually msys
6580         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6581         ;;
6582     esac
6583     ;;
6584 esac
6585
6586 fi
6587
6588 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6590 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6591
6592
6593
6594
6595
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6597 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6598 if ${lt_cv_ld_reload_flag+:} false; then :
6599   $as_echo_n "(cached) " >&6
6600 else
6601   lt_cv_ld_reload_flag='-r'
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6604 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6605 reload_flag=$lt_cv_ld_reload_flag
6606 case $reload_flag in
6607 "" | " "*) ;;
6608 *) reload_flag=" $reload_flag" ;;
6609 esac
6610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6611 case $host_os in
6612   cygwin* | mingw* | pw32* | cegcc*)
6613     if test "$GCC" != yes; then
6614       reload_cmds=false
6615     fi
6616     ;;
6617   darwin*)
6618     if test "$GCC" = yes; then
6619       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6620     else
6621       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6622     fi
6623     ;;
6624 esac
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634 if test -n "$ac_tool_prefix"; then
6635   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6636 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if ${ac_cv_prog_OBJDUMP+:} false; then :
6640   $as_echo_n "(cached) " >&6
6641 else
6642   if test -n "$OBJDUMP"; then
6643   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650     for ac_exec_ext in '' $ac_executable_extensions; do
6651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657   done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 OBJDUMP=$ac_cv_prog_OBJDUMP
6663 if test -n "$OBJDUMP"; then
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6665 $as_echo "$OBJDUMP" >&6; }
6666 else
6667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6669 fi
6670
6671
6672 fi
6673 if test -z "$ac_cv_prog_OBJDUMP"; then
6674   ac_ct_OBJDUMP=$OBJDUMP
6675   # Extract the first word of "objdump", so it can be a program name with args.
6676 set dummy objdump; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6680   $as_echo_n "(cached) " >&6
6681 else
6682   if test -n "$ac_ct_OBJDUMP"; then
6683   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690     for ac_exec_ext in '' $ac_executable_extensions; do
6691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697   done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6703 if test -n "$ac_ct_OBJDUMP"; then
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6705 $as_echo "$ac_ct_OBJDUMP" >&6; }
6706 else
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709 fi
6710
6711   if test "x$ac_ct_OBJDUMP" = x; then
6712     OBJDUMP="false"
6713   else
6714     case $cross_compiling:$ac_tool_warned in
6715 yes:)
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720     OBJDUMP=$ac_ct_OBJDUMP
6721   fi
6722 else
6723   OBJDUMP="$ac_cv_prog_OBJDUMP"
6724 fi
6725
6726 test -z "$OBJDUMP" && OBJDUMP=objdump
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6737 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6738 if ${lt_cv_deplibs_check_method+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   lt_cv_file_magic_cmd='$MAGIC_CMD'
6742 lt_cv_file_magic_test_file=
6743 lt_cv_deplibs_check_method='unknown'
6744 # Need to set the preceding variable on all platforms that support
6745 # interlibrary dependencies.
6746 # 'none' -- dependencies not supported.
6747 # `unknown' -- same as none, but documents that we really don't know.
6748 # 'pass_all' -- all dependencies passed with no checks.
6749 # 'test_compile' -- check by making test program.
6750 # 'file_magic [[regex]]' -- check by looking for files in library path
6751 # which responds to the $file_magic_cmd with a given extended regex.
6752 # If you have `file' or equivalent on your system and you're not sure
6753 # whether `pass_all' will *always* work, you probably want this one.
6754
6755 case $host_os in
6756 aix[4-9]*)
6757   lt_cv_deplibs_check_method=pass_all
6758   ;;
6759
6760 beos*)
6761   lt_cv_deplibs_check_method=pass_all
6762   ;;
6763
6764 bsdi[45]*)
6765   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6766   lt_cv_file_magic_cmd='/usr/bin/file -L'
6767   lt_cv_file_magic_test_file=/shlib/libc.so
6768   ;;
6769
6770 cygwin*)
6771   # func_win32_libid is a shell function defined in ltmain.sh
6772   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6773   lt_cv_file_magic_cmd='func_win32_libid'
6774   ;;
6775
6776 mingw* | pw32*)
6777   # Base MSYS/MinGW do not provide the 'file' command needed by
6778   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6779   # unless we find 'file', for example because we are cross-compiling.
6780   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6781   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6782     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6783     lt_cv_file_magic_cmd='func_win32_libid'
6784   else
6785     # Keep this pattern in sync with the one in func_win32_libid.
6786     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6787     lt_cv_file_magic_cmd='$OBJDUMP -f'
6788   fi
6789   ;;
6790
6791 cegcc*)
6792   # use the weaker test based on 'objdump'. See mingw*.
6793   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6794   lt_cv_file_magic_cmd='$OBJDUMP -f'
6795   ;;
6796
6797 darwin* | rhapsody*)
6798   lt_cv_deplibs_check_method=pass_all
6799   ;;
6800
6801 freebsd* | dragonfly*)
6802   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6803     case $host_cpu in
6804     i*86 )
6805       # Not sure whether the presence of OpenBSD here was a mistake.
6806       # Let's accept both of them until this is cleared up.
6807       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6808       lt_cv_file_magic_cmd=/usr/bin/file
6809       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6810       ;;
6811     esac
6812   else
6813     lt_cv_deplibs_check_method=pass_all
6814   fi
6815   ;;
6816
6817 haiku*)
6818   lt_cv_deplibs_check_method=pass_all
6819   ;;
6820
6821 hpux10.20* | hpux11*)
6822   lt_cv_file_magic_cmd=/usr/bin/file
6823   case $host_cpu in
6824   ia64*)
6825     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6826     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6827     ;;
6828   hppa*64*)
6829     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]'
6830     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6831     ;;
6832   *)
6833     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6834     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6835     ;;
6836   esac
6837   ;;
6838
6839 interix[3-9]*)
6840   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6841   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6842   ;;
6843
6844 irix5* | irix6* | nonstopux*)
6845   case $LD in
6846   *-32|*"-32 ") libmagic=32-bit;;
6847   *-n32|*"-n32 ") libmagic=N32;;
6848   *-64|*"-64 ") libmagic=64-bit;;
6849   *) libmagic=never-match;;
6850   esac
6851   lt_cv_deplibs_check_method=pass_all
6852   ;;
6853
6854 # This must be glibc/ELF.
6855 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6856   lt_cv_deplibs_check_method=pass_all
6857   ;;
6858
6859 netbsd* | netbsdelf*-gnu)
6860   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6861     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6862   else
6863     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6864   fi
6865   ;;
6866
6867 newos6*)
6868   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6869   lt_cv_file_magic_cmd=/usr/bin/file
6870   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6871   ;;
6872
6873 *nto* | *qnx*)
6874   lt_cv_deplibs_check_method=pass_all
6875   ;;
6876
6877 openbsd*)
6878   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6879     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6880   else
6881     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6882   fi
6883   ;;
6884
6885 osf3* | osf4* | osf5*)
6886   lt_cv_deplibs_check_method=pass_all
6887   ;;
6888
6889 rdos*)
6890   lt_cv_deplibs_check_method=pass_all
6891   ;;
6892
6893 solaris*)
6894   lt_cv_deplibs_check_method=pass_all
6895   ;;
6896
6897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6898   lt_cv_deplibs_check_method=pass_all
6899   ;;
6900
6901 sysv4 | sysv4.3*)
6902   case $host_vendor in
6903   motorola)
6904     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]'
6905     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6906     ;;
6907   ncr)
6908     lt_cv_deplibs_check_method=pass_all
6909     ;;
6910   sequent)
6911     lt_cv_file_magic_cmd='/bin/file'
6912     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6913     ;;
6914   sni)
6915     lt_cv_file_magic_cmd='/bin/file'
6916     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6917     lt_cv_file_magic_test_file=/lib/libc.so
6918     ;;
6919   siemens)
6920     lt_cv_deplibs_check_method=pass_all
6921     ;;
6922   pc)
6923     lt_cv_deplibs_check_method=pass_all
6924     ;;
6925   esac
6926   ;;
6927
6928 tpf*)
6929   lt_cv_deplibs_check_method=pass_all
6930   ;;
6931 esac
6932
6933 fi
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6935 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6936
6937 file_magic_glob=
6938 want_nocaseglob=no
6939 if test "$build" = "$host"; then
6940   case $host_os in
6941   mingw* | pw32*)
6942     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6943       want_nocaseglob=yes
6944     else
6945       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6946     fi
6947     ;;
6948   esac
6949 fi
6950
6951 file_magic_cmd=$lt_cv_file_magic_cmd
6952 deplibs_check_method=$lt_cv_deplibs_check_method
6953 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976 if test -n "$ac_tool_prefix"; then
6977   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_DLLTOOL+:} false; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   if test -n "$DLLTOOL"; then
6985   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990   IFS=$as_save_IFS
6991   test -z "$as_dir" && as_dir=.
6992     for ac_exec_ext in '' $ac_executable_extensions; do
6993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996     break 2
6997   fi
6998 done
6999   done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 DLLTOOL=$ac_cv_prog_DLLTOOL
7005 if test -n "$DLLTOOL"; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7007 $as_echo "$DLLTOOL" >&6; }
7008 else
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_DLLTOOL"; then
7016   ac_ct_DLLTOOL=$DLLTOOL
7017   # Extract the first word of "dlltool", so it can be a program name with args.
7018 set dummy dlltool; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   if test -n "$ac_ct_DLLTOOL"; then
7025   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032     for ac_exec_ext in '' $ac_executable_extensions; do
7033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039   done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7045 if test -n "$ac_ct_DLLTOOL"; then
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7047 $as_echo "$ac_ct_DLLTOOL" >&6; }
7048 else
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053   if test "x$ac_ct_DLLTOOL" = x; then
7054     DLLTOOL="false"
7055   else
7056     case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062     DLLTOOL=$ac_ct_DLLTOOL
7063   fi
7064 else
7065   DLLTOOL="$ac_cv_prog_DLLTOOL"
7066 fi
7067
7068 test -z "$DLLTOOL" && DLLTOOL=dlltool
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7080 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7081 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   lt_cv_sharedlib_from_linklib_cmd='unknown'
7085
7086 case $host_os in
7087 cygwin* | mingw* | pw32* | cegcc*)
7088   # two different shell functions defined in ltmain.sh
7089   # decide which to use based on capabilities of $DLLTOOL
7090   case `$DLLTOOL --help 2>&1` in
7091   *--identify-strict*)
7092     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7093     ;;
7094   *)
7095     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7096     ;;
7097   esac
7098   ;;
7099 *)
7100   # fallback: assume linklib IS sharedlib
7101   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7102   ;;
7103 esac
7104
7105 fi
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7107 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7108 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7109 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7110
7111
7112
7113
7114
7115
7116
7117 if test -n "$ac_tool_prefix"; then
7118   for ac_prog in ar
7119   do
7120     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_AR+:} false; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   if test -n "$AR"; then
7128   ac_cv_prog_AR="$AR" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135     for ac_exec_ext in '' $ac_executable_extensions; do
7136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142   done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 AR=$ac_cv_prog_AR
7148 if test -n "$AR"; then
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7150 $as_echo "$AR" >&6; }
7151 else
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156
7157     test -n "$AR" && break
7158   done
7159 fi
7160 if test -z "$AR"; then
7161   ac_ct_AR=$AR
7162   for ac_prog in ar
7163 do
7164   # Extract the first word of "$ac_prog", so it can be a program name with args.
7165 set dummy $ac_prog; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test -n "$ac_ct_AR"; then
7172   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179     for ac_exec_ext in '' $ac_executable_extensions; do
7180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181     ac_cv_prog_ac_ct_AR="$ac_prog"
7182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186   done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7194 $as_echo "$ac_ct_AR" >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7198 fi
7199
7200
7201   test -n "$ac_ct_AR" && break
7202 done
7203
7204   if test "x$ac_ct_AR" = x; then
7205     AR="false"
7206   else
7207     case $cross_compiling:$ac_tool_warned in
7208 yes:)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213     AR=$ac_ct_AR
7214   fi
7215 fi
7216
7217 : ${AR=ar}
7218 : ${AR_FLAGS=cru}
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7231 $as_echo_n "checking for archiver @FILE support... " >&6; }
7232 if ${lt_cv_ar_at_file+:} false; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   lt_cv_ar_at_file=no
7236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h.  */
7238
7239 int
7240 main ()
7241 {
7242
7243   ;
7244   return 0;
7245 }
7246 _ACEOF
7247 if ac_fn_c_try_compile "$LINENO"; then :
7248   echo conftest.$ac_objext > conftest.lst
7249       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7250       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7251   (eval $lt_ar_try) 2>&5
7252   ac_status=$?
7253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254   test $ac_status = 0; }
7255       if test "$ac_status" -eq 0; then
7256         # Ensure the archiver fails upon bogus file names.
7257         rm -f conftest.$ac_objext libconftest.a
7258         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7259   (eval $lt_ar_try) 2>&5
7260   ac_status=$?
7261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262   test $ac_status = 0; }
7263         if test "$ac_status" -ne 0; then
7264           lt_cv_ar_at_file=@
7265         fi
7266       fi
7267       rm -f conftest.* libconftest.a
7268
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271
7272 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7274 $as_echo "$lt_cv_ar_at_file" >&6; }
7275
7276 if test "x$lt_cv_ar_at_file" = xno; then
7277   archiver_list_spec=
7278 else
7279   archiver_list_spec=$lt_cv_ar_at_file
7280 fi
7281
7282
7283
7284
7285
7286
7287
7288 if test -n "$ac_tool_prefix"; then
7289   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7290 set dummy ${ac_tool_prefix}strip; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_STRIP+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$STRIP"; then
7297   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 STRIP=$ac_cv_prog_STRIP
7317 if test -n "$STRIP"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7319 $as_echo "$STRIP" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325
7326 fi
7327 if test -z "$ac_cv_prog_STRIP"; then
7328   ac_ct_STRIP=$STRIP
7329   # Extract the first word of "strip", so it can be a program name with args.
7330 set dummy strip; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7334   $as_echo_n "(cached) " >&6
7335 else
7336   if test -n "$ac_ct_STRIP"; then
7337   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342   IFS=$as_save_IFS
7343   test -z "$as_dir" && as_dir=.
7344     for ac_exec_ext in '' $ac_executable_extensions; do
7345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346     ac_cv_prog_ac_ct_STRIP="strip"
7347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348     break 2
7349   fi
7350 done
7351   done
7352 IFS=$as_save_IFS
7353
7354 fi
7355 fi
7356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7357 if test -n "$ac_ct_STRIP"; then
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7359 $as_echo "$ac_ct_STRIP" >&6; }
7360 else
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7363 fi
7364
7365   if test "x$ac_ct_STRIP" = x; then
7366     STRIP=":"
7367   else
7368     case $cross_compiling:$ac_tool_warned in
7369 yes:)
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7373 esac
7374     STRIP=$ac_ct_STRIP
7375   fi
7376 else
7377   STRIP="$ac_cv_prog_STRIP"
7378 fi
7379
7380 test -z "$STRIP" && STRIP=:
7381
7382
7383
7384
7385
7386
7387 if test -n "$ac_tool_prefix"; then
7388   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_RANLIB+:} false; then :
7393   $as_echo_n "(cached) " >&6
7394 else
7395   if test -n "$RANLIB"; then
7396   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403     for ac_exec_ext in '' $ac_executable_extensions; do
7404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410   done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 RANLIB=$ac_cv_prog_RANLIB
7416 if test -n "$RANLIB"; then
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7418 $as_echo "$RANLIB" >&6; }
7419 else
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424
7425 fi
7426 if test -z "$ac_cv_prog_RANLIB"; then
7427   ac_ct_RANLIB=$RANLIB
7428   # Extract the first word of "ranlib", so it can be a program name with args.
7429 set dummy ranlib; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7433   $as_echo_n "(cached) " >&6
7434 else
7435   if test -n "$ac_ct_RANLIB"; then
7436   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443     for ac_exec_ext in '' $ac_executable_extensions; do
7444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445     ac_cv_prog_ac_ct_RANLIB="ranlib"
7446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447     break 2
7448   fi
7449 done
7450   done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7456 if test -n "$ac_ct_RANLIB"; then
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7458 $as_echo "$ac_ct_RANLIB" >&6; }
7459 else
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464   if test "x$ac_ct_RANLIB" = x; then
7465     RANLIB=":"
7466   else
7467     case $cross_compiling:$ac_tool_warned in
7468 yes:)
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471 ac_tool_warned=yes ;;
7472 esac
7473     RANLIB=$ac_ct_RANLIB
7474   fi
7475 else
7476   RANLIB="$ac_cv_prog_RANLIB"
7477 fi
7478
7479 test -z "$RANLIB" && RANLIB=:
7480
7481
7482
7483
7484
7485
7486 # Determine commands to create old-style static archives.
7487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7488 old_postinstall_cmds='chmod 644 $oldlib'
7489 old_postuninstall_cmds=
7490
7491 if test -n "$RANLIB"; then
7492   case $host_os in
7493   openbsd*)
7494     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7495     ;;
7496   *)
7497     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7498     ;;
7499   esac
7500   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7501 fi
7502
7503 case $host_os in
7504   darwin*)
7505     lock_old_archive_extraction=yes ;;
7506   *)
7507     lock_old_archive_extraction=no ;;
7508 esac
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548 # If no C compiler was specified, use CC.
7549 LTCC=${LTCC-"$CC"}
7550
7551 # If no C compiler flags were specified, use CFLAGS.
7552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7553
7554 # Allow CC to be a program name with arguments.
7555 compiler=$CC
7556
7557
7558 # Check for command to grab the raw symbol name followed by C symbol from nm.
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7560 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7561 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564
7565 # These are sane defaults that work on at least a few old systems.
7566 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7567
7568 # Character class describing NM global symbol codes.
7569 symcode='[BCDEGRST]'
7570
7571 # Regexp to match symbols that can be accessed directly from C.
7572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7573
7574 # Define system-specific variables.
7575 case $host_os in
7576 aix*)
7577   symcode='[BCDT]'
7578   ;;
7579 cygwin* | mingw* | pw32* | cegcc*)
7580   symcode='[ABCDGISTW]'
7581   ;;
7582 hpux*)
7583   if test "$host_cpu" = ia64; then
7584     symcode='[ABCDEGRST]'
7585   fi
7586   ;;
7587 irix* | nonstopux*)
7588   symcode='[BCDEGRST]'
7589   ;;
7590 osf*)
7591   symcode='[BCDEGQRST]'
7592   ;;
7593 solaris*)
7594   symcode='[BDRT]'
7595   ;;
7596 sco3.2v5*)
7597   symcode='[DT]'
7598   ;;
7599 sysv4.2uw2*)
7600   symcode='[DT]'
7601   ;;
7602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7603   symcode='[ABDT]'
7604   ;;
7605 sysv4)
7606   symcode='[DFNSTU]'
7607   ;;
7608 esac
7609
7610 # If we're using GNU nm, then use its standard symbol codes.
7611 case `$NM -V 2>&1` in
7612 *GNU* | *'with BFD'*)
7613   symcode='[ABCDGIRSTW]' ;;
7614 esac
7615
7616 # Transform an extracted symbol line into a proper C declaration.
7617 # Some systems (esp. on ia64) link data and code symbols differently,
7618 # so use this general approach.
7619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7620
7621 # Transform an extracted symbol line into symbol name and symbol address
7622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7624
7625 # Handle CRLF in mingw tool chain
7626 opt_cr=
7627 case $build_os in
7628 mingw*)
7629   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7630   ;;
7631 esac
7632
7633 # Try without a prefix underscore, then with it.
7634 for ac_symprfx in "" "_"; do
7635
7636   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7637   symxfrm="\\1 $ac_symprfx\\2 \\2"
7638
7639   # Write the raw and C identifiers.
7640   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7641     # Fake it for dumpbin and say T for any non-static function
7642     # and D for any global variable.
7643     # Also find C++ and __fastcall symbols from MSVC++,
7644     # which start with @ or ?.
7645     lt_cv_sys_global_symbol_pipe="$AWK '"\
7646 "     {last_section=section; section=\$ 3};"\
7647 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7648 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7649 "     \$ 0!~/External *\|/{next};"\
7650 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7651 "     {if(hide[section]) next};"\
7652 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7653 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7654 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7655 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7656 "     ' prfx=^$ac_symprfx"
7657   else
7658     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7659   fi
7660   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7661
7662   # Check to see that the pipe works correctly.
7663   pipe_works=no
7664
7665   rm -f conftest*
7666   cat > conftest.$ac_ext <<_LT_EOF
7667 #ifdef __cplusplus
7668 extern "C" {
7669 #endif
7670 char nm_test_var;
7671 void nm_test_func(void);
7672 void nm_test_func(void){}
7673 #ifdef __cplusplus
7674 }
7675 #endif
7676 int main(){nm_test_var='a';nm_test_func();return(0);}
7677 _LT_EOF
7678
7679   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680   (eval $ac_compile) 2>&5
7681   ac_status=$?
7682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683   test $ac_status = 0; }; then
7684     # Now try to grab the symbols.
7685     nlist=conftest.nm
7686     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7687   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7688   ac_status=$?
7689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690   test $ac_status = 0; } && test -s "$nlist"; then
7691       # Try sorting and uniquifying the output.
7692       if sort "$nlist" | uniq > "$nlist"T; then
7693         mv -f "$nlist"T "$nlist"
7694       else
7695         rm -f "$nlist"T
7696       fi
7697
7698       # Make sure that we snagged all the symbols we need.
7699       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7700         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7701           cat <<_LT_EOF > conftest.$ac_ext
7702 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7703 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7704 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7705    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7706 # define LT_DLSYM_CONST
7707 #elif defined(__osf__)
7708 /* This system does not cope well with relocations in const data.  */
7709 # define LT_DLSYM_CONST
7710 #else
7711 # define LT_DLSYM_CONST const
7712 #endif
7713
7714 #ifdef __cplusplus
7715 extern "C" {
7716 #endif
7717
7718 _LT_EOF
7719           # Now generate the symbol file.
7720           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7721
7722           cat <<_LT_EOF >> conftest.$ac_ext
7723
7724 /* The mapping between symbol names and symbols.  */
7725 LT_DLSYM_CONST struct {
7726   const char *name;
7727   void       *address;
7728 }
7729 lt__PROGRAM__LTX_preloaded_symbols[] =
7730 {
7731   { "@PROGRAM@", (void *) 0 },
7732 _LT_EOF
7733           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7734           cat <<\_LT_EOF >> conftest.$ac_ext
7735   {0, (void *) 0}
7736 };
7737
7738 /* This works around a problem in FreeBSD linker */
7739 #ifdef FREEBSD_WORKAROUND
7740 static const void *lt_preloaded_setup() {
7741   return lt__PROGRAM__LTX_preloaded_symbols;
7742 }
7743 #endif
7744
7745 #ifdef __cplusplus
7746 }
7747 #endif
7748 _LT_EOF
7749           # Now try linking the two files.
7750           mv conftest.$ac_objext conftstm.$ac_objext
7751           lt_globsym_save_LIBS=$LIBS
7752           lt_globsym_save_CFLAGS=$CFLAGS
7753           LIBS="conftstm.$ac_objext"
7754           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7755           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7756   (eval $ac_link) 2>&5
7757   ac_status=$?
7758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7760             pipe_works=yes
7761           fi
7762           LIBS=$lt_globsym_save_LIBS
7763           CFLAGS=$lt_globsym_save_CFLAGS
7764         else
7765           echo "cannot find nm_test_func in $nlist" >&5
7766         fi
7767       else
7768         echo "cannot find nm_test_var in $nlist" >&5
7769       fi
7770     else
7771       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7772     fi
7773   else
7774     echo "$progname: failed program was:" >&5
7775     cat conftest.$ac_ext >&5
7776   fi
7777   rm -rf conftest* conftst*
7778
7779   # Do not use the global_symbol_pipe unless it works.
7780   if test "$pipe_works" = yes; then
7781     break
7782   else
7783     lt_cv_sys_global_symbol_pipe=
7784   fi
7785 done
7786
7787 fi
7788
7789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7790   lt_cv_sys_global_symbol_to_cdecl=
7791 fi
7792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7794 $as_echo "failed" >&6; }
7795 else
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7797 $as_echo "ok" >&6; }
7798 fi
7799
7800 # Response file support.
7801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7802   nm_file_list_spec='@'
7803 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7804   nm_file_list_spec='@'
7805 fi
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7834 $as_echo_n "checking for sysroot... " >&6; }
7835
7836 # Check whether --with-sysroot was given.
7837 if test "${with_sysroot+set}" = set; then :
7838   withval=$with_sysroot;
7839 else
7840   with_sysroot=no
7841 fi
7842
7843
7844 lt_sysroot=
7845 case ${with_sysroot} in #(
7846  yes)
7847    if test "$GCC" = yes; then
7848      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7849    fi
7850    ;; #(
7851  /*)
7852    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7853    ;; #(
7854  no|'')
7855    ;; #(
7856  *)
7857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7858 $as_echo "${with_sysroot}" >&6; }
7859    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7860    ;;
7861 esac
7862
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7864 $as_echo "${lt_sysroot:-no}" >&6; }
7865
7866
7867
7868
7869
7870 # Check whether --enable-libtool-lock was given.
7871 if test "${enable_libtool_lock+set}" = set; then :
7872   enableval=$enable_libtool_lock;
7873 fi
7874
7875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7876
7877 # Some flags need to be propagated to the compiler or linker for good
7878 # libtool support.
7879 case $host in
7880 ia64-*-hpux*)
7881   # Find out which ABI we are using.
7882   echo 'int i;' > conftest.$ac_ext
7883   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7884   (eval $ac_compile) 2>&5
7885   ac_status=$?
7886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887   test $ac_status = 0; }; then
7888     case `/usr/bin/file conftest.$ac_objext` in
7889       *ELF-32*)
7890         HPUX_IA64_MODE="32"
7891         ;;
7892       *ELF-64*)
7893         HPUX_IA64_MODE="64"
7894         ;;
7895     esac
7896   fi
7897   rm -rf conftest*
7898   ;;
7899 *-*-irix6*)
7900   # Find out which ABI we are using.
7901   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7902   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7903   (eval $ac_compile) 2>&5
7904   ac_status=$?
7905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906   test $ac_status = 0; }; then
7907     if test "$lt_cv_prog_gnu_ld" = yes; then
7908       case `/usr/bin/file conftest.$ac_objext` in
7909         *32-bit*)
7910           LD="${LD-ld} -melf32bsmip"
7911           ;;
7912         *N32*)
7913           LD="${LD-ld} -melf32bmipn32"
7914           ;;
7915         *64-bit*)
7916           LD="${LD-ld} -melf64bmip"
7917         ;;
7918       esac
7919     else
7920       case `/usr/bin/file conftest.$ac_objext` in
7921         *32-bit*)
7922           LD="${LD-ld} -32"
7923           ;;
7924         *N32*)
7925           LD="${LD-ld} -n32"
7926           ;;
7927         *64-bit*)
7928           LD="${LD-ld} -64"
7929           ;;
7930       esac
7931     fi
7932   fi
7933   rm -rf conftest*
7934   ;;
7935
7936 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7937 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7938   # Find out which ABI we are using.
7939   echo 'int i;' > conftest.$ac_ext
7940   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7941   (eval $ac_compile) 2>&5
7942   ac_status=$?
7943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944   test $ac_status = 0; }; then
7945     case `/usr/bin/file conftest.o` in
7946       *32-bit*)
7947         case $host in
7948           x86_64-*kfreebsd*-gnu)
7949             LD="${LD-ld} -m elf_i386_fbsd"
7950             ;;
7951           x86_64-*linux*)
7952             case `/usr/bin/file conftest.o` in
7953               *x86-64*)
7954                 LD="${LD-ld} -m elf32_x86_64"
7955                 ;;
7956               *)
7957                 LD="${LD-ld} -m elf_i386"
7958                 ;;
7959             esac
7960             ;;
7961           ppc64-*linux*|powerpc64-*linux*)
7962             LD="${LD-ld} -m elf32ppclinux"
7963             ;;
7964           s390x-*linux*)
7965             LD="${LD-ld} -m elf_s390"
7966             ;;
7967           sparc64-*linux*)
7968             LD="${LD-ld} -m elf32_sparc"
7969             ;;
7970         esac
7971         ;;
7972       *64-bit*)
7973         case $host in
7974           x86_64-*kfreebsd*-gnu)
7975             LD="${LD-ld} -m elf_x86_64_fbsd"
7976             ;;
7977           x86_64-*linux*)
7978             LD="${LD-ld} -m elf_x86_64"
7979             ;;
7980           ppc*-*linux*|powerpc*-*linux*)
7981             LD="${LD-ld} -m elf64ppc"
7982             ;;
7983           s390*-*linux*|s390*-*tpf*)
7984             LD="${LD-ld} -m elf64_s390"
7985             ;;
7986           sparc*-*linux*)
7987             LD="${LD-ld} -m elf64_sparc"
7988             ;;
7989         esac
7990         ;;
7991     esac
7992   fi
7993   rm -rf conftest*
7994   ;;
7995
7996 *-*-sco3.2v5*)
7997   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7998   SAVE_CFLAGS="$CFLAGS"
7999   CFLAGS="$CFLAGS -belf"
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8001 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8002 if ${lt_cv_cc_needs_belf+:} false; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h.  */
8013
8014 int
8015 main ()
8016 {
8017
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_link "$LINENO"; then :
8023   lt_cv_cc_needs_belf=yes
8024 else
8025   lt_cv_cc_needs_belf=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext \
8028     conftest$ac_exeext conftest.$ac_ext
8029      ac_ext=c
8030 ac_cpp='$CPP $CPPFLAGS'
8031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035 fi
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8037 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8038   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8039     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8040     CFLAGS="$SAVE_CFLAGS"
8041   fi
8042   ;;
8043 *-*solaris*)
8044   # Find out which ABI we are using.
8045   echo 'int i;' > conftest.$ac_ext
8046   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8047   (eval $ac_compile) 2>&5
8048   ac_status=$?
8049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050   test $ac_status = 0; }; then
8051     case `/usr/bin/file conftest.o` in
8052     *64-bit*)
8053       case $lt_cv_prog_gnu_ld in
8054       yes*)
8055         case $host in
8056         i?86-*-solaris*)
8057           LD="${LD-ld} -m elf_x86_64"
8058           ;;
8059         sparc*-*-solaris*)
8060           LD="${LD-ld} -m elf64_sparc"
8061           ;;
8062         esac
8063         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8064         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8065           LD="${LD-ld}_sol2"
8066         fi
8067         ;;
8068       *)
8069         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8070           LD="${LD-ld} -64"
8071         fi
8072         ;;
8073       esac
8074       ;;
8075     esac
8076   fi
8077   rm -rf conftest*
8078   ;;
8079 esac
8080
8081 need_locks="$enable_libtool_lock"
8082
8083 if test -n "$ac_tool_prefix"; then
8084   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}mt; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   if test -n "$MANIFEST_TOOL"; then
8092   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099     for ac_exec_ext in '' $ac_executable_extensions; do
8100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103     break 2
8104   fi
8105 done
8106   done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8112 if test -n "$MANIFEST_TOOL"; then
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8114 $as_echo "$MANIFEST_TOOL" >&6; }
8115 else
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8123   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8124   # Extract the first word of "mt", so it can be a program name with args.
8125 set dummy mt; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   if test -n "$ac_ct_MANIFEST_TOOL"; then
8132   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139     for ac_exec_ext in '' $ac_executable_extensions; do
8140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146   done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8152 if test -n "$ac_ct_MANIFEST_TOOL"; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8154 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8155 else
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8161     MANIFEST_TOOL=":"
8162   else
8163     case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8170   fi
8171 else
8172   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8173 fi
8174
8175 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8177 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8178 if ${lt_cv_path_mainfest_tool+:} false; then :
8179   $as_echo_n "(cached) " >&6
8180 else
8181   lt_cv_path_mainfest_tool=no
8182   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8183   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8184   cat conftest.err >&5
8185   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8186     lt_cv_path_mainfest_tool=yes
8187   fi
8188   rm -f conftest*
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8191 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8192 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8193   MANIFEST_TOOL=:
8194 fi
8195
8196
8197
8198
8199
8200
8201   case $host_os in
8202     rhapsody* | darwin*)
8203     if test -n "$ac_tool_prefix"; then
8204   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8205 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$DSYMUTIL"; then
8212   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8232 if test -n "$DSYMUTIL"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8234 $as_echo "$DSYMUTIL" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240
8241 fi
8242 if test -z "$ac_cv_prog_DSYMUTIL"; then
8243   ac_ct_DSYMUTIL=$DSYMUTIL
8244   # Extract the first word of "dsymutil", so it can be a program name with args.
8245 set dummy dsymutil; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8249   $as_echo_n "(cached) " >&6
8250 else
8251   if test -n "$ac_ct_DSYMUTIL"; then
8252   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8256 do
8257   IFS=$as_save_IFS
8258   test -z "$as_dir" && as_dir=.
8259     for ac_exec_ext in '' $ac_executable_extensions; do
8260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8261     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263     break 2
8264   fi
8265 done
8266   done
8267 IFS=$as_save_IFS
8268
8269 fi
8270 fi
8271 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8272 if test -n "$ac_ct_DSYMUTIL"; then
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8274 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8275 else
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280   if test "x$ac_ct_DSYMUTIL" = x; then
8281     DSYMUTIL=":"
8282   else
8283     case $cross_compiling:$ac_tool_warned in
8284 yes:)
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8287 ac_tool_warned=yes ;;
8288 esac
8289     DSYMUTIL=$ac_ct_DSYMUTIL
8290   fi
8291 else
8292   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8293 fi
8294
8295     if test -n "$ac_tool_prefix"; then
8296   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_NMEDIT+:} false; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   if test -n "$NMEDIT"; then
8304   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311     for ac_exec_ext in '' $ac_executable_extensions; do
8312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318   done
8319 IFS=$as_save_IFS
8320
8321 fi
8322 fi
8323 NMEDIT=$ac_cv_prog_NMEDIT
8324 if test -n "$NMEDIT"; then
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8326 $as_echo "$NMEDIT" >&6; }
8327 else
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333 fi
8334 if test -z "$ac_cv_prog_NMEDIT"; then
8335   ac_ct_NMEDIT=$NMEDIT
8336   # Extract the first word of "nmedit", so it can be a program name with args.
8337 set dummy nmedit; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8341   $as_echo_n "(cached) " >&6
8342 else
8343   if test -n "$ac_ct_NMEDIT"; then
8344   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349   IFS=$as_save_IFS
8350   test -z "$as_dir" && as_dir=.
8351     for ac_exec_ext in '' $ac_executable_extensions; do
8352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355     break 2
8356   fi
8357 done
8358   done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8364 if test -n "$ac_ct_NMEDIT"; then
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8366 $as_echo "$ac_ct_NMEDIT" >&6; }
8367 else
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 fi
8371
8372   if test "x$ac_ct_NMEDIT" = x; then
8373     NMEDIT=":"
8374   else
8375     case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381     NMEDIT=$ac_ct_NMEDIT
8382   fi
8383 else
8384   NMEDIT="$ac_cv_prog_NMEDIT"
8385 fi
8386
8387     if test -n "$ac_tool_prefix"; then
8388   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8389 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if ${ac_cv_prog_LIPO+:} false; then :
8393   $as_echo_n "(cached) " >&6
8394 else
8395   if test -n "$LIPO"; then
8396   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8400 do
8401   IFS=$as_save_IFS
8402   test -z "$as_dir" && as_dir=.
8403     for ac_exec_ext in '' $ac_executable_extensions; do
8404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8405     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407     break 2
8408   fi
8409 done
8410   done
8411 IFS=$as_save_IFS
8412
8413 fi
8414 fi
8415 LIPO=$ac_cv_prog_LIPO
8416 if test -n "$LIPO"; then
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8418 $as_echo "$LIPO" >&6; }
8419 else
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8423
8424
8425 fi
8426 if test -z "$ac_cv_prog_LIPO"; then
8427   ac_ct_LIPO=$LIPO
8428   # Extract the first word of "lipo", so it can be a program name with args.
8429 set dummy lipo; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8433   $as_echo_n "(cached) " >&6
8434 else
8435   if test -n "$ac_ct_LIPO"; then
8436   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441   IFS=$as_save_IFS
8442   test -z "$as_dir" && as_dir=.
8443     for ac_exec_ext in '' $ac_executable_extensions; do
8444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445     ac_cv_prog_ac_ct_LIPO="lipo"
8446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447     break 2
8448   fi
8449 done
8450   done
8451 IFS=$as_save_IFS
8452
8453 fi
8454 fi
8455 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8456 if test -n "$ac_ct_LIPO"; then
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8458 $as_echo "$ac_ct_LIPO" >&6; }
8459 else
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463
8464   if test "x$ac_ct_LIPO" = x; then
8465     LIPO=":"
8466   else
8467     case $cross_compiling:$ac_tool_warned in
8468 yes:)
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8471 ac_tool_warned=yes ;;
8472 esac
8473     LIPO=$ac_ct_LIPO
8474   fi
8475 else
8476   LIPO="$ac_cv_prog_LIPO"
8477 fi
8478
8479     if test -n "$ac_tool_prefix"; then
8480   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8481 set dummy ${ac_tool_prefix}otool; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if ${ac_cv_prog_OTOOL+:} false; then :
8485   $as_echo_n "(cached) " >&6
8486 else
8487   if test -n "$OTOOL"; then
8488   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8489 else
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 for as_dir in $PATH
8492 do
8493   IFS=$as_save_IFS
8494   test -z "$as_dir" && as_dir=.
8495     for ac_exec_ext in '' $ac_executable_extensions; do
8496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8497     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8499     break 2
8500   fi
8501 done
8502   done
8503 IFS=$as_save_IFS
8504
8505 fi
8506 fi
8507 OTOOL=$ac_cv_prog_OTOOL
8508 if test -n "$OTOOL"; then
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8510 $as_echo "$OTOOL" >&6; }
8511 else
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8514 fi
8515
8516
8517 fi
8518 if test -z "$ac_cv_prog_OTOOL"; then
8519   ac_ct_OTOOL=$OTOOL
8520   # Extract the first word of "otool", so it can be a program name with args.
8521 set dummy otool; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8525   $as_echo_n "(cached) " >&6
8526 else
8527   if test -n "$ac_ct_OTOOL"; then
8528   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533   IFS=$as_save_IFS
8534   test -z "$as_dir" && as_dir=.
8535     for ac_exec_ext in '' $ac_executable_extensions; do
8536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537     ac_cv_prog_ac_ct_OTOOL="otool"
8538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539     break 2
8540   fi
8541 done
8542   done
8543 IFS=$as_save_IFS
8544
8545 fi
8546 fi
8547 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8548 if test -n "$ac_ct_OTOOL"; then
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8550 $as_echo "$ac_ct_OTOOL" >&6; }
8551 else
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 fi
8555
8556   if test "x$ac_ct_OTOOL" = x; then
8557     OTOOL=":"
8558   else
8559     case $cross_compiling:$ac_tool_warned in
8560 yes:)
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8563 ac_tool_warned=yes ;;
8564 esac
8565     OTOOL=$ac_ct_OTOOL
8566   fi
8567 else
8568   OTOOL="$ac_cv_prog_OTOOL"
8569 fi
8570
8571     if test -n "$ac_tool_prefix"; then
8572   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8573 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 $as_echo_n "checking for $ac_word... " >&6; }
8576 if ${ac_cv_prog_OTOOL64+:} false; then :
8577   $as_echo_n "(cached) " >&6
8578 else
8579   if test -n "$OTOOL64"; then
8580   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8581 else
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8584 do
8585   IFS=$as_save_IFS
8586   test -z "$as_dir" && as_dir=.
8587     for ac_exec_ext in '' $ac_executable_extensions; do
8588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591     break 2
8592   fi
8593 done
8594   done
8595 IFS=$as_save_IFS
8596
8597 fi
8598 fi
8599 OTOOL64=$ac_cv_prog_OTOOL64
8600 if test -n "$OTOOL64"; then
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8602 $as_echo "$OTOOL64" >&6; }
8603 else
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 fi
8607
8608
8609 fi
8610 if test -z "$ac_cv_prog_OTOOL64"; then
8611   ac_ct_OTOOL64=$OTOOL64
8612   # Extract the first word of "otool64", so it can be a program name with args.
8613 set dummy otool64; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8617   $as_echo_n "(cached) " >&6
8618 else
8619   if test -n "$ac_ct_OTOOL64"; then
8620   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8624 do
8625   IFS=$as_save_IFS
8626   test -z "$as_dir" && as_dir=.
8627     for ac_exec_ext in '' $ac_executable_extensions; do
8628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629     ac_cv_prog_ac_ct_OTOOL64="otool64"
8630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631     break 2
8632   fi
8633 done
8634   done
8635 IFS=$as_save_IFS
8636
8637 fi
8638 fi
8639 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8640 if test -n "$ac_ct_OTOOL64"; then
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8642 $as_echo "$ac_ct_OTOOL64" >&6; }
8643 else
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8646 fi
8647
8648   if test "x$ac_ct_OTOOL64" = x; then
8649     OTOOL64=":"
8650   else
8651     case $cross_compiling:$ac_tool_warned in
8652 yes:)
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8655 ac_tool_warned=yes ;;
8656 esac
8657     OTOOL64=$ac_ct_OTOOL64
8658   fi
8659 else
8660   OTOOL64="$ac_cv_prog_OTOOL64"
8661 fi
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8690 $as_echo_n "checking for -single_module linker flag... " >&6; }
8691 if ${lt_cv_apple_cc_single_mod+:} false; then :
8692   $as_echo_n "(cached) " >&6
8693 else
8694   lt_cv_apple_cc_single_mod=no
8695       if test -z "${LT_MULTI_MODULE}"; then
8696         # By default we will add the -single_module flag. You can override
8697         # by either setting the environment variable LT_MULTI_MODULE
8698         # non-empty at configure time, or by adding -multi_module to the
8699         # link flags.
8700         rm -rf libconftest.dylib*
8701         echo "int foo(void){return 1;}" > conftest.c
8702         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8703 -dynamiclib -Wl,-single_module conftest.c" >&5
8704         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8705           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8706         _lt_result=$?
8707         # If there is a non-empty error log, and "single_module"
8708         # appears in it, assume the flag caused a linker warning
8709         if test -s conftest.err && $GREP single_module conftest.err; then
8710           cat conftest.err >&5
8711         # Otherwise, if the output was created with a 0 exit code from
8712         # the compiler, it worked.
8713         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8714           lt_cv_apple_cc_single_mod=yes
8715         else
8716           cat conftest.err >&5
8717         fi
8718         rm -rf libconftest.dylib*
8719         rm -f conftest.*
8720       fi
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8723 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8724
8725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8726 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8727 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8728   $as_echo_n "(cached) " >&6
8729 else
8730   lt_cv_ld_exported_symbols_list=no
8731       save_LDFLAGS=$LDFLAGS
8732       echo "_main" > conftest.sym
8733       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h.  */
8736
8737 int
8738 main ()
8739 {
8740
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 if ac_fn_c_try_link "$LINENO"; then :
8746   lt_cv_ld_exported_symbols_list=yes
8747 else
8748   lt_cv_ld_exported_symbols_list=no
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext \
8751     conftest$ac_exeext conftest.$ac_ext
8752         LDFLAGS="$save_LDFLAGS"
8753
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8756 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8757
8758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8759 $as_echo_n "checking for -force_load linker flag... " >&6; }
8760 if ${lt_cv_ld_force_load+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   lt_cv_ld_force_load=no
8764       cat > conftest.c << _LT_EOF
8765 int forced_loaded() { return 2;}
8766 _LT_EOF
8767       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8768       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8769       echo "$AR cru libconftest.a conftest.o" >&5
8770       $AR cru libconftest.a conftest.o 2>&5
8771       echo "$RANLIB libconftest.a" >&5
8772       $RANLIB libconftest.a 2>&5
8773       cat > conftest.c << _LT_EOF
8774 int main() { return 0;}
8775 _LT_EOF
8776       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8777       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8778       _lt_result=$?
8779       if test -s conftest.err && $GREP force_load conftest.err; then
8780         cat conftest.err >&5
8781       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8782         lt_cv_ld_force_load=yes
8783       else
8784         cat conftest.err >&5
8785       fi
8786         rm -f conftest.err libconftest.a conftest conftest.c
8787         rm -rf conftest.dSYM
8788
8789 fi
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8791 $as_echo "$lt_cv_ld_force_load" >&6; }
8792     case $host_os in
8793     rhapsody* | darwin1.[012])
8794       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8795     darwin1.*)
8796       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8797     darwin*) # darwin 5.x on
8798       # if running on 10.5 or later, the deployment target defaults
8799       # to the OS version, if on x86, and 10.4, the deployment
8800       # target defaults to 10.4. Don't you love it?
8801       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8802         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8803           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8804         10.[012]*)
8805           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8806         10.*)
8807           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8808       esac
8809     ;;
8810   esac
8811     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8812       _lt_dar_single_mod='$single_module'
8813     fi
8814     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8815       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8816     else
8817       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8818     fi
8819     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8820       _lt_dsymutil='~$DSYMUTIL $lib || :'
8821     else
8822       _lt_dsymutil=
8823     fi
8824     ;;
8825   esac
8826
8827 for ac_header in dlfcn.h
8828 do :
8829   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8830 "
8831 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8832   cat >>confdefs.h <<_ACEOF
8833 #define HAVE_DLFCN_H 1
8834 _ACEOF
8835
8836 fi
8837
8838 done
8839
8840
8841
8842
8843
8844 # Set options
8845 # Check whether --enable-static was given.
8846 if test "${enable_static+set}" = set; then :
8847   enableval=$enable_static; p=${PACKAGE-default}
8848     case $enableval in
8849     yes) enable_static=yes ;;
8850     no) enable_static=no ;;
8851     *)
8852      enable_static=no
8853       # Look at the argument we got.  We use all the common list separators.
8854       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8855       for pkg in $enableval; do
8856         IFS="$lt_save_ifs"
8857         if test "X$pkg" = "X$p"; then
8858           enable_static=yes
8859         fi
8860       done
8861       IFS="$lt_save_ifs"
8862       ;;
8863     esac
8864 else
8865   enable_static=no
8866 fi
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877         enable_dlopen=no
8878
8879
8880   enable_win32_dll=no
8881
8882
8883             # Check whether --enable-shared was given.
8884 if test "${enable_shared+set}" = set; then :
8885   enableval=$enable_shared; p=${PACKAGE-default}
8886     case $enableval in
8887     yes) enable_shared=yes ;;
8888     no) enable_shared=no ;;
8889     *)
8890       enable_shared=no
8891       # Look at the argument we got.  We use all the common list separators.
8892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8893       for pkg in $enableval; do
8894         IFS="$lt_save_ifs"
8895         if test "X$pkg" = "X$p"; then
8896           enable_shared=yes
8897         fi
8898       done
8899       IFS="$lt_save_ifs"
8900       ;;
8901     esac
8902 else
8903   enable_shared=yes
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916 # Check whether --with-pic was given.
8917 if test "${with_pic+set}" = set; then :
8918   withval=$with_pic; lt_p=${PACKAGE-default}
8919     case $withval in
8920     yes|no) pic_mode=$withval ;;
8921     *)
8922       pic_mode=default
8923       # Look at the argument we got.  We use all the common list separators.
8924       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8925       for lt_pkg in $withval; do
8926         IFS="$lt_save_ifs"
8927         if test "X$lt_pkg" = "X$lt_p"; then
8928           pic_mode=yes
8929         fi
8930       done
8931       IFS="$lt_save_ifs"
8932       ;;
8933     esac
8934 else
8935   pic_mode=default
8936 fi
8937
8938
8939 test -z "$pic_mode" && pic_mode=default
8940
8941
8942
8943
8944
8945
8946
8947   # Check whether --enable-fast-install was given.
8948 if test "${enable_fast_install+set}" = set; then :
8949   enableval=$enable_fast_install; p=${PACKAGE-default}
8950     case $enableval in
8951     yes) enable_fast_install=yes ;;
8952     no) enable_fast_install=no ;;
8953     *)
8954       enable_fast_install=no
8955       # Look at the argument we got.  We use all the common list separators.
8956       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8957       for pkg in $enableval; do
8958         IFS="$lt_save_ifs"
8959         if test "X$pkg" = "X$p"; then
8960           enable_fast_install=yes
8961         fi
8962       done
8963       IFS="$lt_save_ifs"
8964       ;;
8965     esac
8966 else
8967   enable_fast_install=yes
8968 fi
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980 # This can be used to rebuild libtool when needed
8981 LIBTOOL_DEPS="$ltmain"
8982
8983 # Always use our own libtool.
8984 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015 test -z "$LN_S" && LN_S="ln -s"
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 if test -n "${ZSH_VERSION+set}" ; then
9031    setopt NO_GLOB_SUBST
9032 fi
9033
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9035 $as_echo_n "checking for objdir... " >&6; }
9036 if ${lt_cv_objdir+:} false; then :
9037   $as_echo_n "(cached) " >&6
9038 else
9039   rm -f .libs 2>/dev/null
9040 mkdir .libs 2>/dev/null
9041 if test -d .libs; then
9042   lt_cv_objdir=.libs
9043 else
9044   # MS-DOS does not allow filenames that begin with a dot.
9045   lt_cv_objdir=_libs
9046 fi
9047 rmdir .libs 2>/dev/null
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9050 $as_echo "$lt_cv_objdir" >&6; }
9051 objdir=$lt_cv_objdir
9052
9053
9054
9055
9056
9057 cat >>confdefs.h <<_ACEOF
9058 #define LT_OBJDIR "$lt_cv_objdir/"
9059 _ACEOF
9060
9061
9062
9063
9064 case $host_os in
9065 aix3*)
9066   # AIX sometimes has problems with the GCC collect2 program.  For some
9067   # reason, if we set the COLLECT_NAMES environment variable, the problems
9068   # vanish in a puff of smoke.
9069   if test "X${COLLECT_NAMES+set}" != Xset; then
9070     COLLECT_NAMES=
9071     export COLLECT_NAMES
9072   fi
9073   ;;
9074 esac
9075
9076 # Global variables:
9077 ofile=libtool
9078 can_build_shared=yes
9079
9080 # All known linkers require a `.a' archive for static linking (except MSVC,
9081 # which needs '.lib').
9082 libext=a
9083
9084 with_gnu_ld="$lt_cv_prog_gnu_ld"
9085
9086 old_CC="$CC"
9087 old_CFLAGS="$CFLAGS"
9088
9089 # Set sane defaults for various variables
9090 test -z "$CC" && CC=cc
9091 test -z "$LTCC" && LTCC=$CC
9092 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9093 test -z "$LD" && LD=ld
9094 test -z "$ac_objext" && ac_objext=o
9095
9096 for cc_temp in $compiler""; do
9097   case $cc_temp in
9098     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9099     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9100     \-*) ;;
9101     *) break;;
9102   esac
9103 done
9104 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9105
9106
9107 # Only perform the check for file, if the check method requires it
9108 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9109 case $deplibs_check_method in
9110 file_magic*)
9111   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9113 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9114 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117   case $MAGIC_CMD in
9118 [\\/*] |  ?:[\\/]*)
9119   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9120   ;;
9121 *)
9122   lt_save_MAGIC_CMD="$MAGIC_CMD"
9123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9124   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9125   for ac_dir in $ac_dummy; do
9126     IFS="$lt_save_ifs"
9127     test -z "$ac_dir" && ac_dir=.
9128     if test -f $ac_dir/${ac_tool_prefix}file; then
9129       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9130       if test -n "$file_magic_test_file"; then
9131         case $deplibs_check_method in
9132         "file_magic "*)
9133           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9134           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9135           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9136             $EGREP "$file_magic_regex" > /dev/null; then
9137             :
9138           else
9139             cat <<_LT_EOF 1>&2
9140
9141 *** Warning: the command libtool uses to detect shared libraries,
9142 *** $file_magic_cmd, produces output that libtool cannot recognize.
9143 *** The result is that libtool may fail to recognize shared libraries
9144 *** as such.  This will affect the creation of libtool libraries that
9145 *** depend on shared libraries, but programs linked with such libtool
9146 *** libraries will work regardless of this problem.  Nevertheless, you
9147 *** may want to report the problem to your system manager and/or to
9148 *** bug-libtool@gnu.org
9149
9150 _LT_EOF
9151           fi ;;
9152         esac
9153       fi
9154       break
9155     fi
9156   done
9157   IFS="$lt_save_ifs"
9158   MAGIC_CMD="$lt_save_MAGIC_CMD"
9159   ;;
9160 esac
9161 fi
9162
9163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9164 if test -n "$MAGIC_CMD"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9166 $as_echo "$MAGIC_CMD" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173
9174
9175
9176 if test -z "$lt_cv_path_MAGIC_CMD"; then
9177   if test -n "$ac_tool_prefix"; then
9178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9179 $as_echo_n "checking for file... " >&6; }
9180 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   case $MAGIC_CMD in
9184 [\\/*] |  ?:[\\/]*)
9185   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9186   ;;
9187 *)
9188   lt_save_MAGIC_CMD="$MAGIC_CMD"
9189   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9190   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9191   for ac_dir in $ac_dummy; do
9192     IFS="$lt_save_ifs"
9193     test -z "$ac_dir" && ac_dir=.
9194     if test -f $ac_dir/file; then
9195       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9196       if test -n "$file_magic_test_file"; then
9197         case $deplibs_check_method in
9198         "file_magic "*)
9199           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9200           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9201           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9202             $EGREP "$file_magic_regex" > /dev/null; then
9203             :
9204           else
9205             cat <<_LT_EOF 1>&2
9206
9207 *** Warning: the command libtool uses to detect shared libraries,
9208 *** $file_magic_cmd, produces output that libtool cannot recognize.
9209 *** The result is that libtool may fail to recognize shared libraries
9210 *** as such.  This will affect the creation of libtool libraries that
9211 *** depend on shared libraries, but programs linked with such libtool
9212 *** libraries will work regardless of this problem.  Nevertheless, you
9213 *** may want to report the problem to your system manager and/or to
9214 *** bug-libtool@gnu.org
9215
9216 _LT_EOF
9217           fi ;;
9218         esac
9219       fi
9220       break
9221     fi
9222   done
9223   IFS="$lt_save_ifs"
9224   MAGIC_CMD="$lt_save_MAGIC_CMD"
9225   ;;
9226 esac
9227 fi
9228
9229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9230 if test -n "$MAGIC_CMD"; then
9231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9232 $as_echo "$MAGIC_CMD" >&6; }
9233 else
9234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9236 fi
9237
9238
9239   else
9240     MAGIC_CMD=:
9241   fi
9242 fi
9243
9244   fi
9245   ;;
9246 esac
9247
9248 # Use C for the default configuration in the libtool script
9249
9250 lt_save_CC="$CC"
9251 ac_ext=c
9252 ac_cpp='$CPP $CPPFLAGS'
9253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9256
9257
9258 # Source file extension for C test sources.
9259 ac_ext=c
9260
9261 # Object file extension for compiled C test sources.
9262 objext=o
9263 objext=$objext
9264
9265 # Code to be used in simple compile tests
9266 lt_simple_compile_test_code="int some_variable = 0;"
9267
9268 # Code to be used in simple link tests
9269 lt_simple_link_test_code='int main(){return(0);}'
9270
9271
9272
9273
9274
9275
9276
9277 # If no C compiler was specified, use CC.
9278 LTCC=${LTCC-"$CC"}
9279
9280 # If no C compiler flags were specified, use CFLAGS.
9281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9282
9283 # Allow CC to be a program name with arguments.
9284 compiler=$CC
9285
9286 # Save the default compiler, since it gets overwritten when the other
9287 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9288 compiler_DEFAULT=$CC
9289
9290 # save warnings/boilerplate of simple test code
9291 ac_outfile=conftest.$ac_objext
9292 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9293 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9294 _lt_compiler_boilerplate=`cat conftest.err`
9295 $RM conftest*
9296
9297 ac_outfile=conftest.$ac_objext
9298 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9299 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9300 _lt_linker_boilerplate=`cat conftest.err`
9301 $RM -r conftest*
9302
9303
9304 ## CAVEAT EMPTOR:
9305 ## There is no encapsulation within the following macros, do not change
9306 ## the running order or otherwise move them around unless you know exactly
9307 ## what you are doing...
9308 if test -n "$compiler"; then
9309
9310 lt_prog_compiler_no_builtin_flag=
9311
9312 if test "$GCC" = yes; then
9313   case $cc_basename in
9314   nvcc*)
9315     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9316   *)
9317     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9318   esac
9319
9320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9321 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9322 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   lt_cv_prog_compiler_rtti_exceptions=no
9326    ac_outfile=conftest.$ac_objext
9327    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9328    lt_compiler_flag="-fno-rtti -fno-exceptions"
9329    # Insert the option either (1) after the last *FLAGS variable, or
9330    # (2) before a word containing "conftest.", or (3) at the end.
9331    # Note that $ac_compile itself does not contain backslashes and begins
9332    # with a dollar sign (not a hyphen), so the echo should work correctly.
9333    # The option is referenced via a variable to avoid confusing sed.
9334    lt_compile=`echo "$ac_compile" | $SED \
9335    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9336    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9337    -e 's:$: $lt_compiler_flag:'`
9338    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9339    (eval "$lt_compile" 2>conftest.err)
9340    ac_status=$?
9341    cat conftest.err >&5
9342    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343    if (exit $ac_status) && test -s "$ac_outfile"; then
9344      # The compiler can only warn and ignore the option if not recognized
9345      # So say no if there are warnings other than the usual output.
9346      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9347      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9348      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9349        lt_cv_prog_compiler_rtti_exceptions=yes
9350      fi
9351    fi
9352    $RM conftest*
9353
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9356 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9357
9358 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9359     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9360 else
9361     :
9362 fi
9363
9364 fi
9365
9366
9367
9368
9369
9370
9371   lt_prog_compiler_wl=
9372 lt_prog_compiler_pic=
9373 lt_prog_compiler_static=
9374
9375
9376   if test "$GCC" = yes; then
9377     lt_prog_compiler_wl='-Wl,'
9378     lt_prog_compiler_static='-static'
9379
9380     case $host_os in
9381       aix*)
9382       # All AIX code is PIC.
9383       if test "$host_cpu" = ia64; then
9384         # AIX 5 now supports IA64 processor
9385         lt_prog_compiler_static='-Bstatic'
9386       fi
9387       ;;
9388
9389     amigaos*)
9390       case $host_cpu in
9391       powerpc)
9392             # see comment about AmigaOS4 .so support
9393             lt_prog_compiler_pic='-fPIC'
9394         ;;
9395       m68k)
9396             # FIXME: we need at least 68020 code to build shared libraries, but
9397             # adding the `-m68020' flag to GCC prevents building anything better,
9398             # like `-m68040'.
9399             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9400         ;;
9401       esac
9402       ;;
9403
9404     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9405       # PIC is the default for these OSes.
9406       ;;
9407
9408     mingw* | cygwin* | pw32* | os2* | cegcc*)
9409       # This hack is so that the source file can tell whether it is being
9410       # built for inclusion in a dll (and should export symbols for example).
9411       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9412       # (--disable-auto-import) libraries
9413       lt_prog_compiler_pic='-DDLL_EXPORT'
9414       ;;
9415
9416     darwin* | rhapsody*)
9417       # PIC is the default on this platform
9418       # Common symbols not allowed in MH_DYLIB files
9419       lt_prog_compiler_pic='-fno-common'
9420       ;;
9421
9422     haiku*)
9423       # PIC is the default for Haiku.
9424       # The "-static" flag exists, but is broken.
9425       lt_prog_compiler_static=
9426       ;;
9427
9428     hpux*)
9429       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9430       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9431       # sets the default TLS model and affects inlining.
9432       case $host_cpu in
9433       hppa*64*)
9434         # +Z the default
9435         ;;
9436       *)
9437         lt_prog_compiler_pic='-fPIC'
9438         ;;
9439       esac
9440       ;;
9441
9442     interix[3-9]*)
9443       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9444       # Instead, we relocate shared libraries at runtime.
9445       ;;
9446
9447     msdosdjgpp*)
9448       # Just because we use GCC doesn't mean we suddenly get shared libraries
9449       # on systems that don't support them.
9450       lt_prog_compiler_can_build_shared=no
9451       enable_shared=no
9452       ;;
9453
9454     *nto* | *qnx*)
9455       # QNX uses GNU C++, but need to define -shared option too, otherwise
9456       # it will coredump.
9457       lt_prog_compiler_pic='-fPIC -shared'
9458       ;;
9459
9460     sysv4*MP*)
9461       if test -d /usr/nec; then
9462         lt_prog_compiler_pic=-Kconform_pic
9463       fi
9464       ;;
9465
9466     *)
9467       lt_prog_compiler_pic='-fPIC'
9468       ;;
9469     esac
9470
9471     case $cc_basename in
9472     nvcc*) # Cuda Compiler Driver 2.2
9473       lt_prog_compiler_wl='-Xlinker '
9474       if test -n "$lt_prog_compiler_pic"; then
9475         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9476       fi
9477       ;;
9478     esac
9479   else
9480     # PORTME Check for flag to pass linker flags through the system compiler.
9481     case $host_os in
9482     aix*)
9483       lt_prog_compiler_wl='-Wl,'
9484       if test "$host_cpu" = ia64; then
9485         # AIX 5 now supports IA64 processor
9486         lt_prog_compiler_static='-Bstatic'
9487       else
9488         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9489       fi
9490       ;;
9491
9492     mingw* | cygwin* | pw32* | os2* | cegcc*)
9493       # This hack is so that the source file can tell whether it is being
9494       # built for inclusion in a dll (and should export symbols for example).
9495       lt_prog_compiler_pic='-DDLL_EXPORT'
9496       ;;
9497
9498     hpux9* | hpux10* | hpux11*)
9499       lt_prog_compiler_wl='-Wl,'
9500       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9501       # not for PA HP-UX.
9502       case $host_cpu in
9503       hppa*64*|ia64*)
9504         # +Z the default
9505         ;;
9506       *)
9507         lt_prog_compiler_pic='+Z'
9508         ;;
9509       esac
9510       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9511       lt_prog_compiler_static='${wl}-a ${wl}archive'
9512       ;;
9513
9514     irix5* | irix6* | nonstopux*)
9515       lt_prog_compiler_wl='-Wl,'
9516       # PIC (with -KPIC) is the default.
9517       lt_prog_compiler_static='-non_shared'
9518       ;;
9519
9520     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9521       case $cc_basename in
9522       # old Intel for x86_64 which still supported -KPIC.
9523       ecc*)
9524         lt_prog_compiler_wl='-Wl,'
9525         lt_prog_compiler_pic='-KPIC'
9526         lt_prog_compiler_static='-static'
9527         ;;
9528       # icc used to be incompatible with GCC.
9529       # ICC 10 doesn't accept -KPIC any more.
9530       icc* | ifort*)
9531         lt_prog_compiler_wl='-Wl,'
9532         lt_prog_compiler_pic='-fPIC'
9533         lt_prog_compiler_static='-static'
9534         ;;
9535       # Lahey Fortran 8.1.
9536       lf95*)
9537         lt_prog_compiler_wl='-Wl,'
9538         lt_prog_compiler_pic='--shared'
9539         lt_prog_compiler_static='--static'
9540         ;;
9541       nagfor*)
9542         # NAG Fortran compiler
9543         lt_prog_compiler_wl='-Wl,-Wl,,'
9544         lt_prog_compiler_pic='-PIC'
9545         lt_prog_compiler_static='-Bstatic'
9546         ;;
9547       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9548         # Portland Group compilers (*not* the Pentium gcc compiler,
9549         # which looks to be a dead project)
9550         lt_prog_compiler_wl='-Wl,'
9551         lt_prog_compiler_pic='-fpic'
9552         lt_prog_compiler_static='-Bstatic'
9553         ;;
9554       ccc*)
9555         lt_prog_compiler_wl='-Wl,'
9556         # All Alpha code is PIC.
9557         lt_prog_compiler_static='-non_shared'
9558         ;;
9559       xl* | bgxl* | bgf* | mpixl*)
9560         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9561         lt_prog_compiler_wl='-Wl,'
9562         lt_prog_compiler_pic='-qpic'
9563         lt_prog_compiler_static='-qstaticlink'
9564         ;;
9565       *)
9566         case `$CC -V 2>&1 | sed 5q` in
9567         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9568           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9569           lt_prog_compiler_pic='-KPIC'
9570           lt_prog_compiler_static='-Bstatic'
9571           lt_prog_compiler_wl=''
9572           ;;
9573         *Sun\ F* | *Sun*Fortran*)
9574           lt_prog_compiler_pic='-KPIC'
9575           lt_prog_compiler_static='-Bstatic'
9576           lt_prog_compiler_wl='-Qoption ld '
9577           ;;
9578         *Sun\ C*)
9579           # Sun C 5.9
9580           lt_prog_compiler_pic='-KPIC'
9581           lt_prog_compiler_static='-Bstatic'
9582           lt_prog_compiler_wl='-Wl,'
9583           ;;
9584         *Intel*\ [CF]*Compiler*)
9585           lt_prog_compiler_wl='-Wl,'
9586           lt_prog_compiler_pic='-fPIC'
9587           lt_prog_compiler_static='-static'
9588           ;;
9589         *Portland\ Group*)
9590           lt_prog_compiler_wl='-Wl,'
9591           lt_prog_compiler_pic='-fpic'
9592           lt_prog_compiler_static='-Bstatic'
9593           ;;
9594         esac
9595         ;;
9596       esac
9597       ;;
9598
9599     newsos6)
9600       lt_prog_compiler_pic='-KPIC'
9601       lt_prog_compiler_static='-Bstatic'
9602       ;;
9603
9604     *nto* | *qnx*)
9605       # QNX uses GNU C++, but need to define -shared option too, otherwise
9606       # it will coredump.
9607       lt_prog_compiler_pic='-fPIC -shared'
9608       ;;
9609
9610     osf3* | osf4* | osf5*)
9611       lt_prog_compiler_wl='-Wl,'
9612       # All OSF/1 code is PIC.
9613       lt_prog_compiler_static='-non_shared'
9614       ;;
9615
9616     rdos*)
9617       lt_prog_compiler_static='-non_shared'
9618       ;;
9619
9620     solaris*)
9621       lt_prog_compiler_pic='-KPIC'
9622       lt_prog_compiler_static='-Bstatic'
9623       case $cc_basename in
9624       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9625         lt_prog_compiler_wl='-Qoption ld ';;
9626       *)
9627         lt_prog_compiler_wl='-Wl,';;
9628       esac
9629       ;;
9630
9631     sunos4*)
9632       lt_prog_compiler_wl='-Qoption ld '
9633       lt_prog_compiler_pic='-PIC'
9634       lt_prog_compiler_static='-Bstatic'
9635       ;;
9636
9637     sysv4 | sysv4.2uw2* | sysv4.3*)
9638       lt_prog_compiler_wl='-Wl,'
9639       lt_prog_compiler_pic='-KPIC'
9640       lt_prog_compiler_static='-Bstatic'
9641       ;;
9642
9643     sysv4*MP*)
9644       if test -d /usr/nec ;then
9645         lt_prog_compiler_pic='-Kconform_pic'
9646         lt_prog_compiler_static='-Bstatic'
9647       fi
9648       ;;
9649
9650     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9651       lt_prog_compiler_wl='-Wl,'
9652       lt_prog_compiler_pic='-KPIC'
9653       lt_prog_compiler_static='-Bstatic'
9654       ;;
9655
9656     unicos*)
9657       lt_prog_compiler_wl='-Wl,'
9658       lt_prog_compiler_can_build_shared=no
9659       ;;
9660
9661     uts4*)
9662       lt_prog_compiler_pic='-pic'
9663       lt_prog_compiler_static='-Bstatic'
9664       ;;
9665
9666     *)
9667       lt_prog_compiler_can_build_shared=no
9668       ;;
9669     esac
9670   fi
9671
9672 case $host_os in
9673   # For platforms which do not support PIC, -DPIC is meaningless:
9674   *djgpp*)
9675     lt_prog_compiler_pic=
9676     ;;
9677   *)
9678     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9679     ;;
9680 esac
9681
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9683 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9684 if ${lt_cv_prog_compiler_pic+:} false; then :
9685   $as_echo_n "(cached) " >&6
9686 else
9687   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9690 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9691 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9692
9693 #
9694 # Check to make sure the PIC flag actually works.
9695 #
9696 if test -n "$lt_prog_compiler_pic"; then
9697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9699 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   lt_cv_prog_compiler_pic_works=no
9703    ac_outfile=conftest.$ac_objext
9704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9706    # Insert the option either (1) after the last *FLAGS variable, or
9707    # (2) before a word containing "conftest.", or (3) at the end.
9708    # Note that $ac_compile itself does not contain backslashes and begins
9709    # with a dollar sign (not a hyphen), so the echo should work correctly.
9710    # The option is referenced via a variable to avoid confusing sed.
9711    lt_compile=`echo "$ac_compile" | $SED \
9712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714    -e 's:$: $lt_compiler_flag:'`
9715    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9716    (eval "$lt_compile" 2>conftest.err)
9717    ac_status=$?
9718    cat conftest.err >&5
9719    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720    if (exit $ac_status) && test -s "$ac_outfile"; then
9721      # The compiler can only warn and ignore the option if not recognized
9722      # So say no if there are warnings other than the usual output.
9723      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9724      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9726        lt_cv_prog_compiler_pic_works=yes
9727      fi
9728    fi
9729    $RM conftest*
9730
9731 fi
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9733 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9734
9735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9736     case $lt_prog_compiler_pic in
9737      "" | " "*) ;;
9738      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9739      esac
9740 else
9741     lt_prog_compiler_pic=
9742      lt_prog_compiler_can_build_shared=no
9743 fi
9744
9745 fi
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757 #
9758 # Check to make sure the static flag actually works.
9759 #
9760 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9762 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9763 if ${lt_cv_prog_compiler_static_works+:} false; then :
9764   $as_echo_n "(cached) " >&6
9765 else
9766   lt_cv_prog_compiler_static_works=no
9767    save_LDFLAGS="$LDFLAGS"
9768    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9769    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9770    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9771      # The linker can only warn and ignore the option if not recognized
9772      # So say no if there are warnings
9773      if test -s conftest.err; then
9774        # Append any errors to the config.log.
9775        cat conftest.err 1>&5
9776        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9777        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9778        if diff conftest.exp conftest.er2 >/dev/null; then
9779          lt_cv_prog_compiler_static_works=yes
9780        fi
9781      else
9782        lt_cv_prog_compiler_static_works=yes
9783      fi
9784    fi
9785    $RM -r conftest*
9786    LDFLAGS="$save_LDFLAGS"
9787
9788 fi
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9790 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9791
9792 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9793     :
9794 else
9795     lt_prog_compiler_static=
9796 fi
9797
9798
9799
9800
9801
9802
9803
9804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9806 if ${lt_cv_prog_compiler_c_o+:} false; then :
9807   $as_echo_n "(cached) " >&6
9808 else
9809   lt_cv_prog_compiler_c_o=no
9810    $RM -r conftest 2>/dev/null
9811    mkdir conftest
9812    cd conftest
9813    mkdir out
9814    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815
9816    lt_compiler_flag="-o out/conftest2.$ac_objext"
9817    # Insert the option either (1) after the last *FLAGS variable, or
9818    # (2) before a word containing "conftest.", or (3) at the end.
9819    # Note that $ac_compile itself does not contain backslashes and begins
9820    # with a dollar sign (not a hyphen), so the echo should work correctly.
9821    lt_compile=`echo "$ac_compile" | $SED \
9822    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9823    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9824    -e 's:$: $lt_compiler_flag:'`
9825    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9826    (eval "$lt_compile" 2>out/conftest.err)
9827    ac_status=$?
9828    cat out/conftest.err >&5
9829    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9831    then
9832      # The compiler can only warn and ignore the option if not recognized
9833      # So say no if there are warnings
9834      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9835      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9836      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9837        lt_cv_prog_compiler_c_o=yes
9838      fi
9839    fi
9840    chmod u+w . 2>&5
9841    $RM conftest*
9842    # SGI C++ compiler will create directory out/ii_files/ for
9843    # template instantiation
9844    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9845    $RM out/* && rmdir out
9846    cd ..
9847    $RM -r conftest
9848    $RM conftest*
9849
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9852 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9853
9854
9855
9856
9857
9858
9859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9860 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9861 if ${lt_cv_prog_compiler_c_o+:} false; then :
9862   $as_echo_n "(cached) " >&6
9863 else
9864   lt_cv_prog_compiler_c_o=no
9865    $RM -r conftest 2>/dev/null
9866    mkdir conftest
9867    cd conftest
9868    mkdir out
9869    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870
9871    lt_compiler_flag="-o out/conftest2.$ac_objext"
9872    # Insert the option either (1) after the last *FLAGS variable, or
9873    # (2) before a word containing "conftest.", or (3) at the end.
9874    # Note that $ac_compile itself does not contain backslashes and begins
9875    # with a dollar sign (not a hyphen), so the echo should work correctly.
9876    lt_compile=`echo "$ac_compile" | $SED \
9877    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879    -e 's:$: $lt_compiler_flag:'`
9880    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9881    (eval "$lt_compile" 2>out/conftest.err)
9882    ac_status=$?
9883    cat out/conftest.err >&5
9884    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9886    then
9887      # The compiler can only warn and ignore the option if not recognized
9888      # So say no if there are warnings
9889      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9890      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9891      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9892        lt_cv_prog_compiler_c_o=yes
9893      fi
9894    fi
9895    chmod u+w . 2>&5
9896    $RM conftest*
9897    # SGI C++ compiler will create directory out/ii_files/ for
9898    # template instantiation
9899    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9900    $RM out/* && rmdir out
9901    cd ..
9902    $RM -r conftest
9903    $RM conftest*
9904
9905 fi
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9907 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9908
9909
9910
9911
9912 hard_links="nottested"
9913 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9914   # do not overwrite the value of need_locks provided by the user
9915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9916 $as_echo_n "checking if we can lock with hard links... " >&6; }
9917   hard_links=yes
9918   $RM conftest*
9919   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9920   touch conftest.a
9921   ln conftest.a conftest.b 2>&5 || hard_links=no
9922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9924 $as_echo "$hard_links" >&6; }
9925   if test "$hard_links" = no; then
9926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9927 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9928     need_locks=warn
9929   fi
9930 else
9931   need_locks=no
9932 fi
9933
9934
9935
9936
9937
9938
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9940 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9941
9942   runpath_var=
9943   allow_undefined_flag=
9944   always_export_symbols=no
9945   archive_cmds=
9946   archive_expsym_cmds=
9947   compiler_needs_object=no
9948   enable_shared_with_static_runtimes=no
9949   export_dynamic_flag_spec=
9950   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9951   hardcode_automatic=no
9952   hardcode_direct=no
9953   hardcode_direct_absolute=no
9954   hardcode_libdir_flag_spec=
9955   hardcode_libdir_separator=
9956   hardcode_minus_L=no
9957   hardcode_shlibpath_var=unsupported
9958   inherit_rpath=no
9959   link_all_deplibs=unknown
9960   module_cmds=
9961   module_expsym_cmds=
9962   old_archive_from_new_cmds=
9963   old_archive_from_expsyms_cmds=
9964   thread_safe_flag_spec=
9965   whole_archive_flag_spec=
9966   # include_expsyms should be a list of space-separated symbols to be *always*
9967   # included in the symbol list
9968   include_expsyms=
9969   # exclude_expsyms can be an extended regexp of symbols to exclude
9970   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9971   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9972   # as well as any symbol that contains `d'.
9973   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9974   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9975   # platforms (ab)use it in PIC code, but their linkers get confused if
9976   # the symbol is explicitly referenced.  Since portable code cannot
9977   # rely on this symbol name, it's probably fine to never include it in
9978   # preloaded symbol tables.
9979   # Exclude shared library initialization/finalization symbols.
9980   extract_expsyms_cmds=
9981
9982   case $host_os in
9983   cygwin* | mingw* | pw32* | cegcc*)
9984     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9985     # When not using gcc, we currently assume that we are using
9986     # Microsoft Visual C++.
9987     if test "$GCC" != yes; then
9988       with_gnu_ld=no
9989     fi
9990     ;;
9991   interix*)
9992     # we just hope/assume this is gcc and not c89 (= MSVC++)
9993     with_gnu_ld=yes
9994     ;;
9995   openbsd*)
9996     with_gnu_ld=no
9997     ;;
9998   linux* | k*bsd*-gnu | gnu*)
9999     link_all_deplibs=no
10000     ;;
10001   esac
10002
10003   ld_shlibs=yes
10004
10005   # On some targets, GNU ld is compatible enough with the native linker
10006   # that we're better off using the native interface for both.
10007   lt_use_gnu_ld_interface=no
10008   if test "$with_gnu_ld" = yes; then
10009     case $host_os in
10010       aix*)
10011         # The AIX port of GNU ld has always aspired to compatibility
10012         # with the native linker.  However, as the warning in the GNU ld
10013         # block says, versions before 2.19.5* couldn't really create working
10014         # shared libraries, regardless of the interface used.
10015         case `$LD -v 2>&1` in
10016           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10017           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10018           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10019           *)
10020             lt_use_gnu_ld_interface=yes
10021             ;;
10022         esac
10023         ;;
10024       *)
10025         lt_use_gnu_ld_interface=yes
10026         ;;
10027     esac
10028   fi
10029
10030   if test "$lt_use_gnu_ld_interface" = yes; then
10031     # If archive_cmds runs LD, not CC, wlarc should be empty
10032     wlarc='${wl}'
10033
10034     # Set some defaults for GNU ld with shared library support. These
10035     # are reset later if shared libraries are not supported. Putting them
10036     # here allows them to be overridden if necessary.
10037     runpath_var=LD_RUN_PATH
10038     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039     export_dynamic_flag_spec='${wl}--export-dynamic'
10040     # ancient GNU ld didn't support --whole-archive et. al.
10041     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10042       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10043     else
10044       whole_archive_flag_spec=
10045     fi
10046     supports_anon_versioning=no
10047     case `$LD -v 2>&1` in
10048       *GNU\ gold*) supports_anon_versioning=yes ;;
10049       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10050       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10051       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10052       *\ 2.11.*) ;; # other 2.11 versions
10053       *) supports_anon_versioning=yes ;;
10054     esac
10055
10056     # See if GNU ld supports shared libraries.
10057     case $host_os in
10058     aix[3-9]*)
10059       # On AIX/PPC, the GNU linker is very broken
10060       if test "$host_cpu" != ia64; then
10061         ld_shlibs=no
10062         cat <<_LT_EOF 1>&2
10063
10064 *** Warning: the GNU linker, at least up to release 2.19, is reported
10065 *** to be unable to reliably create shared libraries on AIX.
10066 *** Therefore, libtool is disabling shared libraries support.  If you
10067 *** really care for shared libraries, you may want to install binutils
10068 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10069 *** You will then need to restart the configuration process.
10070
10071 _LT_EOF
10072       fi
10073       ;;
10074
10075     amigaos*)
10076       case $host_cpu in
10077       powerpc)
10078             # see comment about AmigaOS4 .so support
10079             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10080             archive_expsym_cmds=''
10081         ;;
10082       m68k)
10083             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)'
10084             hardcode_libdir_flag_spec='-L$libdir'
10085             hardcode_minus_L=yes
10086         ;;
10087       esac
10088       ;;
10089
10090     beos*)
10091       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10092         allow_undefined_flag=unsupported
10093         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10094         # support --undefined.  This deserves some investigation.  FIXME
10095         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10096       else
10097         ld_shlibs=no
10098       fi
10099       ;;
10100
10101     cygwin* | mingw* | pw32* | cegcc*)
10102       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10103       # as there is no search path for DLLs.
10104       hardcode_libdir_flag_spec='-L$libdir'
10105       export_dynamic_flag_spec='${wl}--export-all-symbols'
10106       allow_undefined_flag=unsupported
10107       always_export_symbols=no
10108       enable_shared_with_static_runtimes=yes
10109       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'
10110       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10111
10112       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10114         # If the export-symbols file already is a .def file (1st line
10115         # is EXPORTS), use it as is; otherwise, prepend...
10116         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10117           cp $export_symbols $output_objdir/$soname.def;
10118         else
10119           echo EXPORTS > $output_objdir/$soname.def;
10120           cat $export_symbols >> $output_objdir/$soname.def;
10121         fi~
10122         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10123       else
10124         ld_shlibs=no
10125       fi
10126       ;;
10127
10128     haiku*)
10129       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10130       link_all_deplibs=yes
10131       ;;
10132
10133     interix[3-9]*)
10134       hardcode_direct=no
10135       hardcode_shlibpath_var=no
10136       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10137       export_dynamic_flag_spec='${wl}-E'
10138       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10139       # Instead, shared libraries are loaded at an image base (0x10000000 by
10140       # default) and relocated if they conflict, which is a slow very memory
10141       # consuming and fragmenting process.  To avoid this, we pick a random,
10142       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10143       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10144       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10145       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'
10146       ;;
10147
10148     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10149       tmp_diet=no
10150       if test "$host_os" = linux-dietlibc; then
10151         case $cc_basename in
10152           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10153         esac
10154       fi
10155       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10156          && test "$tmp_diet" = no
10157       then
10158         tmp_addflag=' $pic_flag'
10159         tmp_sharedflag='-shared'
10160         case $cc_basename,$host_cpu in
10161         pgcc*)                          # Portland Group C compiler
10162           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'
10163           tmp_addflag=' $pic_flag'
10164           ;;
10165         pgf77* | pgf90* | pgf95* | pgfortran*)
10166                                         # Portland Group f77 and f90 compilers
10167           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'
10168           tmp_addflag=' $pic_flag -Mnomain' ;;
10169         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10170           tmp_addflag=' -i_dynamic' ;;
10171         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10172           tmp_addflag=' -i_dynamic -nofor_main' ;;
10173         ifc* | ifort*)                  # Intel Fortran compiler
10174           tmp_addflag=' -nofor_main' ;;
10175         lf95*)                          # Lahey Fortran 8.1
10176           whole_archive_flag_spec=
10177           tmp_sharedflag='--shared' ;;
10178         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10179           tmp_sharedflag='-qmkshrobj'
10180           tmp_addflag= ;;
10181         nvcc*)  # Cuda Compiler Driver 2.2
10182           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'
10183           compiler_needs_object=yes
10184           ;;
10185         esac
10186         case `$CC -V 2>&1 | sed 5q` in
10187         *Sun\ C*)                       # Sun C 5.9
10188           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'
10189           compiler_needs_object=yes
10190           tmp_sharedflag='-G' ;;
10191         *Sun\ F*)                       # Sun Fortran 8.3
10192           tmp_sharedflag='-G' ;;
10193         esac
10194         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10195
10196         if test "x$supports_anon_versioning" = xyes; then
10197           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10198             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10199             echo "local: *; };" >> $output_objdir/$libname.ver~
10200             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10201         fi
10202
10203         case $cc_basename in
10204         xlf* | bgf* | bgxlf* | mpixlf*)
10205           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10206           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10207           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10208           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10209           if test "x$supports_anon_versioning" = xyes; then
10210             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10211               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10212               echo "local: *; };" >> $output_objdir/$libname.ver~
10213               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10214           fi
10215           ;;
10216         esac
10217       else
10218         ld_shlibs=no
10219       fi
10220       ;;
10221
10222     netbsd* | netbsdelf*-gnu)
10223       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10224         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10225         wlarc=
10226       else
10227         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10228         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10229       fi
10230       ;;
10231
10232     solaris*)
10233       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10234         ld_shlibs=no
10235         cat <<_LT_EOF 1>&2
10236
10237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10238 *** create shared libraries on Solaris systems.  Therefore, libtool
10239 *** is disabling shared libraries support.  We urge you to upgrade GNU
10240 *** binutils to release 2.9.1 or newer.  Another option is to modify
10241 *** your PATH or compiler configuration so that the native linker is
10242 *** used, and then restart.
10243
10244 _LT_EOF
10245       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10246         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10247         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10248       else
10249         ld_shlibs=no
10250       fi
10251       ;;
10252
10253     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10254       case `$LD -v 2>&1` in
10255         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10256         ld_shlibs=no
10257         cat <<_LT_EOF 1>&2
10258
10259 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10260 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10261 *** is disabling shared libraries support.  We urge you to upgrade GNU
10262 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10263 *** your PATH or compiler configuration so that the native linker is
10264 *** used, and then restart.
10265
10266 _LT_EOF
10267         ;;
10268         *)
10269           # For security reasons, it is highly recommended that you always
10270           # use absolute paths for naming shared libraries, and exclude the
10271           # DT_RUNPATH tag from executables and libraries.  But doing so
10272           # requires that you compile everything twice, which is a pain.
10273           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10274             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10275             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10276             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10277           else
10278             ld_shlibs=no
10279           fi
10280         ;;
10281       esac
10282       ;;
10283
10284     sunos4*)
10285       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10286       wlarc=
10287       hardcode_direct=yes
10288       hardcode_shlibpath_var=no
10289       ;;
10290
10291     *)
10292       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10293         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10294         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10295       else
10296         ld_shlibs=no
10297       fi
10298       ;;
10299     esac
10300
10301     if test "$ld_shlibs" = no; then
10302       runpath_var=
10303       hardcode_libdir_flag_spec=
10304       export_dynamic_flag_spec=
10305       whole_archive_flag_spec=
10306     fi
10307   else
10308     # PORTME fill in a description of your system's linker (not GNU ld)
10309     case $host_os in
10310     aix3*)
10311       allow_undefined_flag=unsupported
10312       always_export_symbols=yes
10313       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'
10314       # Note: this linker hardcodes the directories in LIBPATH if there
10315       # are no directories specified by -L.
10316       hardcode_minus_L=yes
10317       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10318         # Neither direct hardcoding nor static linking is supported with a
10319         # broken collect2.
10320         hardcode_direct=unsupported
10321       fi
10322       ;;
10323
10324     aix[4-9]*)
10325       if test "$host_cpu" = ia64; then
10326         # On IA64, the linker does run time linking by default, so we don't
10327         # have to do anything special.
10328         aix_use_runtimelinking=no
10329         exp_sym_flag='-Bexport'
10330         no_entry_flag=""
10331       else
10332         # If we're using GNU nm, then we don't want the "-C" option.
10333         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10334         # Also, AIX nm treats weak defined symbols like other global
10335         # defined symbols, whereas GNU nm marks them as "W".
10336         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10337           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10338         else
10339           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10340         fi
10341         aix_use_runtimelinking=no
10342
10343         # Test if we are trying to use run time linking or normal
10344         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10345         # need to do runtime linking.
10346         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10347           for ld_flag in $LDFLAGS; do
10348           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10349             aix_use_runtimelinking=yes
10350             break
10351           fi
10352           done
10353           ;;
10354         esac
10355
10356         exp_sym_flag='-bexport'
10357         no_entry_flag='-bnoentry'
10358       fi
10359
10360       # When large executables or shared objects are built, AIX ld can
10361       # have problems creating the table of contents.  If linking a library
10362       # or program results in "error TOC overflow" add -mminimal-toc to
10363       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10364       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10365
10366       archive_cmds=''
10367       hardcode_direct=yes
10368       hardcode_direct_absolute=yes
10369       hardcode_libdir_separator=':'
10370       link_all_deplibs=yes
10371       file_list_spec='${wl}-f,'
10372
10373       if test "$GCC" = yes; then
10374         case $host_os in aix4.[012]|aix4.[012].*)
10375         # We only want to do this on AIX 4.2 and lower, the check
10376         # below for broken collect2 doesn't work under 4.3+
10377           collect2name=`${CC} -print-prog-name=collect2`
10378           if test -f "$collect2name" &&
10379            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10380           then
10381           # We have reworked collect2
10382           :
10383           else
10384           # We have old collect2
10385           hardcode_direct=unsupported
10386           # It fails to find uninstalled libraries when the uninstalled
10387           # path is not listed in the libpath.  Setting hardcode_minus_L
10388           # to unsupported forces relinking
10389           hardcode_minus_L=yes
10390           hardcode_libdir_flag_spec='-L$libdir'
10391           hardcode_libdir_separator=
10392           fi
10393           ;;
10394         esac
10395         shared_flag='-shared'
10396         if test "$aix_use_runtimelinking" = yes; then
10397           shared_flag="$shared_flag "'${wl}-G'
10398         fi
10399         link_all_deplibs=no
10400       else
10401         # not using gcc
10402         if test "$host_cpu" = ia64; then
10403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10404         # chokes on -Wl,-G. The following line is correct:
10405           shared_flag='-G'
10406         else
10407           if test "$aix_use_runtimelinking" = yes; then
10408             shared_flag='${wl}-G'
10409           else
10410             shared_flag='${wl}-bM:SRE'
10411           fi
10412         fi
10413       fi
10414
10415       export_dynamic_flag_spec='${wl}-bexpall'
10416       # It seems that -bexpall does not export symbols beginning with
10417       # underscore (_), so it is better to generate a list of symbols to export.
10418       always_export_symbols=yes
10419       if test "$aix_use_runtimelinking" = yes; then
10420         # Warning - without using the other runtime loading flags (-brtl),
10421         # -berok will link without error, but may produce a broken library.
10422         allow_undefined_flag='-berok'
10423         # Determine the default libpath from the value encoded in an
10424         # empty executable.
10425         if test "${lt_cv_aix_libpath+set}" = set; then
10426   aix_libpath=$lt_cv_aix_libpath
10427 else
10428   if ${lt_cv_aix_libpath_+:} false; then :
10429   $as_echo_n "(cached) " >&6
10430 else
10431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h.  */
10433
10434 int
10435 main ()
10436 {
10437
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 if ac_fn_c_try_link "$LINENO"; then :
10443
10444   lt_aix_libpath_sed='
10445       /Import File Strings/,/^$/ {
10446           /^0/ {
10447               s/^0  *\([^ ]*\) *$/\1/
10448               p
10449           }
10450       }'
10451   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10452   # Check for a 64-bit object if we didn't find anything.
10453   if test -z "$lt_cv_aix_libpath_"; then
10454     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455   fi
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext \
10458     conftest$ac_exeext conftest.$ac_ext
10459   if test -z "$lt_cv_aix_libpath_"; then
10460     lt_cv_aix_libpath_="/usr/lib:/lib"
10461   fi
10462
10463 fi
10464
10465   aix_libpath=$lt_cv_aix_libpath_
10466 fi
10467
10468         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10469         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10470       else
10471         if test "$host_cpu" = ia64; then
10472           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10473           allow_undefined_flag="-z nodefs"
10474           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"
10475         else
10476          # Determine the default libpath from the value encoded in an
10477          # empty executable.
10478          if test "${lt_cv_aix_libpath+set}" = set; then
10479   aix_libpath=$lt_cv_aix_libpath
10480 else
10481   if ${lt_cv_aix_libpath_+:} false; then :
10482   $as_echo_n "(cached) " >&6
10483 else
10484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h.  */
10486
10487 int
10488 main ()
10489 {
10490
10491   ;
10492   return 0;
10493 }
10494 _ACEOF
10495 if ac_fn_c_try_link "$LINENO"; then :
10496
10497   lt_aix_libpath_sed='
10498       /Import File Strings/,/^$/ {
10499           /^0/ {
10500               s/^0  *\([^ ]*\) *$/\1/
10501               p
10502           }
10503       }'
10504   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10505   # Check for a 64-bit object if we didn't find anything.
10506   if test -z "$lt_cv_aix_libpath_"; then
10507     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10508   fi
10509 fi
10510 rm -f core conftest.err conftest.$ac_objext \
10511     conftest$ac_exeext conftest.$ac_ext
10512   if test -z "$lt_cv_aix_libpath_"; then
10513     lt_cv_aix_libpath_="/usr/lib:/lib"
10514   fi
10515
10516 fi
10517
10518   aix_libpath=$lt_cv_aix_libpath_
10519 fi
10520
10521          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10522           # Warning - without using the other run time loading flags,
10523           # -berok will link without error, but may produce a broken library.
10524           no_undefined_flag=' ${wl}-bernotok'
10525           allow_undefined_flag=' ${wl}-berok'
10526           if test "$with_gnu_ld" = yes; then
10527             # We only use this code for GNU lds that support --whole-archive.
10528             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10529           else
10530             # Exported symbols can be pulled into shared objects from archives
10531             whole_archive_flag_spec='$convenience'
10532           fi
10533           archive_cmds_need_lc=yes
10534           # This is similar to how AIX traditionally builds its shared libraries.
10535           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10536         fi
10537       fi
10538       ;;
10539
10540     amigaos*)
10541       case $host_cpu in
10542       powerpc)
10543             # see comment about AmigaOS4 .so support
10544             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10545             archive_expsym_cmds=''
10546         ;;
10547       m68k)
10548             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)'
10549             hardcode_libdir_flag_spec='-L$libdir'
10550             hardcode_minus_L=yes
10551         ;;
10552       esac
10553       ;;
10554
10555     bsdi[45]*)
10556       export_dynamic_flag_spec=-rdynamic
10557       ;;
10558
10559     cygwin* | mingw* | pw32* | cegcc*)
10560       # When not using gcc, we currently assume that we are using
10561       # Microsoft Visual C++.
10562       # hardcode_libdir_flag_spec is actually meaningless, as there is
10563       # no search path for DLLs.
10564       case $cc_basename in
10565       cl*)
10566         # Native MSVC
10567         hardcode_libdir_flag_spec=' '
10568         allow_undefined_flag=unsupported
10569         always_export_symbols=yes
10570         file_list_spec='@'
10571         # Tell ltmain to make .lib files, not .a files.
10572         libext=lib
10573         # Tell ltmain to make .dll files, not .so files.
10574         shrext_cmds=".dll"
10575         # FIXME: Setting linknames here is a bad hack.
10576         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10577         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10578             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10579           else
10580             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10581           fi~
10582           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10583           linknames='
10584         # The linker will not automatically build a static lib if we build a DLL.
10585         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10586         enable_shared_with_static_runtimes=yes
10587         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10588         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10589         # Don't use ranlib
10590         old_postinstall_cmds='chmod 644 $oldlib'
10591         postlink_cmds='lt_outputfile="@OUTPUT@"~
10592           lt_tool_outputfile="@TOOL_OUTPUT@"~
10593           case $lt_outputfile in
10594             *.exe|*.EXE) ;;
10595             *)
10596               lt_outputfile="$lt_outputfile.exe"
10597               lt_tool_outputfile="$lt_tool_outputfile.exe"
10598               ;;
10599           esac~
10600           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10601             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10602             $RM "$lt_outputfile.manifest";
10603           fi'
10604         ;;
10605       *)
10606         # Assume MSVC wrapper
10607         hardcode_libdir_flag_spec=' '
10608         allow_undefined_flag=unsupported
10609         # Tell ltmain to make .lib files, not .a files.
10610         libext=lib
10611         # Tell ltmain to make .dll files, not .so files.
10612         shrext_cmds=".dll"
10613         # FIXME: Setting linknames here is a bad hack.
10614         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10615         # The linker will automatically build a .lib file if we build a DLL.
10616         old_archive_from_new_cmds='true'
10617         # FIXME: Should let the user specify the lib program.
10618         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10619         enable_shared_with_static_runtimes=yes
10620         ;;
10621       esac
10622       ;;
10623
10624     darwin* | rhapsody*)
10625
10626
10627   archive_cmds_need_lc=no
10628   hardcode_direct=no
10629   hardcode_automatic=yes
10630   hardcode_shlibpath_var=unsupported
10631   if test "$lt_cv_ld_force_load" = "yes"; then
10632     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\"`'
10633
10634   else
10635     whole_archive_flag_spec=''
10636   fi
10637   link_all_deplibs=yes
10638   allow_undefined_flag="$_lt_dar_allow_undefined"
10639   case $cc_basename in
10640      ifort*) _lt_dar_can_shared=yes ;;
10641      *) _lt_dar_can_shared=$GCC ;;
10642   esac
10643   if test "$_lt_dar_can_shared" = "yes"; then
10644     output_verbose_link_cmd=func_echo_all
10645     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10646     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10647     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}"
10648     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}"
10649
10650   else
10651   ld_shlibs=no
10652   fi
10653
10654       ;;
10655
10656     dgux*)
10657       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658       hardcode_libdir_flag_spec='-L$libdir'
10659       hardcode_shlibpath_var=no
10660       ;;
10661
10662     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10663     # support.  Future versions do this automatically, but an explicit c++rt0.o
10664     # does not break anything, and helps significantly (at the cost of a little
10665     # extra space).
10666     freebsd2.2*)
10667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10668       hardcode_libdir_flag_spec='-R$libdir'
10669       hardcode_direct=yes
10670       hardcode_shlibpath_var=no
10671       ;;
10672
10673     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10674     freebsd2.*)
10675       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10676       hardcode_direct=yes
10677       hardcode_minus_L=yes
10678       hardcode_shlibpath_var=no
10679       ;;
10680
10681     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10682     freebsd* | dragonfly*)
10683       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10684       hardcode_libdir_flag_spec='-R$libdir'
10685       hardcode_direct=yes
10686       hardcode_shlibpath_var=no
10687       ;;
10688
10689     hpux9*)
10690       if test "$GCC" = yes; then
10691         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10692       else
10693         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10694       fi
10695       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10696       hardcode_libdir_separator=:
10697       hardcode_direct=yes
10698
10699       # hardcode_minus_L: Not really in the search PATH,
10700       # but as the default location of the library.
10701       hardcode_minus_L=yes
10702       export_dynamic_flag_spec='${wl}-E'
10703       ;;
10704
10705     hpux10*)
10706       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10707         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10708       else
10709         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10710       fi
10711       if test "$with_gnu_ld" = no; then
10712         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10713         hardcode_libdir_separator=:
10714         hardcode_direct=yes
10715         hardcode_direct_absolute=yes
10716         export_dynamic_flag_spec='${wl}-E'
10717         # hardcode_minus_L: Not really in the search PATH,
10718         # but as the default location of the library.
10719         hardcode_minus_L=yes
10720       fi
10721       ;;
10722
10723     hpux11*)
10724       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10725         case $host_cpu in
10726         hppa*64*)
10727           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10728           ;;
10729         ia64*)
10730           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10731           ;;
10732         *)
10733           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10734           ;;
10735         esac
10736       else
10737         case $host_cpu in
10738         hppa*64*)
10739           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10740           ;;
10741         ia64*)
10742           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10743           ;;
10744         *)
10745
10746           # Older versions of the 11.00 compiler do not understand -b yet
10747           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10748           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10749 $as_echo_n "checking if $CC understands -b... " >&6; }
10750 if ${lt_cv_prog_compiler__b+:} false; then :
10751   $as_echo_n "(cached) " >&6
10752 else
10753   lt_cv_prog_compiler__b=no
10754    save_LDFLAGS="$LDFLAGS"
10755    LDFLAGS="$LDFLAGS -b"
10756    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10758      # The linker can only warn and ignore the option if not recognized
10759      # So say no if there are warnings
10760      if test -s conftest.err; then
10761        # Append any errors to the config.log.
10762        cat conftest.err 1>&5
10763        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10765        if diff conftest.exp conftest.er2 >/dev/null; then
10766          lt_cv_prog_compiler__b=yes
10767        fi
10768      else
10769        lt_cv_prog_compiler__b=yes
10770      fi
10771    fi
10772    $RM -r conftest*
10773    LDFLAGS="$save_LDFLAGS"
10774
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10777 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10778
10779 if test x"$lt_cv_prog_compiler__b" = xyes; then
10780     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10781 else
10782     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10783 fi
10784
10785           ;;
10786         esac
10787       fi
10788       if test "$with_gnu_ld" = no; then
10789         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10790         hardcode_libdir_separator=:
10791
10792         case $host_cpu in
10793         hppa*64*|ia64*)
10794           hardcode_direct=no
10795           hardcode_shlibpath_var=no
10796           ;;
10797         *)
10798           hardcode_direct=yes
10799           hardcode_direct_absolute=yes
10800           export_dynamic_flag_spec='${wl}-E'
10801
10802           # hardcode_minus_L: Not really in the search PATH,
10803           # but as the default location of the library.
10804           hardcode_minus_L=yes
10805           ;;
10806         esac
10807       fi
10808       ;;
10809
10810     irix5* | irix6* | nonstopux*)
10811       if test "$GCC" = yes; then
10812         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'
10813         # Try to use the -exported_symbol ld option, if it does not
10814         # work, assume that -exports_file does not work either and
10815         # implicitly export all symbols.
10816         # This should be the same for all languages, so no per-tag cache variable.
10817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10818 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10819 if ${lt_cv_irix_exported_symbol+:} false; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   save_LDFLAGS="$LDFLAGS"
10823            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10824            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826 int foo (void) { return 0; }
10827 _ACEOF
10828 if ac_fn_c_try_link "$LINENO"; then :
10829   lt_cv_irix_exported_symbol=yes
10830 else
10831   lt_cv_irix_exported_symbol=no
10832 fi
10833 rm -f core conftest.err conftest.$ac_objext \
10834     conftest$ac_exeext conftest.$ac_ext
10835            LDFLAGS="$save_LDFLAGS"
10836 fi
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10838 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10839         if test "$lt_cv_irix_exported_symbol" = yes; then
10840           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'
10841         fi
10842       else
10843         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'
10844         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'
10845       fi
10846       archive_cmds_need_lc='no'
10847       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10848       hardcode_libdir_separator=:
10849       inherit_rpath=yes
10850       link_all_deplibs=yes
10851       ;;
10852
10853     netbsd* | netbsdelf*-gnu)
10854       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10855         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10856       else
10857         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10858       fi
10859       hardcode_libdir_flag_spec='-R$libdir'
10860       hardcode_direct=yes
10861       hardcode_shlibpath_var=no
10862       ;;
10863
10864     newsos6)
10865       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10866       hardcode_direct=yes
10867       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10868       hardcode_libdir_separator=:
10869       hardcode_shlibpath_var=no
10870       ;;
10871
10872     *nto* | *qnx*)
10873       ;;
10874
10875     openbsd*)
10876       if test -f /usr/libexec/ld.so; then
10877         hardcode_direct=yes
10878         hardcode_shlibpath_var=no
10879         hardcode_direct_absolute=yes
10880         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10881           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10882           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10883           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10884           export_dynamic_flag_spec='${wl}-E'
10885         else
10886           case $host_os in
10887            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10888              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10889              hardcode_libdir_flag_spec='-R$libdir'
10890              ;;
10891            *)
10892              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10894              ;;
10895           esac
10896         fi
10897       else
10898         ld_shlibs=no
10899       fi
10900       ;;
10901
10902     os2*)
10903       hardcode_libdir_flag_spec='-L$libdir'
10904       hardcode_minus_L=yes
10905       allow_undefined_flag=unsupported
10906       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10907       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10908       ;;
10909
10910     osf3*)
10911       if test "$GCC" = yes; then
10912         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10913         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'
10914       else
10915         allow_undefined_flag=' -expect_unresolved \*'
10916         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'
10917       fi
10918       archive_cmds_need_lc='no'
10919       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10920       hardcode_libdir_separator=:
10921       ;;
10922
10923     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10924       if test "$GCC" = yes; then
10925         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10926         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'
10927         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10928       else
10929         allow_undefined_flag=' -expect_unresolved \*'
10930         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'
10931         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~
10932         $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'
10933
10934         # Both c and cxx compiler support -rpath directly
10935         hardcode_libdir_flag_spec='-rpath $libdir'
10936       fi
10937       archive_cmds_need_lc='no'
10938       hardcode_libdir_separator=:
10939       ;;
10940
10941     solaris*)
10942       no_undefined_flag=' -z defs'
10943       if test "$GCC" = yes; then
10944         wlarc='${wl}'
10945         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10946         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10947           $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'
10948       else
10949         case `$CC -V 2>&1` in
10950         *"Compilers 5.0"*)
10951           wlarc=''
10952           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10954           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10955           ;;
10956         *)
10957           wlarc='${wl}'
10958           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10959           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10960           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10961           ;;
10962         esac
10963       fi
10964       hardcode_libdir_flag_spec='-R$libdir'
10965       hardcode_shlibpath_var=no
10966       case $host_os in
10967       solaris2.[0-5] | solaris2.[0-5].*) ;;
10968       *)
10969         # The compiler driver will combine and reorder linker options,
10970         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10971         # but is careful enough not to reorder.
10972         # Supported since Solaris 2.6 (maybe 2.5.1?)
10973         if test "$GCC" = yes; then
10974           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10975         else
10976           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10977         fi
10978         ;;
10979       esac
10980       link_all_deplibs=yes
10981       ;;
10982
10983     sunos4*)
10984       if test "x$host_vendor" = xsequent; then
10985         # Use $CC to link under sequent, because it throws in some extra .o
10986         # files that make .init and .fini sections work.
10987         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10988       else
10989         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10990       fi
10991       hardcode_libdir_flag_spec='-L$libdir'
10992       hardcode_direct=yes
10993       hardcode_minus_L=yes
10994       hardcode_shlibpath_var=no
10995       ;;
10996
10997     sysv4)
10998       case $host_vendor in
10999         sni)
11000           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11001           hardcode_direct=yes # is this really true???
11002         ;;
11003         siemens)
11004           ## LD is ld it makes a PLAMLIB
11005           ## CC just makes a GrossModule.
11006           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11007           reload_cmds='$CC -r -o $output$reload_objs'
11008           hardcode_direct=no
11009         ;;
11010         motorola)
11011           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11013         ;;
11014       esac
11015       runpath_var='LD_RUN_PATH'
11016       hardcode_shlibpath_var=no
11017       ;;
11018
11019     sysv4.3*)
11020       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11021       hardcode_shlibpath_var=no
11022       export_dynamic_flag_spec='-Bexport'
11023       ;;
11024
11025     sysv4*MP*)
11026       if test -d /usr/nec; then
11027         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11028         hardcode_shlibpath_var=no
11029         runpath_var=LD_RUN_PATH
11030         hardcode_runpath_var=yes
11031         ld_shlibs=yes
11032       fi
11033       ;;
11034
11035     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11036       no_undefined_flag='${wl}-z,text'
11037       archive_cmds_need_lc=no
11038       hardcode_shlibpath_var=no
11039       runpath_var='LD_RUN_PATH'
11040
11041       if test "$GCC" = yes; then
11042         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044       else
11045         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047       fi
11048       ;;
11049
11050     sysv5* | sco3.2v5* | sco5v6*)
11051       # Note: We can NOT use -z defs as we might desire, because we do not
11052       # link with -lc, and that would cause any symbols used from libc to
11053       # always be unresolved, which means just about no library would
11054       # ever link correctly.  If we're not using GNU ld we use -z text
11055       # though, which does catch some bad symbols but isn't as heavy-handed
11056       # as -z defs.
11057       no_undefined_flag='${wl}-z,text'
11058       allow_undefined_flag='${wl}-z,nodefs'
11059       archive_cmds_need_lc=no
11060       hardcode_shlibpath_var=no
11061       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11062       hardcode_libdir_separator=':'
11063       link_all_deplibs=yes
11064       export_dynamic_flag_spec='${wl}-Bexport'
11065       runpath_var='LD_RUN_PATH'
11066
11067       if test "$GCC" = yes; then
11068         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11069         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070       else
11071         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11073       fi
11074       ;;
11075
11076     uts4*)
11077       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11078       hardcode_libdir_flag_spec='-L$libdir'
11079       hardcode_shlibpath_var=no
11080       ;;
11081
11082     *)
11083       ld_shlibs=no
11084       ;;
11085     esac
11086
11087     if test x$host_vendor = xsni; then
11088       case $host in
11089       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11090         export_dynamic_flag_spec='${wl}-Blargedynsym'
11091         ;;
11092       esac
11093     fi
11094   fi
11095
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11097 $as_echo "$ld_shlibs" >&6; }
11098 test "$ld_shlibs" = no && can_build_shared=no
11099
11100 with_gnu_ld=$with_gnu_ld
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116 #
11117 # Do we need to explicitly link libc?
11118 #
11119 case "x$archive_cmds_need_lc" in
11120 x|xyes)
11121   # Assume -lc should be added
11122   archive_cmds_need_lc=yes
11123
11124   if test "$enable_shared" = yes && test "$GCC" = yes; then
11125     case $archive_cmds in
11126     *'~'*)
11127       # FIXME: we may have to deal with multi-command sequences.
11128       ;;
11129     '$CC '*)
11130       # Test whether the compiler implicitly links with -lc since on some
11131       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11132       # to ld, don't add -lc before -lgcc.
11133       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11134 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11135 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11136   $as_echo_n "(cached) " >&6
11137 else
11138   $RM conftest*
11139         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11140
11141         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11142   (eval $ac_compile) 2>&5
11143   ac_status=$?
11144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11145   test $ac_status = 0; } 2>conftest.err; then
11146           soname=conftest
11147           lib=conftest
11148           libobjs=conftest.$ac_objext
11149           deplibs=
11150           wl=$lt_prog_compiler_wl
11151           pic_flag=$lt_prog_compiler_pic
11152           compiler_flags=-v
11153           linker_flags=-v
11154           verstring=
11155           output_objdir=.
11156           libname=conftest
11157           lt_save_allow_undefined_flag=$allow_undefined_flag
11158           allow_undefined_flag=
11159           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11160   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11161   ac_status=$?
11162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11163   test $ac_status = 0; }
11164           then
11165             lt_cv_archive_cmds_need_lc=no
11166           else
11167             lt_cv_archive_cmds_need_lc=yes
11168           fi
11169           allow_undefined_flag=$lt_save_allow_undefined_flag
11170         else
11171           cat conftest.err 1>&5
11172         fi
11173         $RM conftest*
11174
11175 fi
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11177 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11178       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11179       ;;
11180     esac
11181   fi
11182   ;;
11183 esac
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
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
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11338
11339 if test "$GCC" = yes; then
11340   case $host_os in
11341     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11342     *) lt_awk_arg="/^libraries:/" ;;
11343   esac
11344   case $host_os in
11345     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11346     *) lt_sed_strip_eq="s,=/,/,g" ;;
11347   esac
11348   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11349   case $lt_search_path_spec in
11350   *\;*)
11351     # if the path contains ";" then we assume it to be the separator
11352     # otherwise default to the standard path separator (i.e. ":") - it is
11353     # assumed that no part of a normal pathname contains ";" but that should
11354     # okay in the real world where ";" in dirpaths is itself problematic.
11355     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11356     ;;
11357   *)
11358     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11359     ;;
11360   esac
11361   # Ok, now we have the path, separated by spaces, we can step through it
11362   # and add multilib dir if necessary.
11363   lt_tmp_lt_search_path_spec=
11364   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11365   for lt_sys_path in $lt_search_path_spec; do
11366     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11367       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11368     else
11369       test -d "$lt_sys_path" && \
11370         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11371     fi
11372   done
11373   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11374 BEGIN {RS=" "; FS="/|\n";} {
11375   lt_foo="";
11376   lt_count=0;
11377   for (lt_i = NF; lt_i > 0; lt_i--) {
11378     if ($lt_i != "" && $lt_i != ".") {
11379       if ($lt_i == "..") {
11380         lt_count++;
11381       } else {
11382         if (lt_count == 0) {
11383           lt_foo="/" $lt_i lt_foo;
11384         } else {
11385           lt_count--;
11386         }
11387       }
11388     }
11389   }
11390   if (lt_foo != "") { lt_freq[lt_foo]++; }
11391   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11392 }'`
11393   # AWK program above erroneously prepends '/' to C:/dos/paths
11394   # for these hosts.
11395   case $host_os in
11396     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11397       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11398   esac
11399   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11400 else
11401   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11402 fi
11403 library_names_spec=
11404 libname_spec='lib$name'
11405 soname_spec=
11406 shrext_cmds=".so"
11407 postinstall_cmds=
11408 postuninstall_cmds=
11409 finish_cmds=
11410 finish_eval=
11411 shlibpath_var=
11412 shlibpath_overrides_runpath=unknown
11413 version_type=none
11414 dynamic_linker="$host_os ld.so"
11415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11416 need_lib_prefix=unknown
11417 hardcode_into_libs=no
11418
11419 # when you set need_version to no, make sure it does not cause -set_version
11420 # flags to be left without arguments
11421 need_version=unknown
11422
11423 case $host_os in
11424 aix3*)
11425   version_type=linux # correct to gnu/linux during the next big refactor
11426   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11427   shlibpath_var=LIBPATH
11428
11429   # AIX 3 has no versioning support, so we append a major version to the name.
11430   soname_spec='${libname}${release}${shared_ext}$major'
11431   ;;
11432
11433 aix[4-9]*)
11434   version_type=linux # correct to gnu/linux during the next big refactor
11435   need_lib_prefix=no
11436   need_version=no
11437   hardcode_into_libs=yes
11438   if test "$host_cpu" = ia64; then
11439     # AIX 5 supports IA64
11440     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11441     shlibpath_var=LD_LIBRARY_PATH
11442   else
11443     # With GCC up to 2.95.x, collect2 would create an import file
11444     # for dependence libraries.  The import file would start with
11445     # the line `#! .'.  This would cause the generated library to
11446     # depend on `.', always an invalid library.  This was fixed in
11447     # development snapshots of GCC prior to 3.0.
11448     case $host_os in
11449       aix4 | aix4.[01] | aix4.[01].*)
11450       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11451            echo ' yes '
11452            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11453         :
11454       else
11455         can_build_shared=no
11456       fi
11457       ;;
11458     esac
11459     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11460     # soname into executable. Probably we can add versioning support to
11461     # collect2, so additional links can be useful in future.
11462     if test "$aix_use_runtimelinking" = yes; then
11463       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11464       # instead of lib<name>.a to let people know that these are not
11465       # typical AIX shared libraries.
11466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467     else
11468       # We preserve .a as extension for shared libraries through AIX4.2
11469       # and later when we are not doing run time linking.
11470       library_names_spec='${libname}${release}.a $libname.a'
11471       soname_spec='${libname}${release}${shared_ext}$major'
11472     fi
11473     shlibpath_var=LIBPATH
11474   fi
11475   ;;
11476
11477 amigaos*)
11478   case $host_cpu in
11479   powerpc)
11480     # Since July 2007 AmigaOS4 officially supports .so libraries.
11481     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483     ;;
11484   m68k)
11485     library_names_spec='$libname.ixlibrary $libname.a'
11486     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11487     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11488     ;;
11489   esac
11490   ;;
11491
11492 beos*)
11493   library_names_spec='${libname}${shared_ext}'
11494   dynamic_linker="$host_os ld.so"
11495   shlibpath_var=LIBRARY_PATH
11496   ;;
11497
11498 bsdi[45]*)
11499   version_type=linux # correct to gnu/linux during the next big refactor
11500   need_version=no
11501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502   soname_spec='${libname}${release}${shared_ext}$major'
11503   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11504   shlibpath_var=LD_LIBRARY_PATH
11505   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11506   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11507   # the default ld.so.conf also contains /usr/contrib/lib and
11508   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11509   # libtool to hard-code these into programs
11510   ;;
11511
11512 cygwin* | mingw* | pw32* | cegcc*)
11513   version_type=windows
11514   shrext_cmds=".dll"
11515   need_version=no
11516   need_lib_prefix=no
11517
11518   case $GCC,$cc_basename in
11519   yes,*)
11520     # gcc
11521     library_names_spec='$libname.dll.a'
11522     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11523     postinstall_cmds='base_file=`basename \${file}`~
11524       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11525       dldir=$destdir/`dirname \$dlpath`~
11526       test -d \$dldir || mkdir -p \$dldir~
11527       $install_prog $dir/$dlname \$dldir/$dlname~
11528       chmod a+x \$dldir/$dlname~
11529       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11530         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11531       fi'
11532     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11533       dlpath=$dir/\$dldll~
11534        $RM \$dlpath'
11535     shlibpath_overrides_runpath=yes
11536
11537     case $host_os in
11538     cygwin*)
11539       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11540       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11541
11542       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11543       ;;
11544     mingw* | cegcc*)
11545       # MinGW DLLs use traditional 'lib' prefix
11546       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11547       ;;
11548     pw32*)
11549       # pw32 DLLs use 'pw' prefix rather than 'lib'
11550       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11551       ;;
11552     esac
11553     dynamic_linker='Win32 ld.exe'
11554     ;;
11555
11556   *,cl*)
11557     # Native MSVC
11558     libname_spec='$name'
11559     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11560     library_names_spec='${libname}.dll.lib'
11561
11562     case $build_os in
11563     mingw*)
11564       sys_lib_search_path_spec=
11565       lt_save_ifs=$IFS
11566       IFS=';'
11567       for lt_path in $LIB
11568       do
11569         IFS=$lt_save_ifs
11570         # Let DOS variable expansion print the short 8.3 style file name.
11571         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11572         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11573       done
11574       IFS=$lt_save_ifs
11575       # Convert to MSYS style.
11576       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11577       ;;
11578     cygwin*)
11579       # Convert to unix form, then to dos form, then back to unix form
11580       # but this time dos style (no spaces!) so that the unix form looks
11581       # like /cygdrive/c/PROGRA~1:/cygdr...
11582       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11583       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11584       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11585       ;;
11586     *)
11587       sys_lib_search_path_spec="$LIB"
11588       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11589         # It is most probably a Windows format PATH.
11590         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11591       else
11592         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11593       fi
11594       # FIXME: find the short name or the path components, as spaces are
11595       # common. (e.g. "Program Files" -> "PROGRA~1")
11596       ;;
11597     esac
11598
11599     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11600     postinstall_cmds='base_file=`basename \${file}`~
11601       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11602       dldir=$destdir/`dirname \$dlpath`~
11603       test -d \$dldir || mkdir -p \$dldir~
11604       $install_prog $dir/$dlname \$dldir/$dlname'
11605     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11606       dlpath=$dir/\$dldll~
11607        $RM \$dlpath'
11608     shlibpath_overrides_runpath=yes
11609     dynamic_linker='Win32 link.exe'
11610     ;;
11611
11612   *)
11613     # Assume MSVC wrapper
11614     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11615     dynamic_linker='Win32 ld.exe'
11616     ;;
11617   esac
11618   # FIXME: first we should search . and the directory the executable is in
11619   shlibpath_var=PATH
11620   ;;
11621
11622 darwin* | rhapsody*)
11623   dynamic_linker="$host_os dyld"
11624   version_type=darwin
11625   need_lib_prefix=no
11626   need_version=no
11627   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11628   soname_spec='${libname}${release}${major}$shared_ext'
11629   shlibpath_overrides_runpath=yes
11630   shlibpath_var=DYLD_LIBRARY_PATH
11631   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11632
11633   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11634   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11635   ;;
11636
11637 dgux*)
11638   version_type=linux # correct to gnu/linux during the next big refactor
11639   need_lib_prefix=no
11640   need_version=no
11641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11642   soname_spec='${libname}${release}${shared_ext}$major'
11643   shlibpath_var=LD_LIBRARY_PATH
11644   ;;
11645
11646 freebsd* | dragonfly*)
11647   # DragonFly does not have aout.  When/if they implement a new
11648   # versioning mechanism, adjust this.
11649   if test -x /usr/bin/objformat; then
11650     objformat=`/usr/bin/objformat`
11651   else
11652     case $host_os in
11653     freebsd[23].*) objformat=aout ;;
11654     *) objformat=elf ;;
11655     esac
11656   fi
11657   version_type=freebsd-$objformat
11658   case $version_type in
11659     freebsd-elf*)
11660       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11661       need_version=no
11662       need_lib_prefix=no
11663       ;;
11664     freebsd-*)
11665       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11666       need_version=yes
11667       ;;
11668   esac
11669   shlibpath_var=LD_LIBRARY_PATH
11670   case $host_os in
11671   freebsd2.*)
11672     shlibpath_overrides_runpath=yes
11673     ;;
11674   freebsd3.[01]* | freebsdelf3.[01]*)
11675     shlibpath_overrides_runpath=yes
11676     hardcode_into_libs=yes
11677     ;;
11678   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11679   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11680     shlibpath_overrides_runpath=no
11681     hardcode_into_libs=yes
11682     ;;
11683   *) # from 4.6 on, and DragonFly
11684     shlibpath_overrides_runpath=yes
11685     hardcode_into_libs=yes
11686     ;;
11687   esac
11688   ;;
11689
11690 haiku*)
11691   version_type=linux # correct to gnu/linux during the next big refactor
11692   need_lib_prefix=no
11693   need_version=no
11694   dynamic_linker="$host_os runtime_loader"
11695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11696   soname_spec='${libname}${release}${shared_ext}$major'
11697   shlibpath_var=LIBRARY_PATH
11698   shlibpath_overrides_runpath=yes
11699   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11700   hardcode_into_libs=yes
11701   ;;
11702
11703 hpux9* | hpux10* | hpux11*)
11704   # Give a soname corresponding to the major version so that dld.sl refuses to
11705   # link against other versions.
11706   version_type=sunos
11707   need_lib_prefix=no
11708   need_version=no
11709   case $host_cpu in
11710   ia64*)
11711     shrext_cmds='.so'
11712     hardcode_into_libs=yes
11713     dynamic_linker="$host_os dld.so"
11714     shlibpath_var=LD_LIBRARY_PATH
11715     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717     soname_spec='${libname}${release}${shared_ext}$major'
11718     if test "X$HPUX_IA64_MODE" = X32; then
11719       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11720     else
11721       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11722     fi
11723     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11724     ;;
11725   hppa*64*)
11726     shrext_cmds='.sl'
11727     hardcode_into_libs=yes
11728     dynamic_linker="$host_os dld.sl"
11729     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732     soname_spec='${libname}${release}${shared_ext}$major'
11733     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11735     ;;
11736   *)
11737     shrext_cmds='.sl'
11738     dynamic_linker="$host_os dld.sl"
11739     shlibpath_var=SHLIB_PATH
11740     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742     soname_spec='${libname}${release}${shared_ext}$major'
11743     ;;
11744   esac
11745   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11746   postinstall_cmds='chmod 555 $lib'
11747   # or fails outright, so override atomically:
11748   install_override_mode=555
11749   ;;
11750
11751 interix[3-9]*)
11752   version_type=linux # correct to gnu/linux during the next big refactor
11753   need_lib_prefix=no
11754   need_version=no
11755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11756   soname_spec='${libname}${release}${shared_ext}$major'
11757   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11758   shlibpath_var=LD_LIBRARY_PATH
11759   shlibpath_overrides_runpath=no
11760   hardcode_into_libs=yes
11761   ;;
11762
11763 irix5* | irix6* | nonstopux*)
11764   case $host_os in
11765     nonstopux*) version_type=nonstopux ;;
11766     *)
11767         if test "$lt_cv_prog_gnu_ld" = yes; then
11768                 version_type=linux # correct to gnu/linux during the next big refactor
11769         else
11770                 version_type=irix
11771         fi ;;
11772   esac
11773   need_lib_prefix=no
11774   need_version=no
11775   soname_spec='${libname}${release}${shared_ext}$major'
11776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11777   case $host_os in
11778   irix5* | nonstopux*)
11779     libsuff= shlibsuff=
11780     ;;
11781   *)
11782     case $LD in # libtool.m4 will add one of these switches to LD
11783     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11784       libsuff= shlibsuff= libmagic=32-bit;;
11785     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11786       libsuff=32 shlibsuff=N32 libmagic=N32;;
11787     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11788       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11789     *) libsuff= shlibsuff= libmagic=never-match;;
11790     esac
11791     ;;
11792   esac
11793   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11794   shlibpath_overrides_runpath=no
11795   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11796   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11797   hardcode_into_libs=yes
11798   ;;
11799
11800 # No shared lib support for Linux oldld, aout, or coff.
11801 linux*oldld* | linux*aout* | linux*coff*)
11802   dynamic_linker=no
11803   ;;
11804
11805 # This must be glibc/ELF.
11806 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11807   version_type=linux # correct to gnu/linux during the next big refactor
11808   need_lib_prefix=no
11809   need_version=no
11810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811   soname_spec='${libname}${release}${shared_ext}$major'
11812   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11813   shlibpath_var=LD_LIBRARY_PATH
11814   shlibpath_overrides_runpath=no
11815
11816   # Some binutils ld are patched to set DT_RUNPATH
11817   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   lt_cv_shlibpath_overrides_runpath=no
11821     save_LDFLAGS=$LDFLAGS
11822     save_libdir=$libdir
11823     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11824          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11825     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h.  */
11827
11828 int
11829 main ()
11830 {
11831
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"; then :
11837   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11838   lt_cv_shlibpath_overrides_runpath=yes
11839 fi
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842     conftest$ac_exeext conftest.$ac_ext
11843     LDFLAGS=$save_LDFLAGS
11844     libdir=$save_libdir
11845
11846 fi
11847
11848   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11849
11850   # This implies no fast_install, which is unacceptable.
11851   # Some rework will be needed to allow for fast_install
11852   # before this can be enabled.
11853   hardcode_into_libs=yes
11854
11855   # Append ld.so.conf contents to the search path
11856   if test -f /etc/ld.so.conf; then
11857     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' ' '`
11858     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11859   fi
11860
11861   # We used to test for /lib/ld.so.1 and disable shared libraries on
11862   # powerpc, because MkLinux only supported shared libraries with the
11863   # GNU dynamic linker.  Since this was broken with cross compilers,
11864   # most powerpc-linux boxes support dynamic linking these days and
11865   # people can always --disable-shared, the test was removed, and we
11866   # assume the GNU/Linux dynamic linker is in use.
11867   dynamic_linker='GNU/Linux ld.so'
11868   ;;
11869
11870 netbsdelf*-gnu)
11871   version_type=linux
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   shlibpath_overrides_runpath=no
11878   hardcode_into_libs=yes
11879   dynamic_linker='NetBSD ld.elf_so'
11880   ;;
11881
11882 netbsd*)
11883   version_type=sunos
11884   need_lib_prefix=no
11885   need_version=no
11886   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11888     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11889     dynamic_linker='NetBSD (a.out) ld.so'
11890   else
11891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11892     soname_spec='${libname}${release}${shared_ext}$major'
11893     dynamic_linker='NetBSD ld.elf_so'
11894   fi
11895   shlibpath_var=LD_LIBRARY_PATH
11896   shlibpath_overrides_runpath=yes
11897   hardcode_into_libs=yes
11898   ;;
11899
11900 newsos6)
11901   version_type=linux # correct to gnu/linux during the next big refactor
11902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11903   shlibpath_var=LD_LIBRARY_PATH
11904   shlibpath_overrides_runpath=yes
11905   ;;
11906
11907 *nto* | *qnx*)
11908   version_type=qnx
11909   need_lib_prefix=no
11910   need_version=no
11911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11912   soname_spec='${libname}${release}${shared_ext}$major'
11913   shlibpath_var=LD_LIBRARY_PATH
11914   shlibpath_overrides_runpath=no
11915   hardcode_into_libs=yes
11916   dynamic_linker='ldqnx.so'
11917   ;;
11918
11919 openbsd*)
11920   version_type=sunos
11921   sys_lib_dlsearch_path_spec="/usr/lib"
11922   need_lib_prefix=no
11923   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11924   case $host_os in
11925     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11926     *)                          need_version=no  ;;
11927   esac
11928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11930   shlibpath_var=LD_LIBRARY_PATH
11931   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11932     case $host_os in
11933       openbsd2.[89] | openbsd2.[89].*)
11934         shlibpath_overrides_runpath=no
11935         ;;
11936       *)
11937         shlibpath_overrides_runpath=yes
11938         ;;
11939       esac
11940   else
11941     shlibpath_overrides_runpath=yes
11942   fi
11943   ;;
11944
11945 os2*)
11946   libname_spec='$name'
11947   shrext_cmds=".dll"
11948   need_lib_prefix=no
11949   library_names_spec='$libname${shared_ext} $libname.a'
11950   dynamic_linker='OS/2 ld.exe'
11951   shlibpath_var=LIBPATH
11952   ;;
11953
11954 osf3* | osf4* | osf5*)
11955   version_type=osf
11956   need_lib_prefix=no
11957   need_version=no
11958   soname_spec='${libname}${release}${shared_ext}$major'
11959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11960   shlibpath_var=LD_LIBRARY_PATH
11961   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11962   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11963   ;;
11964
11965 rdos*)
11966   dynamic_linker=no
11967   ;;
11968
11969 solaris*)
11970   version_type=linux # correct to gnu/linux during the next big refactor
11971   need_lib_prefix=no
11972   need_version=no
11973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974   soname_spec='${libname}${release}${shared_ext}$major'
11975   shlibpath_var=LD_LIBRARY_PATH
11976   shlibpath_overrides_runpath=yes
11977   hardcode_into_libs=yes
11978   # ldd complains unless libraries are executable
11979   postinstall_cmds='chmod +x $lib'
11980   ;;
11981
11982 sunos4*)
11983   version_type=sunos
11984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11985   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11986   shlibpath_var=LD_LIBRARY_PATH
11987   shlibpath_overrides_runpath=yes
11988   if test "$with_gnu_ld" = yes; then
11989     need_lib_prefix=no
11990   fi
11991   need_version=yes
11992   ;;
11993
11994 sysv4 | sysv4.3*)
11995   version_type=linux # correct to gnu/linux during the next big refactor
11996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997   soname_spec='${libname}${release}${shared_ext}$major'
11998   shlibpath_var=LD_LIBRARY_PATH
11999   case $host_vendor in
12000     sni)
12001       shlibpath_overrides_runpath=no
12002       need_lib_prefix=no
12003       runpath_var=LD_RUN_PATH
12004       ;;
12005     siemens)
12006       need_lib_prefix=no
12007       ;;
12008     motorola)
12009       need_lib_prefix=no
12010       need_version=no
12011       shlibpath_overrides_runpath=no
12012       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12013       ;;
12014   esac
12015   ;;
12016
12017 sysv4*MP*)
12018   if test -d /usr/nec ;then
12019     version_type=linux # correct to gnu/linux during the next big refactor
12020     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12021     soname_spec='$libname${shared_ext}.$major'
12022     shlibpath_var=LD_LIBRARY_PATH
12023   fi
12024   ;;
12025
12026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12027   version_type=freebsd-elf
12028   need_lib_prefix=no
12029   need_version=no
12030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12031   soname_spec='${libname}${release}${shared_ext}$major'
12032   shlibpath_var=LD_LIBRARY_PATH
12033   shlibpath_overrides_runpath=yes
12034   hardcode_into_libs=yes
12035   if test "$with_gnu_ld" = yes; then
12036     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12037   else
12038     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12039     case $host_os in
12040       sco3.2v5*)
12041         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12042         ;;
12043     esac
12044   fi
12045   sys_lib_dlsearch_path_spec='/usr/lib'
12046   ;;
12047
12048 tpf*)
12049   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12050   version_type=linux # correct to gnu/linux during the next big refactor
12051   need_lib_prefix=no
12052   need_version=no
12053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12054   shlibpath_var=LD_LIBRARY_PATH
12055   shlibpath_overrides_runpath=no
12056   hardcode_into_libs=yes
12057   ;;
12058
12059 uts4*)
12060   version_type=linux # correct to gnu/linux during the next big refactor
12061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062   soname_spec='${libname}${release}${shared_ext}$major'
12063   shlibpath_var=LD_LIBRARY_PATH
12064   ;;
12065
12066 *)
12067   dynamic_linker=no
12068   ;;
12069 esac
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12071 $as_echo "$dynamic_linker" >&6; }
12072 test "$dynamic_linker" = no && can_build_shared=no
12073
12074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12075 if test "$GCC" = yes; then
12076   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12077 fi
12078
12079 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12080   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12081 fi
12082 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12083   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12084 fi
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12178 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12179 hardcode_action=
12180 if test -n "$hardcode_libdir_flag_spec" ||
12181    test -n "$runpath_var" ||
12182    test "X$hardcode_automatic" = "Xyes" ; then
12183
12184   # We can hardcode non-existent directories.
12185   if test "$hardcode_direct" != no &&
12186      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12187      # have to relink, otherwise we might link with an installed library
12188      # when we should be linking with a yet-to-be-installed one
12189      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12190      test "$hardcode_minus_L" != no; then
12191     # Linking always hardcodes the temporary library directory.
12192     hardcode_action=relink
12193   else
12194     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12195     hardcode_action=immediate
12196   fi
12197 else
12198   # We cannot hardcode anything, or else we can only hardcode existing
12199   # directories.
12200   hardcode_action=unsupported
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12203 $as_echo "$hardcode_action" >&6; }
12204
12205 if test "$hardcode_action" = relink ||
12206    test "$inherit_rpath" = yes; then
12207   # Fast installation is not supported
12208   enable_fast_install=no
12209 elif test "$shlibpath_overrides_runpath" = yes ||
12210      test "$enable_shared" = no; then
12211   # Fast installation is not necessary
12212   enable_fast_install=needless
12213 fi
12214
12215
12216
12217
12218
12219
12220   if test "x$enable_dlopen" != xyes; then
12221   enable_dlopen=unknown
12222   enable_dlopen_self=unknown
12223   enable_dlopen_self_static=unknown
12224 else
12225   lt_cv_dlopen=no
12226   lt_cv_dlopen_libs=
12227
12228   case $host_os in
12229   beos*)
12230     lt_cv_dlopen="load_add_on"
12231     lt_cv_dlopen_libs=
12232     lt_cv_dlopen_self=yes
12233     ;;
12234
12235   mingw* | pw32* | cegcc*)
12236     lt_cv_dlopen="LoadLibrary"
12237     lt_cv_dlopen_libs=
12238     ;;
12239
12240   cygwin*)
12241     lt_cv_dlopen="dlopen"
12242     lt_cv_dlopen_libs=
12243     ;;
12244
12245   darwin*)
12246   # if libdl is installed we need to link against it
12247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12248 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12249 if ${ac_cv_lib_dl_dlopen+:} false; then :
12250   $as_echo_n "(cached) " >&6
12251 else
12252   ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-ldl  $LIBS"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h.  */
12256
12257 /* Override any GCC internal prototype to avoid an error.
12258    Use char because int might match the return type of a GCC
12259    builtin and then its argument prototype would still apply.  */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 char dlopen ();
12264 int
12265 main ()
12266 {
12267 return dlopen ();
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 if ac_fn_c_try_link "$LINENO"; then :
12273   ac_cv_lib_dl_dlopen=yes
12274 else
12275   ac_cv_lib_dl_dlopen=no
12276 fi
12277 rm -f core conftest.err conftest.$ac_objext \
12278     conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12282 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12283 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12284   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12285 else
12286
12287     lt_cv_dlopen="dyld"
12288     lt_cv_dlopen_libs=
12289     lt_cv_dlopen_self=yes
12290
12291 fi
12292
12293     ;;
12294
12295   *)
12296     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12297 if test "x$ac_cv_func_shl_load" = xyes; then :
12298   lt_cv_dlopen="shl_load"
12299 else
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12301 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12302 if ${ac_cv_lib_dld_shl_load+:} false; then :
12303   $as_echo_n "(cached) " >&6
12304 else
12305   ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-ldld  $LIBS"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h.  */
12309
12310 /* Override any GCC internal prototype to avoid an error.
12311    Use char because int might match the return type of a GCC
12312    builtin and then its argument prototype would still apply.  */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char shl_load ();
12317 int
12318 main ()
12319 {
12320 return shl_load ();
12321   ;
12322   return 0;
12323 }
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326   ac_cv_lib_dld_shl_load=yes
12327 else
12328   ac_cv_lib_dld_shl_load=no
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext \
12331     conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12335 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12336 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12337   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12338 else
12339   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12340 if test "x$ac_cv_func_dlopen" = xyes; then :
12341   lt_cv_dlopen="dlopen"
12342 else
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12345 if ${ac_cv_lib_dl_dlopen+:} false; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348   ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-ldl  $LIBS"
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h.  */
12352
12353 /* Override any GCC internal prototype to avoid an error.
12354    Use char because int might match the return type of a GCC
12355    builtin and then its argument prototype would still apply.  */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 char dlopen ();
12360 int
12361 main ()
12362 {
12363 return dlopen ();
12364   ;
12365   return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"; then :
12369   ac_cv_lib_dl_dlopen=yes
12370 else
12371   ac_cv_lib_dl_dlopen=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext \
12374     conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12379 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12381 else
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12383 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12384 if ${ac_cv_lib_svld_dlopen+:} false; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-lsvld  $LIBS"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h.  */
12391
12392 /* Override any GCC internal prototype to avoid an error.
12393    Use char because int might match the return type of a GCC
12394    builtin and then its argument prototype would still apply.  */
12395 #ifdef __cplusplus
12396 extern "C"
12397 #endif
12398 char dlopen ();
12399 int
12400 main ()
12401 {
12402 return dlopen ();
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 if ac_fn_c_try_link "$LINENO"; then :
12408   ac_cv_lib_svld_dlopen=yes
12409 else
12410   ac_cv_lib_svld_dlopen=no
12411 fi
12412 rm -f core conftest.err conftest.$ac_objext \
12413     conftest$ac_exeext conftest.$ac_ext
12414 LIBS=$ac_check_lib_save_LIBS
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12417 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12418 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12419   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12420 else
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12422 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12423 if ${ac_cv_lib_dld_dld_link+:} false; then :
12424   $as_echo_n "(cached) " >&6
12425 else
12426   ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-ldld  $LIBS"
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h.  */
12430
12431 /* Override any GCC internal prototype to avoid an error.
12432    Use char because int might match the return type of a GCC
12433    builtin and then its argument prototype would still apply.  */
12434 #ifdef __cplusplus
12435 extern "C"
12436 #endif
12437 char dld_link ();
12438 int
12439 main ()
12440 {
12441 return dld_link ();
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 if ac_fn_c_try_link "$LINENO"; then :
12447   ac_cv_lib_dld_dld_link=yes
12448 else
12449   ac_cv_lib_dld_dld_link=no
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext \
12452     conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12456 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12457 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12458   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12459 fi
12460
12461
12462 fi
12463
12464
12465 fi
12466
12467
12468 fi
12469
12470
12471 fi
12472
12473
12474 fi
12475
12476     ;;
12477   esac
12478
12479   if test "x$lt_cv_dlopen" != xno; then
12480     enable_dlopen=yes
12481   else
12482     enable_dlopen=no
12483   fi
12484
12485   case $lt_cv_dlopen in
12486   dlopen)
12487     save_CPPFLAGS="$CPPFLAGS"
12488     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12489
12490     save_LDFLAGS="$LDFLAGS"
12491     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12492
12493     save_LIBS="$LIBS"
12494     LIBS="$lt_cv_dlopen_libs $LIBS"
12495
12496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12497 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12498 if ${lt_cv_dlopen_self+:} false; then :
12499   $as_echo_n "(cached) " >&6
12500 else
12501           if test "$cross_compiling" = yes; then :
12502   lt_cv_dlopen_self=cross
12503 else
12504   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12505   lt_status=$lt_dlunknown
12506   cat > conftest.$ac_ext <<_LT_EOF
12507 #line $LINENO "configure"
12508 #include "confdefs.h"
12509
12510 #if HAVE_DLFCN_H
12511 #include <dlfcn.h>
12512 #endif
12513
12514 #include <stdio.h>
12515
12516 #ifdef RTLD_GLOBAL
12517 #  define LT_DLGLOBAL           RTLD_GLOBAL
12518 #else
12519 #  ifdef DL_GLOBAL
12520 #    define LT_DLGLOBAL         DL_GLOBAL
12521 #  else
12522 #    define LT_DLGLOBAL         0
12523 #  endif
12524 #endif
12525
12526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12527    find out it does not work in some platform. */
12528 #ifndef LT_DLLAZY_OR_NOW
12529 #  ifdef RTLD_LAZY
12530 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12531 #  else
12532 #    ifdef DL_LAZY
12533 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12534 #    else
12535 #      ifdef RTLD_NOW
12536 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12537 #      else
12538 #        ifdef DL_NOW
12539 #          define LT_DLLAZY_OR_NOW      DL_NOW
12540 #        else
12541 #          define LT_DLLAZY_OR_NOW      0
12542 #        endif
12543 #      endif
12544 #    endif
12545 #  endif
12546 #endif
12547
12548 /* When -fvisbility=hidden is used, assume the code has been annotated
12549    correspondingly for the symbols needed.  */
12550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12551 int fnord () __attribute__((visibility("default")));
12552 #endif
12553
12554 int fnord () { return 42; }
12555 int main ()
12556 {
12557   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12558   int status = $lt_dlunknown;
12559
12560   if (self)
12561     {
12562       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12563       else
12564         {
12565           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12566           else puts (dlerror ());
12567         }
12568       /* dlclose (self); */
12569     }
12570   else
12571     puts (dlerror ());
12572
12573   return status;
12574 }
12575 _LT_EOF
12576   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12577   (eval $ac_link) 2>&5
12578   ac_status=$?
12579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12580   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12581     (./conftest; exit; ) >&5 2>/dev/null
12582     lt_status=$?
12583     case x$lt_status in
12584       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12585       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12586       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12587     esac
12588   else :
12589     # compilation failed
12590     lt_cv_dlopen_self=no
12591   fi
12592 fi
12593 rm -fr conftest*
12594
12595
12596 fi
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12598 $as_echo "$lt_cv_dlopen_self" >&6; }
12599
12600     if test "x$lt_cv_dlopen_self" = xyes; then
12601       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12602       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12603 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12604 if ${lt_cv_dlopen_self_static+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607           if test "$cross_compiling" = yes; then :
12608   lt_cv_dlopen_self_static=cross
12609 else
12610   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12611   lt_status=$lt_dlunknown
12612   cat > conftest.$ac_ext <<_LT_EOF
12613 #line $LINENO "configure"
12614 #include "confdefs.h"
12615
12616 #if HAVE_DLFCN_H
12617 #include <dlfcn.h>
12618 #endif
12619
12620 #include <stdio.h>
12621
12622 #ifdef RTLD_GLOBAL
12623 #  define LT_DLGLOBAL           RTLD_GLOBAL
12624 #else
12625 #  ifdef DL_GLOBAL
12626 #    define LT_DLGLOBAL         DL_GLOBAL
12627 #  else
12628 #    define LT_DLGLOBAL         0
12629 #  endif
12630 #endif
12631
12632 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12633    find out it does not work in some platform. */
12634 #ifndef LT_DLLAZY_OR_NOW
12635 #  ifdef RTLD_LAZY
12636 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12637 #  else
12638 #    ifdef DL_LAZY
12639 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12640 #    else
12641 #      ifdef RTLD_NOW
12642 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12643 #      else
12644 #        ifdef DL_NOW
12645 #          define LT_DLLAZY_OR_NOW      DL_NOW
12646 #        else
12647 #          define LT_DLLAZY_OR_NOW      0
12648 #        endif
12649 #      endif
12650 #    endif
12651 #  endif
12652 #endif
12653
12654 /* When -fvisbility=hidden is used, assume the code has been annotated
12655    correspondingly for the symbols needed.  */
12656 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12657 int fnord () __attribute__((visibility("default")));
12658 #endif
12659
12660 int fnord () { return 42; }
12661 int main ()
12662 {
12663   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12664   int status = $lt_dlunknown;
12665
12666   if (self)
12667     {
12668       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12669       else
12670         {
12671           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12672           else puts (dlerror ());
12673         }
12674       /* dlclose (self); */
12675     }
12676   else
12677     puts (dlerror ());
12678
12679   return status;
12680 }
12681 _LT_EOF
12682   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12683   (eval $ac_link) 2>&5
12684   ac_status=$?
12685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12686   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12687     (./conftest; exit; ) >&5 2>/dev/null
12688     lt_status=$?
12689     case x$lt_status in
12690       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12691       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12692       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12693     esac
12694   else :
12695     # compilation failed
12696     lt_cv_dlopen_self_static=no
12697   fi
12698 fi
12699 rm -fr conftest*
12700
12701
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12704 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12705     fi
12706
12707     CPPFLAGS="$save_CPPFLAGS"
12708     LDFLAGS="$save_LDFLAGS"
12709     LIBS="$save_LIBS"
12710     ;;
12711   esac
12712
12713   case $lt_cv_dlopen_self in
12714   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12715   *) enable_dlopen_self=unknown ;;
12716   esac
12717
12718   case $lt_cv_dlopen_self_static in
12719   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12720   *) enable_dlopen_self_static=unknown ;;
12721   esac
12722 fi
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740 striplib=
12741 old_striplib=
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12743 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12744 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12745   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12746   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12748 $as_echo "yes" >&6; }
12749 else
12750 # FIXME - insert some real tests, host_os isn't really good enough
12751   case $host_os in
12752   darwin*)
12753     if test -n "$STRIP" ; then
12754       striplib="$STRIP -x"
12755       old_striplib="$STRIP -S"
12756       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12757 $as_echo "yes" >&6; }
12758     else
12759       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12761     fi
12762     ;;
12763   *)
12764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12766     ;;
12767   esac
12768 fi
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781   # Report which library types will actually be built
12782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12783 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12785 $as_echo "$can_build_shared" >&6; }
12786
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12788 $as_echo_n "checking whether to build shared libraries... " >&6; }
12789   test "$can_build_shared" = "no" && enable_shared=no
12790
12791   # On AIX, shared libraries and static libraries use the same namespace, and
12792   # are all built from PIC.
12793   case $host_os in
12794   aix3*)
12795     test "$enable_shared" = yes && enable_static=no
12796     if test -n "$RANLIB"; then
12797       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12798       postinstall_cmds='$RANLIB $lib'
12799     fi
12800     ;;
12801
12802   aix[4-9]*)
12803     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12804       test "$enable_shared" = yes && enable_static=no
12805     fi
12806     ;;
12807   esac
12808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12809 $as_echo "$enable_shared" >&6; }
12810
12811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12812 $as_echo_n "checking whether to build static libraries... " >&6; }
12813   # Make sure either enable_shared or enable_static is yes.
12814   test "$enable_shared" = yes || enable_static=yes
12815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12816 $as_echo "$enable_static" >&6; }
12817
12818
12819
12820
12821 fi
12822 ac_ext=c
12823 ac_cpp='$CPP $CPPFLAGS'
12824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12827
12828 CC="$lt_save_CC"
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844         ac_config_commands="$ac_config_commands libtool"
12845
12846
12847
12848
12849 # Only expand once:
12850
12851
12852
12853 ac_config_headers="$ac_config_headers config.h"
12854
12855
12856
12857 # Check $PATH for the following programs and append suitable options.
12858 ac_ext=c
12859 ac_cpp='$CPP $CPPFLAGS'
12860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12863 if test -n "$ac_tool_prefix"; then
12864   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if ${ac_cv_prog_CC+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   if test -n "$CC"; then
12872   ac_cv_prog_CC="$CC" # Let the user override the test.
12873 else
12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877   IFS=$as_save_IFS
12878   test -z "$as_dir" && as_dir=.
12879     for ac_exec_ext in '' $ac_executable_extensions; do
12880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12881     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883     break 2
12884   fi
12885 done
12886   done
12887 IFS=$as_save_IFS
12888
12889 fi
12890 fi
12891 CC=$ac_cv_prog_CC
12892 if test -n "$CC"; then
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12894 $as_echo "$CC" >&6; }
12895 else
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 $as_echo "no" >&6; }
12898 fi
12899
12900
12901 fi
12902 if test -z "$ac_cv_prog_CC"; then
12903   ac_ct_CC=$CC
12904   # Extract the first word of "gcc", so it can be a program name with args.
12905 set dummy gcc; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   if test -n "$ac_ct_CC"; then
12912   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917   IFS=$as_save_IFS
12918   test -z "$as_dir" && as_dir=.
12919     for ac_exec_ext in '' $ac_executable_extensions; do
12920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921     ac_cv_prog_ac_ct_CC="gcc"
12922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923     break 2
12924   fi
12925 done
12926   done
12927 IFS=$as_save_IFS
12928
12929 fi
12930 fi
12931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12932 if test -n "$ac_ct_CC"; then
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12934 $as_echo "$ac_ct_CC" >&6; }
12935 else
12936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938 fi
12939
12940   if test "x$ac_ct_CC" = x; then
12941     CC=""
12942   else
12943     case $cross_compiling:$ac_tool_warned in
12944 yes:)
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12947 ac_tool_warned=yes ;;
12948 esac
12949     CC=$ac_ct_CC
12950   fi
12951 else
12952   CC="$ac_cv_prog_CC"
12953 fi
12954
12955 if test -z "$CC"; then
12956           if test -n "$ac_tool_prefix"; then
12957     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12958 set dummy ${ac_tool_prefix}cc; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if ${ac_cv_prog_CC+:} false; then :
12962   $as_echo_n "(cached) " >&6
12963 else
12964   if test -n "$CC"; then
12965   ac_cv_prog_CC="$CC" # Let the user override the test.
12966 else
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12969 do
12970   IFS=$as_save_IFS
12971   test -z "$as_dir" && as_dir=.
12972     for ac_exec_ext in '' $ac_executable_extensions; do
12973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12974     ac_cv_prog_CC="${ac_tool_prefix}cc"
12975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12976     break 2
12977   fi
12978 done
12979   done
12980 IFS=$as_save_IFS
12981
12982 fi
12983 fi
12984 CC=$ac_cv_prog_CC
12985 if test -n "$CC"; then
12986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12987 $as_echo "$CC" >&6; }
12988 else
12989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12991 fi
12992
12993
12994   fi
12995 fi
12996 if test -z "$CC"; then
12997   # Extract the first word of "cc", so it can be a program name with args.
12998 set dummy cc; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_prog_CC+:} false; then :
13002   $as_echo_n "(cached) " >&6
13003 else
13004   if test -n "$CC"; then
13005   ac_cv_prog_CC="$CC" # Let the user override the test.
13006 else
13007   ac_prog_rejected=no
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011   IFS=$as_save_IFS
13012   test -z "$as_dir" && as_dir=.
13013     for ac_exec_ext in '' $ac_executable_extensions; do
13014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13016        ac_prog_rejected=yes
13017        continue
13018      fi
13019     ac_cv_prog_CC="cc"
13020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021     break 2
13022   fi
13023 done
13024   done
13025 IFS=$as_save_IFS
13026
13027 if test $ac_prog_rejected = yes; then
13028   # We found a bogon in the path, so make sure we never use it.
13029   set dummy $ac_cv_prog_CC
13030   shift
13031   if test $# != 0; then
13032     # We chose a different compiler from the bogus one.
13033     # However, it has the same basename, so the bogon will be chosen
13034     # first if we set CC to just the basename; use the full file name.
13035     shift
13036     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13037   fi
13038 fi
13039 fi
13040 fi
13041 CC=$ac_cv_prog_CC
13042 if test -n "$CC"; then
13043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13044 $as_echo "$CC" >&6; }
13045 else
13046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048 fi
13049
13050
13051 fi
13052 if test -z "$CC"; then
13053   if test -n "$ac_tool_prefix"; then
13054   for ac_prog in cl.exe
13055   do
13056     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059 $as_echo_n "checking for $ac_word... " >&6; }
13060 if ${ac_cv_prog_CC+:} false; then :
13061   $as_echo_n "(cached) " >&6
13062 else
13063   if test -n "$CC"; then
13064   ac_cv_prog_CC="$CC" # Let the user override the test.
13065 else
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069   IFS=$as_save_IFS
13070   test -z "$as_dir" && as_dir=.
13071     for ac_exec_ext in '' $ac_executable_extensions; do
13072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075     break 2
13076   fi
13077 done
13078   done
13079 IFS=$as_save_IFS
13080
13081 fi
13082 fi
13083 CC=$ac_cv_prog_CC
13084 if test -n "$CC"; then
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13086 $as_echo "$CC" >&6; }
13087 else
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091
13092
13093     test -n "$CC" && break
13094   done
13095 fi
13096 if test -z "$CC"; then
13097   ac_ct_CC=$CC
13098   for ac_prog in cl.exe
13099 do
13100   # Extract the first word of "$ac_prog", so it can be a program name with args.
13101 set dummy $ac_prog; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13105   $as_echo_n "(cached) " >&6
13106 else
13107   if test -n "$ac_ct_CC"; then
13108   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13109 else
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13112 do
13113   IFS=$as_save_IFS
13114   test -z "$as_dir" && as_dir=.
13115     for ac_exec_ext in '' $ac_executable_extensions; do
13116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117     ac_cv_prog_ac_ct_CC="$ac_prog"
13118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119     break 2
13120   fi
13121 done
13122   done
13123 IFS=$as_save_IFS
13124
13125 fi
13126 fi
13127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13128 if test -n "$ac_ct_CC"; then
13129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13130 $as_echo "$ac_ct_CC" >&6; }
13131 else
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13134 fi
13135
13136
13137   test -n "$ac_ct_CC" && break
13138 done
13139
13140   if test "x$ac_ct_CC" = x; then
13141     CC=""
13142   else
13143     case $cross_compiling:$ac_tool_warned in
13144 yes:)
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13147 ac_tool_warned=yes ;;
13148 esac
13149     CC=$ac_ct_CC
13150   fi
13151 fi
13152
13153 fi
13154
13155
13156 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13158 as_fn_error $? "no acceptable C compiler found in \$PATH
13159 See \`config.log' for more details" "$LINENO" 5; }
13160
13161 # Provide some information about the compiler.
13162 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13163 set X $ac_compile
13164 ac_compiler=$2
13165 for ac_option in --version -v -V -qversion; do
13166   { { ac_try="$ac_compiler $ac_option >&5"
13167 case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13172 $as_echo "$ac_try_echo"; } >&5
13173   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13174   ac_status=$?
13175   if test -s conftest.err; then
13176     sed '10a\
13177 ... rest of stderr output deleted ...
13178          10q' conftest.err >conftest.er1
13179     cat conftest.er1 >&5
13180   fi
13181   rm -f conftest.er1 conftest.err
13182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183   test $ac_status = 0; }
13184 done
13185
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13188 if ${ac_cv_c_compiler_gnu+:} false; then :
13189   $as_echo_n "(cached) " >&6
13190 else
13191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h.  */
13193
13194 int
13195 main ()
13196 {
13197 #ifndef __GNUC__
13198        choke me
13199 #endif
13200
13201   ;
13202   return 0;
13203 }
13204 _ACEOF
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206   ac_compiler_gnu=yes
13207 else
13208   ac_compiler_gnu=no
13209 fi
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13212
13213 fi
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13215 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13216 if test $ac_compiler_gnu = yes; then
13217   GCC=yes
13218 else
13219   GCC=
13220 fi
13221 ac_test_CFLAGS=${CFLAGS+set}
13222 ac_save_CFLAGS=$CFLAGS
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13224 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13225 if ${ac_cv_prog_cc_g+:} false; then :
13226   $as_echo_n "(cached) " >&6
13227 else
13228   ac_save_c_werror_flag=$ac_c_werror_flag
13229    ac_c_werror_flag=yes
13230    ac_cv_prog_cc_g=no
13231    CFLAGS="-g"
13232    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h.  */
13234
13235 int
13236 main ()
13237 {
13238
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_compile "$LINENO"; then :
13244   ac_cv_prog_cc_g=yes
13245 else
13246   CFLAGS=""
13247       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h.  */
13249
13250 int
13251 main ()
13252 {
13253
13254   ;
13255   return 0;
13256 }
13257 _ACEOF
13258 if ac_fn_c_try_compile "$LINENO"; then :
13259
13260 else
13261   ac_c_werror_flag=$ac_save_c_werror_flag
13262          CFLAGS="-g"
13263          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h.  */
13265
13266 int
13267 main ()
13268 {
13269
13270   ;
13271   return 0;
13272 }
13273 _ACEOF
13274 if ac_fn_c_try_compile "$LINENO"; then :
13275   ac_cv_prog_cc_g=yes
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282    ac_c_werror_flag=$ac_save_c_werror_flag
13283 fi
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13285 $as_echo "$ac_cv_prog_cc_g" >&6; }
13286 if test "$ac_test_CFLAGS" = set; then
13287   CFLAGS=$ac_save_CFLAGS
13288 elif test $ac_cv_prog_cc_g = yes; then
13289   if test "$GCC" = yes; then
13290     CFLAGS="-g -O2"
13291   else
13292     CFLAGS="-g"
13293   fi
13294 else
13295   if test "$GCC" = yes; then
13296     CFLAGS="-O2"
13297   else
13298     CFLAGS=
13299   fi
13300 fi
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13302 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13303 if ${ac_cv_prog_cc_c89+:} false; then :
13304   $as_echo_n "(cached) " >&6
13305 else
13306   ac_cv_prog_cc_c89=no
13307 ac_save_CC=$CC
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h.  */
13310 #include <stdarg.h>
13311 #include <stdio.h>
13312 struct stat;
13313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13314 struct buf { int x; };
13315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13316 static char *e (p, i)
13317      char **p;
13318      int i;
13319 {
13320   return p[i];
13321 }
13322 static char *f (char * (*g) (char **, int), char **p, ...)
13323 {
13324   char *s;
13325   va_list v;
13326   va_start (v,p);
13327   s = g (p, va_arg (v,int));
13328   va_end (v);
13329   return s;
13330 }
13331
13332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13333    function prototypes and stuff, but not '\xHH' hex character constants.
13334    These don't provoke an error unfortunately, instead are silently treated
13335    as 'x'.  The following induces an error, until -std is added to get
13336    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13337    array size at least.  It's necessary to write '\x00'==0 to get something
13338    that's true only with -std.  */
13339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13340
13341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13342    inside strings and character constants.  */
13343 #define FOO(x) 'x'
13344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13345
13346 int test (int i, double x);
13347 struct s1 {int (*f) (int a);};
13348 struct s2 {int (*f) (double a);};
13349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13350 int argc;
13351 char **argv;
13352 int
13353 main ()
13354 {
13355 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13361         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13362 do
13363   CC="$ac_save_CC $ac_arg"
13364   if ac_fn_c_try_compile "$LINENO"; then :
13365   ac_cv_prog_cc_c89=$ac_arg
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext
13368   test "x$ac_cv_prog_cc_c89" != "xno" && break
13369 done
13370 rm -f conftest.$ac_ext
13371 CC=$ac_save_CC
13372
13373 fi
13374 # AC_CACHE_VAL
13375 case "x$ac_cv_prog_cc_c89" in
13376   x)
13377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13378 $as_echo "none needed" >&6; } ;;
13379   xno)
13380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13381 $as_echo "unsupported" >&6; } ;;
13382   *)
13383     CC="$CC $ac_cv_prog_cc_c89"
13384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13386 esac
13387 if test "x$ac_cv_prog_cc_c89" != xno; then :
13388
13389 fi
13390
13391 ac_ext=c
13392 ac_cpp='$CPP $CPPFLAGS'
13393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13396
13397 ac_ext=c
13398 ac_cpp='$CPP $CPPFLAGS'
13399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13403 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13404 if ${am_cv_prog_cc_c_o+:} false; then :
13405   $as_echo_n "(cached) " >&6
13406 else
13407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h.  */
13409
13410 int
13411 main ()
13412 {
13413
13414   ;
13415   return 0;
13416 }
13417 _ACEOF
13418   # Make sure it works both with $CC and with simple cc.
13419   # Following AC_PROG_CC_C_O, we do the test twice because some
13420   # compilers refuse to overwrite an existing .o file with -o,
13421   # though they will create one.
13422   am_cv_prog_cc_c_o=yes
13423   for am_i in 1 2; do
13424     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13425    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13426    ac_status=$?
13427    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428    (exit $ac_status); } \
13429          && test -f conftest2.$ac_objext; then
13430       : OK
13431     else
13432       am_cv_prog_cc_c_o=no
13433       break
13434     fi
13435   done
13436   rm -f core conftest*
13437   unset am_i
13438 fi
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13440 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13441 if test "$am_cv_prog_cc_c_o" != yes; then
13442    # Losing compiler, so override with the script.
13443    # FIXME: It is wrong to rewrite CC.
13444    # But if we don't then we get into trouble of one sort or another.
13445    # A longer-term fix would be to have automake use am__CC in this case,
13446    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13447    CC="$am_aux_dir/compile $CC"
13448 fi
13449 ac_ext=c
13450 ac_cpp='$CPP $CPPFLAGS'
13451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13454
13455
13456 depcc="$CC"   am_compiler_list=
13457
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13459 $as_echo_n "checking dependency style of $depcc... " >&6; }
13460 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13461   $as_echo_n "(cached) " >&6
13462 else
13463   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13464   # We make a subdir and do the tests there.  Otherwise we can end up
13465   # making bogus files that we don't know about and never remove.  For
13466   # instance it was reported that on HP-UX the gcc test will end up
13467   # making a dummy file named 'D' -- because '-MD' means "put the output
13468   # in D".
13469   rm -rf conftest.dir
13470   mkdir conftest.dir
13471   # Copy depcomp to subdir because otherwise we won't find it if we're
13472   # using a relative directory.
13473   cp "$am_depcomp" conftest.dir
13474   cd conftest.dir
13475   # We will build objects and dependencies in a subdirectory because
13476   # it helps to detect inapplicable dependency modes.  For instance
13477   # both Tru64's cc and ICC support -MD to output dependencies as a
13478   # side effect of compilation, but ICC will put the dependencies in
13479   # the current directory while Tru64 will put them in the object
13480   # directory.
13481   mkdir sub
13482
13483   am_cv_CC_dependencies_compiler_type=none
13484   if test "$am_compiler_list" = ""; then
13485      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13486   fi
13487   am__universal=false
13488   case " $depcc " in #(
13489      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13490      esac
13491
13492   for depmode in $am_compiler_list; do
13493     # Setup a source with many dependencies, because some compilers
13494     # like to wrap large dependency lists on column 80 (with \), and
13495     # we should not choose a depcomp mode which is confused by this.
13496     #
13497     # We need to recreate these files for each test, as the compiler may
13498     # overwrite some of them when testing with obscure command lines.
13499     # This happens at least with the AIX C compiler.
13500     : > sub/conftest.c
13501     for i in 1 2 3 4 5 6; do
13502       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13503       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13504       # Solaris 10 /bin/sh.
13505       echo '/* dummy */' > sub/conftst$i.h
13506     done
13507     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13508
13509     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13510     # mode.  It turns out that the SunPro C++ compiler does not properly
13511     # handle '-M -o', and we need to detect this.  Also, some Intel
13512     # versions had trouble with output in subdirs.
13513     am__obj=sub/conftest.${OBJEXT-o}
13514     am__minus_obj="-o $am__obj"
13515     case $depmode in
13516     gcc)
13517       # This depmode causes a compiler race in universal mode.
13518       test "$am__universal" = false || continue
13519       ;;
13520     nosideeffect)
13521       # After this tag, mechanisms are not by side-effect, so they'll
13522       # only be used when explicitly requested.
13523       if test "x$enable_dependency_tracking" = xyes; then
13524         continue
13525       else
13526         break
13527       fi
13528       ;;
13529     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13530       # This compiler won't grok '-c -o', but also, the minuso test has
13531       # not run yet.  These depmodes are late enough in the game, and
13532       # so weak that their functioning should not be impacted.
13533       am__obj=conftest.${OBJEXT-o}
13534       am__minus_obj=
13535       ;;
13536     none) break ;;
13537     esac
13538     if depmode=$depmode \
13539        source=sub/conftest.c object=$am__obj \
13540        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13541        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13542          >/dev/null 2>conftest.err &&
13543        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13544        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13545        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13546        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13547       # icc doesn't choke on unknown options, it will just issue warnings
13548       # or remarks (even with -Werror).  So we grep stderr for any message
13549       # that says an option was ignored or not supported.
13550       # When given -MP, icc 7.0 and 7.1 complain thusly:
13551       #   icc: Command line warning: ignoring option '-M'; no argument required
13552       # The diagnosis changed in icc 8.0:
13553       #   icc: Command line remark: option '-MP' not supported
13554       if (grep 'ignoring option' conftest.err ||
13555           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13556         am_cv_CC_dependencies_compiler_type=$depmode
13557         break
13558       fi
13559     fi
13560   done
13561
13562   cd ..
13563   rm -rf conftest.dir
13564 else
13565   am_cv_CC_dependencies_compiler_type=none
13566 fi
13567
13568 fi
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13570 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13571 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13572
13573  if
13574   test "x$enable_dependency_tracking" != xno \
13575   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13576   am__fastdepCC_TRUE=
13577   am__fastdepCC_FALSE='#'
13578 else
13579   am__fastdepCC_TRUE='#'
13580   am__fastdepCC_FALSE=
13581 fi
13582
13583
13584
13585
13586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13587 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13588 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13589   $as_echo_n "(cached) " >&6
13590 else
13591
13592       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h.  */
13594
13595 #ifdef __ACK__
13596 Amsterdam
13597 #endif
13598
13599 _ACEOF
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601   $EGREP "Amsterdam" >/dev/null 2>&1; then :
13602   gl_cv_c_amsterdam_compiler=yes
13603 else
13604   gl_cv_c_amsterdam_compiler=no
13605 fi
13606 rm -f conftest*
13607
13608
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13611 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13612   if test -z "$AR"; then
13613     if test $gl_cv_c_amsterdam_compiler = yes; then
13614       AR='cc -c.a'
13615       if test -z "$ARFLAGS"; then
13616         ARFLAGS='-o'
13617       fi
13618     else
13619                   if test -n "$ac_tool_prefix"; then
13620   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13621 set dummy ${ac_tool_prefix}ar; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if ${ac_cv_prog_AR+:} false; then :
13625   $as_echo_n "(cached) " >&6
13626 else
13627   if test -n "$AR"; then
13628   ac_cv_prog_AR="$AR" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13632 do
13633   IFS=$as_save_IFS
13634   test -z "$as_dir" && as_dir=.
13635     for ac_exec_ext in '' $ac_executable_extensions; do
13636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637     ac_cv_prog_AR="${ac_tool_prefix}ar"
13638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639     break 2
13640   fi
13641 done
13642   done
13643 IFS=$as_save_IFS
13644
13645 fi
13646 fi
13647 AR=$ac_cv_prog_AR
13648 if test -n "$AR"; then
13649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13650 $as_echo "$AR" >&6; }
13651 else
13652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654 fi
13655
13656
13657 fi
13658 if test -z "$ac_cv_prog_AR"; then
13659   ac_ct_AR=$AR
13660   # Extract the first word of "ar", so it can be a program name with args.
13661 set dummy ar; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663 $as_echo_n "checking for $ac_word... " >&6; }
13664 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13665   $as_echo_n "(cached) " >&6
13666 else
13667   if test -n "$ac_ct_AR"; then
13668   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13669 else
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13672 do
13673   IFS=$as_save_IFS
13674   test -z "$as_dir" && as_dir=.
13675     for ac_exec_ext in '' $ac_executable_extensions; do
13676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13677     ac_cv_prog_ac_ct_AR="ar"
13678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13679     break 2
13680   fi
13681 done
13682   done
13683 IFS=$as_save_IFS
13684
13685 fi
13686 fi
13687 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13688 if test -n "$ac_ct_AR"; then
13689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13690 $as_echo "$ac_ct_AR" >&6; }
13691 else
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13694 fi
13695
13696   if test "x$ac_ct_AR" = x; then
13697     AR="ar"
13698   else
13699     case $cross_compiling:$ac_tool_warned in
13700 yes:)
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13703 ac_tool_warned=yes ;;
13704 esac
13705     AR=$ac_ct_AR
13706   fi
13707 else
13708   AR="$ac_cv_prog_AR"
13709 fi
13710
13711       if test -z "$ARFLAGS"; then
13712         ARFLAGS='cru'
13713       fi
13714     fi
13715   else
13716     if test -z "$ARFLAGS"; then
13717       ARFLAGS='cru'
13718     fi
13719   fi
13720
13721
13722   if test -z "$RANLIB"; then
13723     if test $gl_cv_c_amsterdam_compiler = yes; then
13724       RANLIB=':'
13725     else
13726             if test -n "$ac_tool_prefix"; then
13727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730 $as_echo_n "checking for $ac_word... " >&6; }
13731 if ${ac_cv_prog_RANLIB+:} false; then :
13732   $as_echo_n "(cached) " >&6
13733 else
13734   if test -n "$RANLIB"; then
13735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13736 else
13737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738 for as_dir in $PATH
13739 do
13740   IFS=$as_save_IFS
13741   test -z "$as_dir" && as_dir=.
13742     for ac_exec_ext in '' $ac_executable_extensions; do
13743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13746     break 2
13747   fi
13748 done
13749   done
13750 IFS=$as_save_IFS
13751
13752 fi
13753 fi
13754 RANLIB=$ac_cv_prog_RANLIB
13755 if test -n "$RANLIB"; then
13756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13757 $as_echo "$RANLIB" >&6; }
13758 else
13759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760 $as_echo "no" >&6; }
13761 fi
13762
13763
13764 fi
13765 if test -z "$ac_cv_prog_RANLIB"; then
13766   ac_ct_RANLIB=$RANLIB
13767   # Extract the first word of "ranlib", so it can be a program name with args.
13768 set dummy ranlib; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13772   $as_echo_n "(cached) " >&6
13773 else
13774   if test -n "$ac_ct_RANLIB"; then
13775   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13776 else
13777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13778 for as_dir in $PATH
13779 do
13780   IFS=$as_save_IFS
13781   test -z "$as_dir" && as_dir=.
13782     for ac_exec_ext in '' $ac_executable_extensions; do
13783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13784     ac_cv_prog_ac_ct_RANLIB="ranlib"
13785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13786     break 2
13787   fi
13788 done
13789   done
13790 IFS=$as_save_IFS
13791
13792 fi
13793 fi
13794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13795 if test -n "$ac_ct_RANLIB"; then
13796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13797 $as_echo "$ac_ct_RANLIB" >&6; }
13798 else
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800 $as_echo "no" >&6; }
13801 fi
13802
13803   if test "x$ac_ct_RANLIB" = x; then
13804     RANLIB=":"
13805   else
13806     case $cross_compiling:$ac_tool_warned in
13807 yes:)
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13810 ac_tool_warned=yes ;;
13811 esac
13812     RANLIB=$ac_ct_RANLIB
13813   fi
13814 else
13815   RANLIB="$ac_cv_prog_RANLIB"
13816 fi
13817
13818     fi
13819   fi
13820
13821
13822
13823
13824
13825
13826
13827
13828 # Check whether --enable-largefile was given.
13829 if test "${enable_largefile+set}" = set; then :
13830   enableval=$enable_largefile;
13831 fi
13832
13833 if test "$enable_largefile" != no; then
13834
13835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13836 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13837 if ${ac_cv_sys_largefile_CC+:} false; then :
13838   $as_echo_n "(cached) " >&6
13839 else
13840   ac_cv_sys_largefile_CC=no
13841      if test "$GCC" != yes; then
13842        ac_save_CC=$CC
13843        while :; do
13844          # IRIX 6.2 and later do not support large files by default,
13845          # so use the C compiler's -n32 option if that helps.
13846          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h.  */
13848 #include <sys/types.h>
13849  /* Check that off_t can represent 2**63 - 1 correctly.
13850     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13851     since some C++ compilers masquerading as C compilers
13852     incorrectly reject 9223372036854775807.  */
13853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13854   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13855                        && LARGE_OFF_T % 2147483647 == 1)
13856                       ? 1 : -1];
13857 int
13858 main ()
13859 {
13860
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865          if ac_fn_c_try_compile "$LINENO"; then :
13866   break
13867 fi
13868 rm -f core conftest.err conftest.$ac_objext
13869          CC="$CC -n32"
13870          if ac_fn_c_try_compile "$LINENO"; then :
13871   ac_cv_sys_largefile_CC=' -n32'; break
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext
13874          break
13875        done
13876        CC=$ac_save_CC
13877        rm -f conftest.$ac_ext
13878     fi
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13881 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13882   if test "$ac_cv_sys_largefile_CC" != no; then
13883     CC=$CC$ac_cv_sys_largefile_CC
13884   fi
13885
13886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13887 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13888 if ${ac_cv_sys_file_offset_bits+:} false; then :
13889   $as_echo_n "(cached) " >&6
13890 else
13891   while :; do
13892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h.  */
13894 #include <sys/types.h>
13895  /* Check that off_t can represent 2**63 - 1 correctly.
13896     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13897     since some C++ compilers masquerading as C compilers
13898     incorrectly reject 9223372036854775807.  */
13899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13900   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13901                        && LARGE_OFF_T % 2147483647 == 1)
13902                       ? 1 : -1];
13903 int
13904 main ()
13905 {
13906
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"; then :
13912   ac_cv_sys_file_offset_bits=no; break
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h.  */
13917 #define _FILE_OFFSET_BITS 64
13918 #include <sys/types.h>
13919  /* Check that off_t can represent 2**63 - 1 correctly.
13920     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13921     since some C++ compilers masquerading as C compilers
13922     incorrectly reject 9223372036854775807.  */
13923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13924   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13925                        && LARGE_OFF_T % 2147483647 == 1)
13926                       ? 1 : -1];
13927 int
13928 main ()
13929 {
13930
13931   ;
13932   return 0;
13933 }
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936   ac_cv_sys_file_offset_bits=64; break
13937 fi
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939   ac_cv_sys_file_offset_bits=unknown
13940   break
13941 done
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13944 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13945 case $ac_cv_sys_file_offset_bits in #(
13946   no | unknown) ;;
13947   *)
13948 cat >>confdefs.h <<_ACEOF
13949 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13950 _ACEOF
13951 ;;
13952 esac
13953 rm -rf conftest*
13954   if test $ac_cv_sys_file_offset_bits = unknown; then
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13956 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13957 if ${ac_cv_sys_large_files+:} false; then :
13958   $as_echo_n "(cached) " >&6
13959 else
13960   while :; do
13961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h.  */
13963 #include <sys/types.h>
13964  /* Check that off_t can represent 2**63 - 1 correctly.
13965     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13966     since some C++ compilers masquerading as C compilers
13967     incorrectly reject 9223372036854775807.  */
13968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13969   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13970                        && LARGE_OFF_T % 2147483647 == 1)
13971                       ? 1 : -1];
13972 int
13973 main ()
13974 {
13975
13976   ;
13977   return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"; then :
13981   ac_cv_sys_large_files=no; break
13982 fi
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h.  */
13986 #define _LARGE_FILES 1
13987 #include <sys/types.h>
13988  /* Check that off_t can represent 2**63 - 1 correctly.
13989     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13990     since some C++ compilers masquerading as C compilers
13991     incorrectly reject 9223372036854775807.  */
13992 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13993   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13994                        && LARGE_OFF_T % 2147483647 == 1)
13995                       ? 1 : -1];
13996 int
13997 main ()
13998 {
13999
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 if ac_fn_c_try_compile "$LINENO"; then :
14005   ac_cv_sys_large_files=1; break
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008   ac_cv_sys_large_files=unknown
14009   break
14010 done
14011 fi
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14013 $as_echo "$ac_cv_sys_large_files" >&6; }
14014 case $ac_cv_sys_large_files in #(
14015   no | unknown) ;;
14016   *)
14017 cat >>confdefs.h <<_ACEOF
14018 #define _LARGE_FILES $ac_cv_sys_large_files
14019 _ACEOF
14020 ;;
14021 esac
14022 rm -rf conftest*
14023   fi
14024
14025
14026 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
14027
14028 fi
14029
14030    case $ac_cv_prog_cc_stdc in #(
14031   no) :
14032     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14033   *) :
14034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14035 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14036 if ${ac_cv_prog_cc_c99+:} false; then :
14037   $as_echo_n "(cached) " >&6
14038 else
14039   ac_cv_prog_cc_c99=no
14040 ac_save_CC=$CC
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h.  */
14043 #include <stdarg.h>
14044 #include <stdbool.h>
14045 #include <stdlib.h>
14046 #include <wchar.h>
14047 #include <stdio.h>
14048
14049 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14050 #define debug(...) fprintf (stderr, __VA_ARGS__)
14051 #define showlist(...) puts (#__VA_ARGS__)
14052 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14053 static void
14054 test_varargs_macros (void)
14055 {
14056   int x = 1234;
14057   int y = 5678;
14058   debug ("Flag");
14059   debug ("X = %d\n", x);
14060   showlist (The first, second, and third items.);
14061   report (x>y, "x is %d but y is %d", x, y);
14062 }
14063
14064 // Check long long types.
14065 #define BIG64 18446744073709551615ull
14066 #define BIG32 4294967295ul
14067 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14068 #if !BIG_OK
14069   your preprocessor is broken;
14070 #endif
14071 #if BIG_OK
14072 #else
14073   your preprocessor is broken;
14074 #endif
14075 static long long int bignum = -9223372036854775807LL;
14076 static unsigned long long int ubignum = BIG64;
14077
14078 struct incomplete_array
14079 {
14080   int datasize;
14081   double data[];
14082 };
14083
14084 struct named_init {
14085   int number;
14086   const wchar_t *name;
14087   double average;
14088 };
14089
14090 typedef const char *ccp;
14091
14092 static inline int
14093 test_restrict (ccp restrict text)
14094 {
14095   // See if C++-style comments work.
14096   // Iterate through items via the restricted pointer.
14097   // Also check for declarations in for loops.
14098   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14099     continue;
14100   return 0;
14101 }
14102
14103 // Check varargs and va_copy.
14104 static void
14105 test_varargs (const char *format, ...)
14106 {
14107   va_list args;
14108   va_start (args, format);
14109   va_list args_copy;
14110   va_copy (args_copy, args);
14111
14112   const char *str;
14113   int number;
14114   float fnumber;
14115
14116   while (*format)
14117     {
14118       switch (*format++)
14119         {
14120         case 's': // string
14121           str = va_arg (args_copy, const char *);
14122           break;
14123         case 'd': // int
14124           number = va_arg (args_copy, int);
14125           break;
14126         case 'f': // float
14127           fnumber = va_arg (args_copy, double);
14128           break;
14129         default:
14130           break;
14131         }
14132     }
14133   va_end (args_copy);
14134   va_end (args);
14135 }
14136
14137 int
14138 main ()
14139 {
14140
14141   // Check bool.
14142   _Bool success = false;
14143
14144   // Check restrict.
14145   if (test_restrict ("String literal") == 0)
14146     success = true;
14147   char *restrict newvar = "Another string";
14148
14149   // Check varargs.
14150   test_varargs ("s, d' f .", "string", 65, 34.234);
14151   test_varargs_macros ();
14152
14153   // Check flexible array members.
14154   struct incomplete_array *ia =
14155     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14156   ia->datasize = 10;
14157   for (int i = 0; i < ia->datasize; ++i)
14158     ia->data[i] = i * 1.234;
14159
14160   // Check named initializers.
14161   struct named_init ni = {
14162     .number = 34,
14163     .name = L"Test wide string",
14164     .average = 543.34343,
14165   };
14166
14167   ni.number = 58;
14168
14169   int dynamic_array[ni.number];
14170   dynamic_array[ni.number - 1] = 543;
14171
14172   // work around unused variable warnings
14173   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14174           || dynamic_array[ni.number - 1] != 543);
14175
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14181 do
14182   CC="$ac_save_CC $ac_arg"
14183   if ac_fn_c_try_compile "$LINENO"; then :
14184   ac_cv_prog_cc_c99=$ac_arg
14185 fi
14186 rm -f core conftest.err conftest.$ac_objext
14187   test "x$ac_cv_prog_cc_c99" != "xno" && break
14188 done
14189 rm -f conftest.$ac_ext
14190 CC=$ac_save_CC
14191
14192 fi
14193 # AC_CACHE_VAL
14194 case "x$ac_cv_prog_cc_c99" in
14195   x)
14196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14197 $as_echo "none needed" >&6; } ;;
14198   xno)
14199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14200 $as_echo "unsupported" >&6; } ;;
14201   *)
14202     CC="$CC $ac_cv_prog_cc_c99"
14203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14204 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14205 esac
14206 if test "x$ac_cv_prog_cc_c99" != xno; then :
14207   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14208 else
14209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14210 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14211 if ${ac_cv_prog_cc_c89+:} false; then :
14212   $as_echo_n "(cached) " >&6
14213 else
14214   ac_cv_prog_cc_c89=no
14215 ac_save_CC=$CC
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h.  */
14218 #include <stdarg.h>
14219 #include <stdio.h>
14220 struct stat;
14221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14222 struct buf { int x; };
14223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14224 static char *e (p, i)
14225      char **p;
14226      int i;
14227 {
14228   return p[i];
14229 }
14230 static char *f (char * (*g) (char **, int), char **p, ...)
14231 {
14232   char *s;
14233   va_list v;
14234   va_start (v,p);
14235   s = g (p, va_arg (v,int));
14236   va_end (v);
14237   return s;
14238 }
14239
14240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14241    function prototypes and stuff, but not '\xHH' hex character constants.
14242    These don't provoke an error unfortunately, instead are silently treated
14243    as 'x'.  The following induces an error, until -std is added to get
14244    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14245    array size at least.  It's necessary to write '\x00'==0 to get something
14246    that's true only with -std.  */
14247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14248
14249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14250    inside strings and character constants.  */
14251 #define FOO(x) 'x'
14252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14253
14254 int test (int i, double x);
14255 struct s1 {int (*f) (int a);};
14256 struct s2 {int (*f) (double a);};
14257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14258 int argc;
14259 char **argv;
14260 int
14261 main ()
14262 {
14263 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14269         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14270 do
14271   CC="$ac_save_CC $ac_arg"
14272   if ac_fn_c_try_compile "$LINENO"; then :
14273   ac_cv_prog_cc_c89=$ac_arg
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext
14276   test "x$ac_cv_prog_cc_c89" != "xno" && break
14277 done
14278 rm -f conftest.$ac_ext
14279 CC=$ac_save_CC
14280
14281 fi
14282 # AC_CACHE_VAL
14283 case "x$ac_cv_prog_cc_c89" in
14284   x)
14285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14286 $as_echo "none needed" >&6; } ;;
14287   xno)
14288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14289 $as_echo "unsupported" >&6; } ;;
14290   *)
14291     CC="$CC $ac_cv_prog_cc_c89"
14292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14294 esac
14295 if test "x$ac_cv_prog_cc_c89" != xno; then :
14296   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14297 else
14298   ac_cv_prog_cc_stdc=no
14299 fi
14300
14301 fi
14302  ;;
14303 esac
14304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14305 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14306   if ${ac_cv_prog_cc_stdc+:} false; then :
14307   $as_echo_n "(cached) " >&6
14308 fi
14309
14310   case $ac_cv_prog_cc_stdc in #(
14311   no) :
14312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14313 $as_echo "unsupported" >&6; } ;; #(
14314   '') :
14315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14316 $as_echo "none needed" >&6; } ;; #(
14317   *) :
14318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14319 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14320 esac
14321
14322
14323
14324
14325
14326
14327   # Check whether --enable-threads was given.
14328 if test "${enable_threads+set}" = set; then :
14329   enableval=$enable_threads; gl_use_threads=$enableval
14330 else
14331   if test -n "$gl_use_threads_default"; then
14332        gl_use_threads="$gl_use_threads_default"
14333      else
14334        case "$host_os" in
14335                                                                osf*) gl_use_threads=no ;;
14336          cygwin*)
14337                case `uname -r` in
14338                  1.[0-5].*) gl_use_threads=no ;;
14339                  *)         gl_use_threads=yes ;;
14340                esac
14341                ;;
14342          *)    gl_use_threads=yes ;;
14343        esac
14344      fi
14345
14346 fi
14347
14348   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14349     # For using <pthread.h>:
14350     case "$host_os" in
14351       osf*)
14352         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14353         # groks <pthread.h>. cc also understands the flag -pthread, but
14354         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14355         # 2. putting a flag into CPPFLAGS that has an effect on the linker
14356         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14357         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14358         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14359         ;;
14360     esac
14361     # Some systems optimize for single-threaded programs by default, and
14362     # need special flags to disable these optimizations. For example, the
14363     # definition of 'errno' in <errno.h>.
14364     case "$host_os" in
14365       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14366       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14367     esac
14368   fi
14369
14370
14371
14372
14373   # Code from module alloca-opt:
14374   # Code from module dirname:
14375   # Code from module dirname-lgpl:
14376   # Code from module dosname:
14377   # Code from module double-slash-root:
14378   # Code from module environ:
14379   # Code from module errno:
14380   # Code from module error:
14381   # Code from module exitfail:
14382   # Code from module extensions:
14383
14384   # Code from module extern-inline:
14385   # Code from module float:
14386   # Code from module full-write:
14387   # Code from module gettext-h:
14388   # Code from module gitlog-to-changelog:
14389   # Code from module gnupload:
14390   # Code from module havelib:
14391   # Code from module include_next:
14392   # Code from module intprops:
14393   # Code from module largefile:
14394
14395   # Code from module lib-ignore:
14396   # Code from module lock:
14397   # Code from module malloc-posix:
14398   # Code from module malloca:
14399   # Code from module memchr:
14400   # Code from module msvc-inval:
14401   # Code from module msvc-nothrow:
14402   # Code from module multiarch:
14403   # Code from module raise:
14404   # Code from module read:
14405   # Code from module safe-read:
14406   # Code from module safe-write:
14407   # Code from module setenv:
14408   # Code from module sigaction:
14409   # Code from module signal:
14410   # Code from module signal-h:
14411   # Code from module sigprocmask:
14412   # Code from module size_max:
14413   # Code from module snippet/_Noreturn:
14414   # Code from module snippet/arg-nonnull:
14415   # Code from module snippet/c++defs:
14416   # Code from module snippet/warn-on-use:
14417   # Code from module snprintf:
14418   # Code from module ssize_t:
14419   # Code from module stdarg:
14420
14421
14422
14423   # Code from module stdbool:
14424   # Code from module stddef:
14425   # Code from module stdint:
14426   # Code from module stdio:
14427   # Code from module stdlib:
14428   # Code from module strerror:
14429   # Code from module strerror-override:
14430   # Code from module string:
14431   # Code from module strndup:
14432   # Code from module strnlen:
14433   # Code from module strsignal:
14434   # Code from module sys_select:
14435   # Code from module sys_stat:
14436   # Code from module sys_time:
14437   # Code from module sys_types:
14438   # Code from module sys_wait:
14439   # Code from module threadlib:
14440
14441
14442
14443   # Code from module time:
14444   # Code from module tls:
14445   # Code from module unistd:
14446   # Code from module unsetenv:
14447   # Code from module vasnprintf:
14448   # Code from module vasprintf:
14449   # Code from module verify:
14450   # Code from module waitpid:
14451   # Code from module warnings:
14452   # Code from module wchar:
14453   # Code from module write:
14454   # Code from module xalloc:
14455   # Code from module xalloc-die:
14456   # Code from module xalloc-oversized:
14457   # Code from module xsize:
14458   # Code from module xstrndup:
14459   # Code from module xvasprintf:
14460
14461 ac_ext=c
14462 ac_cpp='$CPP $CPPFLAGS'
14463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14467 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14468 # On Suns, sometimes $CPP names a directory.
14469 if test -n "$CPP" && test -d "$CPP"; then
14470   CPP=
14471 fi
14472 if test -z "$CPP"; then
14473   if ${ac_cv_prog_CPP+:} false; then :
14474   $as_echo_n "(cached) " >&6
14475 else
14476       # Double quotes because CPP needs to be expanded
14477     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14478     do
14479       ac_preproc_ok=false
14480 for ac_c_preproc_warn_flag in '' yes
14481 do
14482   # Use a header file that comes with gcc, so configuring glibc
14483   # with a fresh cross-compiler works.
14484   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14485   # <limits.h> exists even on freestanding compilers.
14486   # On the NeXT, cc -E runs the code through the compiler's parser,
14487   # not just through cpp. "Syntax error" is here to catch this case.
14488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h.  */
14490 #ifdef __STDC__
14491 # include <limits.h>
14492 #else
14493 # include <assert.h>
14494 #endif
14495                      Syntax error
14496 _ACEOF
14497 if ac_fn_c_try_cpp "$LINENO"; then :
14498
14499 else
14500   # Broken: fails on valid input.
14501 continue
14502 fi
14503 rm -f conftest.err conftest.i conftest.$ac_ext
14504
14505   # OK, works on sane cases.  Now check whether nonexistent headers
14506   # can be detected and how.
14507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h.  */
14509 #include <ac_nonexistent.h>
14510 _ACEOF
14511 if ac_fn_c_try_cpp "$LINENO"; then :
14512   # Broken: success on invalid input.
14513 continue
14514 else
14515   # Passes both tests.
14516 ac_preproc_ok=:
14517 break
14518 fi
14519 rm -f conftest.err conftest.i conftest.$ac_ext
14520
14521 done
14522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14523 rm -f conftest.i conftest.err conftest.$ac_ext
14524 if $ac_preproc_ok; then :
14525   break
14526 fi
14527
14528     done
14529     ac_cv_prog_CPP=$CPP
14530
14531 fi
14532   CPP=$ac_cv_prog_CPP
14533 else
14534   ac_cv_prog_CPP=$CPP
14535 fi
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14537 $as_echo "$CPP" >&6; }
14538 ac_preproc_ok=false
14539 for ac_c_preproc_warn_flag in '' yes
14540 do
14541   # Use a header file that comes with gcc, so configuring glibc
14542   # with a fresh cross-compiler works.
14543   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14544   # <limits.h> exists even on freestanding compilers.
14545   # On the NeXT, cc -E runs the code through the compiler's parser,
14546   # not just through cpp. "Syntax error" is here to catch this case.
14547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h.  */
14549 #ifdef __STDC__
14550 # include <limits.h>
14551 #else
14552 # include <assert.h>
14553 #endif
14554                      Syntax error
14555 _ACEOF
14556 if ac_fn_c_try_cpp "$LINENO"; then :
14557
14558 else
14559   # Broken: fails on valid input.
14560 continue
14561 fi
14562 rm -f conftest.err conftest.i conftest.$ac_ext
14563
14564   # OK, works on sane cases.  Now check whether nonexistent headers
14565   # can be detected and how.
14566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h.  */
14568 #include <ac_nonexistent.h>
14569 _ACEOF
14570 if ac_fn_c_try_cpp "$LINENO"; then :
14571   # Broken: success on invalid input.
14572 continue
14573 else
14574   # Passes both tests.
14575 ac_preproc_ok=:
14576 break
14577 fi
14578 rm -f conftest.err conftest.i conftest.$ac_ext
14579
14580 done
14581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14582 rm -f conftest.i conftest.err conftest.$ac_ext
14583 if $ac_preproc_ok; then :
14584
14585 else
14586   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14588 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14589 See \`config.log' for more details" "$LINENO" 5; }
14590 fi
14591
14592 ac_ext=c
14593 ac_cpp='$CPP $CPPFLAGS'
14594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14597
14598 CFLAGS="$CFLAGS -Wall"
14599 if test "$GCC" = yes
14600 then
14601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
14602 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
14603 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
14604   $as_echo_n "(cached) " >&6
14605 else
14606
14607   gl_save_compiler_FLAGS="$CFLAGS"
14608   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
14609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h.  */
14611
14612 int
14613 main ()
14614 {
14615
14616   ;
14617   return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_compile "$LINENO"; then :
14621   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
14622 else
14623   gl_cv_warn_c__Werror__Wunknown_warning_option=no
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626   CFLAGS="$gl_save_compiler_FLAGS"
14627
14628 fi
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
14630 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
14631 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
14632   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
14633 else
14634   gl_unknown_warnings_are_errors=
14635 fi
14636
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
14639 $as_echo_n "checking whether C compiler handles -W... " >&6; }
14640 if ${gl_cv_warn_c__W+:} false; then :
14641   $as_echo_n "(cached) " >&6
14642 else
14643
14644   gl_save_compiler_FLAGS="$CFLAGS"
14645   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
14646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h.  */
14648
14649 int
14650 main ()
14651 {
14652
14653   ;
14654   return 0;
14655 }
14656 _ACEOF
14657 if ac_fn_c_try_compile "$LINENO"; then :
14658   gl_cv_warn_c__W=yes
14659 else
14660   gl_cv_warn_c__W=no
14661 fi
14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14663   CFLAGS="$gl_save_compiler_FLAGS"
14664
14665 fi
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
14667 $as_echo "$gl_cv_warn_c__W" >&6; }
14668 if test "x$gl_cv_warn_c__W" = xyes; then :
14669   as_fn_append WARN_CFLAGS " -W"
14670 fi
14671
14672
14673
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
14675 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
14676 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
14677   $as_echo_n "(cached) " >&6
14678 else
14679
14680   gl_save_compiler_FLAGS="$CFLAGS"
14681   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
14682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h.  */
14684
14685 int
14686 main ()
14687 {
14688
14689   ;
14690   return 0;
14691 }
14692 _ACEOF
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694   gl_cv_warn_c__Wpointer_arith=yes
14695 else
14696   gl_cv_warn_c__Wpointer_arith=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699   CFLAGS="$gl_save_compiler_FLAGS"
14700
14701 fi
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
14703 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
14704 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
14705   as_fn_append WARN_CFLAGS " -Wpointer-arith"
14706 fi
14707
14708
14709
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
14711 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
14712 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
14713   $as_echo_n "(cached) " >&6
14714 else
14715
14716   gl_save_compiler_FLAGS="$CFLAGS"
14717   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
14718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h.  */
14720
14721 int
14722 main ()
14723 {
14724
14725   ;
14726   return 0;
14727 }
14728 _ACEOF
14729 if ac_fn_c_try_compile "$LINENO"; then :
14730   gl_cv_warn_c__Wwrite_strings=yes
14731 else
14732   gl_cv_warn_c__Wwrite_strings=no
14733 fi
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735   CFLAGS="$gl_save_compiler_FLAGS"
14736
14737 fi
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
14739 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
14740 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
14741   as_fn_append WARN_CFLAGS " -Wwrite-strings"
14742 fi
14743
14744
14745
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
14747 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
14748 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
14749   $as_echo_n "(cached) " >&6
14750 else
14751
14752   gl_save_compiler_FLAGS="$CFLAGS"
14753   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
14754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h.  */
14756
14757 int
14758 main ()
14759 {
14760
14761   ;
14762   return 0;
14763 }
14764 _ACEOF
14765 if ac_fn_c_try_compile "$LINENO"; then :
14766   gl_cv_warn_c__Wstrict_prototypes=yes
14767 else
14768   gl_cv_warn_c__Wstrict_prototypes=no
14769 fi
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771   CFLAGS="$gl_save_compiler_FLAGS"
14772
14773 fi
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
14775 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
14776 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
14777   as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
14778 fi
14779
14780
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
14783 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
14784 if ${gl_cv_warn_c__Wshadow+:} false; then :
14785   $as_echo_n "(cached) " >&6
14786 else
14787
14788   gl_save_compiler_FLAGS="$CFLAGS"
14789   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
14790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h.  */
14792
14793 int
14794 main ()
14795 {
14796
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 if ac_fn_c_try_compile "$LINENO"; then :
14802   gl_cv_warn_c__Wshadow=yes
14803 else
14804   gl_cv_warn_c__Wshadow=no
14805 fi
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807   CFLAGS="$gl_save_compiler_FLAGS"
14808
14809 fi
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
14811 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
14812 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
14813   as_fn_append WARN_CFLAGS " -Wshadow"
14814 fi
14815
14816
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
14819 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
14820 if ${gl_cv_warn_c__Wformat_security+:} false; then :
14821   $as_echo_n "(cached) " >&6
14822 else
14823
14824   gl_save_compiler_FLAGS="$CFLAGS"
14825   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
14826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h.  */
14828
14829 int
14830 main ()
14831 {
14832
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 if ac_fn_c_try_compile "$LINENO"; then :
14838   gl_cv_warn_c__Wformat_security=yes
14839 else
14840   gl_cv_warn_c__Wformat_security=no
14841 fi
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843   CFLAGS="$gl_save_compiler_FLAGS"
14844
14845 fi
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
14847 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
14848 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
14849   as_fn_append WARN_CFLAGS " -Wformat-security"
14850 fi
14851
14852
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
14855 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
14856 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859
14860   gl_save_compiler_FLAGS="$CFLAGS"
14861   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
14862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h.  */
14864
14865 int
14866 main ()
14867 {
14868
14869   ;
14870   return 0;
14871 }
14872 _ACEOF
14873 if ac_fn_c_try_compile "$LINENO"; then :
14874   gl_cv_warn_c__Wredundant_decls=yes
14875 else
14876   gl_cv_warn_c__Wredundant_decls=no
14877 fi
14878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879   CFLAGS="$gl_save_compiler_FLAGS"
14880
14881 fi
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
14883 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
14884 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
14885   as_fn_append WARN_CFLAGS " -Wredundant-decls"
14886 fi
14887
14888
14889
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
14891 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
14892 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
14893   $as_echo_n "(cached) " >&6
14894 else
14895
14896   gl_save_compiler_FLAGS="$CFLAGS"
14897   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
14898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h.  */
14900
14901 int
14902 main ()
14903 {
14904
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 if ac_fn_c_try_compile "$LINENO"; then :
14910   gl_cv_warn_c__Wno_missing_field_initializers=yes
14911 else
14912   gl_cv_warn_c__Wno_missing_field_initializers=no
14913 fi
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915   CFLAGS="$gl_save_compiler_FLAGS"
14916
14917 fi
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
14919 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
14920 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
14921   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
14922 fi
14923
14924
14925 fi
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14927 $as_echo_n "checking whether ln -s works... " >&6; }
14928 LN_S=$as_ln_s
14929 if test "$LN_S" = "ln -s"; then
14930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14931 $as_echo "yes" >&6; }
14932 else
14933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14934 $as_echo "no, using $LN_S" >&6; }
14935 fi
14936
14937
14938
14939
14940
14941
14942
14943
14944 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14945         if test -n "$ac_tool_prefix"; then
14946   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14947 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14949 $as_echo_n "checking for $ac_word... " >&6; }
14950 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14951   $as_echo_n "(cached) " >&6
14952 else
14953   case $PKG_CONFIG in
14954   [\\/]* | ?:[\\/]*)
14955   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14956   ;;
14957   *)
14958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14959 for as_dir in $PATH
14960 do
14961   IFS=$as_save_IFS
14962   test -z "$as_dir" && as_dir=.
14963     for ac_exec_ext in '' $ac_executable_extensions; do
14964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14965     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14967     break 2
14968   fi
14969 done
14970   done
14971 IFS=$as_save_IFS
14972
14973   ;;
14974 esac
14975 fi
14976 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14977 if test -n "$PKG_CONFIG"; then
14978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14979 $as_echo "$PKG_CONFIG" >&6; }
14980 else
14981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 $as_echo "no" >&6; }
14983 fi
14984
14985
14986 fi
14987 if test -z "$ac_cv_path_PKG_CONFIG"; then
14988   ac_pt_PKG_CONFIG=$PKG_CONFIG
14989   # Extract the first word of "pkg-config", so it can be a program name with args.
14990 set dummy pkg-config; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 $as_echo_n "checking for $ac_word... " >&6; }
14993 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14994   $as_echo_n "(cached) " >&6
14995 else
14996   case $ac_pt_PKG_CONFIG in
14997   [\\/]* | ?:[\\/]*)
14998   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14999   ;;
15000   *)
15001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002 for as_dir in $PATH
15003 do
15004   IFS=$as_save_IFS
15005   test -z "$as_dir" && as_dir=.
15006     for ac_exec_ext in '' $ac_executable_extensions; do
15007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15008     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15010     break 2
15011   fi
15012 done
15013   done
15014 IFS=$as_save_IFS
15015
15016   ;;
15017 esac
15018 fi
15019 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15020 if test -n "$ac_pt_PKG_CONFIG"; then
15021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15022 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15023 else
15024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025 $as_echo "no" >&6; }
15026 fi
15027
15028   if test "x$ac_pt_PKG_CONFIG" = x; then
15029     PKG_CONFIG=""
15030   else
15031     case $cross_compiling:$ac_tool_warned in
15032 yes:)
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15035 ac_tool_warned=yes ;;
15036 esac
15037     PKG_CONFIG=$ac_pt_PKG_CONFIG
15038   fi
15039 else
15040   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15041 fi
15042
15043 fi
15044 if test -n "$PKG_CONFIG"; then
15045         _pkg_min_version=0.9.0
15046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15047 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15048         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15049                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15050 $as_echo "yes" >&6; }
15051         else
15052                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 $as_echo "no" >&6; }
15054                 PKG_CONFIG=""
15055         fi
15056 fi
15057
15058 pkg_failed=no
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15060 $as_echo_n "checking for CHECK... " >&6; }
15061
15062 if test -n "$CHECK_CFLAGS"; then
15063     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15064  elif test -n "$PKG_CONFIG"; then
15065     if test -n "$PKG_CONFIG" && \
15066     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15067   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15068   ac_status=$?
15069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15070   test $ac_status = 0; }; then
15071   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15072                       test "x$?" != "x0" && pkg_failed=yes
15073 else
15074   pkg_failed=yes
15075 fi
15076  else
15077     pkg_failed=untried
15078 fi
15079 if test -n "$CHECK_LIBS"; then
15080     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15081  elif test -n "$PKG_CONFIG"; then
15082     if test -n "$PKG_CONFIG" && \
15083     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15084   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15085   ac_status=$?
15086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15087   test $ac_status = 0; }; then
15088   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15089                       test "x$?" != "x0" && pkg_failed=yes
15090 else
15091   pkg_failed=yes
15092 fi
15093  else
15094     pkg_failed=untried
15095 fi
15096
15097
15098
15099 if test $pkg_failed = yes; then
15100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15101 $as_echo "no" >&6; }
15102
15103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15104         _pkg_short_errors_supported=yes
15105 else
15106         _pkg_short_errors_supported=no
15107 fi
15108         if test $_pkg_short_errors_supported = yes; then
15109                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15110         else
15111                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15112         fi
15113         # Put the nasty error message in config.log where it belongs
15114         echo "$CHECK_PKG_ERRORS" >&5
15115
15116         run_tests=no
15117 elif test $pkg_failed = untried; then
15118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15120         run_tests=no
15121 else
15122         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15123         CHECK_LIBS=$pkg_cv_CHECK_LIBS
15124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15125 $as_echo "yes" >&6; }
15126         run_tests=yes
15127 fi
15128  if test "x$run_tests" = xyes; then
15129   RUN_TESTS_TRUE=
15130   RUN_TESTS_FALSE='#'
15131 else
15132   RUN_TESTS_TRUE='#'
15133   RUN_TESTS_FALSE=
15134 fi
15135
15136
15137 # Check for various header files and associated libraries.
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15139 $as_echo_n "checking for library containing strerror... " >&6; }
15140 if ${ac_cv_search_strerror+:} false; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   ac_func_search_save_LIBS=$LIBS
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h.  */
15146
15147 /* Override any GCC internal prototype to avoid an error.
15148    Use char because int might match the return type of a GCC
15149    builtin and then its argument prototype would still apply.  */
15150 #ifdef __cplusplus
15151 extern "C"
15152 #endif
15153 char strerror ();
15154 int
15155 main ()
15156 {
15157 return strerror ();
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 for ac_lib in '' cposix; do
15163   if test -z "$ac_lib"; then
15164     ac_res="none required"
15165   else
15166     ac_res=-l$ac_lib
15167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15168   fi
15169   if ac_fn_c_try_link "$LINENO"; then :
15170   ac_cv_search_strerror=$ac_res
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext \
15173     conftest$ac_exeext
15174   if ${ac_cv_search_strerror+:} false; then :
15175   break
15176 fi
15177 done
15178 if ${ac_cv_search_strerror+:} false; then :
15179
15180 else
15181   ac_cv_search_strerror=no
15182 fi
15183 rm conftest.$ac_ext
15184 LIBS=$ac_func_search_save_LIBS
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15187 $as_echo "$ac_cv_search_strerror" >&6; }
15188 ac_res=$ac_cv_search_strerror
15189 if test "$ac_res" != no; then :
15190   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15191
15192 fi
15193
15194
15195
15196
15197
15198
15199           LIBC_FATAL_STDERR_=1
15200   export LIBC_FATAL_STDERR_
15201
15202 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15203 if test "x$ac_cv_type_size_t" = xyes; then :
15204
15205 else
15206
15207 cat >>confdefs.h <<_ACEOF
15208 #define size_t unsigned int
15209 _ACEOF
15210
15211 fi
15212
15213 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15214 # for constant arguments.  Useless!
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15216 $as_echo_n "checking for working alloca.h... " >&6; }
15217 if ${ac_cv_working_alloca_h+:} false; then :
15218   $as_echo_n "(cached) " >&6
15219 else
15220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h.  */
15222 #include <alloca.h>
15223 int
15224 main ()
15225 {
15226 char *p = (char *) alloca (2 * sizeof (int));
15227                           if (p) return 0;
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 if ac_fn_c_try_link "$LINENO"; then :
15233   ac_cv_working_alloca_h=yes
15234 else
15235   ac_cv_working_alloca_h=no
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext \
15238     conftest$ac_exeext conftest.$ac_ext
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15241 $as_echo "$ac_cv_working_alloca_h" >&6; }
15242 if test $ac_cv_working_alloca_h = yes; then
15243
15244 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15245
15246 fi
15247
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15249 $as_echo_n "checking for alloca... " >&6; }
15250 if ${ac_cv_func_alloca_works+:} false; then :
15251   $as_echo_n "(cached) " >&6
15252 else
15253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h.  */
15255 #ifdef __GNUC__
15256 # define alloca __builtin_alloca
15257 #else
15258 # ifdef _MSC_VER
15259 #  include <malloc.h>
15260 #  define alloca _alloca
15261 # else
15262 #  ifdef HAVE_ALLOCA_H
15263 #   include <alloca.h>
15264 #  else
15265 #   ifdef _AIX
15266  #pragma alloca
15267 #   else
15268 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15269 void *alloca (size_t);
15270 #    endif
15271 #   endif
15272 #  endif
15273 # endif
15274 #endif
15275
15276 int
15277 main ()
15278 {
15279 char *p = (char *) alloca (1);
15280                                     if (p) return 0;
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286   ac_cv_func_alloca_works=yes
15287 else
15288   ac_cv_func_alloca_works=no
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291     conftest$ac_exeext conftest.$ac_ext
15292 fi
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15294 $as_echo "$ac_cv_func_alloca_works" >&6; }
15295
15296 if test $ac_cv_func_alloca_works = yes; then
15297
15298 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15299
15300 else
15301   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15302 # that cause trouble.  Some versions do not even contain alloca or
15303 # contain a buggy version.  If you still want to use their alloca,
15304 # use ar to extract alloca.o from them instead of compiling alloca.c.
15305
15306
15307
15308
15309
15310 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15311
15312 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15313
15314
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15316 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15317 if ${ac_cv_os_cray+:} false; then :
15318   $as_echo_n "(cached) " >&6
15319 else
15320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h.  */
15322 #if defined CRAY && ! defined CRAY2
15323 webecray
15324 #else
15325 wenotbecray
15326 #endif
15327
15328 _ACEOF
15329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15330   $EGREP "webecray" >/dev/null 2>&1; then :
15331   ac_cv_os_cray=yes
15332 else
15333   ac_cv_os_cray=no
15334 fi
15335 rm -f conftest*
15336
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15339 $as_echo "$ac_cv_os_cray" >&6; }
15340 if test $ac_cv_os_cray = yes; then
15341   for ac_func in _getb67 GETB67 getb67; do
15342     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15345
15346 cat >>confdefs.h <<_ACEOF
15347 #define CRAY_STACKSEG_END $ac_func
15348 _ACEOF
15349
15350     break
15351 fi
15352
15353   done
15354 fi
15355
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15357 $as_echo_n "checking stack direction for C alloca... " >&6; }
15358 if ${ac_cv_c_stack_direction+:} false; then :
15359   $as_echo_n "(cached) " >&6
15360 else
15361   if test "$cross_compiling" = yes; then :
15362   ac_cv_c_stack_direction=0
15363 else
15364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h.  */
15366 $ac_includes_default
15367 int
15368 find_stack_direction (int *addr, int depth)
15369 {
15370   int dir, dummy = 0;
15371   if (! addr)
15372     addr = &dummy;
15373   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15374   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15375   return dir + dummy;
15376 }
15377
15378 int
15379 main (int argc, char **argv)
15380 {
15381   return find_stack_direction (0, argc + !argv + 20) < 0;
15382 }
15383 _ACEOF
15384 if ac_fn_c_try_run "$LINENO"; then :
15385   ac_cv_c_stack_direction=1
15386 else
15387   ac_cv_c_stack_direction=-1
15388 fi
15389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15390   conftest.$ac_objext conftest.beam conftest.$ac_ext
15391 fi
15392
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15395 $as_echo "$ac_cv_c_stack_direction" >&6; }
15396 cat >>confdefs.h <<_ACEOF
15397 #define STACK_DIRECTION $ac_cv_c_stack_direction
15398 _ACEOF
15399
15400
15401 fi
15402
15403
15404
15405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15406 $as_echo_n "checking whether // is distinct from /... " >&6; }
15407 if ${gl_cv_double_slash_root+:} false; then :
15408   $as_echo_n "(cached) " >&6
15409 else
15410    if test x"$cross_compiling" = xyes ; then
15411         # When cross-compiling, there is no way to tell whether // is special
15412         # short of a list of hosts.  However, the only known hosts to date
15413         # that have a distinct // are Apollo DomainOS (too old to port to),
15414         # Cygwin, and z/OS.  If anyone knows of another system for which // has
15415         # special semantics and is distinct from /, please report it to
15416         # <bug-gnulib@gnu.org>.
15417         case $host in
15418           *-cygwin | i370-ibm-openedition)
15419             gl_cv_double_slash_root=yes ;;
15420           *)
15421             # Be optimistic and assume that / and // are the same when we
15422             # don't know.
15423             gl_cv_double_slash_root='unknown, assuming no' ;;
15424         esac
15425       else
15426         set x `ls -di / // 2>/dev/null`
15427         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15428           gl_cv_double_slash_root=no
15429         else
15430           gl_cv_double_slash_root=yes
15431         fi
15432       fi
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15435 $as_echo "$gl_cv_double_slash_root" >&6; }
15436   if test "$gl_cv_double_slash_root" = yes; then
15437
15438 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15439
15440   fi
15441
15442
15443
15444
15445
15446
15447   GNULIB_CHDIR=0;
15448   GNULIB_CHOWN=0;
15449   GNULIB_CLOSE=0;
15450   GNULIB_DUP=0;
15451   GNULIB_DUP2=0;
15452   GNULIB_DUP3=0;
15453   GNULIB_ENVIRON=0;
15454   GNULIB_EUIDACCESS=0;
15455   GNULIB_FACCESSAT=0;
15456   GNULIB_FCHDIR=0;
15457   GNULIB_FCHOWNAT=0;
15458   GNULIB_FDATASYNC=0;
15459   GNULIB_FSYNC=0;
15460   GNULIB_FTRUNCATE=0;
15461   GNULIB_GETCWD=0;
15462   GNULIB_GETDOMAINNAME=0;
15463   GNULIB_GETDTABLESIZE=0;
15464   GNULIB_GETGROUPS=0;
15465   GNULIB_GETHOSTNAME=0;
15466   GNULIB_GETLOGIN=0;
15467   GNULIB_GETLOGIN_R=0;
15468   GNULIB_GETPAGESIZE=0;
15469   GNULIB_GETUSERSHELL=0;
15470   GNULIB_GROUP_MEMBER=0;
15471   GNULIB_ISATTY=0;
15472   GNULIB_LCHOWN=0;
15473   GNULIB_LINK=0;
15474   GNULIB_LINKAT=0;
15475   GNULIB_LSEEK=0;
15476   GNULIB_PIPE=0;
15477   GNULIB_PIPE2=0;
15478   GNULIB_PREAD=0;
15479   GNULIB_PWRITE=0;
15480   GNULIB_READ=0;
15481   GNULIB_READLINK=0;
15482   GNULIB_READLINKAT=0;
15483   GNULIB_RMDIR=0;
15484   GNULIB_SETHOSTNAME=0;
15485   GNULIB_SLEEP=0;
15486   GNULIB_SYMLINK=0;
15487   GNULIB_SYMLINKAT=0;
15488   GNULIB_TTYNAME_R=0;
15489   GNULIB_UNISTD_H_NONBLOCKING=0;
15490   GNULIB_UNISTD_H_SIGPIPE=0;
15491   GNULIB_UNLINK=0;
15492   GNULIB_UNLINKAT=0;
15493   GNULIB_USLEEP=0;
15494   GNULIB_WRITE=0;
15495     HAVE_CHOWN=1;
15496   HAVE_DUP2=1;
15497   HAVE_DUP3=1;
15498   HAVE_EUIDACCESS=1;
15499   HAVE_FACCESSAT=1;
15500   HAVE_FCHDIR=1;
15501   HAVE_FCHOWNAT=1;
15502   HAVE_FDATASYNC=1;
15503   HAVE_FSYNC=1;
15504   HAVE_FTRUNCATE=1;
15505   HAVE_GETDTABLESIZE=1;
15506   HAVE_GETGROUPS=1;
15507   HAVE_GETHOSTNAME=1;
15508   HAVE_GETLOGIN=1;
15509   HAVE_GETPAGESIZE=1;
15510   HAVE_GROUP_MEMBER=1;
15511   HAVE_LCHOWN=1;
15512   HAVE_LINK=1;
15513   HAVE_LINKAT=1;
15514   HAVE_PIPE=1;
15515   HAVE_PIPE2=1;
15516   HAVE_PREAD=1;
15517   HAVE_PWRITE=1;
15518   HAVE_READLINK=1;
15519   HAVE_READLINKAT=1;
15520   HAVE_SETHOSTNAME=1;
15521   HAVE_SLEEP=1;
15522   HAVE_SYMLINK=1;
15523   HAVE_SYMLINKAT=1;
15524   HAVE_UNLINKAT=1;
15525   HAVE_USLEEP=1;
15526   HAVE_DECL_ENVIRON=1;
15527   HAVE_DECL_FCHDIR=1;
15528   HAVE_DECL_FDATASYNC=1;
15529   HAVE_DECL_GETDOMAINNAME=1;
15530   HAVE_DECL_GETLOGIN_R=1;
15531   HAVE_DECL_GETPAGESIZE=1;
15532   HAVE_DECL_GETUSERSHELL=1;
15533   HAVE_DECL_SETHOSTNAME=1;
15534   HAVE_DECL_TTYNAME_R=1;
15535   HAVE_OS_H=0;
15536   HAVE_SYS_PARAM_H=0;
15537   REPLACE_CHOWN=0;
15538   REPLACE_CLOSE=0;
15539   REPLACE_DUP=0;
15540   REPLACE_DUP2=0;
15541   REPLACE_FCHOWNAT=0;
15542   REPLACE_FTRUNCATE=0;
15543   REPLACE_GETCWD=0;
15544   REPLACE_GETDOMAINNAME=0;
15545   REPLACE_GETLOGIN_R=0;
15546   REPLACE_GETGROUPS=0;
15547   REPLACE_GETPAGESIZE=0;
15548   REPLACE_ISATTY=0;
15549   REPLACE_LCHOWN=0;
15550   REPLACE_LINK=0;
15551   REPLACE_LINKAT=0;
15552   REPLACE_LSEEK=0;
15553   REPLACE_PREAD=0;
15554   REPLACE_PWRITE=0;
15555   REPLACE_READ=0;
15556   REPLACE_READLINK=0;
15557   REPLACE_RMDIR=0;
15558   REPLACE_SLEEP=0;
15559   REPLACE_SYMLINK=0;
15560   REPLACE_TTYNAME_R=0;
15561   REPLACE_UNLINK=0;
15562   REPLACE_UNLINKAT=0;
15563   REPLACE_USLEEP=0;
15564   REPLACE_WRITE=0;
15565   UNISTD_H_HAVE_WINSOCK2_H=0;
15566   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15567
15568
15569
15570
15571
15572
15573   for ac_header in $gl_header_list
15574 do :
15575   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15576 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15578   cat >>confdefs.h <<_ACEOF
15579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15580 _ACEOF
15581
15582 fi
15583
15584 done
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595   :
15596
15597
15598
15599
15600
15601
15602
15603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15604 $as_echo_n "checking if environ is properly declared... " >&6; }
15605   if ${gt_cv_var_environ_declaration+:} false; then :
15606   $as_echo_n "(cached) " >&6
15607 else
15608
15609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h.  */
15611 #if HAVE_UNISTD_H
15612      #include <unistd.h>
15613      #endif
15614      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
15615      #include <stdlib.h>
15616
15617            extern struct { int foo; } environ;
15618 int
15619 main ()
15620 {
15621 environ.foo = 1;
15622   ;
15623   return 0;
15624 }
15625 _ACEOF
15626 if ac_fn_c_try_compile "$LINENO"; then :
15627   gt_cv_var_environ_declaration=no
15628 else
15629   gt_cv_var_environ_declaration=yes
15630 fi
15631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15632 fi
15633
15634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15635 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15636   if test $gt_cv_var_environ_declaration = yes; then
15637
15638 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15639
15640   fi
15641
15642
15643   if test $gt_cv_var_environ_declaration != yes; then
15644     HAVE_DECL_ENVIRON=0
15645   fi
15646
15647
15648
15649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15650 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15651 if ${gl_cv_have_include_next+:} false; then :
15652   $as_echo_n "(cached) " >&6
15653 else
15654   rm -rf conftestd1a conftestd1b conftestd2
15655      mkdir conftestd1a conftestd1b conftestd2
15656                                                   cat <<EOF > conftestd1a/conftest.h
15657 #define DEFINED_IN_CONFTESTD1
15658 #include_next <conftest.h>
15659 #ifdef DEFINED_IN_CONFTESTD2
15660 int foo;
15661 #else
15662 #error "include_next doesn't work"
15663 #endif
15664 EOF
15665      cat <<EOF > conftestd1b/conftest.h
15666 #define DEFINED_IN_CONFTESTD1
15667 #include <stdio.h>
15668 #include_next <conftest.h>
15669 #ifdef DEFINED_IN_CONFTESTD2
15670 int foo;
15671 #else
15672 #error "include_next doesn't work"
15673 #endif
15674 EOF
15675      cat <<EOF > conftestd2/conftest.h
15676 #ifndef DEFINED_IN_CONFTESTD1
15677 #error "include_next test doesn't work"
15678 #endif
15679 #define DEFINED_IN_CONFTESTD2
15680 EOF
15681      gl_save_CPPFLAGS="$CPPFLAGS"
15682      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15683      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h.  */
15685 #include <conftest.h>
15686 _ACEOF
15687 if ac_fn_c_try_compile "$LINENO"; then :
15688   gl_cv_have_include_next=yes
15689 else
15690   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15691         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h.  */
15693 #include <conftest.h>
15694 _ACEOF
15695 if ac_fn_c_try_compile "$LINENO"; then :
15696   gl_cv_have_include_next=buggy
15697 else
15698   gl_cv_have_include_next=no
15699 fi
15700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701
15702 fi
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704      CPPFLAGS="$gl_save_CPPFLAGS"
15705      rm -rf conftestd1a conftestd1b conftestd2
15706
15707 fi
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15709 $as_echo "$gl_cv_have_include_next" >&6; }
15710   PRAGMA_SYSTEM_HEADER=
15711   if test $gl_cv_have_include_next = yes; then
15712     INCLUDE_NEXT=include_next
15713     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15714     if test -n "$GCC"; then
15715       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15716     fi
15717   else
15718     if test $gl_cv_have_include_next = buggy; then
15719       INCLUDE_NEXT=include
15720       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15721     else
15722       INCLUDE_NEXT=include
15723       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15724     fi
15725   fi
15726
15727
15728
15729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15730 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15731 if ${gl_cv_pragma_columns+:} false; then :
15732   $as_echo_n "(cached) " >&6
15733 else
15734        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h.  */
15736
15737 #ifdef __TANDEM
15738 choke me
15739 #endif
15740
15741 _ACEOF
15742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15743   $EGREP "choke me" >/dev/null 2>&1; then :
15744   gl_cv_pragma_columns=yes
15745 else
15746   gl_cv_pragma_columns=no
15747 fi
15748 rm -f conftest*
15749
15750
15751 fi
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15753 $as_echo "$gl_cv_pragma_columns" >&6; }
15754   if test $gl_cv_pragma_columns = yes; then
15755     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15756   else
15757     PRAGMA_COLUMNS=
15758   fi
15759
15760
15761
15762
15763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15764 $as_echo_n "checking for complete errno.h... " >&6; }
15765 if ${gl_cv_header_errno_h_complete+:} false; then :
15766   $as_echo_n "(cached) " >&6
15767 else
15768
15769     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h.  */
15771
15772 #include <errno.h>
15773 #if !defined ETXTBSY
15774 booboo
15775 #endif
15776 #if !defined ENOMSG
15777 booboo
15778 #endif
15779 #if !defined EIDRM
15780 booboo
15781 #endif
15782 #if !defined ENOLINK
15783 booboo
15784 #endif
15785 #if !defined EPROTO
15786 booboo
15787 #endif
15788 #if !defined EMULTIHOP
15789 booboo
15790 #endif
15791 #if !defined EBADMSG
15792 booboo
15793 #endif
15794 #if !defined EOVERFLOW
15795 booboo
15796 #endif
15797 #if !defined ENOTSUP
15798 booboo
15799 #endif
15800 #if !defined ENETRESET
15801 booboo
15802 #endif
15803 #if !defined ECONNABORTED
15804 booboo
15805 #endif
15806 #if !defined ESTALE
15807 booboo
15808 #endif
15809 #if !defined EDQUOT
15810 booboo
15811 #endif
15812 #if !defined ECANCELED
15813 booboo
15814 #endif
15815 #if !defined EOWNERDEAD
15816 booboo
15817 #endif
15818 #if !defined ENOTRECOVERABLE
15819 booboo
15820 #endif
15821 #if !defined EILSEQ
15822 booboo
15823 #endif
15824
15825 _ACEOF
15826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15827   $EGREP "booboo" >/dev/null 2>&1; then :
15828   gl_cv_header_errno_h_complete=no
15829 else
15830   gl_cv_header_errno_h_complete=yes
15831 fi
15832 rm -f conftest*
15833
15834
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15837 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15838   if test $gl_cv_header_errno_h_complete = yes; then
15839     ERRNO_H=''
15840   else
15841
15842
15843
15844
15845
15846
15847
15848
15849      if test $gl_cv_have_include_next = yes; then
15850        gl_cv_next_errno_h='<'errno.h'>'
15851      else
15852        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15853 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15854 if ${gl_cv_next_errno_h+:} false; then :
15855   $as_echo_n "(cached) " >&6
15856 else
15857
15858                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h.  */
15860 #include <errno.h>
15861
15862 _ACEOF
15863                                                                                                                         case "$host_os" in
15864                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
15865                  *)    gl_absname_cpp="$ac_cpp" ;;
15866                esac
15867
15868                case "$host_os" in
15869                  mingw*)
15870                                                                                                                                      gl_dirsep_regex='[/\\]'
15871                    ;;
15872                  *)
15873                    gl_dirsep_regex='\/'
15874                    ;;
15875                esac
15876                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15877
15878                gl_header_literal_regex=`echo 'errno.h' \
15879                                         | sed -e "$gl_make_literal_regex_sed"`
15880                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15881                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15882                    s|^/[^/]|//&|
15883                    p
15884                    q
15885                  }'
15886                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15887                       sed -n "$gl_absolute_header_sed"`'"'
15888
15889
15890 fi
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15892 $as_echo "$gl_cv_next_errno_h" >&6; }
15893      fi
15894      NEXT_ERRNO_H=$gl_cv_next_errno_h
15895
15896      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15897        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15898        gl_next_as_first_directive='<'errno.h'>'
15899      else
15900        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15901        gl_next_as_first_directive=$gl_cv_next_errno_h
15902      fi
15903      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15904
15905
15906
15907
15908     ERRNO_H='errno.h'
15909   fi
15910
15911    if test -n "$ERRNO_H"; then
15912   GL_GENERATE_ERRNO_H_TRUE=
15913   GL_GENERATE_ERRNO_H_FALSE='#'
15914 else
15915   GL_GENERATE_ERRNO_H_TRUE='#'
15916   GL_GENERATE_ERRNO_H_FALSE=
15917 fi
15918
15919
15920   if test -n "$ERRNO_H"; then
15921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15922 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15923 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15924   $as_echo_n "(cached) " >&6
15925 else
15926
15927       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h.  */
15929
15930 #include <errno.h>
15931 #ifdef EMULTIHOP
15932 yes
15933 #endif
15934
15935 _ACEOF
15936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15937   $EGREP "yes" >/dev/null 2>&1; then :
15938   gl_cv_header_errno_h_EMULTIHOP=yes
15939 else
15940   gl_cv_header_errno_h_EMULTIHOP=no
15941 fi
15942 rm -f conftest*
15943
15944       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15945         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h.  */
15947
15948 #define _XOPEN_SOURCE_EXTENDED 1
15949 #include <errno.h>
15950 #ifdef EMULTIHOP
15951 yes
15952 #endif
15953
15954 _ACEOF
15955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15956   $EGREP "yes" >/dev/null 2>&1; then :
15957   gl_cv_header_errno_h_EMULTIHOP=hidden
15958 fi
15959 rm -f conftest*
15960
15961         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15962                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
15963 #define _XOPEN_SOURCE_EXTENDED 1
15964 #include <errno.h>
15965 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15966 #include <stdio.h>
15967 #include <stdlib.h>
15968 "; then :
15969
15970 fi
15971
15972         fi
15973       fi
15974
15975 fi
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
15977 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
15978     case $gl_cv_header_errno_h_EMULTIHOP in
15979       yes | no)
15980         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
15981         ;;
15982       *)
15983         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
15984         ;;
15985     esac
15986
15987
15988   fi
15989
15990
15991   if test -n "$ERRNO_H"; then
15992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
15993 $as_echo_n "checking for ENOLINK value... " >&6; }
15994 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
15995   $as_echo_n "(cached) " >&6
15996 else
15997
15998       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h.  */
16000
16001 #include <errno.h>
16002 #ifdef ENOLINK
16003 yes
16004 #endif
16005
16006 _ACEOF
16007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16008   $EGREP "yes" >/dev/null 2>&1; then :
16009   gl_cv_header_errno_h_ENOLINK=yes
16010 else
16011   gl_cv_header_errno_h_ENOLINK=no
16012 fi
16013 rm -f conftest*
16014
16015       if test $gl_cv_header_errno_h_ENOLINK = no; then
16016         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h.  */
16018
16019 #define _XOPEN_SOURCE_EXTENDED 1
16020 #include <errno.h>
16021 #ifdef ENOLINK
16022 yes
16023 #endif
16024
16025 _ACEOF
16026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16027   $EGREP "yes" >/dev/null 2>&1; then :
16028   gl_cv_header_errno_h_ENOLINK=hidden
16029 fi
16030 rm -f conftest*
16031
16032         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16033                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
16034 #define _XOPEN_SOURCE_EXTENDED 1
16035 #include <errno.h>
16036 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16037 #include <stdio.h>
16038 #include <stdlib.h>
16039 "; then :
16040
16041 fi
16042
16043         fi
16044       fi
16045
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16048 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16049     case $gl_cv_header_errno_h_ENOLINK in
16050       yes | no)
16051         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16052         ;;
16053       *)
16054         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16055         ;;
16056     esac
16057
16058
16059   fi
16060
16061
16062   if test -n "$ERRNO_H"; then
16063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16064 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16065 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16066   $as_echo_n "(cached) " >&6
16067 else
16068
16069       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h.  */
16071
16072 #include <errno.h>
16073 #ifdef EOVERFLOW
16074 yes
16075 #endif
16076
16077 _ACEOF
16078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16079   $EGREP "yes" >/dev/null 2>&1; then :
16080   gl_cv_header_errno_h_EOVERFLOW=yes
16081 else
16082   gl_cv_header_errno_h_EOVERFLOW=no
16083 fi
16084 rm -f conftest*
16085
16086       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16087         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h.  */
16089
16090 #define _XOPEN_SOURCE_EXTENDED 1
16091 #include <errno.h>
16092 #ifdef EOVERFLOW
16093 yes
16094 #endif
16095
16096 _ACEOF
16097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16098   $EGREP "yes" >/dev/null 2>&1; then :
16099   gl_cv_header_errno_h_EOVERFLOW=hidden
16100 fi
16101 rm -f conftest*
16102
16103         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16104                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
16105 #define _XOPEN_SOURCE_EXTENDED 1
16106 #include <errno.h>
16107 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16108 #include <stdio.h>
16109 #include <stdlib.h>
16110 "; then :
16111
16112 fi
16113
16114         fi
16115       fi
16116
16117 fi
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16119 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16120     case $gl_cv_header_errno_h_EOVERFLOW in
16121       yes | no)
16122         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16123         ;;
16124       *)
16125         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16126         ;;
16127     esac
16128
16129
16130   fi
16131
16132
16133 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16134 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16135   ac_have_decl=1
16136 else
16137   ac_have_decl=0
16138 fi
16139
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_DECL_STRERROR_R $ac_have_decl
16142 _ACEOF
16143
16144 for ac_func in strerror_r
16145 do :
16146   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16147 if test "x$ac_cv_func_strerror_r" = xyes; then :
16148   cat >>confdefs.h <<_ACEOF
16149 #define HAVE_STRERROR_R 1
16150 _ACEOF
16151
16152 fi
16153 done
16154
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16156 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16157 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16158   $as_echo_n "(cached) " >&6
16159 else
16160
16161     ac_cv_func_strerror_r_char_p=no
16162     if test $ac_cv_have_decl_strerror_r = yes; then
16163       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h.  */
16165 $ac_includes_default
16166 int
16167 main ()
16168 {
16169
16170           char buf[100];
16171           char x = *strerror_r (0, buf, sizeof buf);
16172           char *p = strerror_r (0, buf, sizeof buf);
16173           return !p || x;
16174
16175   ;
16176   return 0;
16177 }
16178 _ACEOF
16179 if ac_fn_c_try_compile "$LINENO"; then :
16180   ac_cv_func_strerror_r_char_p=yes
16181 fi
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183     else
16184       # strerror_r is not declared.  Choose between
16185       # systems that have relatively inaccessible declarations for the
16186       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
16187       # former has a strerror_r that returns char*, while the latter
16188       # has a strerror_r that returns `int'.
16189       # This test should segfault on the DEC system.
16190       if test "$cross_compiling" = yes; then :
16191   :
16192 else
16193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h.  */
16195 $ac_includes_default
16196         extern char *strerror_r ();
16197 int
16198 main ()
16199 {
16200 char buf[100];
16201           char x = *strerror_r (0, buf, sizeof buf);
16202           return ! isalpha (x);
16203   ;
16204   return 0;
16205 }
16206 _ACEOF
16207 if ac_fn_c_try_run "$LINENO"; then :
16208   ac_cv_func_strerror_r_char_p=yes
16209 fi
16210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16211   conftest.$ac_objext conftest.beam conftest.$ac_ext
16212 fi
16213
16214     fi
16215
16216 fi
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16218 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16219 if test $ac_cv_func_strerror_r_char_p = yes; then
16220
16221 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16222
16223 fi
16224
16225
16226   XGETTEXT_EXTRA_OPTIONS=
16227
16228
16229
16230
16231
16232
16233   case "$host_os" in
16234     mingw*)
16235                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16236 $as_echo_n "checking for 64-bit off_t... " >&6; }
16237 if ${gl_cv_type_off_t_64+:} false; then :
16238   $as_echo_n "(cached) " >&6
16239 else
16240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h.  */
16242 #include <sys/types.h>
16243                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
16244
16245 int
16246 main ()
16247 {
16248
16249   ;
16250   return 0;
16251 }
16252 _ACEOF
16253 if ac_fn_c_try_compile "$LINENO"; then :
16254   gl_cv_type_off_t_64=yes
16255 else
16256   gl_cv_type_off_t_64=no
16257 fi
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259
16260 fi
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
16262 $as_echo "$gl_cv_type_off_t_64" >&6; }
16263       if test $gl_cv_type_off_t_64 = no; then
16264         WINDOWS_64_BIT_OFF_T=1
16265       else
16266         WINDOWS_64_BIT_OFF_T=0
16267       fi
16268                   WINDOWS_64_BIT_ST_SIZE=1
16269       ;;
16270     *)
16271                                                       WINDOWS_64_BIT_OFF_T=0
16272       WINDOWS_64_BIT_ST_SIZE=0
16273       ;;
16274   esac
16275
16276
16277       if test "X$prefix" = "XNONE"; then
16278     acl_final_prefix="$ac_default_prefix"
16279   else
16280     acl_final_prefix="$prefix"
16281   fi
16282   if test "X$exec_prefix" = "XNONE"; then
16283     acl_final_exec_prefix='${prefix}'
16284   else
16285     acl_final_exec_prefix="$exec_prefix"
16286   fi
16287   acl_save_prefix="$prefix"
16288   prefix="$acl_final_prefix"
16289   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16290   prefix="$acl_save_prefix"
16291
16292
16293
16294 # Check whether --with-gnu-ld was given.
16295 if test "${with_gnu_ld+set}" = set; then :
16296   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16297 else
16298   with_gnu_ld=no
16299 fi
16300
16301 # Prepare PATH_SEPARATOR.
16302 # The user is always right.
16303 if test "${PATH_SEPARATOR+set}" != set; then
16304   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16305   # contains only /bin. Note that ksh looks also at the FPATH variable,
16306   # so we have to set that as well for the test.
16307   PATH_SEPARATOR=:
16308   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16309     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16310            || PATH_SEPARATOR=';'
16311        }
16312 fi
16313
16314 ac_prog=ld
16315 if test "$GCC" = yes; then
16316   # Check if gcc -print-prog-name=ld gives a path.
16317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16318 $as_echo_n "checking for ld used by $CC... " >&6; }
16319   case $host in
16320   *-*-mingw*)
16321     # gcc leaves a trailing carriage return which upsets mingw
16322     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16323   *)
16324     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16325   esac
16326   case $ac_prog in
16327     # Accept absolute paths.
16328     [\\/]* | ?:[\\/]*)
16329       re_direlt='/[^/][^/]*/\.\./'
16330       # Canonicalize the pathname of ld
16331       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16332       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16333         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16334       done
16335       test -z "$LD" && LD="$ac_prog"
16336       ;;
16337   "")
16338     # If it fails, then pretend we aren't using GCC.
16339     ac_prog=ld
16340     ;;
16341   *)
16342     # If it is relative, then search for the first ld in PATH.
16343     with_gnu_ld=unknown
16344     ;;
16345   esac
16346 elif test "$with_gnu_ld" = yes; then
16347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16348 $as_echo_n "checking for GNU ld... " >&6; }
16349 else
16350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16351 $as_echo_n "checking for non-GNU ld... " >&6; }
16352 fi
16353 if ${acl_cv_path_LD+:} false; then :
16354   $as_echo_n "(cached) " >&6
16355 else
16356   if test -z "$LD"; then
16357   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16358   for ac_dir in $PATH; do
16359     IFS="$acl_save_ifs"
16360     test -z "$ac_dir" && ac_dir=.
16361     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16362       acl_cv_path_LD="$ac_dir/$ac_prog"
16363       # Check to see if the program is GNU ld.  I'd rather use --version,
16364       # but apparently some variants of GNU ld only accept -v.
16365       # Break only if it was the GNU/non-GNU ld that we prefer.
16366       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16367       *GNU* | *'with BFD'*)
16368         test "$with_gnu_ld" != no && break
16369         ;;
16370       *)
16371         test "$with_gnu_ld" != yes && break
16372         ;;
16373       esac
16374     fi
16375   done
16376   IFS="$acl_save_ifs"
16377 else
16378   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16379 fi
16380 fi
16381
16382 LD="$acl_cv_path_LD"
16383 if test -n "$LD"; then
16384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16385 $as_echo "$LD" >&6; }
16386 else
16387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388 $as_echo "no" >&6; }
16389 fi
16390 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16393 if ${acl_cv_prog_gnu_ld+:} false; then :
16394   $as_echo_n "(cached) " >&6
16395 else
16396   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16397 case `$LD -v 2>&1 </dev/null` in
16398 *GNU* | *'with BFD'*)
16399   acl_cv_prog_gnu_ld=yes
16400   ;;
16401 *)
16402   acl_cv_prog_gnu_ld=no
16403   ;;
16404 esac
16405 fi
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16407 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16408 with_gnu_ld=$acl_cv_prog_gnu_ld
16409
16410
16411
16412
16413                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16414 $as_echo_n "checking for shared library run path origin... " >&6; }
16415 if ${acl_cv_rpath+:} false; then :
16416   $as_echo_n "(cached) " >&6
16417 else
16418
16419     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16420     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16421     . ./conftest.sh
16422     rm -f ./conftest.sh
16423     acl_cv_rpath=done
16424
16425 fi
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16427 $as_echo "$acl_cv_rpath" >&6; }
16428   wl="$acl_cv_wl"
16429   acl_libext="$acl_cv_libext"
16430   acl_shlibext="$acl_cv_shlibext"
16431   acl_libname_spec="$acl_cv_libname_spec"
16432   acl_library_names_spec="$acl_cv_library_names_spec"
16433   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16434   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16435   acl_hardcode_direct="$acl_cv_hardcode_direct"
16436   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16437     # Check whether --enable-rpath was given.
16438 if test "${enable_rpath+set}" = set; then :
16439   enableval=$enable_rpath; :
16440 else
16441   enable_rpath=yes
16442 fi
16443
16444
16445
16446
16447   acl_libdirstem=lib
16448   acl_libdirstem2=
16449   case "$host_os" in
16450     solaris*)
16451                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16452 $as_echo_n "checking for 64-bit host... " >&6; }
16453 if ${gl_cv_solaris_64bit+:} false; then :
16454   $as_echo_n "(cached) " >&6
16455 else
16456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h.  */
16458
16459 #ifdef _LP64
16460 sixtyfour bits
16461 #endif
16462
16463 _ACEOF
16464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16465   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16466   gl_cv_solaris_64bit=yes
16467 else
16468   gl_cv_solaris_64bit=no
16469 fi
16470 rm -f conftest*
16471
16472
16473 fi
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16475 $as_echo "$gl_cv_solaris_64bit" >&6; }
16476       if test $gl_cv_solaris_64bit = yes; then
16477         acl_libdirstem=lib/64
16478         case "$host_cpu" in
16479           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16480           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16481         esac
16482       fi
16483       ;;
16484     *)
16485       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16486       if test -n "$searchpath"; then
16487         acl_save_IFS="${IFS=    }"; IFS=":"
16488         for searchdir in $searchpath; do
16489           if test -d "$searchdir"; then
16490             case "$searchdir" in
16491               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16492               */../ | */.. )
16493                 # Better ignore directories of this form. They are misleading.
16494                 ;;
16495               *) searchdir=`cd "$searchdir" && pwd`
16496                  case "$searchdir" in
16497                    */lib64 ) acl_libdirstem=lib64 ;;
16498                  esac ;;
16499             esac
16500           fi
16501         done
16502         IFS="$acl_save_IFS"
16503       fi
16504       ;;
16505   esac
16506   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16507
16508
16509
16510   gl_threads_api=none
16511   LIBTHREAD=
16512   LTLIBTHREAD=
16513   LIBMULTITHREAD=
16514   LTLIBMULTITHREAD=
16515   if test "$gl_use_threads" != no; then
16516         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16517 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16518 if ${gl_cv_have_weak+:} false; then :
16519   $as_echo_n "(cached) " >&6
16520 else
16521   gl_cv_have_weak=no
16522               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h.  */
16524 extern void xyzzy ();
16525 #pragma weak xyzzy
16526 int
16527 main ()
16528 {
16529 xyzzy();
16530   ;
16531   return 0;
16532 }
16533 _ACEOF
16534 if ac_fn_c_try_link "$LINENO"; then :
16535   gl_cv_have_weak=maybe
16536 fi
16537 rm -f core conftest.err conftest.$ac_objext \
16538     conftest$ac_exeext conftest.$ac_ext
16539        if test $gl_cv_have_weak = maybe; then
16540                            if test "$cross_compiling" = yes; then :
16541                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h.  */
16543 #ifdef __ELF__
16544                Extensible Linking Format
16545                #endif
16546
16547 _ACEOF
16548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16549   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16550   gl_cv_have_weak="guessing yes"
16551 else
16552   gl_cv_have_weak="guessing no"
16553 fi
16554 rm -f conftest*
16555
16556
16557 else
16558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h.  */
16560
16561 #include <stdio.h>
16562 #pragma weak fputs
16563 int main ()
16564 {
16565   return (fputs == NULL);
16566 }
16567 _ACEOF
16568 if ac_fn_c_try_run "$LINENO"; then :
16569   gl_cv_have_weak=yes
16570 else
16571   gl_cv_have_weak=no
16572 fi
16573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16574   conftest.$ac_objext conftest.beam conftest.$ac_ext
16575 fi
16576
16577        fi
16578
16579 fi
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16581 $as_echo "$gl_cv_have_weak" >&6; }
16582     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16583       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16584       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16585       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16586 if test "x$ac_cv_header_pthread_h" = xyes; then :
16587   gl_have_pthread_h=yes
16588 else
16589   gl_have_pthread_h=no
16590 fi
16591
16592
16593       if test "$gl_have_pthread_h" = yes; then
16594         # Other possible tests:
16595         #   -lpthreads (FSU threads, PCthreads)
16596         #   -lgthreads
16597         gl_have_pthread=
16598         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16599         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16600         # the second one only in libpthread, and lock.c needs it.
16601         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h.  */
16603 #include <pthread.h>
16604 int
16605 main ()
16606 {
16607 pthread_mutex_lock((pthread_mutex_t*)0);
16608                pthread_mutexattr_init((pthread_mutexattr_t*)0);
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 if ac_fn_c_try_link "$LINENO"; then :
16614   gl_have_pthread=yes
16615 fi
16616 rm -f core conftest.err conftest.$ac_objext \
16617     conftest$ac_exeext conftest.$ac_ext
16618         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16619         # since it is defined as a macro on OSF/1.)
16620         if test -n "$gl_have_pthread"; then
16621           # The program links fine without libpthread. But it may actually
16622           # need to link with libpthread in order to create multiple threads.
16623           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16624 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16625 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16626   $as_echo_n "(cached) " >&6
16627 else
16628   ac_check_lib_save_LIBS=$LIBS
16629 LIBS="-lpthread  $LIBS"
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h.  */
16632
16633 /* Override any GCC internal prototype to avoid an error.
16634    Use char because int might match the return type of a GCC
16635    builtin and then its argument prototype would still apply.  */
16636 #ifdef __cplusplus
16637 extern "C"
16638 #endif
16639 char pthread_kill ();
16640 int
16641 main ()
16642 {
16643 return pthread_kill ();
16644   ;
16645   return 0;
16646 }
16647 _ACEOF
16648 if ac_fn_c_try_link "$LINENO"; then :
16649   ac_cv_lib_pthread_pthread_kill=yes
16650 else
16651   ac_cv_lib_pthread_pthread_kill=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext \
16654     conftest$ac_exeext conftest.$ac_ext
16655 LIBS=$ac_check_lib_save_LIBS
16656 fi
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16658 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16659 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16660   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16661              # On Solaris and HP-UX, most pthread functions exist also in libc.
16662              # Therefore pthread_in_use() needs to actually try to create a
16663              # thread: pthread_create from libc will fail, whereas
16664              # pthread_create will actually create a thread.
16665              case "$host_os" in
16666                solaris* | hpux*)
16667
16668 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16669
16670              esac
16671
16672 fi
16673
16674         else
16675           # Some library is needed. Try libpthread and libc_r.
16676           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16677 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16678 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16679   $as_echo_n "(cached) " >&6
16680 else
16681   ac_check_lib_save_LIBS=$LIBS
16682 LIBS="-lpthread  $LIBS"
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h.  */
16685
16686 /* Override any GCC internal prototype to avoid an error.
16687    Use char because int might match the return type of a GCC
16688    builtin and then its argument prototype would still apply.  */
16689 #ifdef __cplusplus
16690 extern "C"
16691 #endif
16692 char pthread_kill ();
16693 int
16694 main ()
16695 {
16696 return pthread_kill ();
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 if ac_fn_c_try_link "$LINENO"; then :
16702   ac_cv_lib_pthread_pthread_kill=yes
16703 else
16704   ac_cv_lib_pthread_pthread_kill=no
16705 fi
16706 rm -f core conftest.err conftest.$ac_objext \
16707     conftest$ac_exeext conftest.$ac_ext
16708 LIBS=$ac_check_lib_save_LIBS
16709 fi
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16711 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16712 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16713   gl_have_pthread=yes
16714              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16715              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16716 fi
16717
16718           if test -z "$gl_have_pthread"; then
16719             # For FreeBSD 4.
16720             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16721 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16722 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16723   $as_echo_n "(cached) " >&6
16724 else
16725   ac_check_lib_save_LIBS=$LIBS
16726 LIBS="-lc_r  $LIBS"
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h.  */
16729
16730 /* Override any GCC internal prototype to avoid an error.
16731    Use char because int might match the return type of a GCC
16732    builtin and then its argument prototype would still apply.  */
16733 #ifdef __cplusplus
16734 extern "C"
16735 #endif
16736 char pthread_kill ();
16737 int
16738 main ()
16739 {
16740 return pthread_kill ();
16741   ;
16742   return 0;
16743 }
16744 _ACEOF
16745 if ac_fn_c_try_link "$LINENO"; then :
16746   ac_cv_lib_c_r_pthread_kill=yes
16747 else
16748   ac_cv_lib_c_r_pthread_kill=no
16749 fi
16750 rm -f core conftest.err conftest.$ac_objext \
16751     conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_lib_save_LIBS
16753 fi
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16755 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16756 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16757   gl_have_pthread=yes
16758                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16759                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16760 fi
16761
16762           fi
16763         fi
16764         if test -n "$gl_have_pthread"; then
16765           gl_threads_api=posix
16766
16767 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16768
16769           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16770             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16771
16772 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16773
16774               LIBTHREAD=
16775               LTLIBTHREAD=
16776             fi
16777           fi
16778         fi
16779       fi
16780     fi
16781     if test -z "$gl_have_pthread"; then
16782       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16783         gl_have_solaristhread=
16784         gl_save_LIBS="$LIBS"
16785         LIBS="$LIBS -lthread"
16786         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h.  */
16788
16789 #include <thread.h>
16790 #include <synch.h>
16791
16792 int
16793 main ()
16794 {
16795 thr_self();
16796   ;
16797   return 0;
16798 }
16799 _ACEOF
16800 if ac_fn_c_try_link "$LINENO"; then :
16801   gl_have_solaristhread=yes
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext \
16804     conftest$ac_exeext conftest.$ac_ext
16805         LIBS="$gl_save_LIBS"
16806         if test -n "$gl_have_solaristhread"; then
16807           gl_threads_api=solaris
16808           LIBTHREAD=-lthread
16809           LTLIBTHREAD=-lthread
16810           LIBMULTITHREAD="$LIBTHREAD"
16811           LTLIBMULTITHREAD="$LTLIBTHREAD"
16812
16813 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16814
16815           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16816
16817 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16818
16819             LIBTHREAD=
16820             LTLIBTHREAD=
16821           fi
16822         fi
16823       fi
16824     fi
16825     if test "$gl_use_threads" = pth; then
16826       gl_save_CPPFLAGS="$CPPFLAGS"
16827
16828
16829
16830
16831
16832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16833 $as_echo_n "checking how to link with libpth... " >&6; }
16834 if ${ac_cv_libpth_libs+:} false; then :
16835   $as_echo_n "(cached) " >&6
16836 else
16837
16838
16839
16840
16841
16842
16843
16844
16845     use_additional=yes
16846
16847   acl_save_prefix="$prefix"
16848   prefix="$acl_final_prefix"
16849   acl_save_exec_prefix="$exec_prefix"
16850   exec_prefix="$acl_final_exec_prefix"
16851
16852     eval additional_includedir=\"$includedir\"
16853     eval additional_libdir=\"$libdir\"
16854
16855   exec_prefix="$acl_save_exec_prefix"
16856   prefix="$acl_save_prefix"
16857
16858
16859 # Check whether --with-libpth-prefix was given.
16860 if test "${with_libpth_prefix+set}" = set; then :
16861   withval=$with_libpth_prefix;
16862     if test "X$withval" = "Xno"; then
16863       use_additional=no
16864     else
16865       if test "X$withval" = "X"; then
16866
16867   acl_save_prefix="$prefix"
16868   prefix="$acl_final_prefix"
16869   acl_save_exec_prefix="$exec_prefix"
16870   exec_prefix="$acl_final_exec_prefix"
16871
16872           eval additional_includedir=\"$includedir\"
16873           eval additional_libdir=\"$libdir\"
16874
16875   exec_prefix="$acl_save_exec_prefix"
16876   prefix="$acl_save_prefix"
16877
16878       else
16879         additional_includedir="$withval/include"
16880         additional_libdir="$withval/$acl_libdirstem"
16881         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16882            && ! test -d "$withval/$acl_libdirstem"; then
16883           additional_libdir="$withval/$acl_libdirstem2"
16884         fi
16885       fi
16886     fi
16887
16888 fi
16889
16890       LIBPTH=
16891   LTLIBPTH=
16892   INCPTH=
16893   LIBPTH_PREFIX=
16894       HAVE_LIBPTH=
16895   rpathdirs=
16896   ltrpathdirs=
16897   names_already_handled=
16898   names_next_round='pth '
16899   while test -n "$names_next_round"; do
16900     names_this_round="$names_next_round"
16901     names_next_round=
16902     for name in $names_this_round; do
16903       already_handled=
16904       for n in $names_already_handled; do
16905         if test "$n" = "$name"; then
16906           already_handled=yes
16907           break
16908         fi
16909       done
16910       if test -z "$already_handled"; then
16911         names_already_handled="$names_already_handled $name"
16912                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16913         eval value=\"\$HAVE_LIB$uppername\"
16914         if test -n "$value"; then
16915           if test "$value" = yes; then
16916             eval value=\"\$LIB$uppername\"
16917             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16918             eval value=\"\$LTLIB$uppername\"
16919             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16920           else
16921                                     :
16922           fi
16923         else
16924                               found_dir=
16925           found_la=
16926           found_so=
16927           found_a=
16928           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16929           if test -n "$acl_shlibext"; then
16930             shrext=".$acl_shlibext"             # typically: shrext=.so
16931           else
16932             shrext=
16933           fi
16934           if test $use_additional = yes; then
16935             dir="$additional_libdir"
16936                                     if test -n "$acl_shlibext"; then
16937               if test -f "$dir/$libname$shrext"; then
16938                 found_dir="$dir"
16939                 found_so="$dir/$libname$shrext"
16940               else
16941                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16942                   ver=`(cd "$dir" && \
16943                         for f in "$libname$shrext".*; do echo "$f"; done \
16944                         | sed -e "s,^$libname$shrext\\\\.,," \
16945                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16946                         | sed 1q ) 2>/dev/null`
16947                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16948                     found_dir="$dir"
16949                     found_so="$dir/$libname$shrext.$ver"
16950                   fi
16951                 else
16952                   eval library_names=\"$acl_library_names_spec\"
16953                   for f in $library_names; do
16954                     if test -f "$dir/$f"; then
16955                       found_dir="$dir"
16956                       found_so="$dir/$f"
16957                       break
16958                     fi
16959                   done
16960                 fi
16961               fi
16962             fi
16963                         if test "X$found_dir" = "X"; then
16964               if test -f "$dir/$libname.$acl_libext"; then
16965                 found_dir="$dir"
16966                 found_a="$dir/$libname.$acl_libext"
16967               fi
16968             fi
16969             if test "X$found_dir" != "X"; then
16970               if test -f "$dir/$libname.la"; then
16971                 found_la="$dir/$libname.la"
16972               fi
16973             fi
16974           fi
16975           if test "X$found_dir" = "X"; then
16976             for x in $LDFLAGS $LTLIBPTH; do
16977
16978   acl_save_prefix="$prefix"
16979   prefix="$acl_final_prefix"
16980   acl_save_exec_prefix="$exec_prefix"
16981   exec_prefix="$acl_final_exec_prefix"
16982   eval x=\"$x\"
16983   exec_prefix="$acl_save_exec_prefix"
16984   prefix="$acl_save_prefix"
16985
16986               case "$x" in
16987                 -L*)
16988                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16989                                     if test -n "$acl_shlibext"; then
16990                     if test -f "$dir/$libname$shrext"; then
16991                       found_dir="$dir"
16992                       found_so="$dir/$libname$shrext"
16993                     else
16994                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16995                         ver=`(cd "$dir" && \
16996                               for f in "$libname$shrext".*; do echo "$f"; done \
16997                               | sed -e "s,^$libname$shrext\\\\.,," \
16998                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16999                               | sed 1q ) 2>/dev/null`
17000                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17001                           found_dir="$dir"
17002                           found_so="$dir/$libname$shrext.$ver"
17003                         fi
17004                       else
17005                         eval library_names=\"$acl_library_names_spec\"
17006                         for f in $library_names; do
17007                           if test -f "$dir/$f"; then
17008                             found_dir="$dir"
17009                             found_so="$dir/$f"
17010                             break
17011                           fi
17012                         done
17013                       fi
17014                     fi
17015                   fi
17016                                     if test "X$found_dir" = "X"; then
17017                     if test -f "$dir/$libname.$acl_libext"; then
17018                       found_dir="$dir"
17019                       found_a="$dir/$libname.$acl_libext"
17020                     fi
17021                   fi
17022                   if test "X$found_dir" != "X"; then
17023                     if test -f "$dir/$libname.la"; then
17024                       found_la="$dir/$libname.la"
17025                     fi
17026                   fi
17027                   ;;
17028               esac
17029               if test "X$found_dir" != "X"; then
17030                 break
17031               fi
17032             done
17033           fi
17034           if test "X$found_dir" != "X"; then
17035                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17036             if test "X$found_so" != "X"; then
17037                                                         if test "$enable_rpath" = no \
17038                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17039                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17040                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17041               else
17042                                                                                 haveit=
17043                 for x in $ltrpathdirs; do
17044                   if test "X$x" = "X$found_dir"; then
17045                     haveit=yes
17046                     break
17047                   fi
17048                 done
17049                 if test -z "$haveit"; then
17050                   ltrpathdirs="$ltrpathdirs $found_dir"
17051                 fi
17052                                 if test "$acl_hardcode_direct" = yes; then
17053                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17054                 else
17055                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17056                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17057                                                             haveit=
17058                     for x in $rpathdirs; do
17059                       if test "X$x" = "X$found_dir"; then
17060                         haveit=yes
17061                         break
17062                       fi
17063                     done
17064                     if test -z "$haveit"; then
17065                       rpathdirs="$rpathdirs $found_dir"
17066                     fi
17067                   else
17068                                                                                 haveit=
17069                     for x in $LDFLAGS $LIBPTH; do
17070
17071   acl_save_prefix="$prefix"
17072   prefix="$acl_final_prefix"
17073   acl_save_exec_prefix="$exec_prefix"
17074   exec_prefix="$acl_final_exec_prefix"
17075   eval x=\"$x\"
17076   exec_prefix="$acl_save_exec_prefix"
17077   prefix="$acl_save_prefix"
17078
17079                       if test "X$x" = "X-L$found_dir"; then
17080                         haveit=yes
17081                         break
17082                       fi
17083                     done
17084                     if test -z "$haveit"; then
17085                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17086                     fi
17087                     if test "$acl_hardcode_minus_L" != no; then
17088                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17089                     else
17090                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17091                     fi
17092                   fi
17093                 fi
17094               fi
17095             else
17096               if test "X$found_a" != "X"; then
17097                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17098               else
17099                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17100               fi
17101             fi
17102                         additional_includedir=
17103             case "$found_dir" in
17104               */$acl_libdirstem | */$acl_libdirstem/)
17105                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17106                 if test "$name" = 'pth'; then
17107                   LIBPTH_PREFIX="$basedir"
17108                 fi
17109                 additional_includedir="$basedir/include"
17110                 ;;
17111               */$acl_libdirstem2 | */$acl_libdirstem2/)
17112                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17113                 if test "$name" = 'pth'; then
17114                   LIBPTH_PREFIX="$basedir"
17115                 fi
17116                 additional_includedir="$basedir/include"
17117                 ;;
17118             esac
17119             if test "X$additional_includedir" != "X"; then
17120                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17121                 haveit=
17122                 if test "X$additional_includedir" = "X/usr/local/include"; then
17123                   if test -n "$GCC"; then
17124                     case $host_os in
17125                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17126                     esac
17127                   fi
17128                 fi
17129                 if test -z "$haveit"; then
17130                   for x in $CPPFLAGS $INCPTH; do
17131
17132   acl_save_prefix="$prefix"
17133   prefix="$acl_final_prefix"
17134   acl_save_exec_prefix="$exec_prefix"
17135   exec_prefix="$acl_final_exec_prefix"
17136   eval x=\"$x\"
17137   exec_prefix="$acl_save_exec_prefix"
17138   prefix="$acl_save_prefix"
17139
17140                     if test "X$x" = "X-I$additional_includedir"; then
17141                       haveit=yes
17142                       break
17143                     fi
17144                   done
17145                   if test -z "$haveit"; then
17146                     if test -d "$additional_includedir"; then
17147                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17148                     fi
17149                   fi
17150                 fi
17151               fi
17152             fi
17153                         if test -n "$found_la"; then
17154                                                         save_libdir="$libdir"
17155               case "$found_la" in
17156                 */* | *\\*) . "$found_la" ;;
17157                 *) . "./$found_la" ;;
17158               esac
17159               libdir="$save_libdir"
17160                             for dep in $dependency_libs; do
17161                 case "$dep" in
17162                   -L*)
17163                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17164                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17165                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17166                       haveit=
17167                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17168                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17169                         if test -n "$GCC"; then
17170                           case $host_os in
17171                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17172                           esac
17173                         fi
17174                       fi
17175                       if test -z "$haveit"; then
17176                         haveit=
17177                         for x in $LDFLAGS $LIBPTH; do
17178
17179   acl_save_prefix="$prefix"
17180   prefix="$acl_final_prefix"
17181   acl_save_exec_prefix="$exec_prefix"
17182   exec_prefix="$acl_final_exec_prefix"
17183   eval x=\"$x\"
17184   exec_prefix="$acl_save_exec_prefix"
17185   prefix="$acl_save_prefix"
17186
17187                           if test "X$x" = "X-L$additional_libdir"; then
17188                             haveit=yes
17189                             break
17190                           fi
17191                         done
17192                         if test -z "$haveit"; then
17193                           if test -d "$additional_libdir"; then
17194                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17195                           fi
17196                         fi
17197                         haveit=
17198                         for x in $LDFLAGS $LTLIBPTH; do
17199
17200   acl_save_prefix="$prefix"
17201   prefix="$acl_final_prefix"
17202   acl_save_exec_prefix="$exec_prefix"
17203   exec_prefix="$acl_final_exec_prefix"
17204   eval x=\"$x\"
17205   exec_prefix="$acl_save_exec_prefix"
17206   prefix="$acl_save_prefix"
17207
17208                           if test "X$x" = "X-L$additional_libdir"; then
17209                             haveit=yes
17210                             break
17211                           fi
17212                         done
17213                         if test -z "$haveit"; then
17214                           if test -d "$additional_libdir"; then
17215                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17216                           fi
17217                         fi
17218                       fi
17219                     fi
17220                     ;;
17221                   -R*)
17222                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17223                     if test "$enable_rpath" != no; then
17224                                                                   haveit=
17225                       for x in $rpathdirs; do
17226                         if test "X$x" = "X$dir"; then
17227                           haveit=yes
17228                           break
17229                         fi
17230                       done
17231                       if test -z "$haveit"; then
17232                         rpathdirs="$rpathdirs $dir"
17233                       fi
17234                                                                   haveit=
17235                       for x in $ltrpathdirs; do
17236                         if test "X$x" = "X$dir"; then
17237                           haveit=yes
17238                           break
17239                         fi
17240                       done
17241                       if test -z "$haveit"; then
17242                         ltrpathdirs="$ltrpathdirs $dir"
17243                       fi
17244                     fi
17245                     ;;
17246                   -l*)
17247                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17248                     ;;
17249                   *.la)
17250                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17251                     ;;
17252                   *)
17253                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17254                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17255                     ;;
17256                 esac
17257               done
17258             fi
17259           else
17260                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17261             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17262           fi
17263         fi
17264       fi
17265     done
17266   done
17267   if test "X$rpathdirs" != "X"; then
17268     if test -n "$acl_hardcode_libdir_separator"; then
17269                         alldirs=
17270       for found_dir in $rpathdirs; do
17271         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17272       done
17273             acl_save_libdir="$libdir"
17274       libdir="$alldirs"
17275       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17276       libdir="$acl_save_libdir"
17277       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17278     else
17279             for found_dir in $rpathdirs; do
17280         acl_save_libdir="$libdir"
17281         libdir="$found_dir"
17282         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17283         libdir="$acl_save_libdir"
17284         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17285       done
17286     fi
17287   fi
17288   if test "X$ltrpathdirs" != "X"; then
17289             for found_dir in $ltrpathdirs; do
17290       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17291     done
17292   fi
17293
17294
17295
17296
17297
17298
17299     ac_cv_libpth_libs="$LIBPTH"
17300     ac_cv_libpth_ltlibs="$LTLIBPTH"
17301     ac_cv_libpth_cppflags="$INCPTH"
17302     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17303
17304 fi
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17306 $as_echo "$ac_cv_libpth_libs" >&6; }
17307   LIBPTH="$ac_cv_libpth_libs"
17308   LTLIBPTH="$ac_cv_libpth_ltlibs"
17309   INCPTH="$ac_cv_libpth_cppflags"
17310   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17311
17312   for element in $INCPTH; do
17313     haveit=
17314     for x in $CPPFLAGS; do
17315
17316   acl_save_prefix="$prefix"
17317   prefix="$acl_final_prefix"
17318   acl_save_exec_prefix="$exec_prefix"
17319   exec_prefix="$acl_final_exec_prefix"
17320   eval x=\"$x\"
17321   exec_prefix="$acl_save_exec_prefix"
17322   prefix="$acl_save_prefix"
17323
17324       if test "X$x" = "X$element"; then
17325         haveit=yes
17326         break
17327       fi
17328     done
17329     if test -z "$haveit"; then
17330       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17331     fi
17332   done
17333
17334
17335
17336
17337       HAVE_LIBPTH=yes
17338
17339
17340
17341       gl_have_pth=
17342       gl_save_LIBS="$LIBS"
17343       LIBS="$LIBS $LIBPTH"
17344       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h.  */
17346 #include <pth.h>
17347 int
17348 main ()
17349 {
17350 pth_self();
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 if ac_fn_c_try_link "$LINENO"; then :
17356   gl_have_pth=yes
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext \
17359     conftest$ac_exeext conftest.$ac_ext
17360       LIBS="$gl_save_LIBS"
17361       if test -n "$gl_have_pth"; then
17362         gl_threads_api=pth
17363         LIBTHREAD="$LIBPTH"
17364         LTLIBTHREAD="$LTLIBPTH"
17365         LIBMULTITHREAD="$LIBTHREAD"
17366         LTLIBMULTITHREAD="$LTLIBTHREAD"
17367
17368 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17369
17370         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17371           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17372
17373 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17374
17375             LIBTHREAD=
17376             LTLIBTHREAD=
17377           fi
17378         fi
17379       else
17380         CPPFLAGS="$gl_save_CPPFLAGS"
17381       fi
17382     fi
17383     if test -z "$gl_have_pthread"; then
17384       case "$gl_use_threads" in
17385         yes | windows | win32) # The 'win32' is for backward compatibility.
17386           if { case "$host_os" in
17387                  mingw*) true;;
17388                  *) false;;
17389                esac
17390              }; then
17391             gl_threads_api=windows
17392
17393 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17394
17395           fi
17396           ;;
17397       esac
17398     fi
17399   fi
17400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17401 $as_echo_n "checking for multithread API to use... " >&6; }
17402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17403 $as_echo "$gl_threads_api" >&6; }
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414   GNULIB__EXIT=0;
17415   GNULIB_ATOLL=0;
17416   GNULIB_CALLOC_POSIX=0;
17417   GNULIB_CANONICALIZE_FILE_NAME=0;
17418   GNULIB_GETLOADAVG=0;
17419   GNULIB_GETSUBOPT=0;
17420   GNULIB_GRANTPT=0;
17421   GNULIB_MALLOC_POSIX=0;
17422   GNULIB_MBTOWC=0;
17423   GNULIB_MKDTEMP=0;
17424   GNULIB_MKOSTEMP=0;
17425   GNULIB_MKOSTEMPS=0;
17426   GNULIB_MKSTEMP=0;
17427   GNULIB_MKSTEMPS=0;
17428   GNULIB_POSIX_OPENPT=0;
17429   GNULIB_PTSNAME=0;
17430   GNULIB_PTSNAME_R=0;
17431   GNULIB_PUTENV=0;
17432   GNULIB_RANDOM=0;
17433   GNULIB_RANDOM_R=0;
17434   GNULIB_REALLOC_POSIX=0;
17435   GNULIB_REALPATH=0;
17436   GNULIB_RPMATCH=0;
17437   GNULIB_SECURE_GETENV=0;
17438   GNULIB_SETENV=0;
17439   GNULIB_STRTOD=0;
17440   GNULIB_STRTOLL=0;
17441   GNULIB_STRTOULL=0;
17442   GNULIB_SYSTEM_POSIX=0;
17443   GNULIB_UNLOCKPT=0;
17444   GNULIB_UNSETENV=0;
17445   GNULIB_WCTOMB=0;
17446     HAVE__EXIT=1;
17447   HAVE_ATOLL=1;
17448   HAVE_CANONICALIZE_FILE_NAME=1;
17449   HAVE_DECL_GETLOADAVG=1;
17450   HAVE_GETSUBOPT=1;
17451   HAVE_GRANTPT=1;
17452   HAVE_MKDTEMP=1;
17453   HAVE_MKOSTEMP=1;
17454   HAVE_MKOSTEMPS=1;
17455   HAVE_MKSTEMP=1;
17456   HAVE_MKSTEMPS=1;
17457   HAVE_POSIX_OPENPT=1;
17458   HAVE_PTSNAME=1;
17459   HAVE_PTSNAME_R=1;
17460   HAVE_RANDOM=1;
17461   HAVE_RANDOM_H=1;
17462   HAVE_RANDOM_R=1;
17463   HAVE_REALPATH=1;
17464   HAVE_RPMATCH=1;
17465   HAVE_SECURE_GETENV=1;
17466   HAVE_SETENV=1;
17467   HAVE_DECL_SETENV=1;
17468   HAVE_STRTOD=1;
17469   HAVE_STRTOLL=1;
17470   HAVE_STRTOULL=1;
17471   HAVE_STRUCT_RANDOM_DATA=1;
17472   HAVE_SYS_LOADAVG_H=0;
17473   HAVE_UNLOCKPT=1;
17474   HAVE_DECL_UNSETENV=1;
17475   REPLACE_CALLOC=0;
17476   REPLACE_CANONICALIZE_FILE_NAME=0;
17477   REPLACE_MALLOC=0;
17478   REPLACE_MBTOWC=0;
17479   REPLACE_MKSTEMP=0;
17480   REPLACE_PTSNAME=0;
17481   REPLACE_PTSNAME_R=0;
17482   REPLACE_PUTENV=0;
17483   REPLACE_RANDOM_R=0;
17484   REPLACE_REALLOC=0;
17485   REPLACE_REALPATH=0;
17486   REPLACE_SETENV=0;
17487   REPLACE_STRTOD=0;
17488   REPLACE_UNSETENV=0;
17489   REPLACE_WCTOMB=0;
17490
17491
17492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17493 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17494 if ${gl_cv_func_malloc_posix+:} false; then :
17495   $as_echo_n "(cached) " >&6
17496 else
17497
17498                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h.  */
17500
17501 int
17502 main ()
17503 {
17504 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17505              choke me
17506              #endif
17507
17508   ;
17509   return 0;
17510 }
17511 _ACEOF
17512 if ac_fn_c_try_compile "$LINENO"; then :
17513   gl_cv_func_malloc_posix=yes
17514 else
17515   gl_cv_func_malloc_posix=no
17516 fi
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17518
17519 fi
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17521 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17522
17523
17524
17525       for ac_header in stdlib.h
17526 do :
17527   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17528 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17529   cat >>confdefs.h <<_ACEOF
17530 #define HAVE_STDLIB_H 1
17531 _ACEOF
17532
17533 fi
17534
17535 done
17536
17537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17538 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17539 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17540   $as_echo_n "(cached) " >&6
17541 else
17542   if test "$cross_compiling" = yes; then :
17543   case "$host_os" in
17544           # Guess yes on platforms where we know the result.
17545           *-gnu* | freebsd* | netbsd* | openbsd* \
17546           | hpux* | solaris* | cygwin* | mingw*)
17547             ac_cv_func_malloc_0_nonnull=yes ;;
17548           # If we don't know, assume the worst.
17549           *) ac_cv_func_malloc_0_nonnull=no ;;
17550         esac
17551
17552 else
17553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h.  */
17555 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17556             # include <stdlib.h>
17557             #else
17558             char *malloc ();
17559             #endif
17560
17561 int
17562 main ()
17563 {
17564 return ! malloc (0);
17565   ;
17566   return 0;
17567 }
17568
17569 _ACEOF
17570 if ac_fn_c_try_run "$LINENO"; then :
17571   ac_cv_func_malloc_0_nonnull=yes
17572 else
17573   ac_cv_func_malloc_0_nonnull=no
17574 fi
17575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17576   conftest.$ac_objext conftest.beam conftest.$ac_ext
17577 fi
17578
17579
17580 fi
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17582 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17583   if test $ac_cv_func_malloc_0_nonnull = yes; then :
17584   gl_cv_func_malloc_0_nonnull=1
17585 else
17586   gl_cv_func_malloc_0_nonnull=0
17587 fi
17588
17589
17590 cat >>confdefs.h <<_ACEOF
17591 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17592 _ACEOF
17593
17594
17595
17596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17597 $as_echo_n "checking for unsigned long long int... " >&6; }
17598 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17599   $as_echo_n "(cached) " >&6
17600 else
17601   ac_cv_type_unsigned_long_long_int=yes
17602      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17603        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h.  */
17605
17606   /* For now, do not test the preprocessor; as of 2007 there are too many
17607          implementations with broken preprocessors.  Perhaps this can
17608          be revisited in 2012.  In the meantime, code should not expect
17609          #if to work with literals wider than 32 bits.  */
17610       /* Test literals.  */
17611       long long int ll = 9223372036854775807ll;
17612       long long int nll = -9223372036854775807LL;
17613       unsigned long long int ull = 18446744073709551615ULL;
17614       /* Test constant expressions.   */
17615       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17616                      ? 1 : -1)];
17617       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17618                      ? 1 : -1)];
17619       int i = 63;
17620 int
17621 main ()
17622 {
17623 /* Test availability of runtime routines for shift and division.  */
17624       long long int llmax = 9223372036854775807ll;
17625       unsigned long long int ullmax = 18446744073709551615ull;
17626       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17627               | (llmax / ll) | (llmax % ll)
17628               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17629               | (ullmax / ull) | (ullmax % ull));
17630   ;
17631   return 0;
17632 }
17633
17634 _ACEOF
17635 if ac_fn_c_try_link "$LINENO"; then :
17636
17637 else
17638   ac_cv_type_unsigned_long_long_int=no
17639 fi
17640 rm -f core conftest.err conftest.$ac_objext \
17641     conftest$ac_exeext conftest.$ac_ext
17642      fi
17643 fi
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17645 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17646   if test $ac_cv_type_unsigned_long_long_int = yes; then
17647
17648 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17649
17650   fi
17651
17652
17653
17654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17655 $as_echo_n "checking for long long int... " >&6; }
17656 if ${ac_cv_type_long_long_int+:} false; then :
17657   $as_echo_n "(cached) " >&6
17658 else
17659   ac_cv_type_long_long_int=yes
17660       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17661         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17662         if test $ac_cv_type_long_long_int = yes; then
17663                                         if test "$cross_compiling" = yes; then :
17664   :
17665 else
17666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h.  */
17668 #include <limits.h>
17669                  #ifndef LLONG_MAX
17670                  # define HALF \
17671                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17672                  # define LLONG_MAX (HALF - 1 + HALF)
17673                  #endif
17674 int
17675 main ()
17676 {
17677 long long int n = 1;
17678                  int i;
17679                  for (i = 0; ; i++)
17680                    {
17681                      long long int m = n << i;
17682                      if (m >> i != n)
17683                        return 1;
17684                      if (LLONG_MAX / 2 < m)
17685                        break;
17686                    }
17687                  return 0;
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 if ac_fn_c_try_run "$LINENO"; then :
17693
17694 else
17695   ac_cv_type_long_long_int=no
17696 fi
17697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17698   conftest.$ac_objext conftest.beam conftest.$ac_ext
17699 fi
17700
17701         fi
17702       fi
17703 fi
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17705 $as_echo "$ac_cv_type_long_long_int" >&6; }
17706   if test $ac_cv_type_long_long_int = yes; then
17707
17708 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17709
17710   fi
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721   for ac_func in $gl_func_list
17722 do :
17723   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17725 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17726   cat >>confdefs.h <<_ACEOF
17727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17728 _ACEOF
17729
17730 fi
17731 done
17732
17733
17734
17735
17736
17737
17738   GNULIB_FFSL=0;
17739   GNULIB_FFSLL=0;
17740   GNULIB_MEMCHR=0;
17741   GNULIB_MEMMEM=0;
17742   GNULIB_MEMPCPY=0;
17743   GNULIB_MEMRCHR=0;
17744   GNULIB_RAWMEMCHR=0;
17745   GNULIB_STPCPY=0;
17746   GNULIB_STPNCPY=0;
17747   GNULIB_STRCHRNUL=0;
17748   GNULIB_STRDUP=0;
17749   GNULIB_STRNCAT=0;
17750   GNULIB_STRNDUP=0;
17751   GNULIB_STRNLEN=0;
17752   GNULIB_STRPBRK=0;
17753   GNULIB_STRSEP=0;
17754   GNULIB_STRSTR=0;
17755   GNULIB_STRCASESTR=0;
17756   GNULIB_STRTOK_R=0;
17757   GNULIB_MBSLEN=0;
17758   GNULIB_MBSNLEN=0;
17759   GNULIB_MBSCHR=0;
17760   GNULIB_MBSRCHR=0;
17761   GNULIB_MBSSTR=0;
17762   GNULIB_MBSCASECMP=0;
17763   GNULIB_MBSNCASECMP=0;
17764   GNULIB_MBSPCASECMP=0;
17765   GNULIB_MBSCASESTR=0;
17766   GNULIB_MBSCSPN=0;
17767   GNULIB_MBSPBRK=0;
17768   GNULIB_MBSSPN=0;
17769   GNULIB_MBSSEP=0;
17770   GNULIB_MBSTOK_R=0;
17771   GNULIB_STRERROR=0;
17772   GNULIB_STRERROR_R=0;
17773   GNULIB_STRSIGNAL=0;
17774   GNULIB_STRVERSCMP=0;
17775   HAVE_MBSLEN=0;
17776     HAVE_FFSL=1;
17777   HAVE_FFSLL=1;
17778   HAVE_MEMCHR=1;
17779   HAVE_DECL_MEMMEM=1;
17780   HAVE_MEMPCPY=1;
17781   HAVE_DECL_MEMRCHR=1;
17782   HAVE_RAWMEMCHR=1;
17783   HAVE_STPCPY=1;
17784   HAVE_STPNCPY=1;
17785   HAVE_STRCHRNUL=1;
17786   HAVE_DECL_STRDUP=1;
17787   HAVE_DECL_STRNDUP=1;
17788   HAVE_DECL_STRNLEN=1;
17789   HAVE_STRPBRK=1;
17790   HAVE_STRSEP=1;
17791   HAVE_STRCASESTR=1;
17792   HAVE_DECL_STRTOK_R=1;
17793   HAVE_DECL_STRERROR_R=1;
17794   HAVE_DECL_STRSIGNAL=1;
17795   HAVE_STRVERSCMP=1;
17796   REPLACE_MEMCHR=0;
17797   REPLACE_MEMMEM=0;
17798   REPLACE_STPNCPY=0;
17799   REPLACE_STRDUP=0;
17800   REPLACE_STRSTR=0;
17801   REPLACE_STRCASESTR=0;
17802   REPLACE_STRCHRNUL=0;
17803   REPLACE_STRERROR=0;
17804   REPLACE_STRERROR_R=0;
17805   REPLACE_STRNCAT=0;
17806   REPLACE_STRNDUP=0;
17807   REPLACE_STRNLEN=0;
17808   REPLACE_STRSIGNAL=0;
17809   REPLACE_STRTOK_R=0;
17810   UNDEFINE_STRTOK_R=0;
17811
17812
17813
17814
17815
17816   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17817   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17818   # irrelevant for anonymous mappings.
17819   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17820 if test "x$ac_cv_func_mmap" = xyes; then :
17821   gl_have_mmap=yes
17822 else
17823   gl_have_mmap=no
17824 fi
17825
17826
17827   # Try to allow MAP_ANONYMOUS.
17828   gl_have_mmap_anonymous=no
17829   if test $gl_have_mmap = yes; then
17830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17831 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h.  */
17834
17835 #include <sys/mman.h>
17836 #ifdef MAP_ANONYMOUS
17837     I cannot identify this map
17838 #endif
17839
17840 _ACEOF
17841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17842   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17843   gl_have_mmap_anonymous=yes
17844 fi
17845 rm -f conftest*
17846
17847     if test $gl_have_mmap_anonymous != yes; then
17848       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h.  */
17850
17851 #include <sys/mman.h>
17852 #ifdef MAP_ANON
17853     I cannot identify this map
17854 #endif
17855
17856 _ACEOF
17857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17858   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17859
17860 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17861
17862          gl_have_mmap_anonymous=yes
17863 fi
17864 rm -f conftest*
17865
17866     fi
17867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17868 $as_echo "$gl_have_mmap_anonymous" >&6; }
17869     if test $gl_have_mmap_anonymous = yes; then
17870
17871 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17872
17873     fi
17874   fi
17875
17876
17877   :
17878
17879
17880
17881
17882
17883
17884   :
17885
17886
17887
17888
17889
17890
17891
17892
17893   if test $HAVE_MEMCHR = 1; then
17894     # Detect platform-specific bugs in some versions of glibc:
17895     # memchr should not dereference anything with length 0
17896     #   http://bugzilla.redhat.com/499689
17897     # memchr should not dereference overestimated length after a match
17898     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17899     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17900     # Assume that memchr works on platforms that lack mprotect.
17901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17902 $as_echo_n "checking whether memchr works... " >&6; }
17903 if ${gl_cv_func_memchr_works+:} false; then :
17904   $as_echo_n "(cached) " >&6
17905 else
17906   if test "$cross_compiling" = yes; then :
17907          gl_cv_func_memchr_works="guessing no"
17908 else
17909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h.  */
17911
17912 #include <string.h>
17913 #if HAVE_SYS_MMAN_H
17914 # include <fcntl.h>
17915 # include <unistd.h>
17916 # include <sys/types.h>
17917 # include <sys/mman.h>
17918 # ifndef MAP_FILE
17919 #  define MAP_FILE 0
17920 # endif
17921 #endif
17922
17923 int
17924 main ()
17925 {
17926
17927   int result = 0;
17928   char *fence = NULL;
17929 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17930 # if HAVE_MAP_ANONYMOUS
17931   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17932   const int fd = -1;
17933 # else /* !HAVE_MAP_ANONYMOUS */
17934   const int flags = MAP_FILE | MAP_PRIVATE;
17935   int fd = open ("/dev/zero", O_RDONLY, 0666);
17936   if (fd >= 0)
17937 # endif
17938     {
17939       int pagesize = getpagesize ();
17940       char *two_pages =
17941         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17942                        flags, fd, 0);
17943       if (two_pages != (char *)(-1)
17944           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17945         fence = two_pages + pagesize;
17946     }
17947 #endif
17948   if (fence)
17949     {
17950       if (memchr (fence, 0, 0))
17951         result |= 1;
17952       strcpy (fence - 9, "12345678");
17953       if (memchr (fence - 9, 0, 79) != fence - 1)
17954         result |= 2;
17955       if (memchr (fence - 1, 0, 3) != fence - 1)
17956         result |= 4;
17957     }
17958   return result;
17959
17960   ;
17961   return 0;
17962 }
17963 _ACEOF
17964 if ac_fn_c_try_run "$LINENO"; then :
17965   gl_cv_func_memchr_works=yes
17966 else
17967   gl_cv_func_memchr_works=no
17968 fi
17969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17970   conftest.$ac_objext conftest.beam conftest.$ac_ext
17971 fi
17972
17973 fi
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17975 $as_echo "$gl_cv_func_memchr_works" >&6; }
17976     if test "$gl_cv_func_memchr_works" != yes; then
17977       REPLACE_MEMCHR=1
17978     fi
17979   fi
17980
17981
17982
17983
17984
17985
17986
17987     gl_cv_c_multiarch=no
17988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h.  */
17990 #ifndef __APPLE_CC__
17991          not a universal capable compiler
17992         #endif
17993         typedef int dummy;
17994
17995 _ACEOF
17996 if ac_fn_c_try_compile "$LINENO"; then :
17997
17998                arch=
17999      prev=
18000      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18001        if test -n "$prev"; then
18002          case $word in
18003            i?86 | x86_64 | ppc | ppc64)
18004              if test -z "$arch" || test "$arch" = "$word"; then
18005                arch="$word"
18006              else
18007                gl_cv_c_multiarch=yes
18008              fi
18009              ;;
18010          esac
18011          prev=
18012        else
18013          if test "x$word" = "x-arch"; then
18014            prev=arch
18015          fi
18016        fi
18017      done
18018
18019 fi
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021   if test $gl_cv_c_multiarch = yes; then
18022     APPLE_UNIVERSAL_BUILD=1
18023   else
18024     APPLE_UNIVERSAL_BUILD=0
18025   fi
18026
18027
18028
18029   GNULIB_PTHREAD_SIGMASK=0;
18030   GNULIB_RAISE=0;
18031   GNULIB_SIGNAL_H_SIGPIPE=0;
18032   GNULIB_SIGPROCMASK=0;
18033   GNULIB_SIGACTION=0;
18034     HAVE_POSIX_SIGNALBLOCKING=1;
18035   HAVE_PTHREAD_SIGMASK=1;
18036   HAVE_RAISE=1;
18037   HAVE_SIGSET_T=1;
18038   HAVE_SIGINFO_T=1;
18039   HAVE_SIGACTION=1;
18040   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18041
18042   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18043
18044   HAVE_SIGHANDLER_T=1;
18045   REPLACE_PTHREAD_SIGMASK=0;
18046   REPLACE_RAISE=0;
18047
18048
18049   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18050       #include <signal.h>
18051       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
18052       #include <sys/types.h>
18053
18054 "
18055 if test "x$ac_cv_type_sigset_t" = xyes; then :
18056
18057 cat >>confdefs.h <<_ACEOF
18058 #define HAVE_SIGSET_T 1
18059 _ACEOF
18060
18061 gl_cv_type_sigset_t=yes
18062 else
18063   gl_cv_type_sigset_t=no
18064 fi
18065
18066   if test $gl_cv_type_sigset_t != yes; then
18067     HAVE_SIGSET_T=0
18068   fi
18069
18070
18071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
18072 $as_echo_n "checking for ssize_t... " >&6; }
18073 if ${gt_cv_ssize_t+:} false; then :
18074   $as_echo_n "(cached) " >&6
18075 else
18076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h.  */
18078 #include <sys/types.h>
18079 int
18080 main ()
18081 {
18082 int x = sizeof (ssize_t *) + sizeof (ssize_t);
18083             return !x;
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 if ac_fn_c_try_compile "$LINENO"; then :
18089   gt_cv_ssize_t=yes
18090 else
18091   gt_cv_ssize_t=no
18092 fi
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094 fi
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
18096 $as_echo "$gt_cv_ssize_t" >&6; }
18097   if test $gt_cv_ssize_t = no; then
18098
18099 $as_echo "#define ssize_t int" >>confdefs.h
18100
18101   fi
18102
18103
18104       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
18105 if test "x$ac_cv_have_decl_setenv" = xyes; then :
18106   ac_have_decl=1
18107 else
18108   ac_have_decl=0
18109 fi
18110
18111 cat >>confdefs.h <<_ACEOF
18112 #define HAVE_DECL_SETENV $ac_have_decl
18113 _ACEOF
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124   :
18125
18126
18127
18128
18129
18130   if test $ac_cv_have_decl_setenv = no; then
18131     HAVE_DECL_SETENV=0
18132   fi
18133
18134   :
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144   :
18145
18146
18147
18148
18149
18150   for ac_header in search.h
18151 do :
18152   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
18153 if test "x$ac_cv_header_search_h" = xyes; then :
18154   cat >>confdefs.h <<_ACEOF
18155 #define HAVE_SEARCH_H 1
18156 _ACEOF
18157
18158 fi
18159
18160 done
18161
18162   for ac_func in tsearch
18163 do :
18164   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
18165 if test "x$ac_cv_func_tsearch" = xyes; then :
18166   cat >>confdefs.h <<_ACEOF
18167 #define HAVE_TSEARCH 1
18168 _ACEOF
18169
18170 fi
18171 done
18172
18173
18174
18175
18176
18177
18178
18179
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18181 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18182 if ${ac_cv_c_restrict+:} false; then :
18183   $as_echo_n "(cached) " >&6
18184 else
18185   ac_cv_c_restrict=no
18186    # The order here caters to the fact that C++ does not require restrict.
18187    for ac_kw in __restrict __restrict__ _Restrict restrict; do
18188      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h.  */
18190 typedef int * int_ptr;
18191         int foo (int_ptr $ac_kw ip) {
18192         return ip[0];
18193        }
18194 int
18195 main ()
18196 {
18197 int s[1];
18198         int * $ac_kw t = s;
18199         t[0] = 0;
18200         return foo(t)
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 if ac_fn_c_try_compile "$LINENO"; then :
18206   ac_cv_c_restrict=$ac_kw
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209      test "$ac_cv_c_restrict" != no && break
18210    done
18211
18212 fi
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18214 $as_echo "$ac_cv_c_restrict" >&6; }
18215
18216  case $ac_cv_c_restrict in
18217    restrict) ;;
18218    no) $as_echo "#define restrict /**/" >>confdefs.h
18219  ;;
18220    *)  cat >>confdefs.h <<_ACEOF
18221 #define restrict $ac_cv_c_restrict
18222 _ACEOF
18223  ;;
18224  esac
18225
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18227 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18228 if ${ac_cv_type_uid_t+:} false; then :
18229   $as_echo_n "(cached) " >&6
18230 else
18231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h.  */
18233 #include <sys/types.h>
18234
18235 _ACEOF
18236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18237   $EGREP "uid_t" >/dev/null 2>&1; then :
18238   ac_cv_type_uid_t=yes
18239 else
18240   ac_cv_type_uid_t=no
18241 fi
18242 rm -f conftest*
18243
18244 fi
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18246 $as_echo "$ac_cv_type_uid_t" >&6; }
18247 if test $ac_cv_type_uid_t = no; then
18248
18249 $as_echo "#define uid_t int" >>confdefs.h
18250
18251
18252 $as_echo "#define gid_t int" >>confdefs.h
18253
18254 fi
18255
18256 :
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18268 if test "x$ac_cv_type_pid_t" = xyes; then :
18269
18270 else
18271
18272 cat >>confdefs.h <<_ACEOF
18273 #define pid_t int
18274 _ACEOF
18275
18276 fi
18277
18278
18279   GNULIB_DPRINTF=0;
18280   GNULIB_FCLOSE=0;
18281   GNULIB_FDOPEN=0;
18282   GNULIB_FFLUSH=0;
18283   GNULIB_FGETC=0;
18284   GNULIB_FGETS=0;
18285   GNULIB_FOPEN=0;
18286   GNULIB_FPRINTF=0;
18287   GNULIB_FPRINTF_POSIX=0;
18288   GNULIB_FPURGE=0;
18289   GNULIB_FPUTC=0;
18290   GNULIB_FPUTS=0;
18291   GNULIB_FREAD=0;
18292   GNULIB_FREOPEN=0;
18293   GNULIB_FSCANF=0;
18294   GNULIB_FSEEK=0;
18295   GNULIB_FSEEKO=0;
18296   GNULIB_FTELL=0;
18297   GNULIB_FTELLO=0;
18298   GNULIB_FWRITE=0;
18299   GNULIB_GETC=0;
18300   GNULIB_GETCHAR=0;
18301   GNULIB_GETDELIM=0;
18302   GNULIB_GETLINE=0;
18303   GNULIB_OBSTACK_PRINTF=0;
18304   GNULIB_OBSTACK_PRINTF_POSIX=0;
18305   GNULIB_PCLOSE=0;
18306   GNULIB_PERROR=0;
18307   GNULIB_POPEN=0;
18308   GNULIB_PRINTF=0;
18309   GNULIB_PRINTF_POSIX=0;
18310   GNULIB_PUTC=0;
18311   GNULIB_PUTCHAR=0;
18312   GNULIB_PUTS=0;
18313   GNULIB_REMOVE=0;
18314   GNULIB_RENAME=0;
18315   GNULIB_RENAMEAT=0;
18316   GNULIB_SCANF=0;
18317   GNULIB_SNPRINTF=0;
18318   GNULIB_SPRINTF_POSIX=0;
18319   GNULIB_STDIO_H_NONBLOCKING=0;
18320   GNULIB_STDIO_H_SIGPIPE=0;
18321   GNULIB_TMPFILE=0;
18322   GNULIB_VASPRINTF=0;
18323   GNULIB_VFSCANF=0;
18324   GNULIB_VSCANF=0;
18325   GNULIB_VDPRINTF=0;
18326   GNULIB_VFPRINTF=0;
18327   GNULIB_VFPRINTF_POSIX=0;
18328   GNULIB_VPRINTF=0;
18329   GNULIB_VPRINTF_POSIX=0;
18330   GNULIB_VSNPRINTF=0;
18331   GNULIB_VSPRINTF_POSIX=0;
18332     HAVE_DECL_FPURGE=1;
18333   HAVE_DECL_FSEEKO=1;
18334   HAVE_DECL_FTELLO=1;
18335   HAVE_DECL_GETDELIM=1;
18336   HAVE_DECL_GETLINE=1;
18337   HAVE_DECL_OBSTACK_PRINTF=1;
18338   HAVE_DECL_SNPRINTF=1;
18339   HAVE_DECL_VSNPRINTF=1;
18340   HAVE_DPRINTF=1;
18341   HAVE_FSEEKO=1;
18342   HAVE_FTELLO=1;
18343   HAVE_PCLOSE=1;
18344   HAVE_POPEN=1;
18345   HAVE_RENAMEAT=1;
18346   HAVE_VASPRINTF=1;
18347   HAVE_VDPRINTF=1;
18348   REPLACE_DPRINTF=0;
18349   REPLACE_FCLOSE=0;
18350   REPLACE_FDOPEN=0;
18351   REPLACE_FFLUSH=0;
18352   REPLACE_FOPEN=0;
18353   REPLACE_FPRINTF=0;
18354   REPLACE_FPURGE=0;
18355   REPLACE_FREOPEN=0;
18356   REPLACE_FSEEK=0;
18357   REPLACE_FSEEKO=0;
18358   REPLACE_FTELL=0;
18359   REPLACE_FTELLO=0;
18360   REPLACE_GETDELIM=0;
18361   REPLACE_GETLINE=0;
18362   REPLACE_OBSTACK_PRINTF=0;
18363   REPLACE_PERROR=0;
18364   REPLACE_POPEN=0;
18365   REPLACE_PRINTF=0;
18366   REPLACE_REMOVE=0;
18367   REPLACE_RENAME=0;
18368   REPLACE_RENAMEAT=0;
18369   REPLACE_SNPRINTF=0;
18370   REPLACE_SPRINTF=0;
18371   REPLACE_STDIO_READ_FUNCS=0;
18372   REPLACE_STDIO_WRITE_FUNCS=0;
18373   REPLACE_TMPFILE=0;
18374   REPLACE_VASPRINTF=0;
18375   REPLACE_VDPRINTF=0;
18376   REPLACE_VFPRINTF=0;
18377   REPLACE_VPRINTF=0;
18378   REPLACE_VSNPRINTF=0;
18379   REPLACE_VSPRINTF=0;
18380
18381
18382
18383
18384
18385
18386
18387
18388   :
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
18399 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
18400 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
18401   $as_echo_n "(cached) " >&6
18402 else
18403
18404       if test "$cross_compiling" = yes; then :
18405
18406          case "$host_os" in
18407                                  # Guess yes on glibc systems.
18408            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
18409                                  # Guess yes on FreeBSD >= 5.
18410            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
18411            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18412                                  # Guess yes on Mac OS X >= 10.3.
18413            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
18414            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
18415                                  # Guess yes on OpenBSD >= 3.9.
18416            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
18417                                  gl_cv_func_snprintf_retval_c99="guessing no";;
18418            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
18419                                  # Guess yes on Solaris >= 2.10.
18420            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
18421            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
18422                                  # Guess yes on AIX >= 4.
18423            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
18424            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
18425                                  # Guess yes on NetBSD >= 3.
18426            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18427                                  gl_cv_func_snprintf_retval_c99="guessing no";;
18428            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
18429                                  # Guess yes on BeOS.
18430            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
18431                                  # If we don't know, assume the worst.
18432            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
18433          esac
18434
18435 else
18436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h.  */
18438
18439 #include <stdio.h>
18440 #include <string.h>
18441 #if HAVE_SNPRINTF
18442 # define my_snprintf snprintf
18443 #else
18444 # include <stdarg.h>
18445 static int my_snprintf (char *buf, int size, const char *format, ...)
18446 {
18447   va_list args;
18448   int ret;
18449   va_start (args, format);
18450   ret = vsnprintf (buf, size, format, args);
18451   va_end (args);
18452   return ret;
18453 }
18454 #endif
18455 static char buf[100];
18456 int main ()
18457 {
18458   strcpy (buf, "ABCDEF");
18459   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18460     return 1;
18461   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
18462     return 2;
18463   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
18464     return 3;
18465   return 0;
18466 }
18467 _ACEOF
18468 if ac_fn_c_try_run "$LINENO"; then :
18469   gl_cv_func_snprintf_retval_c99=yes
18470 else
18471   gl_cv_func_snprintf_retval_c99=no
18472 fi
18473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18474   conftest.$ac_objext conftest.beam conftest.$ac_ext
18475 fi
18476
18477
18478 fi
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18480 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18481
18482
18483       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18484 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18485   ac_have_decl=1
18486 else
18487   ac_have_decl=0
18488 fi
18489
18490 cat >>confdefs.h <<_ACEOF
18491 #define HAVE_DECL_SNPRINTF $ac_have_decl
18492 _ACEOF
18493
18494
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18496 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18497 if ${ac_cv_header_stdbool_h+:} false; then :
18498   $as_echo_n "(cached) " >&6
18499 else
18500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h.  */
18502
18503              #include <stdbool.h>
18504              #ifndef bool
18505               "error: bool is not defined"
18506              #endif
18507              #ifndef false
18508               "error: false is not defined"
18509              #endif
18510              #if false
18511               "error: false is not 0"
18512              #endif
18513              #ifndef true
18514               "error: true is not defined"
18515              #endif
18516              #if true != 1
18517               "error: true is not 1"
18518              #endif
18519              #ifndef __bool_true_false_are_defined
18520               "error: __bool_true_false_are_defined is not defined"
18521              #endif
18522
18523              struct s { _Bool s: 1; _Bool t; } s;
18524
18525              char a[true == 1 ? 1 : -1];
18526              char b[false == 0 ? 1 : -1];
18527              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18528              char d[(bool) 0.5 == true ? 1 : -1];
18529              /* See body of main program for 'e'.  */
18530              char f[(_Bool) 0.0 == false ? 1 : -1];
18531              char g[true];
18532              char h[sizeof (_Bool)];
18533              char i[sizeof s.t];
18534              enum { j = false, k = true, l = false * true, m = true * 256 };
18535              /* The following fails for
18536                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18537              _Bool n[m];
18538              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18539              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18540              /* Catch a bug in an HP-UX C compiler.  See
18541                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18542                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18543               */
18544              _Bool q = true;
18545              _Bool *pq = &q;
18546
18547 int
18548 main ()
18549 {
18550
18551              bool e = &s;
18552              *pq |= q;
18553              *pq |= ! q;
18554              /* Refer to every declared value, to avoid compiler optimizations.  */
18555              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18556                      + !m + !n + !o + !p + !q + !pq);
18557
18558   ;
18559   return 0;
18560 }
18561 _ACEOF
18562 if ac_fn_c_try_compile "$LINENO"; then :
18563   ac_cv_header_stdbool_h=yes
18564 else
18565   ac_cv_header_stdbool_h=no
18566 fi
18567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18568 fi
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18570 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18571    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18572 if test "x$ac_cv_type__Bool" = xyes; then :
18573
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE__BOOL 1
18576 _ACEOF
18577
18578
18579 fi
18580
18581
18582
18583     REPLACE_NULL=0;
18584   HAVE_WCHAR_T=1;
18585
18586
18587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18588 $as_echo_n "checking for wchar_t... " >&6; }
18589 if ${gt_cv_c_wchar_t+:} false; then :
18590   $as_echo_n "(cached) " >&6
18591 else
18592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h.  */
18594 #include <stddef.h>
18595             wchar_t foo = (wchar_t)'\0';
18596 int
18597 main ()
18598 {
18599
18600   ;
18601   return 0;
18602 }
18603 _ACEOF
18604 if ac_fn_c_try_compile "$LINENO"; then :
18605   gt_cv_c_wchar_t=yes
18606 else
18607   gt_cv_c_wchar_t=no
18608 fi
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610 fi
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18612 $as_echo "$gt_cv_c_wchar_t" >&6; }
18613   if test $gt_cv_c_wchar_t = yes; then
18614
18615 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18616
18617   fi
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632   if test $ac_cv_type_long_long_int = yes; then
18633     HAVE_LONG_LONG_INT=1
18634   else
18635     HAVE_LONG_LONG_INT=0
18636   fi
18637
18638
18639   if test $ac_cv_type_unsigned_long_long_int = yes; then
18640     HAVE_UNSIGNED_LONG_LONG_INT=1
18641   else
18642     HAVE_UNSIGNED_LONG_LONG_INT=0
18643   fi
18644
18645
18646
18647   :
18648
18649
18650
18651
18652
18653   if test $ac_cv_header_wchar_h = yes; then
18654     HAVE_WCHAR_H=1
18655   else
18656     HAVE_WCHAR_H=0
18657   fi
18658
18659
18660       if test $ac_cv_header_inttypes_h = yes; then
18661     HAVE_INTTYPES_H=1
18662   else
18663     HAVE_INTTYPES_H=0
18664   fi
18665
18666
18667       if test $ac_cv_header_sys_types_h = yes; then
18668     HAVE_SYS_TYPES_H=1
18669   else
18670     HAVE_SYS_TYPES_H=0
18671   fi
18672
18673
18674
18675
18676
18677
18678
18679
18680   :
18681
18682
18683
18684
18685
18686
18687
18688
18689      if test $gl_cv_have_include_next = yes; then
18690        gl_cv_next_stdint_h='<'stdint.h'>'
18691      else
18692        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18693 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18694 if ${gl_cv_next_stdint_h+:} false; then :
18695   $as_echo_n "(cached) " >&6
18696 else
18697
18698              if test $ac_cv_header_stdint_h = yes; then
18699
18700
18701                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h.  */
18703 #include <stdint.h>
18704
18705 _ACEOF
18706                                                                                                                         case "$host_os" in
18707                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
18708                  *)    gl_absname_cpp="$ac_cpp" ;;
18709                esac
18710
18711                case "$host_os" in
18712                  mingw*)
18713                                                                                                                                      gl_dirsep_regex='[/\\]'
18714                    ;;
18715                  *)
18716                    gl_dirsep_regex='\/'
18717                    ;;
18718                esac
18719                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18720
18721                gl_header_literal_regex=`echo 'stdint.h' \
18722                                         | sed -e "$gl_make_literal_regex_sed"`
18723                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18724                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18725                    s|^/[^/]|//&|
18726                    p
18727                    q
18728                  }'
18729                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18730                       sed -n "$gl_absolute_header_sed"`'"'
18731           else
18732                gl_cv_next_stdint_h='<'stdint.h'>'
18733              fi
18734
18735
18736 fi
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18738 $as_echo "$gl_cv_next_stdint_h" >&6; }
18739      fi
18740      NEXT_STDINT_H=$gl_cv_next_stdint_h
18741
18742      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18743        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18744        gl_next_as_first_directive='<'stdint.h'>'
18745      else
18746        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18747        gl_next_as_first_directive=$gl_cv_next_stdint_h
18748      fi
18749      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18750
18751
18752
18753
18754   if test $ac_cv_header_stdint_h = yes; then
18755     HAVE_STDINT_H=1
18756   else
18757     HAVE_STDINT_H=0
18758   fi
18759
18760
18761     if test $ac_cv_header_stdint_h = yes; then
18762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18763 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18764 if ${gl_cv_header_working_stdint_h+:} false; then :
18765   $as_echo_n "(cached) " >&6
18766 else
18767   gl_cv_header_working_stdint_h=no
18768        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h.  */
18770
18771
18772 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18773 #include <stdint.h>
18774 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
18775 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18776 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18777 #endif
18778
18779
18780   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18781      included before <wchar.h>.  */
18782   #include <stddef.h>
18783   #include <signal.h>
18784   #if HAVE_WCHAR_H
18785   # include <stdio.h>
18786   # include <time.h>
18787   # include <wchar.h>
18788   #endif
18789
18790
18791 #ifdef INT8_MAX
18792 int8_t a1 = INT8_MAX;
18793 int8_t a1min = INT8_MIN;
18794 #endif
18795 #ifdef INT16_MAX
18796 int16_t a2 = INT16_MAX;
18797 int16_t a2min = INT16_MIN;
18798 #endif
18799 #ifdef INT32_MAX
18800 int32_t a3 = INT32_MAX;
18801 int32_t a3min = INT32_MIN;
18802 #endif
18803 #ifdef INT64_MAX
18804 int64_t a4 = INT64_MAX;
18805 int64_t a4min = INT64_MIN;
18806 #endif
18807 #ifdef UINT8_MAX
18808 uint8_t b1 = UINT8_MAX;
18809 #else
18810 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18811 #endif
18812 #ifdef UINT16_MAX
18813 uint16_t b2 = UINT16_MAX;
18814 #endif
18815 #ifdef UINT32_MAX
18816 uint32_t b3 = UINT32_MAX;
18817 #endif
18818 #ifdef UINT64_MAX
18819 uint64_t b4 = UINT64_MAX;
18820 #endif
18821 int_least8_t c1 = INT8_C (0x7f);
18822 int_least8_t c1max = INT_LEAST8_MAX;
18823 int_least8_t c1min = INT_LEAST8_MIN;
18824 int_least16_t c2 = INT16_C (0x7fff);
18825 int_least16_t c2max = INT_LEAST16_MAX;
18826 int_least16_t c2min = INT_LEAST16_MIN;
18827 int_least32_t c3 = INT32_C (0x7fffffff);
18828 int_least32_t c3max = INT_LEAST32_MAX;
18829 int_least32_t c3min = INT_LEAST32_MIN;
18830 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18831 int_least64_t c4max = INT_LEAST64_MAX;
18832 int_least64_t c4min = INT_LEAST64_MIN;
18833 uint_least8_t d1 = UINT8_C (0xff);
18834 uint_least8_t d1max = UINT_LEAST8_MAX;
18835 uint_least16_t d2 = UINT16_C (0xffff);
18836 uint_least16_t d2max = UINT_LEAST16_MAX;
18837 uint_least32_t d3 = UINT32_C (0xffffffff);
18838 uint_least32_t d3max = UINT_LEAST32_MAX;
18839 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18840 uint_least64_t d4max = UINT_LEAST64_MAX;
18841 int_fast8_t e1 = INT_FAST8_MAX;
18842 int_fast8_t e1min = INT_FAST8_MIN;
18843 int_fast16_t e2 = INT_FAST16_MAX;
18844 int_fast16_t e2min = INT_FAST16_MIN;
18845 int_fast32_t e3 = INT_FAST32_MAX;
18846 int_fast32_t e3min = INT_FAST32_MIN;
18847 int_fast64_t e4 = INT_FAST64_MAX;
18848 int_fast64_t e4min = INT_FAST64_MIN;
18849 uint_fast8_t f1 = UINT_FAST8_MAX;
18850 uint_fast16_t f2 = UINT_FAST16_MAX;
18851 uint_fast32_t f3 = UINT_FAST32_MAX;
18852 uint_fast64_t f4 = UINT_FAST64_MAX;
18853 #ifdef INTPTR_MAX
18854 intptr_t g = INTPTR_MAX;
18855 intptr_t gmin = INTPTR_MIN;
18856 #endif
18857 #ifdef UINTPTR_MAX
18858 uintptr_t h = UINTPTR_MAX;
18859 #endif
18860 intmax_t i = INTMAX_MAX;
18861 uintmax_t j = UINTMAX_MAX;
18862
18863 #include <limits.h> /* for CHAR_BIT */
18864 #define TYPE_MINIMUM(t) \
18865   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18866 #define TYPE_MAXIMUM(t) \
18867   ((t) ((t) 0 < (t) -1 \
18868         ? (t) -1 \
18869         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18870 struct s {
18871   int check_PTRDIFF:
18872       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18873       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18874       ? 1 : -1;
18875   /* Detect bug in FreeBSD 6.0 / ia64.  */
18876   int check_SIG_ATOMIC:
18877       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18878       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18879       ? 1 : -1;
18880   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18881   int check_WCHAR:
18882       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18883       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18884       ? 1 : -1;
18885   /* Detect bug in mingw.  */
18886   int check_WINT:
18887       WINT_MIN == TYPE_MINIMUM (wint_t)
18888       && WINT_MAX == TYPE_MAXIMUM (wint_t)
18889       ? 1 : -1;
18890
18891   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
18892   int check_UINT8_C:
18893         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18894   int check_UINT16_C:
18895         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18896
18897   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
18898 #ifdef UINT8_MAX
18899   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18900 #endif
18901 #ifdef UINT16_MAX
18902   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18903 #endif
18904 #ifdef UINT32_MAX
18905   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18906 #endif
18907 #ifdef UINT64_MAX
18908   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18909 #endif
18910   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18911   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18912   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18913   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18914   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18915   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18916   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18917   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18918   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18919   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18920   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18921 };
18922
18923 int
18924 main ()
18925 {
18926
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 if ac_fn_c_try_compile "$LINENO"; then :
18932                                                     if test "$cross_compiling" = yes; then :
18933                  gl_cv_header_working_stdint_h=yes
18934
18935 else
18936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h.  */
18938
18939
18940 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18941 #include <stdint.h>
18942
18943
18944   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18945      included before <wchar.h>.  */
18946   #include <stddef.h>
18947   #include <signal.h>
18948   #if HAVE_WCHAR_H
18949   # include <stdio.h>
18950   # include <time.h>
18951   # include <wchar.h>
18952   #endif
18953
18954
18955 #include <stdio.h>
18956 #include <string.h>
18957 #define MVAL(macro) MVAL1(macro)
18958 #define MVAL1(expression) #expression
18959 static const char *macro_values[] =
18960   {
18961 #ifdef INT8_MAX
18962     MVAL (INT8_MAX),
18963 #endif
18964 #ifdef INT16_MAX
18965     MVAL (INT16_MAX),
18966 #endif
18967 #ifdef INT32_MAX
18968     MVAL (INT32_MAX),
18969 #endif
18970 #ifdef INT64_MAX
18971     MVAL (INT64_MAX),
18972 #endif
18973 #ifdef UINT8_MAX
18974     MVAL (UINT8_MAX),
18975 #endif
18976 #ifdef UINT16_MAX
18977     MVAL (UINT16_MAX),
18978 #endif
18979 #ifdef UINT32_MAX
18980     MVAL (UINT32_MAX),
18981 #endif
18982 #ifdef UINT64_MAX
18983     MVAL (UINT64_MAX),
18984 #endif
18985     NULL
18986   };
18987
18988 int
18989 main ()
18990 {
18991
18992   const char **mv;
18993   for (mv = macro_values; *mv != NULL; mv++)
18994     {
18995       const char *value = *mv;
18996       /* Test whether it looks like a cast expression.  */
18997       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18998           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18999           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19000           || strncmp (value, "((int)"/*)*/, 6) == 0
19001           || strncmp (value, "((signed short)"/*)*/, 15) == 0
19002           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19003         return mv - macro_values + 1;
19004     }
19005   return 0;
19006
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_c_try_run "$LINENO"; then :
19012   gl_cv_header_working_stdint_h=yes
19013 fi
19014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19015   conftest.$ac_objext conftest.beam conftest.$ac_ext
19016 fi
19017
19018
19019 fi
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021
19022 fi
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19024 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19025   fi
19026   if test "$gl_cv_header_working_stdint_h" = yes; then
19027     STDINT_H=
19028   else
19029             for ac_header in sys/inttypes.h sys/bitypes.h
19030 do :
19031   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19032 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19034   cat >>confdefs.h <<_ACEOF
19035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19036 _ACEOF
19037
19038 fi
19039
19040 done
19041
19042     if test $ac_cv_header_sys_inttypes_h = yes; then
19043       HAVE_SYS_INTTYPES_H=1
19044     else
19045       HAVE_SYS_INTTYPES_H=0
19046     fi
19047
19048     if test $ac_cv_header_sys_bitypes_h = yes; then
19049       HAVE_SYS_BITYPES_H=1
19050     else
19051       HAVE_SYS_BITYPES_H=0
19052     fi
19053
19054
19055
19056
19057   if test $APPLE_UNIVERSAL_BUILD = 0; then
19058
19059
19060   for gltype in ptrdiff_t size_t ; do
19061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19062 $as_echo_n "checking for bit size of $gltype... " >&6; }
19063 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19064   $as_echo_n "(cached) " >&6
19065 else
19066   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
19067   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19068      included before <wchar.h>.  */
19069   #include <stddef.h>
19070   #include <signal.h>
19071   #if HAVE_WCHAR_H
19072   # include <stdio.h>
19073   # include <time.h>
19074   # include <wchar.h>
19075   #endif
19076
19077 #include <limits.h>"; then :
19078
19079 else
19080   result=unknown
19081 fi
19082
19083        eval gl_cv_bitsizeof_${gltype}=\$result
19084
19085 fi
19086 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19087                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19088 $as_echo "$ac_res" >&6; }
19089     eval result=\$gl_cv_bitsizeof_${gltype}
19090     if test $result = unknown; then
19091                                                 result=0
19092     fi
19093     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19094     cat >>confdefs.h <<_ACEOF
19095 #define BITSIZEOF_${GLTYPE} $result
19096 _ACEOF
19097
19098     eval BITSIZEOF_${GLTYPE}=\$result
19099   done
19100
19101
19102   fi
19103
19104
19105   for gltype in sig_atomic_t wchar_t wint_t ; do
19106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19107 $as_echo_n "checking for bit size of $gltype... " >&6; }
19108 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19109   $as_echo_n "(cached) " >&6
19110 else
19111   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
19112   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19113      included before <wchar.h>.  */
19114   #include <stddef.h>
19115   #include <signal.h>
19116   #if HAVE_WCHAR_H
19117   # include <stdio.h>
19118   # include <time.h>
19119   # include <wchar.h>
19120   #endif
19121
19122 #include <limits.h>"; then :
19123
19124 else
19125   result=unknown
19126 fi
19127
19128        eval gl_cv_bitsizeof_${gltype}=\$result
19129
19130 fi
19131 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19132                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19133 $as_echo "$ac_res" >&6; }
19134     eval result=\$gl_cv_bitsizeof_${gltype}
19135     if test $result = unknown; then
19136                                                 result=0
19137     fi
19138     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19139     cat >>confdefs.h <<_ACEOF
19140 #define BITSIZEOF_${GLTYPE} $result
19141 _ACEOF
19142
19143     eval BITSIZEOF_${GLTYPE}=\$result
19144   done
19145
19146
19147
19148
19149   for gltype in sig_atomic_t wchar_t wint_t ; do
19150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19151 $as_echo_n "checking whether $gltype is signed... " >&6; }
19152 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
19153   $as_echo_n "(cached) " >&6
19154 else
19155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156 /* end confdefs.h.  */
19157
19158   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19159      included before <wchar.h>.  */
19160   #include <stddef.h>
19161   #include <signal.h>
19162   #if HAVE_WCHAR_H
19163   # include <stdio.h>
19164   # include <time.h>
19165   # include <wchar.h>
19166   #endif
19167
19168             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19169 int
19170 main ()
19171 {
19172
19173   ;
19174   return 0;
19175 }
19176 _ACEOF
19177 if ac_fn_c_try_compile "$LINENO"; then :
19178   result=yes
19179 else
19180   result=no
19181 fi
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183        eval gl_cv_type_${gltype}_signed=\$result
19184
19185 fi
19186 eval ac_res=\$gl_cv_type_${gltype}_signed
19187                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19188 $as_echo "$ac_res" >&6; }
19189     eval result=\$gl_cv_type_${gltype}_signed
19190     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19191     if test "$result" = yes; then
19192       cat >>confdefs.h <<_ACEOF
19193 #define HAVE_SIGNED_${GLTYPE} 1
19194 _ACEOF
19195
19196       eval HAVE_SIGNED_${GLTYPE}=1
19197     else
19198       eval HAVE_SIGNED_${GLTYPE}=0
19199     fi
19200   done
19201
19202
19203   gl_cv_type_ptrdiff_t_signed=yes
19204   gl_cv_type_size_t_signed=no
19205   if test $APPLE_UNIVERSAL_BUILD = 0; then
19206
19207
19208   for gltype in ptrdiff_t size_t ; do
19209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19210 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19211 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19212   $as_echo_n "(cached) " >&6
19213 else
19214   eval gl_cv_type_${gltype}_suffix=no
19215        eval result=\$gl_cv_type_${gltype}_signed
19216        if test "$result" = yes; then
19217          glsufu=
19218        else
19219          glsufu=u
19220        fi
19221        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19222          case $glsuf in
19223            '')  gltype1='int';;
19224            l)   gltype1='long int';;
19225            ll)  gltype1='long long int';;
19226            i64) gltype1='__int64';;
19227            u)   gltype1='unsigned int';;
19228            ul)  gltype1='unsigned long int';;
19229            ull) gltype1='unsigned long long int';;
19230            ui64)gltype1='unsigned __int64';;
19231          esac
19232          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h.  */
19234
19235   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19236      included before <wchar.h>.  */
19237   #include <stddef.h>
19238   #include <signal.h>
19239   #if HAVE_WCHAR_H
19240   # include <stdio.h>
19241   # include <time.h>
19242   # include <wchar.h>
19243   #endif
19244
19245               extern $gltype foo;
19246               extern $gltype1 foo;
19247 int
19248 main ()
19249 {
19250
19251   ;
19252   return 0;
19253 }
19254 _ACEOF
19255 if ac_fn_c_try_compile "$LINENO"; then :
19256   eval gl_cv_type_${gltype}_suffix=\$glsuf
19257 fi
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259          eval result=\$gl_cv_type_${gltype}_suffix
19260          test "$result" != no && break
19261        done
19262 fi
19263 eval ac_res=\$gl_cv_type_${gltype}_suffix
19264                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19265 $as_echo "$ac_res" >&6; }
19266     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19267     eval result=\$gl_cv_type_${gltype}_suffix
19268     test "$result" = no && result=
19269     eval ${GLTYPE}_SUFFIX=\$result
19270     cat >>confdefs.h <<_ACEOF
19271 #define ${GLTYPE}_SUFFIX $result
19272 _ACEOF
19273
19274   done
19275
19276
19277   fi
19278
19279
19280   for gltype in sig_atomic_t wchar_t wint_t ; do
19281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19282 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19283 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19284   $as_echo_n "(cached) " >&6
19285 else
19286   eval gl_cv_type_${gltype}_suffix=no
19287        eval result=\$gl_cv_type_${gltype}_signed
19288        if test "$result" = yes; then
19289          glsufu=
19290        else
19291          glsufu=u
19292        fi
19293        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19294          case $glsuf in
19295            '')  gltype1='int';;
19296            l)   gltype1='long int';;
19297            ll)  gltype1='long long int';;
19298            i64) gltype1='__int64';;
19299            u)   gltype1='unsigned int';;
19300            ul)  gltype1='unsigned long int';;
19301            ull) gltype1='unsigned long long int';;
19302            ui64)gltype1='unsigned __int64';;
19303          esac
19304          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h.  */
19306
19307   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19308      included before <wchar.h>.  */
19309   #include <stddef.h>
19310   #include <signal.h>
19311   #if HAVE_WCHAR_H
19312   # include <stdio.h>
19313   # include <time.h>
19314   # include <wchar.h>
19315   #endif
19316
19317               extern $gltype foo;
19318               extern $gltype1 foo;
19319 int
19320 main ()
19321 {
19322
19323   ;
19324   return 0;
19325 }
19326 _ACEOF
19327 if ac_fn_c_try_compile "$LINENO"; then :
19328   eval gl_cv_type_${gltype}_suffix=\$glsuf
19329 fi
19330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331          eval result=\$gl_cv_type_${gltype}_suffix
19332          test "$result" != no && break
19333        done
19334 fi
19335 eval ac_res=\$gl_cv_type_${gltype}_suffix
19336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19337 $as_echo "$ac_res" >&6; }
19338     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19339     eval result=\$gl_cv_type_${gltype}_suffix
19340     test "$result" = no && result=
19341     eval ${GLTYPE}_SUFFIX=\$result
19342     cat >>confdefs.h <<_ACEOF
19343 #define ${GLTYPE}_SUFFIX $result
19344 _ACEOF
19345
19346   done
19347
19348
19349
19350           if test $BITSIZEOF_WINT_T -lt 32; then
19351     BITSIZEOF_WINT_T=32
19352   fi
19353
19354     STDINT_H=stdint.h
19355   fi
19356
19357    if test -n "$STDINT_H"; then
19358   GL_GENERATE_STDINT_H_TRUE=
19359   GL_GENERATE_STDINT_H_FALSE='#'
19360 else
19361   GL_GENERATE_STDINT_H_TRUE='#'
19362   GL_GENERATE_STDINT_H_FALSE=
19363 fi
19364
19365
19366
19367      REPLACE_STRERROR_0=0
19368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
19369 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
19370 if ${gl_cv_func_strerror_0_works+:} false; then :
19371   $as_echo_n "(cached) " >&6
19372 else
19373   if test "$cross_compiling" = yes; then :
19374   case "$host_os" in
19375                  # Guess yes on glibc systems.
19376          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
19377                  # If we don't know, assume the worst.
19378          *)      gl_cv_func_strerror_0_works="guessing no" ;;
19379        esac
19380
19381 else
19382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h.  */
19384 #include <string.h>
19385            #include <errno.h>
19386
19387 int
19388 main ()
19389 {
19390 int result = 0;
19391            char *str;
19392            errno = 0;
19393            str = strerror (0);
19394            if (!*str) result |= 1;
19395            if (errno) result |= 2;
19396            if (strstr (str, "nknown") || strstr (str, "ndefined"))
19397              result |= 4;
19398            return result;
19399   ;
19400   return 0;
19401 }
19402 _ACEOF
19403 if ac_fn_c_try_run "$LINENO"; then :
19404   gl_cv_func_strerror_0_works=yes
19405 else
19406   gl_cv_func_strerror_0_works=no
19407 fi
19408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19409   conftest.$ac_objext conftest.beam conftest.$ac_ext
19410 fi
19411
19412
19413 fi
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
19415 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
19416   case "$gl_cv_func_strerror_0_works" in
19417     *yes) ;;
19418     *)
19419       REPLACE_STRERROR_0=1
19420
19421 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
19422
19423       ;;
19424   esac
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442      if test $gl_cv_have_include_next = yes; then
19443        gl_cv_next_string_h='<'string.h'>'
19444      else
19445        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19446 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19447 if ${gl_cv_next_string_h+:} false; then :
19448   $as_echo_n "(cached) " >&6
19449 else
19450
19451                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h.  */
19453 #include <string.h>
19454
19455 _ACEOF
19456                                                                                                                         case "$host_os" in
19457                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19458                  *)    gl_absname_cpp="$ac_cpp" ;;
19459                esac
19460
19461                case "$host_os" in
19462                  mingw*)
19463                                                                                                                                      gl_dirsep_regex='[/\\]'
19464                    ;;
19465                  *)
19466                    gl_dirsep_regex='\/'
19467                    ;;
19468                esac
19469                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19470
19471                gl_header_literal_regex=`echo 'string.h' \
19472                                         | sed -e "$gl_make_literal_regex_sed"`
19473                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19474                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19475                    s|^/[^/]|//&|
19476                    p
19477                    q
19478                  }'
19479                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19480                       sed -n "$gl_absolute_header_sed"`'"'
19481
19482
19483 fi
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19485 $as_echo "$gl_cv_next_string_h" >&6; }
19486      fi
19487      NEXT_STRING_H=$gl_cv_next_string_h
19488
19489      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19490        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19491        gl_next_as_first_directive='<'string.h'>'
19492      else
19493        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19494        gl_next_as_first_directive=$gl_cv_next_string_h
19495      fi
19496      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19497
19498
19499
19500
19501
19502
19503     for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
19504     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19506 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19507 if eval \${$as_gl_Symbol+:} false; then :
19508   $as_echo_n "(cached) " >&6
19509 else
19510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h.  */
19512 #include <string.h>
19513
19514 int
19515 main ()
19516 {
19517 #undef $gl_func
19518   (void) $gl_func;
19519   ;
19520   return 0;
19521 }
19522 _ACEOF
19523 if ac_fn_c_try_compile "$LINENO"; then :
19524   eval "$as_gl_Symbol=yes"
19525 else
19526   eval "$as_gl_Symbol=no"
19527 fi
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529 fi
19530 eval ac_res=\$$as_gl_Symbol
19531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19532 $as_echo "$ac_res" >&6; }
19533     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19534   cat >>confdefs.h <<_ACEOF
19535 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19536 _ACEOF
19537
19538                      eval ac_cv_have_decl_$gl_func=yes
19539 fi
19540       done
19541
19542
19543
19544       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19545 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19546   ac_have_decl=1
19547 else
19548   ac_have_decl=0
19549 fi
19550
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_DECL_STRNDUP $ac_have_decl
19553 _ACEOF
19554
19555
19556
19557
19558
19559
19560
19561
19562       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19563 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19564   ac_have_decl=1
19565 else
19566   ac_have_decl=0
19567 fi
19568
19569 cat >>confdefs.h <<_ACEOF
19570 #define HAVE_DECL_STRNLEN $ac_have_decl
19571 _ACEOF
19572
19573
19574
19575       ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
19576 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
19577   ac_have_decl=1
19578 else
19579   ac_have_decl=0
19580 fi
19581
19582 cat >>confdefs.h <<_ACEOF
19583 #define HAVE_DECL_STRSIGNAL $ac_have_decl
19584 _ACEOF
19585
19586
19587 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
19588 /* NetBSD declares sys_siglist in unistd.h.  */
19589 #ifdef HAVE_UNISTD_H
19590 # include <unistd.h>
19591 #endif
19592
19593 "
19594 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
19595   ac_have_decl=1
19596 else
19597   ac_have_decl=0
19598 fi
19599
19600 cat >>confdefs.h <<_ACEOF
19601 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
19602 _ACEOF
19603
19604
19605
19606   GNULIB_PSELECT=0;
19607   GNULIB_SELECT=0;
19608     HAVE_PSELECT=1;
19609   REPLACE_PSELECT=0;
19610   REPLACE_SELECT=0;
19611
19612
19613
19614
19615
19616
19617
19618      GNULIB_FCHMODAT=0;
19619   GNULIB_FSTAT=0;
19620   GNULIB_FSTATAT=0;
19621   GNULIB_FUTIMENS=0;
19622   GNULIB_LCHMOD=0;
19623   GNULIB_LSTAT=0;
19624   GNULIB_MKDIRAT=0;
19625   GNULIB_MKFIFO=0;
19626   GNULIB_MKFIFOAT=0;
19627   GNULIB_MKNOD=0;
19628   GNULIB_MKNODAT=0;
19629   GNULIB_STAT=0;
19630   GNULIB_UTIMENSAT=0;
19631     HAVE_FCHMODAT=1;
19632   HAVE_FSTATAT=1;
19633   HAVE_FUTIMENS=1;
19634   HAVE_LCHMOD=1;
19635   HAVE_LSTAT=1;
19636   HAVE_MKDIRAT=1;
19637   HAVE_MKFIFO=1;
19638   HAVE_MKFIFOAT=1;
19639   HAVE_MKNOD=1;
19640   HAVE_MKNODAT=1;
19641   HAVE_UTIMENSAT=1;
19642   REPLACE_FSTAT=0;
19643   REPLACE_FSTATAT=0;
19644   REPLACE_FUTIMENS=0;
19645   REPLACE_LSTAT=0;
19646   REPLACE_MKDIR=0;
19647   REPLACE_MKFIFO=0;
19648   REPLACE_MKNOD=0;
19649   REPLACE_STAT=0;
19650   REPLACE_UTIMENSAT=0;
19651
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19653 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19654 if ${ac_cv_header_stat_broken+:} false; then :
19655   $as_echo_n "(cached) " >&6
19656 else
19657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h.  */
19659 #include <sys/types.h>
19660 #include <sys/stat.h>
19661
19662 #if defined S_ISBLK && defined S_IFDIR
19663 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19664 #endif
19665
19666 #if defined S_ISBLK && defined S_IFCHR
19667 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19668 #endif
19669
19670 #if defined S_ISLNK && defined S_IFREG
19671 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19672 #endif
19673
19674 #if defined S_ISSOCK && defined S_IFREG
19675 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19676 #endif
19677
19678 _ACEOF
19679 if ac_fn_c_try_compile "$LINENO"; then :
19680   ac_cv_header_stat_broken=no
19681 else
19682   ac_cv_header_stat_broken=yes
19683 fi
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 fi
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19687 $as_echo "$ac_cv_header_stat_broken" >&6; }
19688 if test $ac_cv_header_stat_broken = yes; then
19689
19690 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19691
19692 fi
19693
19694
19695
19696
19697
19698
19699 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19700 if test "x$ac_cv_type_mode_t" = xyes; then :
19701
19702 else
19703
19704 cat >>confdefs.h <<_ACEOF
19705 #define mode_t int
19706 _ACEOF
19707
19708 fi
19709
19710
19711   GNULIB_GETTIMEOFDAY=0;
19712     HAVE_GETTIMEOFDAY=1;
19713   HAVE_STRUCT_TIMEVAL=1;
19714   HAVE_SYS_TIME_H=1;
19715   REPLACE_GETTIMEOFDAY=0;
19716   REPLACE_STRUCT_TIMEVAL=0;
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727   :
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739   :
19740
19741
19742
19743
19744
19745
19746
19747
19748      if test $gl_cv_have_include_next = yes; then
19749        gl_cv_next_sys_time_h='<'sys/time.h'>'
19750      else
19751        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19752 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19753 if ${gl_cv_next_sys_time_h+:} false; then :
19754   $as_echo_n "(cached) " >&6
19755 else
19756
19757              if test $ac_cv_header_sys_time_h = yes; then
19758
19759
19760                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761 /* end confdefs.h.  */
19762 #include <sys/time.h>
19763
19764 _ACEOF
19765                                                                                                                         case "$host_os" in
19766                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19767                  *)    gl_absname_cpp="$ac_cpp" ;;
19768                esac
19769
19770                case "$host_os" in
19771                  mingw*)
19772                                                                                                                                      gl_dirsep_regex='[/\\]'
19773                    ;;
19774                  *)
19775                    gl_dirsep_regex='\/'
19776                    ;;
19777                esac
19778                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19779
19780                gl_header_literal_regex=`echo 'sys/time.h' \
19781                                         | sed -e "$gl_make_literal_regex_sed"`
19782                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19783                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19784                    s|^/[^/]|//&|
19785                    p
19786                    q
19787                  }'
19788                                                             gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19789                       sed -n "$gl_absolute_header_sed"`'"'
19790           else
19791                gl_cv_next_sys_time_h='<'sys/time.h'>'
19792              fi
19793
19794
19795 fi
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19797 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19798      fi
19799      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19800
19801      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19802        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19803        gl_next_as_first_directive='<'sys/time.h'>'
19804      else
19805        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19806        gl_next_as_first_directive=$gl_cv_next_sys_time_h
19807      fi
19808      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19809
19810
19811
19812
19813
19814   if test $ac_cv_header_sys_time_h != yes; then
19815     HAVE_SYS_TIME_H=0
19816   fi
19817
19818
19819
19820
19821
19822   :
19823
19824
19825
19826
19827
19828   if test $ac_cv_header_sys_socket_h != yes; then
19829                     for ac_header in winsock2.h
19830 do :
19831   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19832 if test "x$ac_cv_header_winsock2_h" = xyes; then :
19833   cat >>confdefs.h <<_ACEOF
19834 #define HAVE_WINSOCK2_H 1
19835 _ACEOF
19836
19837 fi
19838
19839 done
19840
19841   fi
19842   if test "$ac_cv_header_winsock2_h" = yes; then
19843     HAVE_WINSOCK2_H=1
19844     UNISTD_H_HAVE_WINSOCK2_H=1
19845     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19846   else
19847     HAVE_WINSOCK2_H=0
19848   fi
19849
19850
19851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19852 $as_echo_n "checking for struct timeval... " >&6; }
19853 if ${gl_cv_sys_struct_timeval+:} false; then :
19854   $as_echo_n "(cached) " >&6
19855 else
19856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19857 /* end confdefs.h.  */
19858 #if HAVE_SYS_TIME_H
19859              #include <sys/time.h>
19860             #endif
19861             #include <time.h>
19862             #if HAVE_WINSOCK2_H
19863             # include <winsock2.h>
19864             #endif
19865
19866 int
19867 main ()
19868 {
19869 static struct timeval x; x.tv_sec = x.tv_usec;
19870   ;
19871   return 0;
19872 }
19873 _ACEOF
19874 if ac_fn_c_try_compile "$LINENO"; then :
19875   gl_cv_sys_struct_timeval=yes
19876 else
19877   gl_cv_sys_struct_timeval=no
19878 fi
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880
19881 fi
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19883 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19884   if test $gl_cv_sys_struct_timeval != yes; then
19885     HAVE_STRUCT_TIMEVAL=0
19886   else
19887                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19888 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19889 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
19890   $as_echo_n "(cached) " >&6
19891 else
19892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19893 /* end confdefs.h.  */
19894 #if HAVE_SYS_TIME_H
19895                #include <sys/time.h>
19896               #endif
19897               #include <time.h>
19898               #if HAVE_WINSOCK2_H
19899               # include <winsock2.h>
19900               #endif
19901
19902 int
19903 main ()
19904 {
19905 static struct timeval x;
19906               typedef int verify_tv_sec_type[
19907                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19908               ];
19909
19910   ;
19911   return 0;
19912 }
19913 _ACEOF
19914 if ac_fn_c_try_compile "$LINENO"; then :
19915   gl_cv_sys_struct_timeval_tv_sec=yes
19916 else
19917   gl_cv_sys_struct_timeval_tv_sec=no
19918 fi
19919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19920
19921 fi
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19923 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19924     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19925       REPLACE_STRUCT_TIMEVAL=1
19926     fi
19927   fi
19928
19929
19930     for gl_func in gettimeofday; do
19931     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19933 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19934 if eval \${$as_gl_Symbol+:} false; then :
19935   $as_echo_n "(cached) " >&6
19936 else
19937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h.  */
19939
19940 #if HAVE_SYS_TIME_H
19941 # include <sys/time.h>
19942 #endif
19943 #include <time.h>
19944
19945 int
19946 main ()
19947 {
19948 #undef $gl_func
19949   (void) $gl_func;
19950   ;
19951   return 0;
19952 }
19953 _ACEOF
19954 if ac_fn_c_try_compile "$LINENO"; then :
19955   eval "$as_gl_Symbol=yes"
19956 else
19957   eval "$as_gl_Symbol=no"
19958 fi
19959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19960 fi
19961 eval ac_res=\$$as_gl_Symbol
19962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19963 $as_echo "$ac_res" >&6; }
19964     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19965   cat >>confdefs.h <<_ACEOF
19966 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19967 _ACEOF
19968
19969                      eval ac_cv_have_decl_$gl_func=yes
19970 fi
19971       done
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992      if test $gl_cv_have_include_next = yes; then
19993        gl_cv_next_sys_types_h='<'sys/types.h'>'
19994      else
19995        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
19996 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
19997 if ${gl_cv_next_sys_types_h+:} false; then :
19998   $as_echo_n "(cached) " >&6
19999 else
20000
20001                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h.  */
20003 #include <sys/types.h>
20004
20005 _ACEOF
20006                                                                                                                         case "$host_os" in
20007                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
20008                  *)    gl_absname_cpp="$ac_cpp" ;;
20009                esac
20010
20011                case "$host_os" in
20012                  mingw*)
20013                                                                                                                                      gl_dirsep_regex='[/\\]'
20014                    ;;
20015                  *)
20016                    gl_dirsep_regex='\/'
20017                    ;;
20018                esac
20019                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20020
20021                gl_header_literal_regex=`echo 'sys/types.h' \
20022                                         | sed -e "$gl_make_literal_regex_sed"`
20023                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20024                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20025                    s|^/[^/]|//&|
20026                    p
20027                    q
20028                  }'
20029                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20030                       sed -n "$gl_absolute_header_sed"`'"'
20031
20032
20033 fi
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20035 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20036      fi
20037      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20038
20039      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20040        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20041        gl_next_as_first_directive='<'sys/types.h'>'
20042      else
20043        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20044        gl_next_as_first_directive=$gl_cv_next_sys_types_h
20045      fi
20046      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059   GNULIB_WAITPID=0;
20060
20061
20062
20063
20064
20065
20066
20067   GNULIB_MKTIME=0;
20068   GNULIB_NANOSLEEP=0;
20069   GNULIB_STRPTIME=0;
20070   GNULIB_TIMEGM=0;
20071   GNULIB_TIME_R=0;
20072     HAVE_DECL_LOCALTIME_R=1;
20073   HAVE_NANOSLEEP=1;
20074   HAVE_STRPTIME=1;
20075   HAVE_TIMEGM=1;
20076         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20077   REPLACE_MKTIME=GNULIB_PORTCHECK;
20078   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20079   REPLACE_TIMEGM=GNULIB_PORTCHECK;
20080
20081
20082
20083   :
20084
20085
20086
20087
20088
20089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20090 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20091 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
20092   $as_echo_n "(cached) " >&6
20093 else
20094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h.  */
20096 #include <time.h>
20097
20098 int
20099 main ()
20100 {
20101 static struct timespec x; x.tv_sec = x.tv_nsec;
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 if ac_fn_c_try_compile "$LINENO"; then :
20107   gl_cv_sys_struct_timespec_in_time_h=yes
20108 else
20109   gl_cv_sys_struct_timespec_in_time_h=no
20110 fi
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 fi
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20114 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20115
20116   TIME_H_DEFINES_STRUCT_TIMESPEC=0
20117   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20118   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20119   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20120     TIME_H_DEFINES_STRUCT_TIMESPEC=1
20121   else
20122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20123 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20124 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
20125   $as_echo_n "(cached) " >&6
20126 else
20127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h.  */
20129 #include <sys/time.h>
20130
20131 int
20132 main ()
20133 {
20134 static struct timespec x; x.tv_sec = x.tv_nsec;
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 if ac_fn_c_try_compile "$LINENO"; then :
20140   gl_cv_sys_struct_timespec_in_sys_time_h=yes
20141 else
20142   gl_cv_sys_struct_timespec_in_sys_time_h=no
20143 fi
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20145 fi
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20147 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20148     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20149       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20150     else
20151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20152 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20153 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
20154   $as_echo_n "(cached) " >&6
20155 else
20156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h.  */
20158 #include <pthread.h>
20159
20160 int
20161 main ()
20162 {
20163 static struct timespec x; x.tv_sec = x.tv_nsec;
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 if ac_fn_c_try_compile "$LINENO"; then :
20169   gl_cv_sys_struct_timespec_in_pthread_h=yes
20170 else
20171   gl_cv_sys_struct_timespec_in_pthread_h=no
20172 fi
20173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20174 fi
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20176 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20177       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20178         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20179       fi
20180     fi
20181   fi
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197      if test $gl_cv_have_include_next = yes; then
20198        gl_cv_next_time_h='<'time.h'>'
20199      else
20200        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20201 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20202 if ${gl_cv_next_time_h+:} false; then :
20203   $as_echo_n "(cached) " >&6
20204 else
20205
20206                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h.  */
20208 #include <time.h>
20209
20210 _ACEOF
20211                                                                                                                         case "$host_os" in
20212                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
20213                  *)    gl_absname_cpp="$ac_cpp" ;;
20214                esac
20215
20216                case "$host_os" in
20217                  mingw*)
20218                                                                                                                                      gl_dirsep_regex='[/\\]'
20219                    ;;
20220                  *)
20221                    gl_dirsep_regex='\/'
20222                    ;;
20223                esac
20224                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20225
20226                gl_header_literal_regex=`echo 'time.h' \
20227                                         | sed -e "$gl_make_literal_regex_sed"`
20228                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20229                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20230                    s|^/[^/]|//&|
20231                    p
20232                    q
20233                  }'
20234                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20235                       sed -n "$gl_absolute_header_sed"`'"'
20236
20237
20238 fi
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20240 $as_echo "$gl_cv_next_time_h" >&6; }
20241      fi
20242      NEXT_TIME_H=$gl_cv_next_time_h
20243
20244      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20245        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20246        gl_next_as_first_directive='<'time.h'>'
20247      else
20248        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20249        gl_next_as_first_directive=$gl_cv_next_time_h
20250      fi
20251      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20252
20253
20254
20255
20256
20257
20258
20259       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20260 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
20261   ac_have_decl=1
20262 else
20263   ac_have_decl=0
20264 fi
20265
20266 cat >>confdefs.h <<_ACEOF
20267 #define HAVE_DECL_UNSETENV $ac_have_decl
20268 _ACEOF
20269
20270
20271
20272
20273
20274
20275
20276
20277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20278 $as_echo_n "checking for wint_t... " >&6; }
20279 if ${gt_cv_c_wint_t+:} false; then :
20280   $as_echo_n "(cached) " >&6
20281 else
20282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h.  */
20284
20285 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20286    <wchar.h>.
20287    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20288    before <wchar.h>.  */
20289 #include <stddef.h>
20290 #include <stdio.h>
20291 #include <time.h>
20292 #include <wchar.h>
20293             wint_t foo = (wchar_t)'\0';
20294 int
20295 main ()
20296 {
20297
20298   ;
20299   return 0;
20300 }
20301 _ACEOF
20302 if ac_fn_c_try_compile "$LINENO"; then :
20303   gt_cv_c_wint_t=yes
20304 else
20305   gt_cv_c_wint_t=no
20306 fi
20307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20308 fi
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20310 $as_echo "$gt_cv_c_wint_t" >&6; }
20311   if test $gt_cv_c_wint_t = yes; then
20312
20313 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20314
20315   fi
20316
20317
20318
20319
20320
20321
20322
20323
20324   :
20325
20326
20327
20328
20329
20330   if test $ac_cv_header_features_h = yes; then
20331     HAVE_FEATURES_H=1
20332   else
20333     HAVE_FEATURES_H=0
20334   fi
20335
20336
20337
20338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20339 $as_echo_n "checking for inttypes.h... " >&6; }
20340 if ${gl_cv_header_inttypes_h+:} false; then :
20341   $as_echo_n "(cached) " >&6
20342 else
20343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h.  */
20345
20346 #include <sys/types.h>
20347 #include <inttypes.h>
20348
20349 int
20350 main ()
20351 {
20352 uintmax_t i = (uintmax_t) -1; return !i;
20353   ;
20354   return 0;
20355 }
20356 _ACEOF
20357 if ac_fn_c_try_compile "$LINENO"; then :
20358   gl_cv_header_inttypes_h=yes
20359 else
20360   gl_cv_header_inttypes_h=no
20361 fi
20362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363 fi
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20365 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20366   if test $gl_cv_header_inttypes_h = yes; then
20367
20368 cat >>confdefs.h <<_ACEOF
20369 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20370 _ACEOF
20371
20372   fi
20373
20374
20375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20376 $as_echo_n "checking for stdint.h... " >&6; }
20377 if ${gl_cv_header_stdint_h+:} false; then :
20378   $as_echo_n "(cached) " >&6
20379 else
20380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381 /* end confdefs.h.  */
20382 #include <sys/types.h>
20383             #include <stdint.h>
20384 int
20385 main ()
20386 {
20387 uintmax_t i = (uintmax_t) -1; return !i;
20388   ;
20389   return 0;
20390 }
20391 _ACEOF
20392 if ac_fn_c_try_compile "$LINENO"; then :
20393   gl_cv_header_stdint_h=yes
20394 else
20395   gl_cv_header_stdint_h=no
20396 fi
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398 fi
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20400 $as_echo "$gl_cv_header_stdint_h" >&6; }
20401   if test $gl_cv_header_stdint_h = yes; then
20402
20403 cat >>confdefs.h <<_ACEOF
20404 #define HAVE_STDINT_H_WITH_UINTMAX 1
20405 _ACEOF
20406
20407   fi
20408
20409
20410
20411
20412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20413 $as_echo_n "checking for intmax_t... " >&6; }
20414 if ${gt_cv_c_intmax_t+:} false; then :
20415   $as_echo_n "(cached) " >&6
20416 else
20417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418 /* end confdefs.h.  */
20419
20420 #include <stddef.h>
20421 #include <stdlib.h>
20422 #if HAVE_STDINT_H_WITH_UINTMAX
20423 #include <stdint.h>
20424 #endif
20425 #if HAVE_INTTYPES_H_WITH_UINTMAX
20426 #include <inttypes.h>
20427 #endif
20428
20429 int
20430 main ()
20431 {
20432 intmax_t x = -1; return !x;
20433   ;
20434   return 0;
20435 }
20436 _ACEOF
20437 if ac_fn_c_try_compile "$LINENO"; then :
20438   gt_cv_c_intmax_t=yes
20439 else
20440   gt_cv_c_intmax_t=no
20441 fi
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443 fi
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20445 $as_echo "$gt_cv_c_intmax_t" >&6; }
20446   if test $gt_cv_c_intmax_t = yes; then
20447
20448 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20449
20450   else
20451
20452     test $ac_cv_type_long_long_int = yes \
20453       && ac_type='long long' \
20454       || ac_type='long'
20455
20456 cat >>confdefs.h <<_ACEOF
20457 #define intmax_t $ac_type
20458 _ACEOF
20459
20460   fi
20461
20462
20463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20464 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20465 if ${gl_cv_cc_double_expbit0+:} false; then :
20466   $as_echo_n "(cached) " >&6
20467 else
20468
20469       if test "$cross_compiling" = yes; then :
20470
20471                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20472 /* end confdefs.h.  */
20473
20474 #if defined arm || defined __arm || defined __arm__
20475   mixed_endianness
20476 #endif
20477
20478 _ACEOF
20479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20480   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20481   gl_cv_cc_double_expbit0="unknown"
20482 else
20483
20484                                                          :
20485 if ${ac_cv_c_bigendian+:} false; then :
20486   $as_echo_n "(cached) " >&6
20487 else
20488   ac_cv_c_bigendian=unknown
20489     # See if we're dealing with a universal compiler.
20490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h.  */
20492 #ifndef __APPLE_CC__
20493                not a universal capable compiler
20494              #endif
20495              typedef int dummy;
20496
20497 _ACEOF
20498 if ac_fn_c_try_compile "$LINENO"; then :
20499
20500         # Check for potential -arch flags.  It is not universal unless
20501         # there are at least two -arch flags with different values.
20502         ac_arch=
20503         ac_prev=
20504         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20505          if test -n "$ac_prev"; then
20506            case $ac_word in
20507              i?86 | x86_64 | ppc | ppc64)
20508                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20509                  ac_arch=$ac_word
20510                else
20511                  ac_cv_c_bigendian=universal
20512                  break
20513                fi
20514                ;;
20515            esac
20516            ac_prev=
20517          elif test "x$ac_word" = "x-arch"; then
20518            ac_prev=arch
20519          fi
20520        done
20521 fi
20522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20523     if test $ac_cv_c_bigendian = unknown; then
20524       # See if sys/param.h defines the BYTE_ORDER macro.
20525       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20526 /* end confdefs.h.  */
20527 #include <sys/types.h>
20528              #include <sys/param.h>
20529
20530 int
20531 main ()
20532 {
20533 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20534                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20535                      && LITTLE_ENDIAN)
20536               bogus endian macros
20537              #endif
20538
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 if ac_fn_c_try_compile "$LINENO"; then :
20544   # It does; now see whether it defined to BIG_ENDIAN or not.
20545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546 /* end confdefs.h.  */
20547 #include <sys/types.h>
20548                 #include <sys/param.h>
20549
20550 int
20551 main ()
20552 {
20553 #if BYTE_ORDER != BIG_ENDIAN
20554                  not big endian
20555                 #endif
20556
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 if ac_fn_c_try_compile "$LINENO"; then :
20562   ac_cv_c_bigendian=yes
20563 else
20564   ac_cv_c_bigendian=no
20565 fi
20566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 fi
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569     fi
20570     if test $ac_cv_c_bigendian = unknown; then
20571       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h.  */
20574 #include <limits.h>
20575
20576 int
20577 main ()
20578 {
20579 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20580               bogus endian macros
20581              #endif
20582
20583   ;
20584   return 0;
20585 }
20586 _ACEOF
20587 if ac_fn_c_try_compile "$LINENO"; then :
20588   # It does; now see whether it defined to _BIG_ENDIAN or not.
20589          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h.  */
20591 #include <limits.h>
20592
20593 int
20594 main ()
20595 {
20596 #ifndef _BIG_ENDIAN
20597                  not big endian
20598                 #endif
20599
20600   ;
20601   return 0;
20602 }
20603 _ACEOF
20604 if ac_fn_c_try_compile "$LINENO"; then :
20605   ac_cv_c_bigendian=yes
20606 else
20607   ac_cv_c_bigendian=no
20608 fi
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 fi
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612     fi
20613     if test $ac_cv_c_bigendian = unknown; then
20614       # Compile a test program.
20615       if test "$cross_compiling" = yes; then :
20616   # Try to guess by grepping values from an object file.
20617          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h.  */
20619 short int ascii_mm[] =
20620                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20621                 short int ascii_ii[] =
20622                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20623                 int use_ascii (int i) {
20624                   return ascii_mm[i] + ascii_ii[i];
20625                 }
20626                 short int ebcdic_ii[] =
20627                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20628                 short int ebcdic_mm[] =
20629                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20630                 int use_ebcdic (int i) {
20631                   return ebcdic_mm[i] + ebcdic_ii[i];
20632                 }
20633                 extern int foo;
20634
20635 int
20636 main ()
20637 {
20638 return use_ascii (foo) == use_ebcdic (foo);
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 if ac_fn_c_try_compile "$LINENO"; then :
20644   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20645               ac_cv_c_bigendian=yes
20646             fi
20647             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20648               if test "$ac_cv_c_bigendian" = unknown; then
20649                 ac_cv_c_bigendian=no
20650               else
20651                 # finding both strings is unlikely to happen, but who knows?
20652                 ac_cv_c_bigendian=unknown
20653               fi
20654             fi
20655 fi
20656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657 else
20658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h.  */
20660 $ac_includes_default
20661 int
20662 main ()
20663 {
20664
20665              /* Are we little or big endian?  From Harbison&Steele.  */
20666              union
20667              {
20668                long int l;
20669                char c[sizeof (long int)];
20670              } u;
20671              u.l = 1;
20672              return u.c[sizeof (long int) - 1] == 1;
20673
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_run "$LINENO"; then :
20679   ac_cv_c_bigendian=no
20680 else
20681   ac_cv_c_bigendian=yes
20682 fi
20683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20684   conftest.$ac_objext conftest.beam conftest.$ac_ext
20685 fi
20686
20687     fi
20688 fi
20689 :
20690  case $ac_cv_c_bigendian in #(
20691    yes)
20692      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20693    no)
20694      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20695    universal)
20696
20697 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20698
20699      ;; #(
20700    *)
20701      gl_cv_cc_double_expbit0="unknown" ;;
20702  esac
20703
20704
20705 fi
20706 rm -f conftest*
20707
20708
20709 else
20710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20711 /* end confdefs.h.  */
20712
20713 #include <float.h>
20714 #include <stddef.h>
20715 #include <stdio.h>
20716 #include <string.h>
20717 #define NWORDS \
20718   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20719 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20720 static unsigned int ored_words[NWORDS];
20721 static unsigned int anded_words[NWORDS];
20722 static void add_to_ored_words (double x)
20723 {
20724   memory_double m;
20725   size_t i;
20726   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
20727   memset (&m, 0, sizeof (memory_double));
20728   m.value = x;
20729   for (i = 0; i < NWORDS; i++)
20730     {
20731       ored_words[i] |= m.word[i];
20732       anded_words[i] &= m.word[i];
20733     }
20734 }
20735 int main ()
20736 {
20737   size_t j;
20738   FILE *fp = fopen ("conftest.out", "w");
20739   if (fp == NULL)
20740     return 1;
20741   for (j = 0; j < NWORDS; j++)
20742     anded_words[j] = ~ (unsigned int) 0;
20743   add_to_ored_words (0.25);
20744   add_to_ored_words (0.5);
20745   add_to_ored_words (1.0);
20746   add_to_ored_words (2.0);
20747   add_to_ored_words (4.0);
20748   /* Remove bits that are common (e.g. if representation of the first mantissa
20749      bit is explicit).  */
20750   for (j = 0; j < NWORDS; j++)
20751     ored_words[j] &= ~anded_words[j];
20752   /* Now find the nonzero word.  */
20753   for (j = 0; j < NWORDS; j++)
20754     if (ored_words[j] != 0)
20755       break;
20756   if (j < NWORDS)
20757     {
20758       size_t i;
20759       for (i = j + 1; i < NWORDS; i++)
20760         if (ored_words[i] != 0)
20761           {
20762             fprintf (fp, "unknown");
20763             return (fclose (fp) != 0);
20764           }
20765       for (i = 0; ; i++)
20766         if ((ored_words[j] >> i) & 1)
20767           {
20768             fprintf (fp, "word %d bit %d", (int) j, (int) i);
20769             return (fclose (fp) != 0);
20770           }
20771     }
20772   fprintf (fp, "unknown");
20773   return (fclose (fp) != 0);
20774 }
20775
20776 _ACEOF
20777 if ac_fn_c_try_run "$LINENO"; then :
20778   gl_cv_cc_double_expbit0=`cat conftest.out`
20779 else
20780   gl_cv_cc_double_expbit0="unknown"
20781 fi
20782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20783   conftest.$ac_objext conftest.beam conftest.$ac_ext
20784 fi
20785
20786       rm -f conftest.out
20787
20788 fi
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20790 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20791   case "$gl_cv_cc_double_expbit0" in
20792     word*bit*)
20793       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20794       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20795
20796 cat >>confdefs.h <<_ACEOF
20797 #define DBL_EXPBIT0_WORD $word
20798 _ACEOF
20799
20800
20801 cat >>confdefs.h <<_ACEOF
20802 #define DBL_EXPBIT0_BIT $bit
20803 _ACEOF
20804
20805       ;;
20806   esac
20807
20808
20809
20810
20811
20812
20813   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20814 do :
20815   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20818   cat >>confdefs.h <<_ACEOF
20819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20820 _ACEOF
20821
20822 fi
20823 done
20824
20825       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20826 "
20827 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20828   ac_have_decl=1
20829 else
20830   ac_have_decl=0
20831 fi
20832
20833 cat >>confdefs.h <<_ACEOF
20834 #define HAVE_DECL__SNPRINTF $ac_have_decl
20835 _ACEOF
20836
20837
20838
20839   case "$gl_cv_func_snprintf_retval_c99" in
20840     *yes)
20841
20842 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20843
20844       ;;
20845   esac
20846
20847
20848   GNULIB_BTOWC=0;
20849   GNULIB_WCTOB=0;
20850   GNULIB_MBSINIT=0;
20851   GNULIB_MBRTOWC=0;
20852   GNULIB_MBRLEN=0;
20853   GNULIB_MBSRTOWCS=0;
20854   GNULIB_MBSNRTOWCS=0;
20855   GNULIB_WCRTOMB=0;
20856   GNULIB_WCSRTOMBS=0;
20857   GNULIB_WCSNRTOMBS=0;
20858   GNULIB_WCWIDTH=0;
20859   GNULIB_WMEMCHR=0;
20860   GNULIB_WMEMCMP=0;
20861   GNULIB_WMEMCPY=0;
20862   GNULIB_WMEMMOVE=0;
20863   GNULIB_WMEMSET=0;
20864   GNULIB_WCSLEN=0;
20865   GNULIB_WCSNLEN=0;
20866   GNULIB_WCSCPY=0;
20867   GNULIB_WCPCPY=0;
20868   GNULIB_WCSNCPY=0;
20869   GNULIB_WCPNCPY=0;
20870   GNULIB_WCSCAT=0;
20871   GNULIB_WCSNCAT=0;
20872   GNULIB_WCSCMP=0;
20873   GNULIB_WCSNCMP=0;
20874   GNULIB_WCSCASECMP=0;
20875   GNULIB_WCSNCASECMP=0;
20876   GNULIB_WCSCOLL=0;
20877   GNULIB_WCSXFRM=0;
20878   GNULIB_WCSDUP=0;
20879   GNULIB_WCSCHR=0;
20880   GNULIB_WCSRCHR=0;
20881   GNULIB_WCSCSPN=0;
20882   GNULIB_WCSSPN=0;
20883   GNULIB_WCSPBRK=0;
20884   GNULIB_WCSSTR=0;
20885   GNULIB_WCSTOK=0;
20886   GNULIB_WCSWIDTH=0;
20887     HAVE_BTOWC=1;
20888   HAVE_MBSINIT=1;
20889   HAVE_MBRTOWC=1;
20890   HAVE_MBRLEN=1;
20891   HAVE_MBSRTOWCS=1;
20892   HAVE_MBSNRTOWCS=1;
20893   HAVE_WCRTOMB=1;
20894   HAVE_WCSRTOMBS=1;
20895   HAVE_WCSNRTOMBS=1;
20896   HAVE_WMEMCHR=1;
20897   HAVE_WMEMCMP=1;
20898   HAVE_WMEMCPY=1;
20899   HAVE_WMEMMOVE=1;
20900   HAVE_WMEMSET=1;
20901   HAVE_WCSLEN=1;
20902   HAVE_WCSNLEN=1;
20903   HAVE_WCSCPY=1;
20904   HAVE_WCPCPY=1;
20905   HAVE_WCSNCPY=1;
20906   HAVE_WCPNCPY=1;
20907   HAVE_WCSCAT=1;
20908   HAVE_WCSNCAT=1;
20909   HAVE_WCSCMP=1;
20910   HAVE_WCSNCMP=1;
20911   HAVE_WCSCASECMP=1;
20912   HAVE_WCSNCASECMP=1;
20913   HAVE_WCSCOLL=1;
20914   HAVE_WCSXFRM=1;
20915   HAVE_WCSDUP=1;
20916   HAVE_WCSCHR=1;
20917   HAVE_WCSRCHR=1;
20918   HAVE_WCSCSPN=1;
20919   HAVE_WCSSPN=1;
20920   HAVE_WCSPBRK=1;
20921   HAVE_WCSSTR=1;
20922   HAVE_WCSTOK=1;
20923   HAVE_WCSWIDTH=1;
20924   HAVE_DECL_WCTOB=1;
20925   HAVE_DECL_WCWIDTH=1;
20926   REPLACE_MBSTATE_T=0;
20927   REPLACE_BTOWC=0;
20928   REPLACE_WCTOB=0;
20929   REPLACE_MBSINIT=0;
20930   REPLACE_MBRTOWC=0;
20931   REPLACE_MBRLEN=0;
20932   REPLACE_MBSRTOWCS=0;
20933   REPLACE_MBSNRTOWCS=0;
20934   REPLACE_WCRTOMB=0;
20935   REPLACE_WCSRTOMBS=0;
20936   REPLACE_WCSNRTOMBS=0;
20937   REPLACE_WCWIDTH=0;
20938   REPLACE_WCSWIDTH=0;
20939
20940
20941             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
20942 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
20943 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
20944   $as_echo_n "(cached) " >&6
20945 else
20946   gl_cv_header_wchar_h_correct_inline=yes
20947      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h.  */
20949
20950        #define wcstod renamed_wcstod
20951 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20952    <wchar.h>.
20953    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20954    included before <wchar.h>.  */
20955 #include <stddef.h>
20956 #include <stdio.h>
20957 #include <time.h>
20958 #include <wchar.h>
20959 extern int zero (void);
20960 int main () { return zero(); }
20961
20962 _ACEOF
20963      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20964   (eval $ac_compile) 2>&5
20965   ac_status=$?
20966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20967   test $ac_status = 0; }; then
20968        mv conftest.$ac_objext conftest1.$ac_objext
20969        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h.  */
20971
20972          #define wcstod renamed_wcstod
20973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20974    <wchar.h>.
20975    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20976    included before <wchar.h>.  */
20977 #include <stddef.h>
20978 #include <stdio.h>
20979 #include <time.h>
20980 #include <wchar.h>
20981 int zero (void) { return 0; }
20982
20983 _ACEOF
20984        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20985   (eval $ac_compile) 2>&5
20986   ac_status=$?
20987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20988   test $ac_status = 0; }; then
20989          mv conftest.$ac_objext conftest2.$ac_objext
20990          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
20991            :
20992          else
20993            gl_cv_header_wchar_h_correct_inline=no
20994          fi
20995        fi
20996      fi
20997      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
20998
20999 fi
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21001 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21002   if test $gl_cv_header_wchar_h_correct_inline = no; then
21003     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21004 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21005 C99 mode. You have four options:
21006   - Add the flag -fgnu89-inline to CC and reconfigure, or
21007   - Fix your include files, using parts of
21008     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21009   - Use a gcc version older than 4.3, or
21010   - Don't use the flags -std=c99 or -std=gnu99.
21011 Configuration aborted." "$LINENO" 5
21012   fi
21013
21014
21015    if true; then
21016   GL_COND_LIBTOOL_TRUE=
21017   GL_COND_LIBTOOL_FALSE='#'
21018 else
21019   GL_COND_LIBTOOL_TRUE='#'
21020   GL_COND_LIBTOOL_FALSE=
21021 fi
21022
21023   gl_cond_libtool=true
21024   gl_m4_base='gnulib/m4'
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034   gl_source_base='gnulib/lib'
21035
21036
21037   if test $ac_cv_func_alloca_works = no; then
21038     :
21039   fi
21040
21041   # Define an additional variable used in the Makefile substitution.
21042   if test $ac_cv_working_alloca_h = yes; then
21043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21044 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21045 if ${gl_cv_rpl_alloca+:} false; then :
21046   $as_echo_n "(cached) " >&6
21047 else
21048
21049       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050 /* end confdefs.h.  */
21051
21052 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21053         Need own alloca
21054 #endif
21055
21056 _ACEOF
21057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21058   $EGREP "Need own alloca" >/dev/null 2>&1; then :
21059   gl_cv_rpl_alloca=yes
21060 else
21061   gl_cv_rpl_alloca=no
21062 fi
21063 rm -f conftest*
21064
21065
21066 fi
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21068 $as_echo "$gl_cv_rpl_alloca" >&6; }
21069     if test $gl_cv_rpl_alloca = yes; then
21070
21071 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21072
21073       ALLOCA_H=alloca.h
21074     else
21075                   ALLOCA_H=
21076     fi
21077   else
21078     ALLOCA_H=alloca.h
21079   fi
21080
21081    if test -n "$ALLOCA_H"; then
21082   GL_GENERATE_ALLOCA_H_TRUE=
21083   GL_GENERATE_ALLOCA_H_FALSE='#'
21084 else
21085   GL_GENERATE_ALLOCA_H_TRUE='#'
21086   GL_GENERATE_ALLOCA_H_FALSE=
21087 fi
21088
21089
21090
21091
21092
21093
21094
21095 cat >>confdefs.h <<_ACEOF
21096 #define GNULIB_DIRNAME 1
21097 _ACEOF
21098
21099
21100
21101
21102
21103
21104
21105
21106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21107 $as_echo_n "checking whether // is distinct from /... " >&6; }
21108 if ${gl_cv_double_slash_root+:} false; then :
21109   $as_echo_n "(cached) " >&6
21110 else
21111    if test x"$cross_compiling" = xyes ; then
21112         # When cross-compiling, there is no way to tell whether // is special
21113         # short of a list of hosts.  However, the only known hosts to date
21114         # that have a distinct // are Apollo DomainOS (too old to port to),
21115         # Cygwin, and z/OS.  If anyone knows of another system for which // has
21116         # special semantics and is distinct from /, please report it to
21117         # <bug-gnulib@gnu.org>.
21118         case $host in
21119           *-cygwin | i370-ibm-openedition)
21120             gl_cv_double_slash_root=yes ;;
21121           *)
21122             # Be optimistic and assume that / and // are the same when we
21123             # don't know.
21124             gl_cv_double_slash_root='unknown, assuming no' ;;
21125         esac
21126       else
21127         set x `ls -di / // 2>/dev/null`
21128         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
21129           gl_cv_double_slash_root=no
21130         else
21131           gl_cv_double_slash_root=yes
21132         fi
21133       fi
21134 fi
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21136 $as_echo "$gl_cv_double_slash_root" >&6; }
21137   if test "$gl_cv_double_slash_root" = yes; then
21138
21139 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
21140
21141   fi
21142
21143
21144
21145
21146
21147
21148
21149           GNULIB_ENVIRON=1
21150
21151
21152
21153
21154
21155 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
21156
21157
21158
21159
21160
21161       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21162 $as_echo_n "checking for error_at_line... " >&6; }
21163 if ${ac_cv_lib_error_at_line+:} false; then :
21164   $as_echo_n "(cached) " >&6
21165 else
21166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h.  */
21168 #include <error.h>
21169 int
21170 main ()
21171 {
21172 error_at_line (0, 0, "", 0, "an error occurred");
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 if ac_fn_c_try_link "$LINENO"; then :
21178   ac_cv_lib_error_at_line=yes
21179 else
21180   ac_cv_lib_error_at_line=no
21181 fi
21182 rm -f core conftest.err conftest.$ac_objext \
21183     conftest$ac_exeext conftest.$ac_ext
21184 fi
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21186 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21187
21188   if test $ac_cv_lib_error_at_line = no; then
21189
21190
21191
21192
21193
21194
21195
21196
21197   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
21198
21199
21200
21201   :
21202
21203   fi
21204
21205
21206   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
21207
21208
21209
21210   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
21211
21212
21213
21214
21215
21216   FLOAT_H=
21217   REPLACE_FLOAT_LDBL=0
21218   case "$host_os" in
21219     aix* | beos* | openbsd* | mirbsd* | irix*)
21220       FLOAT_H=float.h
21221       ;;
21222     freebsd*)
21223       case "$host_cpu" in
21224         i[34567]86 )
21225           FLOAT_H=float.h
21226           ;;
21227         x86_64 )
21228           # On x86_64 systems, the C compiler may still be generating
21229           # 32-bit code.
21230           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h.  */
21232 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
21233              yes
21234              #endif
21235 _ACEOF
21236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21237   $EGREP "yes" >/dev/null 2>&1; then :
21238
21239 else
21240   FLOAT_H=float.h
21241 fi
21242 rm -f conftest*
21243
21244           ;;
21245       esac
21246       ;;
21247     linux*)
21248       case "$host_cpu" in
21249         powerpc*)
21250           FLOAT_H=float.h
21251           ;;
21252       esac
21253       ;;
21254   esac
21255   case "$host_os" in
21256     aix* | freebsd* | linux*)
21257       if test -n "$FLOAT_H"; then
21258         REPLACE_FLOAT_LDBL=1
21259       fi
21260       ;;
21261   esac
21262
21263     REPLACE_ITOLD=0
21264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
21265 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
21266 if ${gl_cv_func_itold_works+:} false; then :
21267   $as_echo_n "(cached) " >&6
21268 else
21269
21270       if test "$cross_compiling" = yes; then :
21271   case "$host" in
21272            sparc*-*-linux*)
21273              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h.  */
21275 #if defined __LP64__ || defined __arch64__
21276                 yes
21277                 #endif
21278 _ACEOF
21279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21280   $EGREP "yes" >/dev/null 2>&1; then :
21281   gl_cv_func_itold_works="guessing no"
21282 else
21283   gl_cv_func_itold_works="guessing yes"
21284 fi
21285 rm -f conftest*
21286
21287              ;;
21288            *) gl_cv_func_itold_works="guessing yes" ;;
21289          esac
21290
21291 else
21292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h.  */
21294
21295 int i = -1;
21296 volatile long double ld;
21297 int main ()
21298 {
21299   ld += i * 1.0L;
21300   if (ld > 0)
21301     return 1;
21302   return 0;
21303 }
21304 _ACEOF
21305 if ac_fn_c_try_run "$LINENO"; then :
21306   gl_cv_func_itold_works=yes
21307 else
21308   gl_cv_func_itold_works=no
21309 fi
21310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21311   conftest.$ac_objext conftest.beam conftest.$ac_ext
21312 fi
21313
21314
21315 fi
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21317 $as_echo "$gl_cv_func_itold_works" >&6; }
21318   case "$gl_cv_func_itold_works" in
21319     *no)
21320       REPLACE_ITOLD=1
21321                   FLOAT_H=float.h
21322       ;;
21323   esac
21324
21325   if test -n "$FLOAT_H"; then
21326
21327
21328
21329
21330
21331
21332
21333
21334      if test $gl_cv_have_include_next = yes; then
21335        gl_cv_next_float_h='<'float.h'>'
21336      else
21337        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21338 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21339 if ${gl_cv_next_float_h+:} false; then :
21340   $as_echo_n "(cached) " >&6
21341 else
21342
21343                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h.  */
21345 #include <float.h>
21346
21347 _ACEOF
21348                                                                                                                         case "$host_os" in
21349                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21350                  *)    gl_absname_cpp="$ac_cpp" ;;
21351                esac
21352
21353                case "$host_os" in
21354                  mingw*)
21355                                                                                                                                      gl_dirsep_regex='[/\\]'
21356                    ;;
21357                  *)
21358                    gl_dirsep_regex='\/'
21359                    ;;
21360                esac
21361                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21362
21363                gl_header_literal_regex=`echo 'float.h' \
21364                                         | sed -e "$gl_make_literal_regex_sed"`
21365                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21366                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21367                    s|^/[^/]|//&|
21368                    p
21369                    q
21370                  }'
21371                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21372                       sed -n "$gl_absolute_header_sed"`'"'
21373
21374
21375 fi
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21377 $as_echo "$gl_cv_next_float_h" >&6; }
21378      fi
21379      NEXT_FLOAT_H=$gl_cv_next_float_h
21380
21381      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21382        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21383        gl_next_as_first_directive='<'float.h'>'
21384      else
21385        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21386        gl_next_as_first_directive=$gl_cv_next_float_h
21387      fi
21388      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21389
21390
21391
21392
21393   fi
21394
21395    if test -n "$FLOAT_H"; then
21396   GL_GENERATE_FLOAT_H_TRUE=
21397   GL_GENERATE_FLOAT_H_FALSE='#'
21398 else
21399   GL_GENERATE_FLOAT_H_TRUE='#'
21400   GL_GENERATE_FLOAT_H_FALSE=
21401 fi
21402
21403
21404
21405   if test $REPLACE_FLOAT_LDBL = 1; then
21406
21407
21408
21409
21410
21411
21412
21413
21414   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21415
21416   fi
21417   if test $REPLACE_ITOLD = 1; then
21418
21419
21420
21421
21422
21423
21424
21425
21426   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21427
21428   fi
21429
21430
21431
21432
21433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
21434 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
21435 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
21436   $as_echo_n "(cached) " >&6
21437 else
21438   gl_cv_prog_c_ignore_unused_libraries=none
21439      gl_saved_ldflags=$LDFLAGS
21440      gl_saved_libs=$LIBS
21441      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
21442      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
21443      LIBS="$LIBS -lm"
21444      # Use long option sequences like '-z ignore' to test for the feature,
21445      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
21446      # GCC + binutils likes '-Wl,--as-needed'.
21447      # GCC + Solaris ld likes '-Wl,-z,ignore'.
21448      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
21449      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
21450      # native cc issues annoying warnings and then ignores it,
21451      # which would cause us to incorrectly conclude that it worked.
21452      for gl_flags in  '-Wl,--as-needed' \
21453   '-Wl,-z,ignore' \
21454   '-z ignore'
21455
21456      do
21457        LDFLAGS="$gl_flags $LDFLAGS"
21458        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21459 /* end confdefs.h.  */
21460
21461 int
21462 main ()
21463 {
21464
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 if ac_fn_c_try_link "$LINENO"; then :
21470   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
21471 fi
21472 rm -f core conftest.err conftest.$ac_objext \
21473     conftest$ac_exeext conftest.$ac_ext
21474        LDFLAGS=$gl_saved_ldflags
21475        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
21476          break
21477      done
21478      LIBS=$gl_saved_libs
21479
21480 fi
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
21482 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
21483   IGNORE_UNUSED_LIBRARIES_CFLAGS=
21484   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
21485     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
21486   fi
21487
21488
21489
21490
21491   if test "$gl_threads_api" = posix; then
21492     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21493     # pthread_rwlock_* functions.
21494     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21495 "
21496 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
21497
21498 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21499
21500 fi
21501
21502     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h.  */
21505
21506       #include <pthread.h>
21507 int
21508 main ()
21509 {
21510
21511 #if __FreeBSD__ == 4
21512 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21513 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21514        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21515 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21516 #else
21517 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21518 return !x;
21519 #endif
21520
21521   ;
21522   return 0;
21523 }
21524 _ACEOF
21525 if ac_fn_c_try_compile "$LINENO"; then :
21526
21527 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21528
21529 fi
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531   fi
21532   :
21533
21534
21535
21536 cat >>confdefs.h <<_ACEOF
21537 #define GNULIB_LOCK 1
21538 _ACEOF
21539
21540
21541
21542
21543
21544   if test $gl_cv_func_malloc_posix = yes; then
21545
21546 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21547
21548   else
21549     REPLACE_MALLOC=1
21550   fi
21551
21552   if test $REPLACE_MALLOC = 1; then
21553
21554
21555
21556
21557
21558
21559
21560
21561   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21562
21563   fi
21564
21565
21566
21567
21568
21569           GNULIB_MALLOC_POSIX=1
21570
21571
21572
21573
21574
21575 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21576
21577
21578
21579
21580
21581
21582
21583
21584   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21585
21586
21587
21588
21589
21590
21591
21592
21593   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21594
21595
21596   for ac_header in bp-sym.h
21597 do :
21598   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21599 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21600   cat >>confdefs.h <<_ACEOF
21601 #define HAVE_BP_SYM_H 1
21602 _ACEOF
21603
21604 fi
21605
21606 done
21607
21608
21609   fi
21610
21611
21612
21613
21614
21615           GNULIB_MEMCHR=1
21616
21617
21618
21619
21620
21621 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21622
21623
21624
21625
21626
21627   :
21628
21629
21630
21631
21632
21633   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21634     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21635
21636 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21637
21638   else
21639     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21640   fi
21641
21642
21643   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21644
21645
21646
21647
21648
21649
21650
21651
21652   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21653
21654   fi
21655
21656
21657
21658   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21659
21660
21661
21662
21663
21664
21665
21666
21667   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21668
21669   fi
21670
21671
21672
21673
21674
21675   for ac_func in raise
21676 do :
21677   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21678 if test "x$ac_cv_func_raise" = xyes; then :
21679   cat >>confdefs.h <<_ACEOF
21680 #define HAVE_RAISE 1
21681 _ACEOF
21682
21683 fi
21684 done
21685
21686   if test $ac_cv_func_raise = no; then
21687     HAVE_RAISE=0
21688   else
21689     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21690       REPLACE_RAISE=1
21691     fi
21692
21693
21694
21695
21696   if test $gl_cv_type_sigset_t = yes; then
21697     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21698 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21699   gl_cv_func_sigprocmask=1
21700 fi
21701
21702   fi
21703   if test -z "$gl_cv_func_sigprocmask"; then
21704     HAVE_POSIX_SIGNALBLOCKING=0
21705   fi
21706
21707       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21708         :
21709       fi
21710
21711   fi
21712
21713   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21714
21715
21716
21717
21718
21719
21720
21721
21722   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
21723
21724     :
21725   fi
21726
21727
21728
21729
21730
21731           GNULIB_RAISE=1
21732
21733
21734
21735
21736
21737 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
21738
21739
21740
21741
21742
21743
21744   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21745     REPLACE_READ=1
21746   fi
21747
21748
21749   if test $REPLACE_READ = 1; then
21750
21751
21752
21753
21754
21755
21756
21757
21758   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
21759
21760     :
21761   fi
21762
21763
21764
21765
21766
21767           GNULIB_READ=1
21768
21769
21770
21771
21772
21773 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787      if test $ac_cv_func_setenv = no; then
21788     HAVE_SETENV=0
21789   else
21790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
21791 $as_echo_n "checking whether setenv validates arguments... " >&6; }
21792 if ${gl_cv_func_setenv_works+:} false; then :
21793   $as_echo_n "(cached) " >&6
21794 else
21795   if test "$cross_compiling" = yes; then :
21796   case "$host_os" in
21797                  # Guess yes on glibc systems.
21798          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
21799                  # If we don't know, assume the worst.
21800          *)      gl_cv_func_setenv_works="guessing no" ;;
21801        esac
21802
21803 else
21804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21805 /* end confdefs.h.  */
21806
21807        #include <stdlib.h>
21808        #include <errno.h>
21809        #include <string.h>
21810
21811 int
21812 main ()
21813 {
21814
21815        int result = 0;
21816        {
21817          if (setenv ("", "", 0) != -1)
21818            result |= 1;
21819          else if (errno != EINVAL)
21820            result |= 2;
21821        }
21822        {
21823          if (setenv ("a", "=", 1) != 0)
21824            result |= 4;
21825          else if (strcmp (getenv ("a"), "=") != 0)
21826            result |= 8;
21827        }
21828        return result;
21829
21830   ;
21831   return 0;
21832 }
21833 _ACEOF
21834 if ac_fn_c_try_run "$LINENO"; then :
21835   gl_cv_func_setenv_works=yes
21836 else
21837   gl_cv_func_setenv_works=no
21838 fi
21839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21840   conftest.$ac_objext conftest.beam conftest.$ac_ext
21841 fi
21842
21843 fi
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
21845 $as_echo "$gl_cv_func_setenv_works" >&6; }
21846     case "$gl_cv_func_setenv_works" in
21847       *yes) ;;
21848       *)
21849         REPLACE_SETENV=1
21850         ;;
21851     esac
21852   fi
21853
21854   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
21855
21856
21857
21858
21859
21860
21861
21862
21863   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
21864
21865   fi
21866
21867
21868
21869
21870
21871           GNULIB_SETENV=1
21872
21873
21874
21875
21876
21877 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
21878
21879
21880
21881
21882
21883
21884   :
21885
21886
21887
21888
21889
21890   if test $ac_cv_func_sigaction = yes; then
21891     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
21892 "
21893 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
21894
21895 cat >>confdefs.h <<_ACEOF
21896 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
21897 _ACEOF
21898
21899
21900 fi
21901
21902     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
21903       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
21904     fi
21905   else
21906     HAVE_SIGACTION=0
21907   fi
21908
21909   if test $HAVE_SIGACTION = 0; then
21910
21911
21912
21913
21914
21915
21916
21917
21918   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
21919
21920
21921
21922
21923
21924
21925
21926   :
21927
21928
21929
21930
21931
21932
21933
21934
21935   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
21936 #include <signal.h>
21937
21938 "
21939 if test "x$ac_cv_type_siginfo_t" = xyes; then :
21940
21941 cat >>confdefs.h <<_ACEOF
21942 #define HAVE_SIGINFO_T 1
21943 _ACEOF
21944
21945
21946 fi
21947
21948   if test $ac_cv_type_siginfo_t = no; then
21949     HAVE_SIGINFO_T=0
21950   fi
21951
21952   fi
21953
21954
21955
21956
21957
21958           GNULIB_SIGACTION=1
21959
21960
21961
21962
21963
21964 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979      if test $gl_cv_have_include_next = yes; then
21980        gl_cv_next_signal_h='<'signal.h'>'
21981      else
21982        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21983 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21984 if ${gl_cv_next_signal_h+:} false; then :
21985   $as_echo_n "(cached) " >&6
21986 else
21987
21988                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h.  */
21990 #include <signal.h>
21991
21992 _ACEOF
21993                                                                                                                         case "$host_os" in
21994                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21995                  *)    gl_absname_cpp="$ac_cpp" ;;
21996                esac
21997
21998                case "$host_os" in
21999                  mingw*)
22000                                                                                                                                      gl_dirsep_regex='[/\\]'
22001                    ;;
22002                  *)
22003                    gl_dirsep_regex='\/'
22004                    ;;
22005                esac
22006                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22007
22008                gl_header_literal_regex=`echo 'signal.h' \
22009                                         | sed -e "$gl_make_literal_regex_sed"`
22010                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22011                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22012                    s|^/[^/]|//&|
22013                    p
22014                    q
22015                  }'
22016                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22017                       sed -n "$gl_absolute_header_sed"`'"'
22018
22019
22020 fi
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22022 $as_echo "$gl_cv_next_signal_h" >&6; }
22023      fi
22024      NEXT_SIGNAL_H=$gl_cv_next_signal_h
22025
22026      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22027        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22028        gl_next_as_first_directive='<'signal.h'>'
22029      else
22030        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22031        gl_next_as_first_directive=$gl_cv_next_signal_h
22032      fi
22033      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22034
22035
22036
22037
22038
22039 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22040 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
22041   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22042 #include <signal.h>
22043
22044 "
22045 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
22046
22047 else
22048   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22049 fi
22050
22051
22052
22053
22054
22055
22056
22057   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22058 #include <signal.h>
22059
22060 "
22061 if test "x$ac_cv_type_sighandler_t" = xyes; then :
22062
22063 else
22064   HAVE_SIGHANDLER_T=0
22065 fi
22066
22067
22068
22069     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
22070     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22072 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22073 if eval \${$as_gl_Symbol+:} false; then :
22074   $as_echo_n "(cached) " >&6
22075 else
22076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h.  */
22078 #include <signal.h>
22079
22080 int
22081 main ()
22082 {
22083 #undef $gl_func
22084   (void) $gl_func;
22085   ;
22086   return 0;
22087 }
22088 _ACEOF
22089 if ac_fn_c_try_compile "$LINENO"; then :
22090   eval "$as_gl_Symbol=yes"
22091 else
22092   eval "$as_gl_Symbol=no"
22093 fi
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 fi
22096 eval ac_res=\$$as_gl_Symbol
22097                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22098 $as_echo "$ac_res" >&6; }
22099     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22100   cat >>confdefs.h <<_ACEOF
22101 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22102 _ACEOF
22103
22104                      eval ac_cv_have_decl_$gl_func=yes
22105 fi
22106       done
22107
22108
22109
22110
22111
22112   if test $gl_cv_type_sigset_t = yes; then
22113     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22114 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22115   gl_cv_func_sigprocmask=1
22116 fi
22117
22118   fi
22119   if test -z "$gl_cv_func_sigprocmask"; then
22120     HAVE_POSIX_SIGNALBLOCKING=0
22121   fi
22122
22123   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22124
22125
22126
22127
22128
22129
22130
22131
22132   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22133
22134     :
22135   fi
22136
22137
22138
22139
22140
22141           GNULIB_SIGPROCMASK=1
22142
22143
22144
22145
22146
22147 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
22148
22149
22150
22151
22152   for ac_header in stdint.h
22153 do :
22154   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22155 if test "x$ac_cv_header_stdint_h" = xyes; then :
22156   cat >>confdefs.h <<_ACEOF
22157 #define HAVE_STDINT_H 1
22158 _ACEOF
22159
22160 fi
22161
22162 done
22163
22164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
22165 $as_echo_n "checking for SIZE_MAX... " >&6; }
22166 if ${gl_cv_size_max+:} false; then :
22167   $as_echo_n "(cached) " >&6
22168 else
22169
22170     gl_cv_size_max=
22171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22172 /* end confdefs.h.  */
22173
22174 #include <limits.h>
22175 #if HAVE_STDINT_H
22176 #include <stdint.h>
22177 #endif
22178 #ifdef SIZE_MAX
22179 Found it
22180 #endif
22181
22182 _ACEOF
22183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22184   $EGREP "Found it" >/dev/null 2>&1; then :
22185   gl_cv_size_max=yes
22186 fi
22187 rm -f conftest*
22188
22189     if test -z "$gl_cv_size_max"; then
22190                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
22191 #include <limits.h>"; then :
22192
22193 else
22194   size_t_bits_minus_1=
22195 fi
22196
22197       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
22198
22199 else
22200   fits_in_uint=
22201 fi
22202
22203       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
22204         if test $fits_in_uint = 1; then
22205                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h.  */
22207 #include <stddef.h>
22208                  extern size_t foo;
22209                  extern unsigned long foo;
22210
22211 int
22212 main ()
22213 {
22214
22215   ;
22216   return 0;
22217 }
22218 _ACEOF
22219 if ac_fn_c_try_compile "$LINENO"; then :
22220   fits_in_uint=0
22221 fi
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223         fi
22224                                 if test $fits_in_uint = 1; then
22225           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
22226         else
22227           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22228         fi
22229       else
22230                 gl_cv_size_max='((size_t)~(size_t)0)'
22231       fi
22232     fi
22233
22234 fi
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
22236 $as_echo "$gl_cv_size_max" >&6; }
22237   if test "$gl_cv_size_max" != yes; then
22238
22239 cat >>confdefs.h <<_ACEOF
22240 #define SIZE_MAX $gl_cv_size_max
22241 _ACEOF
22242
22243   fi
22244
22245
22246
22247
22248   gl_cv_func_snprintf_usable=no
22249   for ac_func in snprintf
22250 do :
22251   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22252 if test "x$ac_cv_func_snprintf" = xyes; then :
22253   cat >>confdefs.h <<_ACEOF
22254 #define HAVE_SNPRINTF 1
22255 _ACEOF
22256
22257 fi
22258 done
22259
22260   if test $ac_cv_func_snprintf = yes; then
22261
22262
22263
22264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22265 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22266 if ${gl_cv_func_snprintf_size1+:} false; then :
22267   $as_echo_n "(cached) " >&6
22268 else
22269
22270       if test "$cross_compiling" = yes; then :
22271   gl_cv_func_snprintf_size1="guessing yes"
22272 else
22273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h.  */
22275
22276 #include <stdio.h>
22277 #if HAVE_SNPRINTF
22278 # define my_snprintf snprintf
22279 #else
22280 # include <stdarg.h>
22281 static int my_snprintf (char *buf, int size, const char *format, ...)
22282 {
22283   va_list args;
22284   int ret;
22285   va_start (args, format);
22286   ret = vsnprintf (buf, size, format, args);
22287   va_end (args);
22288   return ret;
22289 }
22290 #endif
22291 int main()
22292 {
22293   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22294   my_snprintf (buf, 1, "%d", 12345);
22295   return buf[1] != 'E';
22296 }
22297 _ACEOF
22298 if ac_fn_c_try_run "$LINENO"; then :
22299   gl_cv_func_snprintf_size1=yes
22300 else
22301   gl_cv_func_snprintf_size1=no
22302 fi
22303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22304   conftest.$ac_objext conftest.beam conftest.$ac_ext
22305 fi
22306
22307
22308 fi
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22310 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22311
22312     case "$gl_cv_func_snprintf_size1" in
22313       *yes)
22314
22315         case "$gl_cv_func_snprintf_retval_c99" in
22316           *yes)
22317
22318
22319      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22320 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22321 if ${gl_cv_func_printf_positions+:} false; then :
22322   $as_echo_n "(cached) " >&6
22323 else
22324
22325       if test "$cross_compiling" = yes; then :
22326
22327          case "$host_os" in
22328            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22329                          gl_cv_func_printf_positions="guessing no";;
22330            beos*)        gl_cv_func_printf_positions="guessing no";;
22331            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22332            *)            gl_cv_func_printf_positions="guessing yes";;
22333          esac
22334
22335 else
22336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h.  */
22338
22339 #include <stdio.h>
22340 #include <string.h>
22341 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22342    dollar expansion (possibly an autoconf bug).  */
22343 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22344 static char buf[100];
22345 int main ()
22346 {
22347   sprintf (buf, format, 33, 55);
22348   return (strcmp (buf, "55 33") != 0);
22349 }
22350 _ACEOF
22351 if ac_fn_c_try_run "$LINENO"; then :
22352   gl_cv_func_printf_positions=yes
22353 else
22354   gl_cv_func_printf_positions=no
22355 fi
22356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22357   conftest.$ac_objext conftest.beam conftest.$ac_ext
22358 fi
22359
22360
22361 fi
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22363 $as_echo "$gl_cv_func_printf_positions" >&6; }
22364
22365             case "$gl_cv_func_printf_positions" in
22366               *yes)
22367                 gl_cv_func_snprintf_usable=yes
22368                 ;;
22369             esac
22370             ;;
22371         esac
22372         ;;
22373     esac
22374   fi
22375   if test $gl_cv_func_snprintf_usable = no; then
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22387
22388   if test $ac_cv_func_snprintf = yes; then
22389     REPLACE_SNPRINTF=1
22390   fi
22391   :
22392
22393   fi
22394
22395   :
22396
22397
22398
22399
22400
22401   if test $ac_cv_have_decl_snprintf = no; then
22402     HAVE_DECL_SNPRINTF=0
22403   fi
22404
22405
22406
22407
22408
22409
22410           GNULIB_SNPRINTF=1
22411
22412
22413
22414
22415
22416 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22417
22418
22419
22420
22421
22422 cat >>confdefs.h <<_ACEOF
22423 #define GNULIB_SNPRINTF 1
22424 _ACEOF
22425
22426
22427
22428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22429 $as_echo_n "checking for ssize_t... " >&6; }
22430 if ${gt_cv_ssize_t+:} false; then :
22431   $as_echo_n "(cached) " >&6
22432 else
22433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h.  */
22435 #include <sys/types.h>
22436 int
22437 main ()
22438 {
22439 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22440             return !x;
22441   ;
22442   return 0;
22443 }
22444 _ACEOF
22445 if ac_fn_c_try_compile "$LINENO"; then :
22446   gt_cv_ssize_t=yes
22447 else
22448   gt_cv_ssize_t=no
22449 fi
22450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451 fi
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22453 $as_echo "$gt_cv_ssize_t" >&6; }
22454   if test $gt_cv_ssize_t = no; then
22455
22456 $as_echo "#define ssize_t int" >>confdefs.h
22457
22458   fi
22459
22460
22461   STDARG_H=''
22462   NEXT_STDARG_H='<stdarg.h>'
22463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22464 $as_echo_n "checking for va_copy... " >&6; }
22465   if ${gl_cv_func_va_copy+:} false; then :
22466   $as_echo_n "(cached) " >&6
22467 else
22468
22469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22470 /* end confdefs.h.  */
22471 #include <stdarg.h>
22472 int
22473 main ()
22474 {
22475
22476 #ifndef va_copy
22477 void (*func) (va_list, va_list) = va_copy;
22478 #endif
22479
22480   ;
22481   return 0;
22482 }
22483 _ACEOF
22484 if ac_fn_c_try_compile "$LINENO"; then :
22485   gl_cv_func_va_copy=yes
22486 else
22487   gl_cv_func_va_copy=no
22488 fi
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490 fi
22491
22492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22493 $as_echo "$gl_cv_func_va_copy" >&6; }
22494   if test $gl_cv_func_va_copy = no; then
22495                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22496 /* end confdefs.h.  */
22497 #if defined _AIX && !defined __GNUC__
22498         AIX vaccine
22499        #endif
22500
22501 _ACEOF
22502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22503   $EGREP "vaccine" >/dev/null 2>&1; then :
22504   gl_aixcc=yes
22505 else
22506   gl_aixcc=no
22507 fi
22508 rm -f conftest*
22509
22510     if test $gl_aixcc = yes; then
22511             STDARG_H=stdarg.h
22512
22513
22514
22515
22516
22517
22518
22519
22520      if test $gl_cv_have_include_next = yes; then
22521        gl_cv_next_stdarg_h='<'stdarg.h'>'
22522      else
22523        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22524 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22525 if ${gl_cv_next_stdarg_h+:} false; then :
22526   $as_echo_n "(cached) " >&6
22527 else
22528
22529                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22530 /* end confdefs.h.  */
22531 #include <stdarg.h>
22532
22533 _ACEOF
22534                                                                                                                         case "$host_os" in
22535                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22536                  *)    gl_absname_cpp="$ac_cpp" ;;
22537                esac
22538
22539                case "$host_os" in
22540                  mingw*)
22541                                                                                                                                      gl_dirsep_regex='[/\\]'
22542                    ;;
22543                  *)
22544                    gl_dirsep_regex='\/'
22545                    ;;
22546                esac
22547                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22548
22549                gl_header_literal_regex=`echo 'stdarg.h' \
22550                                         | sed -e "$gl_make_literal_regex_sed"`
22551                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22552                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22553                    s|^/[^/]|//&|
22554                    p
22555                    q
22556                  }'
22557                                                             gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22558                       sed -n "$gl_absolute_header_sed"`'"'
22559
22560
22561 fi
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22563 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22564      fi
22565      NEXT_STDARG_H=$gl_cv_next_stdarg_h
22566
22567      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22568        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22569        gl_next_as_first_directive='<'stdarg.h'>'
22570      else
22571        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22572        gl_next_as_first_directive=$gl_cv_next_stdarg_h
22573      fi
22574      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22575
22576
22577
22578
22579             if test "$gl_cv_next_stdarg_h" = '""'; then
22580         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22581         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22582       fi
22583     else
22584
22585   saved_as_echo_n="$as_echo_n"
22586   as_echo_n=':'
22587   if ${gl_cv_func___va_copy+:} false; then :
22588   $as_echo_n "(cached) " >&6
22589 else
22590
22591         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22592 /* end confdefs.h.  */
22593 #include <stdarg.h>
22594 int
22595 main ()
22596 {
22597
22598 #ifndef __va_copy
22599 error, bail out
22600 #endif
22601
22602   ;
22603   return 0;
22604 }
22605 _ACEOF
22606 if ac_fn_c_try_compile "$LINENO"; then :
22607   gl_cv_func___va_copy=yes
22608 else
22609   gl_cv_func___va_copy=no
22610 fi
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 fi
22613
22614   as_echo_n="$saved_as_echo_n"
22615
22616       if test $gl_cv_func___va_copy = yes; then
22617
22618 $as_echo "#define va_copy __va_copy" >>confdefs.h
22619
22620       else
22621
22622
22623 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22624
22625       fi
22626     fi
22627   fi
22628
22629    if test -n "$STDARG_H"; then
22630   GL_GENERATE_STDARG_H_TRUE=
22631   GL_GENERATE_STDARG_H_FALSE='#'
22632 else
22633   GL_GENERATE_STDARG_H_TRUE='#'
22634   GL_GENERATE_STDARG_H_FALSE=
22635 fi
22636
22637
22638
22639
22640
22641
22642   # Define two additional variables used in the Makefile substitution.
22643
22644   if test "$ac_cv_header_stdbool_h" = yes; then
22645     STDBOOL_H=''
22646   else
22647     STDBOOL_H='stdbool.h'
22648   fi
22649
22650    if test -n "$STDBOOL_H"; then
22651   GL_GENERATE_STDBOOL_H_TRUE=
22652   GL_GENERATE_STDBOOL_H_FALSE='#'
22653 else
22654   GL_GENERATE_STDBOOL_H_TRUE='#'
22655   GL_GENERATE_STDBOOL_H_FALSE=
22656 fi
22657
22658
22659   if test "$ac_cv_type__Bool" = yes; then
22660     HAVE__BOOL=1
22661   else
22662     HAVE__BOOL=0
22663   fi
22664
22665
22666
22667
22668
22669   STDDEF_H=
22670   if test $gt_cv_c_wchar_t = no; then
22671     HAVE_WCHAR_T=0
22672     STDDEF_H=stddef.h
22673   fi
22674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22675 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22676 if ${gl_cv_decl_null_works+:} false; then :
22677   $as_echo_n "(cached) " >&6
22678 else
22679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h.  */
22681 #include <stddef.h>
22682       int test[2 * (sizeof NULL == sizeof (void *)) -1];
22683
22684 int
22685 main ()
22686 {
22687
22688   ;
22689   return 0;
22690 }
22691 _ACEOF
22692 if ac_fn_c_try_compile "$LINENO"; then :
22693   gl_cv_decl_null_works=yes
22694 else
22695   gl_cv_decl_null_works=no
22696 fi
22697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698 fi
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22700 $as_echo "$gl_cv_decl_null_works" >&6; }
22701   if test $gl_cv_decl_null_works = no; then
22702     REPLACE_NULL=1
22703     STDDEF_H=stddef.h
22704   fi
22705
22706    if test -n "$STDDEF_H"; then
22707   GL_GENERATE_STDDEF_H_TRUE=
22708   GL_GENERATE_STDDEF_H_FALSE='#'
22709 else
22710   GL_GENERATE_STDDEF_H_TRUE='#'
22711   GL_GENERATE_STDDEF_H_FALSE=
22712 fi
22713
22714   if test -n "$STDDEF_H"; then
22715
22716
22717
22718
22719
22720
22721
22722
22723      if test $gl_cv_have_include_next = yes; then
22724        gl_cv_next_stddef_h='<'stddef.h'>'
22725      else
22726        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22727 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22728 if ${gl_cv_next_stddef_h+:} false; then :
22729   $as_echo_n "(cached) " >&6
22730 else
22731
22732                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h.  */
22734 #include <stddef.h>
22735
22736 _ACEOF
22737                                                                                                                         case "$host_os" in
22738                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22739                  *)    gl_absname_cpp="$ac_cpp" ;;
22740                esac
22741
22742                case "$host_os" in
22743                  mingw*)
22744                                                                                                                                      gl_dirsep_regex='[/\\]'
22745                    ;;
22746                  *)
22747                    gl_dirsep_regex='\/'
22748                    ;;
22749                esac
22750                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22751
22752                gl_header_literal_regex=`echo 'stddef.h' \
22753                                         | sed -e "$gl_make_literal_regex_sed"`
22754                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22755                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22756                    s|^/[^/]|//&|
22757                    p
22758                    q
22759                  }'
22760                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22761                       sed -n "$gl_absolute_header_sed"`'"'
22762
22763
22764 fi
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22766 $as_echo "$gl_cv_next_stddef_h" >&6; }
22767      fi
22768      NEXT_STDDEF_H=$gl_cv_next_stddef_h
22769
22770      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22771        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22772        gl_next_as_first_directive='<'stddef.h'>'
22773      else
22774        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22775        gl_next_as_first_directive=$gl_cv_next_stddef_h
22776      fi
22777      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22778
22779
22780
22781
22782   fi
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795      if test $gl_cv_have_include_next = yes; then
22796        gl_cv_next_stdio_h='<'stdio.h'>'
22797      else
22798        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22799 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22800 if ${gl_cv_next_stdio_h+:} false; then :
22801   $as_echo_n "(cached) " >&6
22802 else
22803
22804                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22805 /* end confdefs.h.  */
22806 #include <stdio.h>
22807
22808 _ACEOF
22809                                                                                                                         case "$host_os" in
22810                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22811                  *)    gl_absname_cpp="$ac_cpp" ;;
22812                esac
22813
22814                case "$host_os" in
22815                  mingw*)
22816                                                                                                                                      gl_dirsep_regex='[/\\]'
22817                    ;;
22818                  *)
22819                    gl_dirsep_regex='\/'
22820                    ;;
22821                esac
22822                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22823
22824                gl_header_literal_regex=`echo 'stdio.h' \
22825                                         | sed -e "$gl_make_literal_regex_sed"`
22826                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22827                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22828                    s|^/[^/]|//&|
22829                    p
22830                    q
22831                  }'
22832                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22833                       sed -n "$gl_absolute_header_sed"`'"'
22834
22835
22836 fi
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22838 $as_echo "$gl_cv_next_stdio_h" >&6; }
22839      fi
22840      NEXT_STDIO_H=$gl_cv_next_stdio_h
22841
22842      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22843        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22844        gl_next_as_first_directive='<'stdio.h'>'
22845      else
22846        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22847        gl_next_as_first_directive=$gl_cv_next_stdio_h
22848      fi
22849      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22850
22851
22852
22853
22854
22855       GNULIB_FSCANF=1
22856
22857
22858 cat >>confdefs.h <<_ACEOF
22859 #define GNULIB_FSCANF 1
22860 _ACEOF
22861
22862
22863   GNULIB_SCANF=1
22864
22865
22866 cat >>confdefs.h <<_ACEOF
22867 #define GNULIB_SCANF 1
22868 _ACEOF
22869
22870
22871   GNULIB_FGETC=1
22872   GNULIB_GETC=1
22873   GNULIB_GETCHAR=1
22874   GNULIB_FGETS=1
22875   GNULIB_FREAD=1
22876
22877
22878       GNULIB_FPRINTF=1
22879   GNULIB_PRINTF=1
22880   GNULIB_VFPRINTF=1
22881   GNULIB_VPRINTF=1
22882   GNULIB_FPUTC=1
22883   GNULIB_PUTC=1
22884   GNULIB_PUTCHAR=1
22885   GNULIB_FPUTS=1
22886   GNULIB_PUTS=1
22887   GNULIB_FWRITE=1
22888
22889
22890
22891
22892     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
22893     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22895 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22896 if eval \${$as_gl_Symbol+:} false; then :
22897   $as_echo_n "(cached) " >&6
22898 else
22899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22900 /* end confdefs.h.  */
22901 #include <stdio.h>
22902
22903 int
22904 main ()
22905 {
22906 #undef $gl_func
22907   (void) $gl_func;
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 if ac_fn_c_try_compile "$LINENO"; then :
22913   eval "$as_gl_Symbol=yes"
22914 else
22915   eval "$as_gl_Symbol=no"
22916 fi
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918 fi
22919 eval ac_res=\$$as_gl_Symbol
22920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22921 $as_echo "$ac_res" >&6; }
22922     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22923   cat >>confdefs.h <<_ACEOF
22924 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22925 _ACEOF
22926
22927                      eval ac_cv_have_decl_$gl_func=yes
22928 fi
22929       done
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942      if test $gl_cv_have_include_next = yes; then
22943        gl_cv_next_stdlib_h='<'stdlib.h'>'
22944      else
22945        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22946 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22947 if ${gl_cv_next_stdlib_h+:} false; then :
22948   $as_echo_n "(cached) " >&6
22949 else
22950
22951                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h.  */
22953 #include <stdlib.h>
22954
22955 _ACEOF
22956                                                                                                                         case "$host_os" in
22957                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22958                  *)    gl_absname_cpp="$ac_cpp" ;;
22959                esac
22960
22961                case "$host_os" in
22962                  mingw*)
22963                                                                                                                                      gl_dirsep_regex='[/\\]'
22964                    ;;
22965                  *)
22966                    gl_dirsep_regex='\/'
22967                    ;;
22968                esac
22969                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22970
22971                gl_header_literal_regex=`echo 'stdlib.h' \
22972                                         | sed -e "$gl_make_literal_regex_sed"`
22973                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22974                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22975                    s|^/[^/]|//&|
22976                    p
22977                    q
22978                  }'
22979                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22980                       sed -n "$gl_absolute_header_sed"`'"'
22981
22982
22983 fi
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22985 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22986      fi
22987      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22988
22989      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22990        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22991        gl_next_as_first_directive='<'stdlib.h'>'
22992      else
22993        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22994        gl_next_as_first_directive=$gl_cv_next_stdlib_h
22995      fi
22996      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22997
22998
22999
23000
23001
23002
23003     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
23004     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23006 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23007 if eval \${$as_gl_Symbol+:} false; then :
23008   $as_echo_n "(cached) " >&6
23009 else
23010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h.  */
23012 #include <stdlib.h>
23013 #if HAVE_SYS_LOADAVG_H
23014 # include <sys/loadavg.h>
23015 #endif
23016 #if HAVE_RANDOM_H
23017 # include <random.h>
23018 #endif
23019
23020 int
23021 main ()
23022 {
23023 #undef $gl_func
23024   (void) $gl_func;
23025   ;
23026   return 0;
23027 }
23028 _ACEOF
23029 if ac_fn_c_try_compile "$LINENO"; then :
23030   eval "$as_gl_Symbol=yes"
23031 else
23032   eval "$as_gl_Symbol=no"
23033 fi
23034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23035 fi
23036 eval ac_res=\$$as_gl_Symbol
23037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23038 $as_echo "$ac_res" >&6; }
23039     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23040   cat >>confdefs.h <<_ACEOF
23041 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23042 _ACEOF
23043
23044                      eval ac_cv_have_decl_$gl_func=yes
23045 fi
23046       done
23047
23048
23049
23050
23051
23052
23053
23054   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
23055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
23056 $as_echo_n "checking for working strerror function... " >&6; }
23057 if ${gl_cv_func_working_strerror+:} false; then :
23058   $as_echo_n "(cached) " >&6
23059 else
23060   if test "$cross_compiling" = yes; then :
23061   case "$host_os" in
23062                    # Guess yes on glibc systems.
23063            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
23064                    # If we don't know, assume the worst.
23065            *)      gl_cv_func_working_strerror="guessing no" ;;
23066          esac
23067
23068 else
23069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23070 /* end confdefs.h.  */
23071 #include <string.h>
23072
23073 int
23074 main ()
23075 {
23076 if (!*strerror (-2)) return 1;
23077   ;
23078   return 0;
23079 }
23080 _ACEOF
23081 if ac_fn_c_try_run "$LINENO"; then :
23082   gl_cv_func_working_strerror=yes
23083 else
23084   gl_cv_func_working_strerror=no
23085 fi
23086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23087   conftest.$ac_objext conftest.beam conftest.$ac_ext
23088 fi
23089
23090
23091 fi
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
23093 $as_echo "$gl_cv_func_working_strerror" >&6; }
23094     case "$gl_cv_func_working_strerror" in
23095       *yes) ;;
23096       *)
23097                         REPLACE_STRERROR=1
23098         ;;
23099     esac
23100
23101   else
23102             REPLACE_STRERROR=1
23103   fi
23104
23105   if test $REPLACE_STRERROR = 1; then
23106
23107
23108
23109
23110
23111
23112
23113
23114   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
23115
23116   fi
23117
23118
23119 cat >>confdefs.h <<_ACEOF
23120 #define GNULIB_STRERROR 1
23121 _ACEOF
23122
23123
23124
23125
23126
23127
23128
23129           GNULIB_STRERROR=1
23130
23131
23132
23133
23134
23135 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
23136
23137
23138
23139
23140
23141   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
23142
23143
23144
23145
23146
23147
23148
23149
23150   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
23151
23152
23153
23154
23155
23156   :
23157
23158
23159
23160
23161
23162   if test $ac_cv_header_sys_socket_h != yes; then
23163                     for ac_header in winsock2.h
23164 do :
23165   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23166 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23167   cat >>confdefs.h <<_ACEOF
23168 #define HAVE_WINSOCK2_H 1
23169 _ACEOF
23170
23171 fi
23172
23173 done
23174
23175   fi
23176   if test "$ac_cv_header_winsock2_h" = yes; then
23177     HAVE_WINSOCK2_H=1
23178     UNISTD_H_HAVE_WINSOCK2_H=1
23179     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23180   else
23181     HAVE_WINSOCK2_H=0
23182   fi
23183
23184
23185   fi
23186
23187
23188
23189
23190
23191
23192
23193
23194   :
23195
23196
23197
23198
23199
23200
23201   :
23202
23203
23204
23205
23206
23207   if test $ac_cv_have_decl_strndup = no; then
23208     HAVE_DECL_STRNDUP=0
23209   fi
23210
23211   if test $ac_cv_func_strndup = yes; then
23212     HAVE_STRNDUP=1
23213     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
23214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
23215 $as_echo_n "checking for working strndup... " >&6; }
23216 if ${gl_cv_func_strndup_works+:} false; then :
23217   $as_echo_n "(cached) " >&6
23218 else
23219   if test "$cross_compiling" = yes; then :
23220
23221           case $host_os in
23222             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
23223             *)               gl_cv_func_strndup_works="guessing yes";;
23224           esac
23225
23226 else
23227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23228 /* end confdefs.h.  */
23229
23230          #include <string.h>
23231                            #include <stdlib.h>
23232 int
23233 main ()
23234 {
23235
23236 #if !HAVE_DECL_STRNDUP
23237   extern
23238   #ifdef __cplusplus
23239   "C"
23240   #endif
23241   char *strndup (const char *, size_t);
23242 #endif
23243   char *s;
23244   s = strndup ("some longer string", 15);
23245   free (s);
23246   s = strndup ("shorter string", 13);
23247   return s[13] != '\0';
23248   ;
23249   return 0;
23250 }
23251 _ACEOF
23252 if ac_fn_c_try_run "$LINENO"; then :
23253   gl_cv_func_strndup_works=yes
23254 else
23255   gl_cv_func_strndup_works=no
23256 fi
23257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23258   conftest.$ac_objext conftest.beam conftest.$ac_ext
23259 fi
23260
23261 fi
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
23263 $as_echo "$gl_cv_func_strndup_works" >&6; }
23264     case $gl_cv_func_strndup_works in
23265       *no) REPLACE_STRNDUP=1 ;;
23266     esac
23267   else
23268     HAVE_STRNDUP=0
23269   fi
23270
23271   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
23272
23273
23274
23275
23276
23277
23278
23279
23280   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
23281
23282   fi
23283
23284
23285
23286
23287
23288           GNULIB_STRNDUP=1
23289
23290
23291
23292
23293
23294 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304   :
23305
23306
23307
23308
23309
23310   if test $ac_cv_have_decl_strnlen = no; then
23311     HAVE_DECL_STRNLEN=0
23312   else
23313
23314          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
23315 $as_echo_n "checking for working strnlen... " >&6; }
23316 if ${ac_cv_func_strnlen_working+:} false; then :
23317   $as_echo_n "(cached) " >&6
23318 else
23319   if test "$cross_compiling" = yes; then :
23320   # Guess no on AIX systems, yes otherwise.
23321                 case "$host_os" in
23322                   aix*) ac_cv_func_strnlen_working=no;;
23323                   *)    ac_cv_func_strnlen_working=yes;;
23324                 esac
23325 else
23326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h.  */
23328 $ac_includes_default
23329 int
23330 main ()
23331 {
23332
23333 #define S "foobar"
23334 #define S_LEN (sizeof S - 1)
23335
23336   /* At least one implementation is buggy: that of AIX 4.3 would
23337      give strnlen (S, 1) == 3.  */
23338
23339   int i;
23340   for (i = 0; i < S_LEN + 1; ++i)
23341     {
23342       int expected = i <= S_LEN ? i : S_LEN;
23343       if (strnlen (S, i) != expected)
23344         return 1;
23345     }
23346   return 0;
23347
23348   ;
23349   return 0;
23350 }
23351 _ACEOF
23352 if ac_fn_c_try_run "$LINENO"; then :
23353   ac_cv_func_strnlen_working=yes
23354 else
23355   ac_cv_func_strnlen_working=no
23356 fi
23357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23358   conftest.$ac_objext conftest.beam conftest.$ac_ext
23359 fi
23360
23361 fi
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
23363 $as_echo "$ac_cv_func_strnlen_working" >&6; }
23364 test $ac_cv_func_strnlen_working = no && :
23365
23366
23367     if test $ac_cv_func_strnlen_working = no; then
23368       REPLACE_STRNLEN=1
23369     fi
23370   fi
23371
23372   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
23373
23374
23375
23376
23377
23378
23379
23380
23381   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
23382
23383     :
23384   fi
23385
23386
23387
23388
23389
23390           GNULIB_STRNLEN=1
23391
23392
23393
23394
23395
23396 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406   :
23407
23408
23409
23410
23411
23412   if test $ac_cv_have_decl_strsignal = no; then
23413     HAVE_DECL_STRSIGNAL=0
23414   fi
23415
23416   for ac_func in strsignal
23417 do :
23418   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
23419 if test "x$ac_cv_func_strsignal" = xyes; then :
23420   cat >>confdefs.h <<_ACEOF
23421 #define HAVE_STRSIGNAL 1
23422 _ACEOF
23423
23424 fi
23425 done
23426
23427   if test $ac_cv_func_strsignal = yes; then
23428     HAVE_STRSIGNAL=1
23429             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
23430 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
23431 if ${gl_cv_func_working_strsignal+:} false; then :
23432   $as_echo_n "(cached) " >&6
23433 else
23434   if test "$cross_compiling" = yes; then :
23435   case "$host_os" in
23436             solaris* | aix*) gl_cv_func_working_strsignal=no;;
23437             *)               gl_cv_func_working_strsignal="guessing yes";;
23438           esac
23439 else
23440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23441 /* end confdefs.h.  */
23442 #include <string.h>
23443 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
23444
23445 int
23446 main ()
23447 {
23448 int result = 0;
23449               char *s = strsignal (-1);
23450               if (s == (char *) 0)
23451                 result |= 1;
23452               if (s == (char *) -1)
23453                 result |= 2;
23454               return result;
23455
23456   ;
23457   return 0;
23458 }
23459 _ACEOF
23460 if ac_fn_c_try_run "$LINENO"; then :
23461   gl_cv_func_working_strsignal=yes
23462 else
23463   gl_cv_func_working_strsignal=no
23464 fi
23465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23466   conftest.$ac_objext conftest.beam conftest.$ac_ext
23467 fi
23468
23469 fi
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
23471 $as_echo "$gl_cv_func_working_strsignal" >&6; }
23472     if test "$gl_cv_func_working_strsignal" = no; then
23473       REPLACE_STRSIGNAL=1
23474     fi
23475   else
23476     HAVE_STRSIGNAL=0
23477   fi
23478
23479   if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
23480
23481
23482
23483
23484
23485
23486
23487
23488   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
23489
23490
23491
23492   :
23493
23494
23495
23496
23497
23498
23499   ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
23500 "
23501 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
23502   ac_have_decl=1
23503 else
23504   ac_have_decl=0
23505 fi
23506
23507 cat >>confdefs.h <<_ACEOF
23508 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
23509 _ACEOF
23510
23511
23512   fi
23513
23514
23515
23516
23517
23518           GNULIB_STRSIGNAL=1
23519
23520
23521
23522
23523
23524 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
23525
23526
23527
23528
23529
23530
23531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23532 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23533 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
23534   $as_echo_n "(cached) " >&6
23535 else
23536
23537                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23538 /* end confdefs.h.  */
23539 #include <sys/select.h>
23540 int
23541 main ()
23542 {
23543 struct timeval b;
23544   ;
23545   return 0;
23546 }
23547 _ACEOF
23548 if ac_fn_c_try_compile "$LINENO"; then :
23549   gl_cv_header_sys_select_h_selfcontained=yes
23550 else
23551   gl_cv_header_sys_select_h_selfcontained=no
23552 fi
23553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23555         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23556 /* end confdefs.h.  */
23557 #include <sys/select.h>
23558 int
23559 main ()
23560 {
23561 int memset; int bzero;
23562   ;
23563   return 0;
23564 }
23565
23566 _ACEOF
23567 if ac_fn_c_try_compile "$LINENO"; then :
23568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569 /* end confdefs.h.  */
23570 #include <sys/select.h>
23571 int
23572 main ()
23573 {
23574
23575                   #undef memset
23576                   #define memset nonexistent_memset
23577                   extern
23578                   #ifdef __cplusplus
23579                   "C"
23580                   #endif
23581                   void *memset (void *, int, unsigned long);
23582                   #undef bzero
23583                   #define bzero nonexistent_bzero
23584                   extern
23585                   #ifdef __cplusplus
23586                   "C"
23587                   #endif
23588                   void bzero (void *, unsigned long);
23589                   fd_set fds;
23590                   FD_ZERO (&fds);
23591
23592   ;
23593   return 0;
23594 }
23595
23596 _ACEOF
23597 if ac_fn_c_try_link "$LINENO"; then :
23598
23599 else
23600   gl_cv_header_sys_select_h_selfcontained=no
23601 fi
23602 rm -f core conftest.err conftest.$ac_objext \
23603     conftest$ac_exeext conftest.$ac_ext
23604
23605 fi
23606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23607       fi
23608
23609 fi
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23611 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23612
23613
23614
23615
23616
23617
23618   :
23619
23620
23621
23622
23623
23624
23625
23626
23627      if test $gl_cv_have_include_next = yes; then
23628        gl_cv_next_sys_select_h='<'sys/select.h'>'
23629      else
23630        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23631 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23632 if ${gl_cv_next_sys_select_h+:} false; then :
23633   $as_echo_n "(cached) " >&6
23634 else
23635
23636              if test $ac_cv_header_sys_select_h = yes; then
23637
23638
23639                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23640 /* end confdefs.h.  */
23641 #include <sys/select.h>
23642
23643 _ACEOF
23644                                                                                                                         case "$host_os" in
23645                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23646                  *)    gl_absname_cpp="$ac_cpp" ;;
23647                esac
23648
23649                case "$host_os" in
23650                  mingw*)
23651                                                                                                                                      gl_dirsep_regex='[/\\]'
23652                    ;;
23653                  *)
23654                    gl_dirsep_regex='\/'
23655                    ;;
23656                esac
23657                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23658
23659                gl_header_literal_regex=`echo 'sys/select.h' \
23660                                         | sed -e "$gl_make_literal_regex_sed"`
23661                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23662                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23663                    s|^/[^/]|//&|
23664                    p
23665                    q
23666                  }'
23667                                                             gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23668                       sed -n "$gl_absolute_header_sed"`'"'
23669           else
23670                gl_cv_next_sys_select_h='<'sys/select.h'>'
23671              fi
23672
23673
23674 fi
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23676 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23677      fi
23678      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23679
23680      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23681        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23682        gl_next_as_first_directive='<'sys/select.h'>'
23683      else
23684        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23685        gl_next_as_first_directive=$gl_cv_next_sys_select_h
23686      fi
23687      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23688
23689
23690
23691
23692   if test $ac_cv_header_sys_select_h = yes; then
23693     HAVE_SYS_SELECT_H=1
23694   else
23695     HAVE_SYS_SELECT_H=0
23696   fi
23697
23698
23699
23700
23701
23702   :
23703
23704
23705
23706
23707
23708   if test $ac_cv_header_sys_socket_h != yes; then
23709                     for ac_header in winsock2.h
23710 do :
23711   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23712 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23713   cat >>confdefs.h <<_ACEOF
23714 #define HAVE_WINSOCK2_H 1
23715 _ACEOF
23716
23717 fi
23718
23719 done
23720
23721   fi
23722   if test "$ac_cv_header_winsock2_h" = yes; then
23723     HAVE_WINSOCK2_H=1
23724     UNISTD_H_HAVE_WINSOCK2_H=1
23725     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23726   else
23727     HAVE_WINSOCK2_H=0
23728   fi
23729
23730
23731
23732
23733     for gl_func in pselect select; do
23734     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23736 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23737 if eval \${$as_gl_Symbol+:} false; then :
23738   $as_echo_n "(cached) " >&6
23739 else
23740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h.  */
23742
23743 /* Some systems require prerequisite headers.  */
23744 #include <sys/types.h>
23745 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
23746 # include <sys/time.h>
23747 #endif
23748 #include <sys/select.h>
23749
23750 int
23751 main ()
23752 {
23753 #undef $gl_func
23754   (void) $gl_func;
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 if ac_fn_c_try_compile "$LINENO"; then :
23760   eval "$as_gl_Symbol=yes"
23761 else
23762   eval "$as_gl_Symbol=no"
23763 fi
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23765 fi
23766 eval ac_res=\$$as_gl_Symbol
23767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23768 $as_echo "$ac_res" >&6; }
23769     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23770   cat >>confdefs.h <<_ACEOF
23771 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23772 _ACEOF
23773
23774                      eval ac_cv_have_decl_$gl_func=yes
23775 fi
23776       done
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791   :
23792
23793
23794
23795
23796
23797
23798
23799
23800      if test $gl_cv_have_include_next = yes; then
23801        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23802      else
23803        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23804 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23805 if ${gl_cv_next_sys_stat_h+:} false; then :
23806   $as_echo_n "(cached) " >&6
23807 else
23808
23809              if test $ac_cv_header_sys_stat_h = yes; then
23810
23811
23812                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23813 /* end confdefs.h.  */
23814 #include <sys/stat.h>
23815
23816 _ACEOF
23817                                                                                                                         case "$host_os" in
23818                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23819                  *)    gl_absname_cpp="$ac_cpp" ;;
23820                esac
23821
23822                case "$host_os" in
23823                  mingw*)
23824                                                                                                                                      gl_dirsep_regex='[/\\]'
23825                    ;;
23826                  *)
23827                    gl_dirsep_regex='\/'
23828                    ;;
23829                esac
23830                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23831
23832                gl_header_literal_regex=`echo 'sys/stat.h' \
23833                                         | sed -e "$gl_make_literal_regex_sed"`
23834                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23835                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23836                    s|^/[^/]|//&|
23837                    p
23838                    q
23839                  }'
23840                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23841                       sed -n "$gl_absolute_header_sed"`'"'
23842           else
23843                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23844              fi
23845
23846
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23849 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23850      fi
23851      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23852
23853      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23854        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23855        gl_next_as_first_directive='<'sys/stat.h'>'
23856      else
23857        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23858        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23859      fi
23860      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23873
23874 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23875
23876   fi
23877
23878       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23879      #include <sys/stat.h>
23880 "
23881 if test "x$ac_cv_type_nlink_t" = xyes; then :
23882
23883 else
23884
23885 $as_echo "#define nlink_t int" >>confdefs.h
23886
23887 fi
23888
23889
23890
23891     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
23892     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23894 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23895 if eval \${$as_gl_Symbol+:} false; then :
23896   $as_echo_n "(cached) " >&6
23897 else
23898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23899 /* end confdefs.h.  */
23900 #include <sys/stat.h>
23901
23902 int
23903 main ()
23904 {
23905 #undef $gl_func
23906   (void) $gl_func;
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 if ac_fn_c_try_compile "$LINENO"; then :
23912   eval "$as_gl_Symbol=yes"
23913 else
23914   eval "$as_gl_Symbol=no"
23915 fi
23916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23917 fi
23918 eval ac_res=\$$as_gl_Symbol
23919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23920 $as_echo "$ac_res" >&6; }
23921     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23922   cat >>confdefs.h <<_ACEOF
23923 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23924 _ACEOF
23925
23926                      eval ac_cv_have_decl_$gl_func=yes
23927 fi
23928       done
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947   :
23948
23949
23950
23951
23952
23953
23954
23955
23956      if test $gl_cv_have_include_next = yes; then
23957        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23958      else
23959        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
23960 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
23961 if ${gl_cv_next_sys_wait_h+:} false; then :
23962   $as_echo_n "(cached) " >&6
23963 else
23964
23965              if test $ac_cv_header_sys_wait_h = yes; then
23966
23967
23968                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23969 /* end confdefs.h.  */
23970 #include <sys/wait.h>
23971
23972 _ACEOF
23973                                                                                                                         case "$host_os" in
23974                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23975                  *)    gl_absname_cpp="$ac_cpp" ;;
23976                esac
23977
23978                case "$host_os" in
23979                  mingw*)
23980                                                                                                                                      gl_dirsep_regex='[/\\]'
23981                    ;;
23982                  *)
23983                    gl_dirsep_regex='\/'
23984                    ;;
23985                esac
23986                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23987
23988                gl_header_literal_regex=`echo 'sys/wait.h' \
23989                                         | sed -e "$gl_make_literal_regex_sed"`
23990                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23991                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23992                    s|^/[^/]|//&|
23993                    p
23994                    q
23995                  }'
23996                                                             gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23997                       sed -n "$gl_absolute_header_sed"`'"'
23998           else
23999                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
24000              fi
24001
24002
24003 fi
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
24005 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
24006      fi
24007      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
24008
24009      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24010        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24011        gl_next_as_first_directive='<'sys/wait.h'>'
24012      else
24013        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24014        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
24015      fi
24016      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
24017
24018
24019
24020
24021
24022
24023
24024
24025     for gl_func in waitpid; do
24026     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24028 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24029 if eval \${$as_gl_Symbol+:} false; then :
24030   $as_echo_n "(cached) " >&6
24031 else
24032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h.  */
24034 #include <sys/wait.h>
24035 int
24036 main ()
24037 {
24038 #undef $gl_func
24039   (void) $gl_func;
24040   ;
24041   return 0;
24042 }
24043 _ACEOF
24044 if ac_fn_c_try_compile "$LINENO"; then :
24045   eval "$as_gl_Symbol=yes"
24046 else
24047   eval "$as_gl_Symbol=no"
24048 fi
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 fi
24051 eval ac_res=\$$as_gl_Symbol
24052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24053 $as_echo "$ac_res" >&6; }
24054     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24055   cat >>confdefs.h <<_ACEOF
24056 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24057 _ACEOF
24058
24059                      eval ac_cv_have_decl_$gl_func=yes
24060 fi
24061       done
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084   :
24085
24086
24087
24088
24089
24090
24091
24092
24093      if test $gl_cv_have_include_next = yes; then
24094        gl_cv_next_unistd_h='<'unistd.h'>'
24095      else
24096        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24097 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24098 if ${gl_cv_next_unistd_h+:} false; then :
24099   $as_echo_n "(cached) " >&6
24100 else
24101
24102              if test $ac_cv_header_unistd_h = yes; then
24103
24104
24105                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24106 /* end confdefs.h.  */
24107 #include <unistd.h>
24108
24109 _ACEOF
24110                                                                                                                         case "$host_os" in
24111                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24112                  *)    gl_absname_cpp="$ac_cpp" ;;
24113                esac
24114
24115                case "$host_os" in
24116                  mingw*)
24117                                                                                                                                      gl_dirsep_regex='[/\\]'
24118                    ;;
24119                  *)
24120                    gl_dirsep_regex='\/'
24121                    ;;
24122                esac
24123                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24124
24125                gl_header_literal_regex=`echo 'unistd.h' \
24126                                         | sed -e "$gl_make_literal_regex_sed"`
24127                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24128                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24129                    s|^/[^/]|//&|
24130                    p
24131                    q
24132                  }'
24133                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24134                       sed -n "$gl_absolute_header_sed"`'"'
24135           else
24136                gl_cv_next_unistd_h='<'unistd.h'>'
24137              fi
24138
24139
24140 fi
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24142 $as_echo "$gl_cv_next_unistd_h" >&6; }
24143      fi
24144      NEXT_UNISTD_H=$gl_cv_next_unistd_h
24145
24146      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24147        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24148        gl_next_as_first_directive='<'unistd.h'>'
24149      else
24150        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24151        gl_next_as_first_directive=$gl_cv_next_unistd_h
24152      fi
24153      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24154
24155
24156
24157
24158   if test $ac_cv_header_unistd_h = yes; then
24159     HAVE_UNISTD_H=1
24160   else
24161     HAVE_UNISTD_H=0
24162   fi
24163
24164
24165
24166
24167
24168
24169
24170     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
24171     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24173 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24174 if eval \${$as_gl_Symbol+:} false; then :
24175   $as_echo_n "(cached) " >&6
24176 else
24177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178 /* end confdefs.h.  */
24179
24180 #if HAVE_UNISTD_H
24181 # include <unistd.h>
24182 #endif
24183 /* Some systems declare various items in the wrong headers.  */
24184 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24185 # include <fcntl.h>
24186 # include <stdio.h>
24187 # include <stdlib.h>
24188 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24189 #  include <io.h>
24190 # endif
24191 #endif
24192
24193 int
24194 main ()
24195 {
24196 #undef $gl_func
24197   (void) $gl_func;
24198   ;
24199   return 0;
24200 }
24201 _ACEOF
24202 if ac_fn_c_try_compile "$LINENO"; then :
24203   eval "$as_gl_Symbol=yes"
24204 else
24205   eval "$as_gl_Symbol=no"
24206 fi
24207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24208 fi
24209 eval ac_res=\$$as_gl_Symbol
24210                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24211 $as_echo "$ac_res" >&6; }
24212     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24213   cat >>confdefs.h <<_ACEOF
24214 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24215 _ACEOF
24216
24217                      eval ac_cv_have_decl_$gl_func=yes
24218 fi
24219       done
24220
24221
24222
24223
24224
24225   :
24226
24227
24228
24229
24230
24231   if test $ac_cv_have_decl_unsetenv = no; then
24232     HAVE_DECL_UNSETENV=0
24233   fi
24234   for ac_func in unsetenv
24235 do :
24236   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
24237 if test "x$ac_cv_func_unsetenv" = xyes; then :
24238   cat >>confdefs.h <<_ACEOF
24239 #define HAVE_UNSETENV 1
24240 _ACEOF
24241
24242 fi
24243 done
24244
24245   if test $ac_cv_func_unsetenv = no; then
24246     HAVE_UNSETENV=0
24247   else
24248     HAVE_UNSETENV=1
24249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
24250 $as_echo_n "checking for unsetenv() return type... " >&6; }
24251 if ${gt_cv_func_unsetenv_ret+:} false; then :
24252   $as_echo_n "(cached) " >&6
24253 else
24254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24255 /* end confdefs.h.  */
24256
24257 #undef _BSD
24258 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
24259 #include <stdlib.h>
24260 extern
24261 #ifdef __cplusplus
24262 "C"
24263 #endif
24264 int unsetenv (const char *name);
24265
24266 int
24267 main ()
24268 {
24269
24270   ;
24271   return 0;
24272 }
24273 _ACEOF
24274 if ac_fn_c_try_compile "$LINENO"; then :
24275   gt_cv_func_unsetenv_ret='int'
24276 else
24277   gt_cv_func_unsetenv_ret='void'
24278 fi
24279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280 fi
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
24282 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
24283     if test $gt_cv_func_unsetenv_ret = 'void'; then
24284
24285 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
24286
24287       REPLACE_UNSETENV=1
24288     fi
24289
24290                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
24291 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
24292 if ${gl_cv_func_unsetenv_works+:} false; then :
24293   $as_echo_n "(cached) " >&6
24294 else
24295   if test "$cross_compiling" = yes; then :
24296   case "$host_os" in
24297                  # Guess yes on glibc systems.
24298          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
24299                  # If we don't know, assume the worst.
24300          *)      gl_cv_func_unsetenv_works="guessing no" ;;
24301        esac
24302
24303 else
24304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h.  */
24306
24307        #include <stdlib.h>
24308        #include <errno.h>
24309        extern char **environ;
24310
24311 int
24312 main ()
24313 {
24314
24315        char entry1[] = "a=1";
24316        char entry2[] = "b=2";
24317        char *env[] = { entry1, entry2, NULL };
24318        if (putenv ((char *) "a=1")) return 1;
24319        if (putenv (entry2)) return 2;
24320        entry2[0] = 'a';
24321        unsetenv ("a");
24322        if (getenv ("a")) return 3;
24323        if (!unsetenv ("") || errno != EINVAL) return 4;
24324        entry2[0] = 'b';
24325        environ = env;
24326        if (!getenv ("a")) return 5;
24327        entry2[0] = 'a';
24328        unsetenv ("a");
24329        if (getenv ("a")) return 6;
24330
24331   ;
24332   return 0;
24333 }
24334 _ACEOF
24335 if ac_fn_c_try_run "$LINENO"; then :
24336   gl_cv_func_unsetenv_works=yes
24337 else
24338   gl_cv_func_unsetenv_works=no
24339 fi
24340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24341   conftest.$ac_objext conftest.beam conftest.$ac_ext
24342 fi
24343
24344 fi
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24346 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24347     case "$gl_cv_func_unsetenv_works" in
24348       *yes) ;;
24349       *)
24350         REPLACE_UNSETENV=1
24351         ;;
24352     esac
24353   fi
24354
24355   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24356
24357
24358
24359
24360
24361
24362
24363
24364   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24365
24366
24367
24368
24369   :
24370
24371
24372
24373
24374
24375
24376   fi
24377
24378
24379
24380
24381
24382           GNULIB_UNSETENV=1
24383
24384
24385
24386
24387
24388 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24389
24390
24391
24392
24393
24394   :
24395
24396
24397
24398
24399
24400   if test $ac_cv_func_vasnprintf = no; then
24401
24402
24403   :
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24448
24449   if test $ac_cv_func_vasnprintf = yes; then
24450
24451 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24452
24453   fi
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24466 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24467
24468 else
24469
24470 $as_echo "#define ptrdiff_t long" >>confdefs.h
24471
24472
24473 fi
24474
24475
24476
24477
24478
24479
24480
24481   fi
24482
24483
24484   for ac_func in vasprintf
24485 do :
24486   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24487 if test "x$ac_cv_func_vasprintf" = xyes; then :
24488   cat >>confdefs.h <<_ACEOF
24489 #define HAVE_VASPRINTF 1
24490 _ACEOF
24491
24492 fi
24493 done
24494
24495   if test $ac_cv_func_vasprintf = no; then
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
24516
24517
24518   if test $ac_cv_func_vasprintf = yes; then
24519     REPLACE_VASPRINTF=1
24520   else
24521     HAVE_VASPRINTF=0
24522   fi
24523
24524
24525
24526
24527
24528
24529
24530
24531   fi
24532
24533
24534
24535
24536
24537
24538           GNULIB_VASPRINTF=1
24539
24540
24541
24542
24543
24544 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
24545
24546
24547
24548
24549
24550   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
24551
24552
24553
24554   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
24555
24556
24557
24558   HAVE_WAITPID=1
24559   case $host_os in
24560     mingw*) HAVE_WAITPID=0 ;;
24561   esac
24562
24563   if test $HAVE_WAITPID = 0; then
24564
24565
24566
24567
24568
24569
24570
24571
24572   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
24573
24574   fi
24575
24576
24577
24578
24579
24580           GNULIB_WAITPID=1
24581
24582
24583
24584
24585
24586 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599   :
24600
24601
24602
24603
24604
24605
24606
24607
24608      if test $gl_cv_have_include_next = yes; then
24609        gl_cv_next_wchar_h='<'wchar.h'>'
24610      else
24611        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24612 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24613 if ${gl_cv_next_wchar_h+:} false; then :
24614   $as_echo_n "(cached) " >&6
24615 else
24616
24617              if test $ac_cv_header_wchar_h = yes; then
24618
24619
24620                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h.  */
24622 #include <wchar.h>
24623
24624 _ACEOF
24625                                                                                                                         case "$host_os" in
24626                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24627                  *)    gl_absname_cpp="$ac_cpp" ;;
24628                esac
24629
24630                case "$host_os" in
24631                  mingw*)
24632                                                                                                                                      gl_dirsep_regex='[/\\]'
24633                    ;;
24634                  *)
24635                    gl_dirsep_regex='\/'
24636                    ;;
24637                esac
24638                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24639
24640                gl_header_literal_regex=`echo 'wchar.h' \
24641                                         | sed -e "$gl_make_literal_regex_sed"`
24642                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24643                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24644                    s|^/[^/]|//&|
24645                    p
24646                    q
24647                  }'
24648                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24649                       sed -n "$gl_absolute_header_sed"`'"'
24650           else
24651                gl_cv_next_wchar_h='<'wchar.h'>'
24652              fi
24653
24654
24655 fi
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24657 $as_echo "$gl_cv_next_wchar_h" >&6; }
24658      fi
24659      NEXT_WCHAR_H=$gl_cv_next_wchar_h
24660
24661      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24662        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24663        gl_next_as_first_directive='<'wchar.h'>'
24664      else
24665        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24666        gl_next_as_first_directive=$gl_cv_next_wchar_h
24667      fi
24668      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24669
24670
24671
24672
24673   if test $ac_cv_header_wchar_h = yes; then
24674     HAVE_WCHAR_H=1
24675   else
24676     HAVE_WCHAR_H=0
24677   fi
24678
24679
24680
24681
24682
24683   if test $gt_cv_c_wint_t = yes; then
24684     HAVE_WINT_T=1
24685   else
24686     HAVE_WINT_T=0
24687   fi
24688
24689
24690
24691     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
24692     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24694 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24695 if eval \${$as_gl_Symbol+:} false; then :
24696   $as_echo_n "(cached) " >&6
24697 else
24698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h.  */
24700
24701 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24702    <wchar.h>.
24703    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24704    included before <wchar.h>.  */
24705 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24706 # include <stddef.h>
24707 # include <stdio.h>
24708 # include <time.h>
24709 #endif
24710 #include <wchar.h>
24711
24712 int
24713 main ()
24714 {
24715 #undef $gl_func
24716   (void) $gl_func;
24717   ;
24718   return 0;
24719 }
24720 _ACEOF
24721 if ac_fn_c_try_compile "$LINENO"; then :
24722   eval "$as_gl_Symbol=yes"
24723 else
24724   eval "$as_gl_Symbol=no"
24725 fi
24726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 fi
24728 eval ac_res=\$$as_gl_Symbol
24729                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24730 $as_echo "$ac_res" >&6; }
24731     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24732   cat >>confdefs.h <<_ACEOF
24733 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24734 _ACEOF
24735
24736                      eval ac_cv_have_decl_$gl_func=yes
24737 fi
24738       done
24739
24740
24741
24742
24743
24744   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24745     REPLACE_WRITE=1
24746   fi
24747
24748
24749
24750   if test $REPLACE_WRITE = 1; then
24751
24752
24753
24754
24755
24756
24757
24758
24759   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
24760
24761     :
24762   fi
24763
24764
24765
24766
24767
24768           GNULIB_WRITE=1
24769
24770
24771
24772
24773
24774 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
24775
24776
24777
24778   :
24779
24780
24781   for ac_header in stdint.h
24782 do :
24783   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24784 if test "x$ac_cv_header_stdint_h" = xyes; then :
24785   cat >>confdefs.h <<_ACEOF
24786 #define HAVE_STDINT_H 1
24787 _ACEOF
24788
24789 fi
24790
24791 done
24792
24793
24794
24795
24796   :
24797
24798
24799   :
24800
24801
24802   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
24803
24804   # End of code from modules
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814   gltests_libdeps=
24815   gltests_ltlibdeps=
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825   gl_source_base='tests'
24826   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
24827
24828   gl_module_indicator_condition=$gltests_WITNESS
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839 for ac_header in fcntl.h
24840 do :
24841   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24842 if test "x$ac_cv_header_fcntl_h" = xyes; then :
24843   cat >>confdefs.h <<_ACEOF
24844 #define HAVE_FCNTL_H 1
24845 _ACEOF
24846
24847 fi
24848
24849 done
24850
24851 for ac_func in clearenv
24852 do :
24853   ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
24854 if test "x$ac_cv_func_clearenv" = xyes; then :
24855   cat >>confdefs.h <<_ACEOF
24856 #define HAVE_CLEARENV 1
24857 _ACEOF
24858
24859 fi
24860 done
24861
24862
24863 # Checks for structures and compiler characteristics.
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24865 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24866 if ${ac_cv_c_const+:} false; then :
24867   $as_echo_n "(cached) " >&6
24868 else
24869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24870 /* end confdefs.h.  */
24871
24872 int
24873 main ()
24874 {
24875
24876 #ifndef __cplusplus
24877   /* Ultrix mips cc rejects this sort of thing.  */
24878   typedef int charset[2];
24879   const charset cs = { 0, 0 };
24880   /* SunOS 4.1.1 cc rejects this.  */
24881   char const *const *pcpcc;
24882   char **ppc;
24883   /* NEC SVR4.0.2 mips cc rejects this.  */
24884   struct point {int x, y;};
24885   static struct point const zero = {0,0};
24886   /* AIX XL C 1.02.0.0 rejects this.
24887      It does not let you subtract one const X* pointer from another in
24888      an arm of an if-expression whose if-part is not a constant
24889      expression */
24890   const char *g = "string";
24891   pcpcc = &g + (g ? g-g : 0);
24892   /* HPUX 7.0 cc rejects these. */
24893   ++pcpcc;
24894   ppc = (char**) pcpcc;
24895   pcpcc = (char const *const *) ppc;
24896   { /* SCO 3.2v4 cc rejects this sort of thing.  */
24897     char tx;
24898     char *t = &tx;
24899     char const *s = 0 ? (char *) 0 : (char const *) 0;
24900
24901     *t++ = 0;
24902     if (s) return 0;
24903   }
24904   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24905     int x[] = {25, 17};
24906     const int *foo = &x[0];
24907     ++foo;
24908   }
24909   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24910     typedef const int *iptr;
24911     iptr p = 0;
24912     ++p;
24913   }
24914   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24915        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24916     struct s { int j; const int *ap[3]; } bx;
24917     struct s *b = &bx; b->j = 5;
24918   }
24919   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24920     const int foo = 10;
24921     if (!foo) return 0;
24922   }
24923   return !cs[0] && !zero.x;
24924 #endif
24925
24926   ;
24927   return 0;
24928 }
24929 _ACEOF
24930 if ac_fn_c_try_compile "$LINENO"; then :
24931   ac_cv_c_const=yes
24932 else
24933   ac_cv_c_const=no
24934 fi
24935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24936 fi
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24938 $as_echo "$ac_cv_c_const" >&6; }
24939 if test $ac_cv_c_const = no; then
24940
24941 $as_echo "#define const /**/" >>confdefs.h
24942
24943 fi
24944
24945 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24946 if test "x$ac_cv_type_pid_t" = xyes; then :
24947
24948 else
24949
24950 cat >>confdefs.h <<_ACEOF
24951 #define pid_t int
24952 _ACEOF
24953
24954 fi
24955
24956 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24957 if test "x$ac_cv_type_size_t" = xyes; then :
24958
24959 else
24960
24961 cat >>confdefs.h <<_ACEOF
24962 #define size_t unsigned int
24963 _ACEOF
24964
24965 fi
24966
24967
24968 # We must have fork(2) support.
24969 for ac_header in vfork.h
24970 do :
24971   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24972 if test "x$ac_cv_header_vfork_h" = xyes; then :
24973   cat >>confdefs.h <<_ACEOF
24974 #define HAVE_VFORK_H 1
24975 _ACEOF
24976
24977 fi
24978
24979 done
24980
24981 for ac_func in fork vfork
24982 do :
24983   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24985 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24986   cat >>confdefs.h <<_ACEOF
24987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24988 _ACEOF
24989
24990 fi
24991 done
24992
24993 if test "x$ac_cv_func_fork" = xyes; then
24994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24995 $as_echo_n "checking for working fork... " >&6; }
24996 if ${ac_cv_func_fork_works+:} false; then :
24997   $as_echo_n "(cached) " >&6
24998 else
24999   if test "$cross_compiling" = yes; then :
25000   ac_cv_func_fork_works=cross
25001 else
25002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25003 /* end confdefs.h.  */
25004 $ac_includes_default
25005 int
25006 main ()
25007 {
25008
25009           /* By Ruediger Kuhlmann. */
25010           return fork () < 0;
25011
25012   ;
25013   return 0;
25014 }
25015 _ACEOF
25016 if ac_fn_c_try_run "$LINENO"; then :
25017   ac_cv_func_fork_works=yes
25018 else
25019   ac_cv_func_fork_works=no
25020 fi
25021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25022   conftest.$ac_objext conftest.beam conftest.$ac_ext
25023 fi
25024
25025 fi
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25027 $as_echo "$ac_cv_func_fork_works" >&6; }
25028
25029 else
25030   ac_cv_func_fork_works=$ac_cv_func_fork
25031 fi
25032 if test "x$ac_cv_func_fork_works" = xcross; then
25033   case $host in
25034     *-*-amigaos* | *-*-msdosdjgpp*)
25035       # Override, as these systems have only a dummy fork() stub
25036       ac_cv_func_fork_works=no
25037       ;;
25038     *)
25039       ac_cv_func_fork_works=yes
25040       ;;
25041   esac
25042   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25043 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25044 fi
25045 ac_cv_func_vfork_works=$ac_cv_func_vfork
25046 if test "x$ac_cv_func_vfork" = xyes; then
25047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25048 $as_echo_n "checking for working vfork... " >&6; }
25049 if ${ac_cv_func_vfork_works+:} false; then :
25050   $as_echo_n "(cached) " >&6
25051 else
25052   if test "$cross_compiling" = yes; then :
25053   ac_cv_func_vfork_works=cross
25054 else
25055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25056 /* end confdefs.h.  */
25057 /* Thanks to Paul Eggert for this test.  */
25058 $ac_includes_default
25059 #include <sys/wait.h>
25060 #ifdef HAVE_VFORK_H
25061 # include <vfork.h>
25062 #endif
25063 /* On some sparc systems, changes by the child to local and incoming
25064    argument registers are propagated back to the parent.  The compiler
25065    is told about this with #include <vfork.h>, but some compilers
25066    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25067    static variable whose address is put into a register that is
25068    clobbered by the vfork.  */
25069 static void
25070 #ifdef __cplusplus
25071 sparc_address_test (int arg)
25072 # else
25073 sparc_address_test (arg) int arg;
25074 #endif
25075 {
25076   static pid_t child;
25077   if (!child) {
25078     child = vfork ();
25079     if (child < 0) {
25080       perror ("vfork");
25081       _exit(2);
25082     }
25083     if (!child) {
25084       arg = getpid();
25085       write(-1, "", 0);
25086       _exit (arg);
25087     }
25088   }
25089 }
25090
25091 int
25092 main ()
25093 {
25094   pid_t parent = getpid ();
25095   pid_t child;
25096
25097   sparc_address_test (0);
25098
25099   child = vfork ();
25100
25101   if (child == 0) {
25102     /* Here is another test for sparc vfork register problems.  This
25103        test uses lots of local variables, at least as many local
25104        variables as main has allocated so far including compiler
25105        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25106        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25107        reuse the register of parent for one of the local variables,
25108        since it will think that parent can't possibly be used any more
25109        in this routine.  Assigning to the local variable will thus
25110        munge parent in the parent process.  */
25111     pid_t
25112       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25113       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25114     /* Convince the compiler that p..p7 are live; otherwise, it might
25115        use the same hardware register for all 8 local variables.  */
25116     if (p != p1 || p != p2 || p != p3 || p != p4
25117         || p != p5 || p != p6 || p != p7)
25118       _exit(1);
25119
25120     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25121        from child file descriptors.  If the child closes a descriptor
25122        before it execs or exits, this munges the parent's descriptor
25123        as well.  Test for this by closing stdout in the child.  */
25124     _exit(close(fileno(stdout)) != 0);
25125   } else {
25126     int status;
25127     struct stat st;
25128
25129     while (wait(&status) != child)
25130       ;
25131     return (
25132          /* Was there some problem with vforking?  */
25133          child < 0
25134
25135          /* Did the child fail?  (This shouldn't happen.)  */
25136          || status
25137
25138          /* Did the vfork/compiler bug occur?  */
25139          || parent != getpid()
25140
25141          /* Did the file descriptor bug occur?  */
25142          || fstat(fileno(stdout), &st) != 0
25143          );
25144   }
25145 }
25146 _ACEOF
25147 if ac_fn_c_try_run "$LINENO"; then :
25148   ac_cv_func_vfork_works=yes
25149 else
25150   ac_cv_func_vfork_works=no
25151 fi
25152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25153   conftest.$ac_objext conftest.beam conftest.$ac_ext
25154 fi
25155
25156 fi
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25158 $as_echo "$ac_cv_func_vfork_works" >&6; }
25159
25160 fi;
25161 if test "x$ac_cv_func_fork_works" = xcross; then
25162   ac_cv_func_vfork_works=$ac_cv_func_vfork
25163   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25164 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25165 fi
25166
25167 if test "x$ac_cv_func_vfork_works" = xyes; then
25168
25169 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25170
25171 else
25172
25173 $as_echo "#define vfork fork" >>confdefs.h
25174
25175 fi
25176 if test "x$ac_cv_func_fork_works" = xyes; then
25177
25178 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25179
25180 fi
25181
25182 if test "x$ac_cv_func_fork_works" != xyes; then
25183   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25185 as_fn_error $? "cannot use libpipeline on systems without fork
25186 See \`config.log' for more details" "$LINENO" 5; }
25187 fi
25188
25189 # Check for socketpair(2) as fast replacement for pipe(2).
25190 # Check whether --enable-socketpair-pipe was given.
25191 if test "${enable_socketpair_pipe+set}" = set; then :
25192   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
25193     then
25194        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
25195 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
25196   if ${pipeline_cv_socketpair_pipe+:} false; then :
25197   $as_echo_n "(cached) " >&6
25198 else
25199
25200     if test "$cross_compiling" = yes; then :
25201   pipeline_cv_socketpair_pipe=no
25202 else
25203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h.  */
25205
25206 #include <netdb.h>
25207 #include <netinet/in.h>
25208 #include <signal.h>
25209 #include <sys/socket.h>
25210 #include <sys/types.h>
25211 #include <sys/wait.h>
25212 #include <unistd.h>
25213 #ifndef SHUT_RD
25214 #       define SHUT_RD  0
25215 #endif
25216 #ifndef SHUT_WR
25217 #       define SHUT_WR  1
25218 #endif
25219
25220 static void sigpipe(int sig)
25221 {
25222         _exit(0);
25223 }
25224
25225 int main()
25226 {
25227         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
25228         char buf[256];
25229         int sfd[2], s;
25230         pid_t pid;
25231         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25232                 return 1;
25233         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25234                 return 1;
25235         if ((pid = fork()) < 0)
25236                 return 1;
25237         if (pid) {
25238                 close(sfd[1]);
25239                 waitpid(-1,&s,0);
25240                 if (read(sfd[0],buf,sizeof(buf)) < 0)
25241                         return 1;
25242         } else {
25243                 close(sfd[0]);
25244                 write(sfd[1],test,sizeof(test) - 1);
25245                 return 0;
25246         }
25247         close(sfd[0]);
25248         signal(SIGPIPE, sigpipe);
25249         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25250                 return 1;
25251         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25252                 return 1;
25253         close(sfd[0]);
25254         write(sfd[1],test,sizeof(test) - 1);
25255         return 1;
25256 }
25257 _ACEOF
25258 if ac_fn_c_try_run "$LINENO"; then :
25259   pipeline_cv_socketpair_pipe=yes
25260 else
25261   pipeline_cv_socketpair_pipe=no
25262 fi
25263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25264   conftest.$ac_objext conftest.beam conftest.$ac_ext
25265 fi
25266
25267
25268 fi
25269
25270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
25271 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
25272   if test "$pipeline_cv_socketpair_pipe" = yes; then
25273
25274 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
25275
25276   fi
25277
25278       if test "$pipeline_cv_socketpair_pipe" = yes; then
25279          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
25280 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
25281   if ${pipeline_cv_socketpair_mode+:} false; then :
25282   $as_echo_n "(cached) " >&6
25283 else
25284
25285     if test "$cross_compiling" = yes; then :
25286   pipeline_cv_socketpair_mode=no
25287 else
25288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h.  */
25290
25291 #include <netdb.h>
25292 #include <netinet/in.h>
25293 #include <sys/stat.h>
25294 #include <sys/socket.h>
25295 #include <sys/types.h>
25296 #include <unistd.h>
25297 #ifndef SHUT_RD
25298 #       define SHUT_RD  0
25299 #endif
25300 #ifndef SHUT_WR
25301 #       define SHUT_WR  1
25302 #endif
25303
25304 int main()
25305 {
25306         int sfd[2];
25307         struct stat st[2];
25308         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25309                 return 1;
25310         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25311                 return 1;
25312         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25313                 return 1;
25314         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
25315                 return 1;
25316         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
25317                 return 1;
25318         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25319                 return 1;
25320         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
25321                 return 1;
25322         return 0;
25323 }
25324 _ACEOF
25325 if ac_fn_c_try_run "$LINENO"; then :
25326   pipeline_cv_socketpair_mode=yes
25327 else
25328   pipeline_cv_socketpair_mode=no
25329 fi
25330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25331   conftest.$ac_objext conftest.beam conftest.$ac_ext
25332 fi
25333
25334
25335 fi
25336
25337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
25338 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
25339   if test "$pipeline_cv_socketpair_mode" = yes; then
25340
25341 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
25342
25343   fi
25344
25345       fi
25346     fi
25347
25348 fi
25349
25350
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
25352 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
25354 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
25356 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
25358 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
25360 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
25362 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
25363
25364 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
25365
25366 cat >confcache <<\_ACEOF
25367 # This file is a shell script that caches the results of configure
25368 # tests run on this system so they can be shared between configure
25369 # scripts and configure runs, see configure's option --config-cache.
25370 # It is not useful on other systems.  If it contains results you don't
25371 # want to keep, you may remove or edit it.
25372 #
25373 # config.status only pays attention to the cache file if you give it
25374 # the --recheck option to rerun configure.
25375 #
25376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25378 # following values.
25379
25380 _ACEOF
25381
25382 # The following way of writing the cache mishandles newlines in values,
25383 # but we know of no workaround that is simple, portable, and efficient.
25384 # So, we kill variables containing newlines.
25385 # Ultrix sh set writes to stderr and can't be redirected directly,
25386 # and sets the high bit in the cache file unless we assign to the vars.
25387 (
25388   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25389     eval ac_val=\$$ac_var
25390     case $ac_val in #(
25391     *${as_nl}*)
25392       case $ac_var in #(
25393       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25395       esac
25396       case $ac_var in #(
25397       _ | IFS | as_nl) ;; #(
25398       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25399       *) { eval $ac_var=; unset $ac_var;} ;;
25400       esac ;;
25401     esac
25402   done
25403
25404   (set) 2>&1 |
25405     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25406     *${as_nl}ac_space=\ *)
25407       # `set' does not quote correctly, so add quotes: double-quote
25408       # substitution turns \\\\ into \\, and sed turns \\ into \.
25409       sed -n \
25410         "s/'/'\\\\''/g;
25411           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25412       ;; #(
25413     *)
25414       # `set' quotes correctly as required by POSIX, so do not add quotes.
25415       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25416       ;;
25417     esac |
25418     sort
25419 ) |
25420   sed '
25421      /^ac_cv_env_/b end
25422      t clear
25423      :clear
25424      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25425      t end
25426      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25427      :end' >>confcache
25428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25429   if test -w "$cache_file"; then
25430     if test "x$cache_file" != "x/dev/null"; then
25431       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25432 $as_echo "$as_me: updating cache $cache_file" >&6;}
25433       if test ! -f "$cache_file" || test -h "$cache_file"; then
25434         cat confcache >"$cache_file"
25435       else
25436         case $cache_file in #(
25437         */* | ?:*)
25438           mv -f confcache "$cache_file"$$ &&
25439           mv -f "$cache_file"$$ "$cache_file" ;; #(
25440         *)
25441           mv -f confcache "$cache_file" ;;
25442         esac
25443       fi
25444     fi
25445   else
25446     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25448   fi
25449 fi
25450 rm -f confcache
25451
25452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25453 # Let make expand exec_prefix.
25454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25455
25456 DEFS=-DHAVE_CONFIG_H
25457
25458 ac_libobjs=
25459 ac_ltlibobjs=
25460 U=
25461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25462   # 1. Remove the extension, and $U if already installed.
25463   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25464   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25465   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25466   #    will be set to the directory where LIBOBJS objects are built.
25467   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25468   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25469 done
25470 LIBOBJS=$ac_libobjs
25471
25472 LTLIBOBJS=$ac_ltlibobjs
25473
25474
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25476 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25477    if test -n "$am_sleep_pid"; then
25478      # Hide warnings about reused PIDs.
25479      wait $am_sleep_pid 2>/dev/null
25480    fi
25481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25482 $as_echo "done" >&6; }
25483  if test -n "$EXEEXT"; then
25484   am__EXEEXT_TRUE=
25485   am__EXEEXT_FALSE='#'
25486 else
25487   am__EXEEXT_TRUE='#'
25488   am__EXEEXT_FALSE=
25489 fi
25490
25491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25492   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25494 fi
25495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25496   as_fn_error $? "conditional \"AMDEP\" was never defined.
25497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25498 fi
25499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25500   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25502 fi
25503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25504   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25506 fi
25507 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
25508   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
25509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25510 fi
25511 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25512   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25514 fi
25515 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25516   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25518 fi
25519 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25520   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25522 fi
25523 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25524   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25526 fi
25527 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25528   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25530 fi
25531 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25532   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25534 fi
25535 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25536   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25538 fi
25539 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25540   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25542 fi
25543
25544
25545     gl_libobjs=
25546     gl_ltlibobjs=
25547     if test -n "$gl_LIBOBJS"; then
25548       # Remove the extension.
25549       sed_drop_objext='s/\.o$//;s/\.obj$//'
25550       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25551         gl_libobjs="$gl_libobjs $i.$ac_objext"
25552         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25553       done
25554     fi
25555     gl_LIBOBJS=$gl_libobjs
25556
25557     gl_LTLIBOBJS=$gl_ltlibobjs
25558
25559
25560
25561     gltests_libobjs=
25562     gltests_ltlibobjs=
25563     if test -n "$gltests_LIBOBJS"; then
25564       # Remove the extension.
25565       sed_drop_objext='s/\.o$//;s/\.obj$//'
25566       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25567         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25568         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25569       done
25570     fi
25571     gltests_LIBOBJS=$gltests_libobjs
25572
25573     gltests_LTLIBOBJS=$gltests_ltlibobjs
25574
25575
25576
25577 : "${CONFIG_STATUS=./config.status}"
25578 ac_write_fail=0
25579 ac_clean_files_save=$ac_clean_files
25580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25582 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25583 as_write_fail=0
25584 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25585 #! $SHELL
25586 # Generated by $as_me.
25587 # Run this file to recreate the current configuration.
25588 # Compiler output produced by configure, useful for debugging
25589 # configure, is in config.log if it exists.
25590
25591 debug=false
25592 ac_cs_recheck=false
25593 ac_cs_silent=false
25594
25595 SHELL=\${CONFIG_SHELL-$SHELL}
25596 export SHELL
25597 _ASEOF
25598 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25599 ## -------------------- ##
25600 ## M4sh Initialization. ##
25601 ## -------------------- ##
25602
25603 # Be more Bourne compatible
25604 DUALCASE=1; export DUALCASE # for MKS sh
25605 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25606   emulate sh
25607   NULLCMD=:
25608   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25609   # is contrary to our usage.  Disable this feature.
25610   alias -g '${1+"$@"}'='"$@"'
25611   setopt NO_GLOB_SUBST
25612 else
25613   case `(set -o) 2>/dev/null` in #(
25614   *posix*) :
25615     set -o posix ;; #(
25616   *) :
25617      ;;
25618 esac
25619 fi
25620
25621
25622 as_nl='
25623 '
25624 export as_nl
25625 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25626 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25629 # Prefer a ksh shell builtin over an external printf program on Solaris,
25630 # but without wasting forks for bash or zsh.
25631 if test -z "$BASH_VERSION$ZSH_VERSION" \
25632     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25633   as_echo='print -r --'
25634   as_echo_n='print -rn --'
25635 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25636   as_echo='printf %s\n'
25637   as_echo_n='printf %s'
25638 else
25639   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25640     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25641     as_echo_n='/usr/ucb/echo -n'
25642   else
25643     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25644     as_echo_n_body='eval
25645       arg=$1;
25646       case $arg in #(
25647       *"$as_nl"*)
25648         expr "X$arg" : "X\\(.*\\)$as_nl";
25649         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25650       esac;
25651       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25652     '
25653     export as_echo_n_body
25654     as_echo_n='sh -c $as_echo_n_body as_echo'
25655   fi
25656   export as_echo_body
25657   as_echo='sh -c $as_echo_body as_echo'
25658 fi
25659
25660 # The user is always right.
25661 if test "${PATH_SEPARATOR+set}" != set; then
25662   PATH_SEPARATOR=:
25663   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25664     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25665       PATH_SEPARATOR=';'
25666   }
25667 fi
25668
25669
25670 # IFS
25671 # We need space, tab and new line, in precisely that order.  Quoting is
25672 # there to prevent editors from complaining about space-tab.
25673 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25674 # splitting by setting IFS to empty value.)
25675 IFS=" ""        $as_nl"
25676
25677 # Find who we are.  Look in the path if we contain no directory separator.
25678 as_myself=
25679 case $0 in #((
25680   *[\\/]* ) as_myself=$0 ;;
25681   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25682 for as_dir in $PATH
25683 do
25684   IFS=$as_save_IFS
25685   test -z "$as_dir" && as_dir=.
25686     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25687   done
25688 IFS=$as_save_IFS
25689
25690      ;;
25691 esac
25692 # We did not find ourselves, most probably we were run as `sh COMMAND'
25693 # in which case we are not to be found in the path.
25694 if test "x$as_myself" = x; then
25695   as_myself=$0
25696 fi
25697 if test ! -f "$as_myself"; then
25698   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25699   exit 1
25700 fi
25701
25702 # Unset variables that we do not need and which cause bugs (e.g. in
25703 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25704 # suppresses any "Segmentation fault" message there.  '((' could
25705 # trigger a bug in pdksh 5.2.14.
25706 for as_var in BASH_ENV ENV MAIL MAILPATH
25707 do eval test x\${$as_var+set} = xset \
25708   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25709 done
25710 PS1='$ '
25711 PS2='> '
25712 PS4='+ '
25713
25714 # NLS nuisances.
25715 LC_ALL=C
25716 export LC_ALL
25717 LANGUAGE=C
25718 export LANGUAGE
25719
25720 # CDPATH.
25721 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25722
25723
25724 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25725 # ----------------------------------------
25726 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25727 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25728 # script with STATUS, using 1 if that was 0.
25729 as_fn_error ()
25730 {
25731   as_status=$1; test $as_status -eq 0 && as_status=1
25732   if test "$4"; then
25733     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25734     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25735   fi
25736   $as_echo "$as_me: error: $2" >&2
25737   as_fn_exit $as_status
25738 } # as_fn_error
25739
25740
25741 # as_fn_set_status STATUS
25742 # -----------------------
25743 # Set $? to STATUS, without forking.
25744 as_fn_set_status ()
25745 {
25746   return $1
25747 } # as_fn_set_status
25748
25749 # as_fn_exit STATUS
25750 # -----------------
25751 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25752 as_fn_exit ()
25753 {
25754   set +e
25755   as_fn_set_status $1
25756   exit $1
25757 } # as_fn_exit
25758
25759 # as_fn_unset VAR
25760 # ---------------
25761 # Portably unset VAR.
25762 as_fn_unset ()
25763 {
25764   { eval $1=; unset $1;}
25765 }
25766 as_unset=as_fn_unset
25767 # as_fn_append VAR VALUE
25768 # ----------------------
25769 # Append the text in VALUE to the end of the definition contained in VAR. Take
25770 # advantage of any shell optimizations that allow amortized linear growth over
25771 # repeated appends, instead of the typical quadratic growth present in naive
25772 # implementations.
25773 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25774   eval 'as_fn_append ()
25775   {
25776     eval $1+=\$2
25777   }'
25778 else
25779   as_fn_append ()
25780   {
25781     eval $1=\$$1\$2
25782   }
25783 fi # as_fn_append
25784
25785 # as_fn_arith ARG...
25786 # ------------------
25787 # Perform arithmetic evaluation on the ARGs, and store the result in the
25788 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25789 # must be portable across $(()) and expr.
25790 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25791   eval 'as_fn_arith ()
25792   {
25793     as_val=$(( $* ))
25794   }'
25795 else
25796   as_fn_arith ()
25797   {
25798     as_val=`expr "$@" || test $? -eq 1`
25799   }
25800 fi # as_fn_arith
25801
25802
25803 if expr a : '\(a\)' >/dev/null 2>&1 &&
25804    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25805   as_expr=expr
25806 else
25807   as_expr=false
25808 fi
25809
25810 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25811   as_basename=basename
25812 else
25813   as_basename=false
25814 fi
25815
25816 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25817   as_dirname=dirname
25818 else
25819   as_dirname=false
25820 fi
25821
25822 as_me=`$as_basename -- "$0" ||
25823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25824          X"$0" : 'X\(//\)$' \| \
25825          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25826 $as_echo X/"$0" |
25827     sed '/^.*\/\([^/][^/]*\)\/*$/{
25828             s//\1/
25829             q
25830           }
25831           /^X\/\(\/\/\)$/{
25832             s//\1/
25833             q
25834           }
25835           /^X\/\(\/\).*/{
25836             s//\1/
25837             q
25838           }
25839           s/.*/./; q'`
25840
25841 # Avoid depending upon Character Ranges.
25842 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25843 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25844 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25845 as_cr_digits='0123456789'
25846 as_cr_alnum=$as_cr_Letters$as_cr_digits
25847
25848 ECHO_C= ECHO_N= ECHO_T=
25849 case `echo -n x` in #(((((
25850 -n*)
25851   case `echo 'xy\c'` in
25852   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25853   xy)  ECHO_C='\c';;
25854   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25855        ECHO_T=' ';;
25856   esac;;
25857 *)
25858   ECHO_N='-n';;
25859 esac
25860
25861 rm -f conf$$ conf$$.exe conf$$.file
25862 if test -d conf$$.dir; then
25863   rm -f conf$$.dir/conf$$.file
25864 else
25865   rm -f conf$$.dir
25866   mkdir conf$$.dir 2>/dev/null
25867 fi
25868 if (echo >conf$$.file) 2>/dev/null; then
25869   if ln -s conf$$.file conf$$ 2>/dev/null; then
25870     as_ln_s='ln -s'
25871     # ... but there are two gotchas:
25872     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25873     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25874     # In both cases, we have to default to `cp -pR'.
25875     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25876       as_ln_s='cp -pR'
25877   elif ln conf$$.file conf$$ 2>/dev/null; then
25878     as_ln_s=ln
25879   else
25880     as_ln_s='cp -pR'
25881   fi
25882 else
25883   as_ln_s='cp -pR'
25884 fi
25885 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25886 rmdir conf$$.dir 2>/dev/null
25887
25888
25889 # as_fn_mkdir_p
25890 # -------------
25891 # Create "$as_dir" as a directory, including parents if necessary.
25892 as_fn_mkdir_p ()
25893 {
25894
25895   case $as_dir in #(
25896   -*) as_dir=./$as_dir;;
25897   esac
25898   test -d "$as_dir" || eval $as_mkdir_p || {
25899     as_dirs=
25900     while :; do
25901       case $as_dir in #(
25902       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25903       *) as_qdir=$as_dir;;
25904       esac
25905       as_dirs="'$as_qdir' $as_dirs"
25906       as_dir=`$as_dirname -- "$as_dir" ||
25907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25908          X"$as_dir" : 'X\(//\)[^/]' \| \
25909          X"$as_dir" : 'X\(//\)$' \| \
25910          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25911 $as_echo X"$as_dir" |
25912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25913             s//\1/
25914             q
25915           }
25916           /^X\(\/\/\)[^/].*/{
25917             s//\1/
25918             q
25919           }
25920           /^X\(\/\/\)$/{
25921             s//\1/
25922             q
25923           }
25924           /^X\(\/\).*/{
25925             s//\1/
25926             q
25927           }
25928           s/.*/./; q'`
25929       test -d "$as_dir" && break
25930     done
25931     test -z "$as_dirs" || eval "mkdir $as_dirs"
25932   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25933
25934
25935 } # as_fn_mkdir_p
25936 if mkdir -p . 2>/dev/null; then
25937   as_mkdir_p='mkdir -p "$as_dir"'
25938 else
25939   test -d ./-p && rmdir ./-p
25940   as_mkdir_p=false
25941 fi
25942
25943
25944 # as_fn_executable_p FILE
25945 # -----------------------
25946 # Test if FILE is an executable regular file.
25947 as_fn_executable_p ()
25948 {
25949   test -f "$1" && test -x "$1"
25950 } # as_fn_executable_p
25951 as_test_x='test -x'
25952 as_executable_p=as_fn_executable_p
25953
25954 # Sed expression to map a string onto a valid CPP name.
25955 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25956
25957 # Sed expression to map a string onto a valid variable name.
25958 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25959
25960
25961 exec 6>&1
25962 ## ----------------------------------- ##
25963 ## Main body of $CONFIG_STATUS script. ##
25964 ## ----------------------------------- ##
25965 _ASEOF
25966 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25967
25968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25969 # Save the log message, to keep $0 and so on meaningful, and to
25970 # report actual input values of CONFIG_FILES etc. instead of their
25971 # values after options handling.
25972 ac_log="
25973 This file was extended by libpipeline $as_me 1.2.6, which was
25974 generated by GNU Autoconf 2.69.  Invocation command line was
25975
25976   CONFIG_FILES    = $CONFIG_FILES
25977   CONFIG_HEADERS  = $CONFIG_HEADERS
25978   CONFIG_LINKS    = $CONFIG_LINKS
25979   CONFIG_COMMANDS = $CONFIG_COMMANDS
25980   $ $0 $@
25981
25982 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25983 "
25984
25985 _ACEOF
25986
25987 case $ac_config_files in *"
25988 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25989 esac
25990
25991 case $ac_config_headers in *"
25992 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25993 esac
25994
25995
25996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25997 # Files that config.status was made for.
25998 config_files="$ac_config_files"
25999 config_headers="$ac_config_headers"
26000 config_commands="$ac_config_commands"
26001
26002 _ACEOF
26003
26004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26005 ac_cs_usage="\
26006 \`$as_me' instantiates files and other configuration actions
26007 from templates according to the current configuration.  Unless the files
26008 and actions are specified as TAGs, all are instantiated by default.
26009
26010 Usage: $0 [OPTION]... [TAG]...
26011
26012   -h, --help       print this help, then exit
26013   -V, --version    print version number and configuration settings, then exit
26014       --config     print configuration, then exit
26015   -q, --quiet, --silent
26016                    do not print progress messages
26017   -d, --debug      don't remove temporary files
26018       --recheck    update $as_me by reconfiguring in the same conditions
26019       --file=FILE[:TEMPLATE]
26020                    instantiate the configuration file FILE
26021       --header=FILE[:TEMPLATE]
26022                    instantiate the configuration header FILE
26023
26024 Configuration files:
26025 $config_files
26026
26027 Configuration headers:
26028 $config_headers
26029
26030 Configuration commands:
26031 $config_commands
26032
26033 Report bugs to <cjwatson@debian.org>."
26034
26035 _ACEOF
26036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26037 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26038 ac_cs_version="\\
26039 libpipeline config.status 1.2.6
26040 configured by $0, generated by GNU Autoconf 2.69,
26041   with options \\"\$ac_cs_config\\"
26042
26043 Copyright (C) 2012 Free Software Foundation, Inc.
26044 This config.status script is free software; the Free Software Foundation
26045 gives unlimited permission to copy, distribute and modify it."
26046
26047 ac_pwd='$ac_pwd'
26048 srcdir='$srcdir'
26049 INSTALL='$INSTALL'
26050 MKDIR_P='$MKDIR_P'
26051 AWK='$AWK'
26052 test -n "\$AWK" || AWK=awk
26053 _ACEOF
26054
26055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26056 # The default lists apply if the user does not specify any file.
26057 ac_need_defaults=:
26058 while test $# != 0
26059 do
26060   case $1 in
26061   --*=?*)
26062     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26063     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26064     ac_shift=:
26065     ;;
26066   --*=)
26067     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26068     ac_optarg=
26069     ac_shift=:
26070     ;;
26071   *)
26072     ac_option=$1
26073     ac_optarg=$2
26074     ac_shift=shift
26075     ;;
26076   esac
26077
26078   case $ac_option in
26079   # Handling of the options.
26080   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26081     ac_cs_recheck=: ;;
26082   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26083     $as_echo "$ac_cs_version"; exit ;;
26084   --config | --confi | --conf | --con | --co | --c )
26085     $as_echo "$ac_cs_config"; exit ;;
26086   --debug | --debu | --deb | --de | --d | -d )
26087     debug=: ;;
26088   --file | --fil | --fi | --f )
26089     $ac_shift
26090     case $ac_optarg in
26091     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26092     '') as_fn_error $? "missing file argument" ;;
26093     esac
26094     as_fn_append CONFIG_FILES " '$ac_optarg'"
26095     ac_need_defaults=false;;
26096   --header | --heade | --head | --hea )
26097     $ac_shift
26098     case $ac_optarg in
26099     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26100     esac
26101     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26102     ac_need_defaults=false;;
26103   --he | --h)
26104     # Conflict between --help and --header
26105     as_fn_error $? "ambiguous option: \`$1'
26106 Try \`$0 --help' for more information.";;
26107   --help | --hel | -h )
26108     $as_echo "$ac_cs_usage"; exit ;;
26109   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26110   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26111     ac_cs_silent=: ;;
26112
26113   # This is an error.
26114   -*) as_fn_error $? "unrecognized option: \`$1'
26115 Try \`$0 --help' for more information." ;;
26116
26117   *) as_fn_append ac_config_targets " $1"
26118      ac_need_defaults=false ;;
26119
26120   esac
26121   shift
26122 done
26123
26124 ac_configure_extra_args=
26125
26126 if $ac_cs_silent; then
26127   exec 6>/dev/null
26128   ac_configure_extra_args="$ac_configure_extra_args --silent"
26129 fi
26130
26131 _ACEOF
26132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26133 if \$ac_cs_recheck; then
26134   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26135   shift
26136   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26137   CONFIG_SHELL='$SHELL'
26138   export CONFIG_SHELL
26139   exec "\$@"
26140 fi
26141
26142 _ACEOF
26143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26144 exec 5>>config.log
26145 {
26146   echo
26147   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26148 ## Running $as_me. ##
26149 _ASBOX
26150   $as_echo "$ac_log"
26151 } >&5
26152
26153 _ACEOF
26154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26155 #
26156 # INIT-COMMANDS
26157 #
26158 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26159
26160
26161 # The HP-UX ksh and POSIX shell print the target directory to stdout
26162 # if CDPATH is set.
26163 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26164
26165 sed_quote_subst='$sed_quote_subst'
26166 double_quote_subst='$double_quote_subst'
26167 delay_variable_subst='$delay_variable_subst'
26168 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26169 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26170 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26171 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26172 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26173 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26174 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26175 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26176 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26177 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26178 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26179 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26180 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26181 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26182 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26183 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26184 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26185 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26186 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26187 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26188 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26189 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26190 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26191 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26192 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26193 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26194 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26195 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26196 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26197 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26198 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26199 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26200 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26201 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26202 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26203 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26204 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26205 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26206 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26207 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26208 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26209 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26210 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26211 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26212 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26213 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26214 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26215 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26216 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26217 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26218 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26219 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26220 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26221 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26222 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26223 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26224 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"`'
26225 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26226 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26227 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26228 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26229 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26230 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26231 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26232 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26233 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26234 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26235 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26236 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26237 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26238 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26239 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26240 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26241 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26242 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26243 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26244 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26245 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26246 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26247 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26248 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26249 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26250 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26251 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26252 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26253 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26254 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26255 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26256 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26257 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26258 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26259 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26260 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26261 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26262 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26263 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26264 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26265 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26266 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26267 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26268 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26269 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26270 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26271 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26272 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26273 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26274 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26275 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26276 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26277 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26278 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26279 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26280 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26281 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26282 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26283 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26284 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26285 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26286 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26287 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26288 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26289 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26290 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26291 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26292 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26293 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26294 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26295 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26296 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26297 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26298
26299 LTCC='$LTCC'
26300 LTCFLAGS='$LTCFLAGS'
26301 compiler='$compiler_DEFAULT'
26302
26303 # A function that is used when there is no print builtin or printf.
26304 func_fallback_echo ()
26305 {
26306   eval 'cat <<_LTECHO_EOF
26307 \$1
26308 _LTECHO_EOF'
26309 }
26310
26311 # Quote evaled strings.
26312 for var in SHELL \
26313 ECHO \
26314 PATH_SEPARATOR \
26315 SED \
26316 GREP \
26317 EGREP \
26318 FGREP \
26319 LD \
26320 NM \
26321 LN_S \
26322 lt_SP2NL \
26323 lt_NL2SP \
26324 reload_flag \
26325 OBJDUMP \
26326 deplibs_check_method \
26327 file_magic_cmd \
26328 file_magic_glob \
26329 want_nocaseglob \
26330 DLLTOOL \
26331 sharedlib_from_linklib_cmd \
26332 AR \
26333 AR_FLAGS \
26334 archiver_list_spec \
26335 STRIP \
26336 RANLIB \
26337 CC \
26338 CFLAGS \
26339 compiler \
26340 lt_cv_sys_global_symbol_pipe \
26341 lt_cv_sys_global_symbol_to_cdecl \
26342 lt_cv_sys_global_symbol_to_c_name_address \
26343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26344 nm_file_list_spec \
26345 lt_prog_compiler_no_builtin_flag \
26346 lt_prog_compiler_pic \
26347 lt_prog_compiler_wl \
26348 lt_prog_compiler_static \
26349 lt_cv_prog_compiler_c_o \
26350 need_locks \
26351 MANIFEST_TOOL \
26352 DSYMUTIL \
26353 NMEDIT \
26354 LIPO \
26355 OTOOL \
26356 OTOOL64 \
26357 shrext_cmds \
26358 export_dynamic_flag_spec \
26359 whole_archive_flag_spec \
26360 compiler_needs_object \
26361 with_gnu_ld \
26362 allow_undefined_flag \
26363 no_undefined_flag \
26364 hardcode_libdir_flag_spec \
26365 hardcode_libdir_separator \
26366 exclude_expsyms \
26367 include_expsyms \
26368 file_list_spec \
26369 variables_saved_for_relink \
26370 libname_spec \
26371 library_names_spec \
26372 soname_spec \
26373 install_override_mode \
26374 finish_eval \
26375 old_striplib \
26376 striplib; do
26377     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26378     *[\\\\\\\`\\"\\\$]*)
26379       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26380       ;;
26381     *)
26382       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26383       ;;
26384     esac
26385 done
26386
26387 # Double-quote double-evaled strings.
26388 for var in reload_cmds \
26389 old_postinstall_cmds \
26390 old_postuninstall_cmds \
26391 old_archive_cmds \
26392 extract_expsyms_cmds \
26393 old_archive_from_new_cmds \
26394 old_archive_from_expsyms_cmds \
26395 archive_cmds \
26396 archive_expsym_cmds \
26397 module_cmds \
26398 module_expsym_cmds \
26399 export_symbols_cmds \
26400 prelink_cmds \
26401 postlink_cmds \
26402 postinstall_cmds \
26403 postuninstall_cmds \
26404 finish_cmds \
26405 sys_lib_search_path_spec \
26406 sys_lib_dlsearch_path_spec; do
26407     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26408     *[\\\\\\\`\\"\\\$]*)
26409       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26410       ;;
26411     *)
26412       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26413       ;;
26414     esac
26415 done
26416
26417 ac_aux_dir='$ac_aux_dir'
26418 xsi_shell='$xsi_shell'
26419 lt_shell_append='$lt_shell_append'
26420
26421 # See if we are running on zsh, and set the options which allow our
26422 # commands through without removal of \ escapes INIT.
26423 if test -n "\${ZSH_VERSION+set}" ; then
26424    setopt NO_GLOB_SUBST
26425 fi
26426
26427
26428     PACKAGE='$PACKAGE'
26429     VERSION='$VERSION'
26430     TIMESTAMP='$TIMESTAMP'
26431     RM='$RM'
26432     ofile='$ofile'
26433
26434
26435
26436
26437 _ACEOF
26438
26439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26440
26441 # Handling of arguments.
26442 for ac_config_target in $ac_config_targets
26443 do
26444   case $ac_config_target in
26445     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26446     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26447     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26448     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26449     "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
26450     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26451     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
26452     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26453     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26454
26455   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26456   esac
26457 done
26458
26459
26460 # If the user did not use the arguments to specify the items to instantiate,
26461 # then the envvar interface is used.  Set only those that are not.
26462 # We use the long form for the default assignment because of an extremely
26463 # bizarre bug on SunOS 4.1.3.
26464 if $ac_need_defaults; then
26465   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26466   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26467   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26468 fi
26469
26470 # Have a temporary directory for convenience.  Make it in the build tree
26471 # simply because there is no reason against having it here, and in addition,
26472 # creating and moving files from /tmp can sometimes cause problems.
26473 # Hook for its removal unless debugging.
26474 # Note that there is a small window in which the directory will not be cleaned:
26475 # after its creation but before its name has been assigned to `$tmp'.
26476 $debug ||
26477 {
26478   tmp= ac_tmp=
26479   trap 'exit_status=$?
26480   : "${ac_tmp:=$tmp}"
26481   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26482 ' 0
26483   trap 'as_fn_exit 1' 1 2 13 15
26484 }
26485 # Create a (secure) tmp directory for tmp files.
26486
26487 {
26488   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26489   test -d "$tmp"
26490 }  ||
26491 {
26492   tmp=./conf$$-$RANDOM
26493   (umask 077 && mkdir "$tmp")
26494 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26495 ac_tmp=$tmp
26496
26497 # Set up the scripts for CONFIG_FILES section.
26498 # No need to generate them if there are no CONFIG_FILES.
26499 # This happens for instance with `./config.status config.h'.
26500 if test -n "$CONFIG_FILES"; then
26501
26502
26503 ac_cr=`echo X | tr X '\015'`
26504 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26505 # But we know of no other shell where ac_cr would be empty at this
26506 # point, so we can use a bashism as a fallback.
26507 if test "x$ac_cr" = x; then
26508   eval ac_cr=\$\'\\r\'
26509 fi
26510 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26511 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26512   ac_cs_awk_cr='\\r'
26513 else
26514   ac_cs_awk_cr=$ac_cr
26515 fi
26516
26517 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26518 _ACEOF
26519
26520
26521 {
26522   echo "cat >conf$$subs.awk <<_ACEOF" &&
26523   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26524   echo "_ACEOF"
26525 } >conf$$subs.sh ||
26526   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26527 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26528 ac_delim='%!_!# '
26529 for ac_last_try in false false false false false :; do
26530   . ./conf$$subs.sh ||
26531     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26532
26533   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26534   if test $ac_delim_n = $ac_delim_num; then
26535     break
26536   elif $ac_last_try; then
26537     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26538   else
26539     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26540   fi
26541 done
26542 rm -f conf$$subs.sh
26543
26544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26545 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26546 _ACEOF
26547 sed -n '
26548 h
26549 s/^/S["/; s/!.*/"]=/
26550 p
26551 g
26552 s/^[^!]*!//
26553 :repl
26554 t repl
26555 s/'"$ac_delim"'$//
26556 t delim
26557 :nl
26558 h
26559 s/\(.\{148\}\)..*/\1/
26560 t more1
26561 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26562 p
26563 n
26564 b repl
26565 :more1
26566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26567 p
26568 g
26569 s/.\{148\}//
26570 t nl
26571 :delim
26572 h
26573 s/\(.\{148\}\)..*/\1/
26574 t more2
26575 s/["\\]/\\&/g; s/^/"/; s/$/"/
26576 p
26577 b
26578 :more2
26579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26580 p
26581 g
26582 s/.\{148\}//
26583 t delim
26584 ' <conf$$subs.awk | sed '
26585 /^[^""]/{
26586   N
26587   s/\n//
26588 }
26589 ' >>$CONFIG_STATUS || ac_write_fail=1
26590 rm -f conf$$subs.awk
26591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26592 _ACAWK
26593 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26594   for (key in S) S_is_set[key] = 1
26595   FS = "\a"
26596
26597 }
26598 {
26599   line = $ 0
26600   nfields = split(line, field, "@")
26601   substed = 0
26602   len = length(field[1])
26603   for (i = 2; i < nfields; i++) {
26604     key = field[i]
26605     keylen = length(key)
26606     if (S_is_set[key]) {
26607       value = S[key]
26608       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26609       len += length(value) + length(field[++i])
26610       substed = 1
26611     } else
26612       len += 1 + keylen
26613   }
26614
26615   print line
26616 }
26617
26618 _ACAWK
26619 _ACEOF
26620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26621 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26622   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26623 else
26624   cat
26625 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26626   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26627 _ACEOF
26628
26629 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26630 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26631 # trailing colons and then remove the whole line if VPATH becomes empty
26632 # (actually we leave an empty line to preserve line numbers).
26633 if test "x$srcdir" = x.; then
26634   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26635 h
26636 s///
26637 s/^/:/
26638 s/[      ]*$/:/
26639 s/:\$(srcdir):/:/g
26640 s/:\${srcdir}:/:/g
26641 s/:@srcdir@:/:/g
26642 s/^:*//
26643 s/:*$//
26644 x
26645 s/\(=[   ]*\).*/\1/
26646 G
26647 s/\n//
26648 s/^[^=]*=[       ]*$//
26649 }'
26650 fi
26651
26652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26653 fi # test -n "$CONFIG_FILES"
26654
26655 # Set up the scripts for CONFIG_HEADERS section.
26656 # No need to generate them if there are no CONFIG_HEADERS.
26657 # This happens for instance with `./config.status Makefile'.
26658 if test -n "$CONFIG_HEADERS"; then
26659 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26660 BEGIN {
26661 _ACEOF
26662
26663 # Transform confdefs.h into an awk script `defines.awk', embedded as
26664 # here-document in config.status, that substitutes the proper values into
26665 # config.h.in to produce config.h.
26666
26667 # Create a delimiter string that does not exist in confdefs.h, to ease
26668 # handling of long lines.
26669 ac_delim='%!_!# '
26670 for ac_last_try in false false :; do
26671   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26672   if test -z "$ac_tt"; then
26673     break
26674   elif $ac_last_try; then
26675     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26676   else
26677     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26678   fi
26679 done
26680
26681 # For the awk script, D is an array of macro values keyed by name,
26682 # likewise P contains macro parameters if any.  Preserve backslash
26683 # newline sequences.
26684
26685 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26686 sed -n '
26687 s/.\{148\}/&'"$ac_delim"'/g
26688 t rset
26689 :rset
26690 s/^[     ]*#[    ]*define[       ][      ]*/ /
26691 t def
26692 d
26693 :def
26694 s/\\$//
26695 t bsnl
26696 s/["\\]/\\&/g
26697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26698 D["\1"]=" \3"/p
26699 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26700 d
26701 :bsnl
26702 s/["\\]/\\&/g
26703 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26704 D["\1"]=" \3\\\\\\n"\\/p
26705 t cont
26706 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26707 t cont
26708 d
26709 :cont
26710 n
26711 s/.\{148\}/&'"$ac_delim"'/g
26712 t clear
26713 :clear
26714 s/\\$//
26715 t bsnlc
26716 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26717 d
26718 :bsnlc
26719 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26720 b cont
26721 ' <confdefs.h | sed '
26722 s/'"$ac_delim"'/"\\\
26723 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26724
26725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26726   for (key in D) D_is_set[key] = 1
26727   FS = "\a"
26728 }
26729 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26730   line = \$ 0
26731   split(line, arg, " ")
26732   if (arg[1] == "#") {
26733     defundef = arg[2]
26734     mac1 = arg[3]
26735   } else {
26736     defundef = substr(arg[1], 2)
26737     mac1 = arg[2]
26738   }
26739   split(mac1, mac2, "(") #)
26740   macro = mac2[1]
26741   prefix = substr(line, 1, index(line, defundef) - 1)
26742   if (D_is_set[macro]) {
26743     # Preserve the white space surrounding the "#".
26744     print prefix "define", macro P[macro] D[macro]
26745     next
26746   } else {
26747     # Replace #undef with comments.  This is necessary, for example,
26748     # in the case of _POSIX_SOURCE, which is predefined and required
26749     # on some systems where configure will not decide to define it.
26750     if (defundef == "undef") {
26751       print "/*", prefix defundef, macro, "*/"
26752       next
26753     }
26754   }
26755 }
26756 { print }
26757 _ACAWK
26758 _ACEOF
26759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26760   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26761 fi # test -n "$CONFIG_HEADERS"
26762
26763
26764 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26765 shift
26766 for ac_tag
26767 do
26768   case $ac_tag in
26769   :[FHLC]) ac_mode=$ac_tag; continue;;
26770   esac
26771   case $ac_mode$ac_tag in
26772   :[FHL]*:*);;
26773   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26774   :[FH]-) ac_tag=-:-;;
26775   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26776   esac
26777   ac_save_IFS=$IFS
26778   IFS=:
26779   set x $ac_tag
26780   IFS=$ac_save_IFS
26781   shift
26782   ac_file=$1
26783   shift
26784
26785   case $ac_mode in
26786   :L) ac_source=$1;;
26787   :[FH])
26788     ac_file_inputs=
26789     for ac_f
26790     do
26791       case $ac_f in
26792       -) ac_f="$ac_tmp/stdin";;
26793       *) # Look for the file first in the build tree, then in the source tree
26794          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26795          # because $ac_f cannot contain `:'.
26796          test -f "$ac_f" ||
26797            case $ac_f in
26798            [\\/$]*) false;;
26799            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26800            esac ||
26801            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26802       esac
26803       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26804       as_fn_append ac_file_inputs " '$ac_f'"
26805     done
26806
26807     # Let's still pretend it is `configure' which instantiates (i.e., don't
26808     # use $as_me), people would be surprised to read:
26809     #    /* config.h.  Generated by config.status.  */
26810     configure_input='Generated from '`
26811           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26812         `' by configure.'
26813     if test x"$ac_file" != x-; then
26814       configure_input="$ac_file.  $configure_input"
26815       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26816 $as_echo "$as_me: creating $ac_file" >&6;}
26817     fi
26818     # Neutralize special characters interpreted by sed in replacement strings.
26819     case $configure_input in #(
26820     *\&* | *\|* | *\\* )
26821        ac_sed_conf_input=`$as_echo "$configure_input" |
26822        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26823     *) ac_sed_conf_input=$configure_input;;
26824     esac
26825
26826     case $ac_tag in
26827     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26828       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26829     esac
26830     ;;
26831   esac
26832
26833   ac_dir=`$as_dirname -- "$ac_file" ||
26834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26835          X"$ac_file" : 'X\(//\)[^/]' \| \
26836          X"$ac_file" : 'X\(//\)$' \| \
26837          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26838 $as_echo X"$ac_file" |
26839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26840             s//\1/
26841             q
26842           }
26843           /^X\(\/\/\)[^/].*/{
26844             s//\1/
26845             q
26846           }
26847           /^X\(\/\/\)$/{
26848             s//\1/
26849             q
26850           }
26851           /^X\(\/\).*/{
26852             s//\1/
26853             q
26854           }
26855           s/.*/./; q'`
26856   as_dir="$ac_dir"; as_fn_mkdir_p
26857   ac_builddir=.
26858
26859 case "$ac_dir" in
26860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26861 *)
26862   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26863   # A ".." for each directory in $ac_dir_suffix.
26864   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26865   case $ac_top_builddir_sub in
26866   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26867   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26868   esac ;;
26869 esac
26870 ac_abs_top_builddir=$ac_pwd
26871 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26872 # for backward compatibility:
26873 ac_top_builddir=$ac_top_build_prefix
26874
26875 case $srcdir in
26876   .)  # We are building in place.
26877     ac_srcdir=.
26878     ac_top_srcdir=$ac_top_builddir_sub
26879     ac_abs_top_srcdir=$ac_pwd ;;
26880   [\\/]* | ?:[\\/]* )  # Absolute name.
26881     ac_srcdir=$srcdir$ac_dir_suffix;
26882     ac_top_srcdir=$srcdir
26883     ac_abs_top_srcdir=$srcdir ;;
26884   *) # Relative name.
26885     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26886     ac_top_srcdir=$ac_top_build_prefix$srcdir
26887     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26888 esac
26889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26890
26891
26892   case $ac_mode in
26893   :F)
26894   #
26895   # CONFIG_FILE
26896   #
26897
26898   case $INSTALL in
26899   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26900   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26901   esac
26902   ac_MKDIR_P=$MKDIR_P
26903   case $MKDIR_P in
26904   [\\/$]* | ?:[\\/]* ) ;;
26905   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26906   esac
26907 _ACEOF
26908
26909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26910 # If the template does not know about datarootdir, expand it.
26911 # FIXME: This hack should be removed a few years after 2.60.
26912 ac_datarootdir_hack=; ac_datarootdir_seen=
26913 ac_sed_dataroot='
26914 /datarootdir/ {
26915   p
26916   q
26917 }
26918 /@datadir@/p
26919 /@docdir@/p
26920 /@infodir@/p
26921 /@localedir@/p
26922 /@mandir@/p'
26923 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26924 *datarootdir*) ac_datarootdir_seen=yes;;
26925 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26926   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26927 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26928 _ACEOF
26929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26930   ac_datarootdir_hack='
26931   s&@datadir@&$datadir&g
26932   s&@docdir@&$docdir&g
26933   s&@infodir@&$infodir&g
26934   s&@localedir@&$localedir&g
26935   s&@mandir@&$mandir&g
26936   s&\\\${datarootdir}&$datarootdir&g' ;;
26937 esac
26938 _ACEOF
26939
26940 # Neutralize VPATH when `$srcdir' = `.'.
26941 # Shell code in configure.ac might set extrasub.
26942 # FIXME: do we really want to maintain this feature?
26943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26944 ac_sed_extra="$ac_vpsub
26945 $extrasub
26946 _ACEOF
26947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26948 :t
26949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26950 s|@configure_input@|$ac_sed_conf_input|;t t
26951 s&@top_builddir@&$ac_top_builddir_sub&;t t
26952 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26953 s&@srcdir@&$ac_srcdir&;t t
26954 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26955 s&@top_srcdir@&$ac_top_srcdir&;t t
26956 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26957 s&@builddir@&$ac_builddir&;t t
26958 s&@abs_builddir@&$ac_abs_builddir&;t t
26959 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26960 s&@INSTALL@&$ac_INSTALL&;t t
26961 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26962 $ac_datarootdir_hack
26963 "
26964 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26965   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26966
26967 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26968   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26969   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26970       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26971   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26972 which seems to be undefined.  Please make sure it is defined" >&5
26973 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26974 which seems to be undefined.  Please make sure it is defined" >&2;}
26975
26976   rm -f "$ac_tmp/stdin"
26977   case $ac_file in
26978   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26979   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26980   esac \
26981   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26982  ;;
26983   :H)
26984   #
26985   # CONFIG_HEADER
26986   #
26987   if test x"$ac_file" != x-; then
26988     {
26989       $as_echo "/* $configure_input  */" \
26990       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26991     } >"$ac_tmp/config.h" \
26992       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26993     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26994       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26995 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26996     else
26997       rm -f "$ac_file"
26998       mv "$ac_tmp/config.h" "$ac_file" \
26999         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27000     fi
27001   else
27002     $as_echo "/* $configure_input  */" \
27003       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27004       || as_fn_error $? "could not create -" "$LINENO" 5
27005   fi
27006 # Compute "$ac_file"'s index in $config_headers.
27007 _am_arg="$ac_file"
27008 _am_stamp_count=1
27009 for _am_header in $config_headers :; do
27010   case $_am_header in
27011     $_am_arg | $_am_arg:* )
27012       break ;;
27013     * )
27014       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27015   esac
27016 done
27017 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27018 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27019          X"$_am_arg" : 'X\(//\)[^/]' \| \
27020          X"$_am_arg" : 'X\(//\)$' \| \
27021          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27022 $as_echo X"$_am_arg" |
27023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27024             s//\1/
27025             q
27026           }
27027           /^X\(\/\/\)[^/].*/{
27028             s//\1/
27029             q
27030           }
27031           /^X\(\/\/\)$/{
27032             s//\1/
27033             q
27034           }
27035           /^X\(\/\).*/{
27036             s//\1/
27037             q
27038           }
27039           s/.*/./; q'`/stamp-h$_am_stamp_count
27040  ;;
27041
27042   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27043 $as_echo "$as_me: executing $ac_file commands" >&6;}
27044  ;;
27045   esac
27046
27047
27048   case $ac_file$ac_mode in
27049     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27050   # Older Autoconf quotes --file arguments for eval, but not when files
27051   # are listed without --file.  Let's play safe and only enable the eval
27052   # if we detect the quoting.
27053   case $CONFIG_FILES in
27054   *\'*) eval set x "$CONFIG_FILES" ;;
27055   *)   set x $CONFIG_FILES ;;
27056   esac
27057   shift
27058   for mf
27059   do
27060     # Strip MF so we end up with the name of the file.
27061     mf=`echo "$mf" | sed -e 's/:.*$//'`
27062     # Check whether this is an Automake generated Makefile or not.
27063     # We used to match only the files named 'Makefile.in', but
27064     # some people rename them; so instead we look at the file content.
27065     # Grep'ing the first line is not enough: some people post-process
27066     # each Makefile.in and add a new line on top of each file to say so.
27067     # Grep'ing the whole file is not good either: AIX grep has a line
27068     # limit of 2048, but all sed's we know have understand at least 4000.
27069     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27070       dirpart=`$as_dirname -- "$mf" ||
27071 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27072          X"$mf" : 'X\(//\)[^/]' \| \
27073          X"$mf" : 'X\(//\)$' \| \
27074          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27075 $as_echo X"$mf" |
27076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27077             s//\1/
27078             q
27079           }
27080           /^X\(\/\/\)[^/].*/{
27081             s//\1/
27082             q
27083           }
27084           /^X\(\/\/\)$/{
27085             s//\1/
27086             q
27087           }
27088           /^X\(\/\).*/{
27089             s//\1/
27090             q
27091           }
27092           s/.*/./; q'`
27093     else
27094       continue
27095     fi
27096     # Extract the definition of DEPDIR, am__include, and am__quote
27097     # from the Makefile without running 'make'.
27098     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27099     test -z "$DEPDIR" && continue
27100     am__include=`sed -n 's/^am__include = //p' < "$mf"`
27101     test -z "$am__include" && continue
27102     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27103     # Find all dependency output files, they are included files with
27104     # $(DEPDIR) in their names.  We invoke sed twice because it is the
27105     # simplest approach to changing $(DEPDIR) to its actual value in the
27106     # expansion.
27107     for file in `sed -n "
27108       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27109          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27110       # Make sure the directory exists.
27111       test -f "$dirpart/$file" && continue
27112       fdir=`$as_dirname -- "$file" ||
27113 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27114          X"$file" : 'X\(//\)[^/]' \| \
27115          X"$file" : 'X\(//\)$' \| \
27116          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27117 $as_echo X"$file" |
27118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27119             s//\1/
27120             q
27121           }
27122           /^X\(\/\/\)[^/].*/{
27123             s//\1/
27124             q
27125           }
27126           /^X\(\/\/\)$/{
27127             s//\1/
27128             q
27129           }
27130           /^X\(\/\).*/{
27131             s//\1/
27132             q
27133           }
27134           s/.*/./; q'`
27135       as_dir=$dirpart/$fdir; as_fn_mkdir_p
27136       # echo "creating $dirpart/$file"
27137       echo '# dummy' > "$dirpart/$file"
27138     done
27139   done
27140 }
27141  ;;
27142     "libtool":C)
27143
27144     # See if we are running on zsh, and set the options which allow our
27145     # commands through without removal of \ escapes.
27146     if test -n "${ZSH_VERSION+set}" ; then
27147       setopt NO_GLOB_SUBST
27148     fi
27149
27150     cfgfile="${ofile}T"
27151     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27152     $RM "$cfgfile"
27153
27154     cat <<_LT_EOF >> "$cfgfile"
27155 #! $SHELL
27156
27157 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27158 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27160 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27161 #
27162 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27163 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27164 #                 Foundation, Inc.
27165 #   Written by Gordon Matzigkeit, 1996
27166 #
27167 #   This file is part of GNU Libtool.
27168 #
27169 # GNU Libtool is free software; you can redistribute it and/or
27170 # modify it under the terms of the GNU General Public License as
27171 # published by the Free Software Foundation; either version 2 of
27172 # the License, or (at your option) any later version.
27173 #
27174 # As a special exception to the GNU General Public License,
27175 # if you distribute this file as part of a program or library that
27176 # is built using GNU Libtool, you may include this file under the
27177 # same distribution terms that you use for the rest of that program.
27178 #
27179 # GNU Libtool is distributed in the hope that it will be useful,
27180 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27181 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27182 # GNU General Public License for more details.
27183 #
27184 # You should have received a copy of the GNU General Public License
27185 # along with GNU Libtool; see the file COPYING.  If not, a copy
27186 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27187 # obtained by writing to the Free Software Foundation, Inc.,
27188 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27189
27190
27191 # The names of the tagged configurations supported by this script.
27192 available_tags=""
27193
27194 # ### BEGIN LIBTOOL CONFIG
27195
27196 # Which release of libtool.m4 was used?
27197 macro_version=$macro_version
27198 macro_revision=$macro_revision
27199
27200 # Whether or not to build static libraries.
27201 build_old_libs=$enable_static
27202
27203 # Whether or not to build shared libraries.
27204 build_libtool_libs=$enable_shared
27205
27206 # What type of objects to build.
27207 pic_mode=$pic_mode
27208
27209 # Whether or not to optimize for fast installation.
27210 fast_install=$enable_fast_install
27211
27212 # Shell to use when invoking shell scripts.
27213 SHELL=$lt_SHELL
27214
27215 # An echo program that protects backslashes.
27216 ECHO=$lt_ECHO
27217
27218 # The PATH separator for the build system.
27219 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27220
27221 # The host system.
27222 host_alias=$host_alias
27223 host=$host
27224 host_os=$host_os
27225
27226 # The build system.
27227 build_alias=$build_alias
27228 build=$build
27229 build_os=$build_os
27230
27231 # A sed program that does not truncate output.
27232 SED=$lt_SED
27233
27234 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27235 Xsed="\$SED -e 1s/^X//"
27236
27237 # A grep program that handles long lines.
27238 GREP=$lt_GREP
27239
27240 # An ERE matcher.
27241 EGREP=$lt_EGREP
27242
27243 # A literal string matcher.
27244 FGREP=$lt_FGREP
27245
27246 # A BSD- or MS-compatible name lister.
27247 NM=$lt_NM
27248
27249 # Whether we need soft or hard links.
27250 LN_S=$lt_LN_S
27251
27252 # What is the maximum length of a command?
27253 max_cmd_len=$max_cmd_len
27254
27255 # Object file suffix (normally "o").
27256 objext=$ac_objext
27257
27258 # Executable file suffix (normally "").
27259 exeext=$exeext
27260
27261 # whether the shell understands "unset".
27262 lt_unset=$lt_unset
27263
27264 # turn spaces into newlines.
27265 SP2NL=$lt_lt_SP2NL
27266
27267 # turn newlines into spaces.
27268 NL2SP=$lt_lt_NL2SP
27269
27270 # convert \$build file names to \$host format.
27271 to_host_file_cmd=$lt_cv_to_host_file_cmd
27272
27273 # convert \$build files to toolchain format.
27274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27275
27276 # An object symbol dumper.
27277 OBJDUMP=$lt_OBJDUMP
27278
27279 # Method to check whether dependent libraries are shared objects.
27280 deplibs_check_method=$lt_deplibs_check_method
27281
27282 # Command to use when deplibs_check_method = "file_magic".
27283 file_magic_cmd=$lt_file_magic_cmd
27284
27285 # How to find potential files when deplibs_check_method = "file_magic".
27286 file_magic_glob=$lt_file_magic_glob
27287
27288 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27289 want_nocaseglob=$lt_want_nocaseglob
27290
27291 # DLL creation program.
27292 DLLTOOL=$lt_DLLTOOL
27293
27294 # Command to associate shared and link libraries.
27295 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27296
27297 # The archiver.
27298 AR=$lt_AR
27299
27300 # Flags to create an archive.
27301 AR_FLAGS=$lt_AR_FLAGS
27302
27303 # How to feed a file listing to the archiver.
27304 archiver_list_spec=$lt_archiver_list_spec
27305
27306 # A symbol stripping program.
27307 STRIP=$lt_STRIP
27308
27309 # Commands used to install an old-style archive.
27310 RANLIB=$lt_RANLIB
27311 old_postinstall_cmds=$lt_old_postinstall_cmds
27312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27313
27314 # Whether to use a lock for old archive extraction.
27315 lock_old_archive_extraction=$lock_old_archive_extraction
27316
27317 # A C compiler.
27318 LTCC=$lt_CC
27319
27320 # LTCC compiler flags.
27321 LTCFLAGS=$lt_CFLAGS
27322
27323 # Take the output of nm and produce a listing of raw symbols and C names.
27324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27325
27326 # Transform the output of nm in a proper C declaration.
27327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27328
27329 # Transform the output of nm in a C name address pair.
27330 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27331
27332 # Transform the output of nm in a C name address pair when lib prefix is needed.
27333 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27334
27335 # Specify filename containing input files for \$NM.
27336 nm_file_list_spec=$lt_nm_file_list_spec
27337
27338 # The root where to search for dependent libraries,and in which our libraries should be installed.
27339 lt_sysroot=$lt_sysroot
27340
27341 # The name of the directory that contains temporary libtool files.
27342 objdir=$objdir
27343
27344 # Used to examine libraries when file_magic_cmd begins with "file".
27345 MAGIC_CMD=$MAGIC_CMD
27346
27347 # Must we lock files when doing compilation?
27348 need_locks=$lt_need_locks
27349
27350 # Manifest tool.
27351 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27352
27353 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27354 DSYMUTIL=$lt_DSYMUTIL
27355
27356 # Tool to change global to local symbols on Mac OS X.
27357 NMEDIT=$lt_NMEDIT
27358
27359 # Tool to manipulate fat objects and archives on Mac OS X.
27360 LIPO=$lt_LIPO
27361
27362 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27363 OTOOL=$lt_OTOOL
27364
27365 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27366 OTOOL64=$lt_OTOOL64
27367
27368 # Old archive suffix (normally "a").
27369 libext=$libext
27370
27371 # Shared library suffix (normally ".so").
27372 shrext_cmds=$lt_shrext_cmds
27373
27374 # The commands to extract the exported symbol list from a shared archive.
27375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27376
27377 # Variables whose values should be saved in libtool wrapper scripts and
27378 # restored at link time.
27379 variables_saved_for_relink=$lt_variables_saved_for_relink
27380
27381 # Do we need the "lib" prefix for modules?
27382 need_lib_prefix=$need_lib_prefix
27383
27384 # Do we need a version for libraries?
27385 need_version=$need_version
27386
27387 # Library versioning type.
27388 version_type=$version_type
27389
27390 # Shared library runtime path variable.
27391 runpath_var=$runpath_var
27392
27393 # Shared library path variable.
27394 shlibpath_var=$shlibpath_var
27395
27396 # Is shlibpath searched before the hard-coded library search path?
27397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27398
27399 # Format of library name prefix.
27400 libname_spec=$lt_libname_spec
27401
27402 # List of archive names.  First name is the real one, the rest are links.
27403 # The last name is the one that the linker finds with -lNAME
27404 library_names_spec=$lt_library_names_spec
27405
27406 # The coded name of the library, if different from the real name.
27407 soname_spec=$lt_soname_spec
27408
27409 # Permission mode override for installation of shared libraries.
27410 install_override_mode=$lt_install_override_mode
27411
27412 # Command to use after installation of a shared archive.
27413 postinstall_cmds=$lt_postinstall_cmds
27414
27415 # Command to use after uninstallation of a shared archive.
27416 postuninstall_cmds=$lt_postuninstall_cmds
27417
27418 # Commands used to finish a libtool library installation in a directory.
27419 finish_cmds=$lt_finish_cmds
27420
27421 # As "finish_cmds", except a single script fragment to be evaled but
27422 # not shown.
27423 finish_eval=$lt_finish_eval
27424
27425 # Whether we should hardcode library paths into libraries.
27426 hardcode_into_libs=$hardcode_into_libs
27427
27428 # Compile-time system search path for libraries.
27429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27430
27431 # Run-time system search path for libraries.
27432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27433
27434 # Whether dlopen is supported.
27435 dlopen_support=$enable_dlopen
27436
27437 # Whether dlopen of programs is supported.
27438 dlopen_self=$enable_dlopen_self
27439
27440 # Whether dlopen of statically linked programs is supported.
27441 dlopen_self_static=$enable_dlopen_self_static
27442
27443 # Commands to strip libraries.
27444 old_striplib=$lt_old_striplib
27445 striplib=$lt_striplib
27446
27447
27448 # The linker used to build libraries.
27449 LD=$lt_LD
27450
27451 # How to create reloadable object files.
27452 reload_flag=$lt_reload_flag
27453 reload_cmds=$lt_reload_cmds
27454
27455 # Commands used to build an old-style archive.
27456 old_archive_cmds=$lt_old_archive_cmds
27457
27458 # A language specific compiler.
27459 CC=$lt_compiler
27460
27461 # Is the compiler the GNU compiler?
27462 with_gcc=$GCC
27463
27464 # Compiler flag to turn off builtin functions.
27465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27466
27467 # Additional compiler flags for building library objects.
27468 pic_flag=$lt_lt_prog_compiler_pic
27469
27470 # How to pass a linker flag through the compiler.
27471 wl=$lt_lt_prog_compiler_wl
27472
27473 # Compiler flag to prevent dynamic linking.
27474 link_static_flag=$lt_lt_prog_compiler_static
27475
27476 # Does compiler simultaneously support -c and -o options?
27477 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27478
27479 # Whether or not to add -lc for building shared libraries.
27480 build_libtool_need_lc=$archive_cmds_need_lc
27481
27482 # Whether or not to disallow shared libs when runtime libs are static.
27483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27484
27485 # Compiler flag to allow reflexive dlopens.
27486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27487
27488 # Compiler flag to generate shared objects directly from archives.
27489 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27490
27491 # Whether the compiler copes with passing no objects directly.
27492 compiler_needs_object=$lt_compiler_needs_object
27493
27494 # Create an old-style archive from a shared archive.
27495 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27496
27497 # Create a temporary old-style archive to link instead of a shared archive.
27498 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27499
27500 # Commands used to build a shared archive.
27501 archive_cmds=$lt_archive_cmds
27502 archive_expsym_cmds=$lt_archive_expsym_cmds
27503
27504 # Commands used to build a loadable module if different from building
27505 # a shared archive.
27506 module_cmds=$lt_module_cmds
27507 module_expsym_cmds=$lt_module_expsym_cmds
27508
27509 # Whether we are building with GNU ld or not.
27510 with_gnu_ld=$lt_with_gnu_ld
27511
27512 # Flag that allows shared libraries with undefined symbols to be built.
27513 allow_undefined_flag=$lt_allow_undefined_flag
27514
27515 # Flag that enforces no undefined symbols.
27516 no_undefined_flag=$lt_no_undefined_flag
27517
27518 # Flag to hardcode \$libdir into a binary during linking.
27519 # This must work even if \$libdir does not exist
27520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27521
27522 # Whether we need a single "-rpath" flag with a separated argument.
27523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27524
27525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27526 # DIR into the resulting binary.
27527 hardcode_direct=$hardcode_direct
27528
27529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27530 # DIR into the resulting binary and the resulting library dependency is
27531 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27532 # library is relocated.
27533 hardcode_direct_absolute=$hardcode_direct_absolute
27534
27535 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27536 # into the resulting binary.
27537 hardcode_minus_L=$hardcode_minus_L
27538
27539 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27540 # into the resulting binary.
27541 hardcode_shlibpath_var=$hardcode_shlibpath_var
27542
27543 # Set to "yes" if building a shared library automatically hardcodes DIR
27544 # into the library and all subsequent libraries and executables linked
27545 # against it.
27546 hardcode_automatic=$hardcode_automatic
27547
27548 # Set to yes if linker adds runtime paths of dependent libraries
27549 # to runtime path list.
27550 inherit_rpath=$inherit_rpath
27551
27552 # Whether libtool must link a program against all its dependency libraries.
27553 link_all_deplibs=$link_all_deplibs
27554
27555 # Set to "yes" if exported symbols are required.
27556 always_export_symbols=$always_export_symbols
27557
27558 # The commands to list exported symbols.
27559 export_symbols_cmds=$lt_export_symbols_cmds
27560
27561 # Symbols that should not be listed in the preloaded symbols.
27562 exclude_expsyms=$lt_exclude_expsyms
27563
27564 # Symbols that must always be exported.
27565 include_expsyms=$lt_include_expsyms
27566
27567 # Commands necessary for linking programs (against libraries) with templates.
27568 prelink_cmds=$lt_prelink_cmds
27569
27570 # Commands necessary for finishing linking programs.
27571 postlink_cmds=$lt_postlink_cmds
27572
27573 # Specify filename containing input files.
27574 file_list_spec=$lt_file_list_spec
27575
27576 # How to hardcode a shared library path into an executable.
27577 hardcode_action=$hardcode_action
27578
27579 # ### END LIBTOOL CONFIG
27580
27581 _LT_EOF
27582
27583   case $host_os in
27584   aix3*)
27585     cat <<\_LT_EOF >> "$cfgfile"
27586 # AIX sometimes has problems with the GCC collect2 program.  For some
27587 # reason, if we set the COLLECT_NAMES environment variable, the problems
27588 # vanish in a puff of smoke.
27589 if test "X${COLLECT_NAMES+set}" != Xset; then
27590   COLLECT_NAMES=
27591   export COLLECT_NAMES
27592 fi
27593 _LT_EOF
27594     ;;
27595   esac
27596
27597
27598 ltmain="$ac_aux_dir/ltmain.sh"
27599
27600
27601   # We use sed instead of cat because bash on DJGPP gets confused if
27602   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27603   # text mode, it properly converts lines to CR/LF.  This bash problem
27604   # is reportedly fixed, but why not run on old versions too?
27605   sed '$q' "$ltmain" >> "$cfgfile" \
27606      || (rm -f "$cfgfile"; exit 1)
27607
27608   if test x"$xsi_shell" = xyes; then
27609   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27610 func_dirname ()\
27611 {\
27612 \    case ${1} in\
27613 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27614 \      *  ) func_dirname_result="${3}" ;;\
27615 \    esac\
27616 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27617   && mv -f "$cfgfile.tmp" "$cfgfile" \
27618     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27619 test 0 -eq $? || _lt_function_replace_fail=:
27620
27621
27622   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27623 func_basename ()\
27624 {\
27625 \    func_basename_result="${1##*/}"\
27626 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27627   && mv -f "$cfgfile.tmp" "$cfgfile" \
27628     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27629 test 0 -eq $? || _lt_function_replace_fail=:
27630
27631
27632   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27633 func_dirname_and_basename ()\
27634 {\
27635 \    case ${1} in\
27636 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27637 \      *  ) func_dirname_result="${3}" ;;\
27638 \    esac\
27639 \    func_basename_result="${1##*/}"\
27640 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27641   && mv -f "$cfgfile.tmp" "$cfgfile" \
27642     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27643 test 0 -eq $? || _lt_function_replace_fail=:
27644
27645
27646   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27647 func_stripname ()\
27648 {\
27649 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27650 \    # positional parameters, so assign one to ordinary parameter first.\
27651 \    func_stripname_result=${3}\
27652 \    func_stripname_result=${func_stripname_result#"${1}"}\
27653 \    func_stripname_result=${func_stripname_result%"${2}"}\
27654 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27655   && mv -f "$cfgfile.tmp" "$cfgfile" \
27656     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27657 test 0 -eq $? || _lt_function_replace_fail=:
27658
27659
27660   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27661 func_split_long_opt ()\
27662 {\
27663 \    func_split_long_opt_name=${1%%=*}\
27664 \    func_split_long_opt_arg=${1#*=}\
27665 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27666   && mv -f "$cfgfile.tmp" "$cfgfile" \
27667     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27668 test 0 -eq $? || _lt_function_replace_fail=:
27669
27670
27671   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27672 func_split_short_opt ()\
27673 {\
27674 \    func_split_short_opt_arg=${1#??}\
27675 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27676 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27677   && mv -f "$cfgfile.tmp" "$cfgfile" \
27678     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27679 test 0 -eq $? || _lt_function_replace_fail=:
27680
27681
27682   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27683 func_lo2o ()\
27684 {\
27685 \    case ${1} in\
27686 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27687 \      *)    func_lo2o_result=${1} ;;\
27688 \    esac\
27689 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27690   && mv -f "$cfgfile.tmp" "$cfgfile" \
27691     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27692 test 0 -eq $? || _lt_function_replace_fail=:
27693
27694
27695   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27696 func_xform ()\
27697 {\
27698     func_xform_result=${1%.*}.lo\
27699 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27700   && mv -f "$cfgfile.tmp" "$cfgfile" \
27701     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27702 test 0 -eq $? || _lt_function_replace_fail=:
27703
27704
27705   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27706 func_arith ()\
27707 {\
27708     func_arith_result=$(( $* ))\
27709 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27710   && mv -f "$cfgfile.tmp" "$cfgfile" \
27711     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27712 test 0 -eq $? || _lt_function_replace_fail=:
27713
27714
27715   sed -e '/^func_len ()$/,/^} # func_len /c\
27716 func_len ()\
27717 {\
27718     func_len_result=${#1}\
27719 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27720   && mv -f "$cfgfile.tmp" "$cfgfile" \
27721     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27722 test 0 -eq $? || _lt_function_replace_fail=:
27723
27724 fi
27725
27726 if test x"$lt_shell_append" = xyes; then
27727   sed -e '/^func_append ()$/,/^} # func_append /c\
27728 func_append ()\
27729 {\
27730     eval "${1}+=\\${2}"\
27731 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27732   && mv -f "$cfgfile.tmp" "$cfgfile" \
27733     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27734 test 0 -eq $? || _lt_function_replace_fail=:
27735
27736
27737   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27738 func_append_quoted ()\
27739 {\
27740 \    func_quote_for_eval "${2}"\
27741 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27742 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27743   && mv -f "$cfgfile.tmp" "$cfgfile" \
27744     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27745 test 0 -eq $? || _lt_function_replace_fail=:
27746
27747
27748   # Save a `func_append' function call where possible by direct use of '+='
27749   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27750     && mv -f "$cfgfile.tmp" "$cfgfile" \
27751       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27752   test 0 -eq $? || _lt_function_replace_fail=:
27753 else
27754   # Save a `func_append' function call even when '+=' is not available
27755   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27756     && mv -f "$cfgfile.tmp" "$cfgfile" \
27757       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27758   test 0 -eq $? || _lt_function_replace_fail=:
27759 fi
27760
27761 if test x"$_lt_function_replace_fail" = x":"; then
27762   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27763 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27764 fi
27765
27766
27767    mv -f "$cfgfile" "$ofile" ||
27768     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27769   chmod +x "$ofile"
27770
27771  ;;
27772
27773   esac
27774 done # for ac_tag
27775
27776
27777 as_fn_exit 0
27778 _ACEOF
27779 ac_clean_files=$ac_clean_files_save
27780
27781 test $ac_write_fail = 0 ||
27782   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27783
27784
27785 # configure is writing to config.log, and then calls config.status.
27786 # config.status does its own redirection, appending to config.log.
27787 # Unfortunately, on DOS this fails, as config.log is still kept open
27788 # by configure, so config.status won't be able to write to it; its
27789 # output is simply discarded.  So we exec the FD to /dev/null,
27790 # effectively closing config.log, so it can be properly (re)opened and
27791 # appended to by config.status.  When coming back to configure, we
27792 # need to make the FD available again.
27793 if test "$no_create" != yes; then
27794   ac_cs_success=:
27795   ac_config_status_args=
27796   test "$silent" = yes &&
27797     ac_config_status_args="$ac_config_status_args --quiet"
27798   exec 5>/dev/null
27799   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27800   exec 5>>config.log
27801   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27802   # would make configure fail if this is the last instruction.
27803   $ac_cs_success || as_fn_exit 1
27804 fi
27805 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27806   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27807 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27808 fi
27809