Imported Upstream version 1.2.3
[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.3.
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.3'
594 PACKAGE_STRING='libpipeline 1.2.3'
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 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
767 NEXT_SYS_TIME_H
768 REPLACE_STRUCT_TIMEVAL
769 REPLACE_GETTIMEOFDAY
770 HAVE_SYS_TIME_H
771 HAVE_STRUCT_TIMEVAL
772 HAVE_GETTIMEOFDAY
773 GNULIB_GETTIMEOFDAY
774 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
775 NEXT_SYS_STAT_H
776 REPLACE_UTIMENSAT
777 REPLACE_STAT
778 REPLACE_MKNOD
779 REPLACE_MKFIFO
780 REPLACE_MKDIR
781 REPLACE_LSTAT
782 REPLACE_FUTIMENS
783 REPLACE_FSTATAT
784 REPLACE_FSTAT
785 HAVE_UTIMENSAT
786 HAVE_MKNODAT
787 HAVE_MKNOD
788 HAVE_MKFIFOAT
789 HAVE_MKFIFO
790 HAVE_MKDIRAT
791 HAVE_LSTAT
792 HAVE_LCHMOD
793 HAVE_FUTIMENS
794 HAVE_FSTATAT
795 HAVE_FCHMODAT
796 GNULIB_UTIMENSAT
797 GNULIB_STAT
798 GNULIB_MKNODAT
799 GNULIB_MKNOD
800 GNULIB_MKFIFOAT
801 GNULIB_MKFIFO
802 GNULIB_MKDIRAT
803 GNULIB_LSTAT
804 GNULIB_LCHMOD
805 GNULIB_FUTIMENS
806 GNULIB_FSTATAT
807 GNULIB_FSTAT
808 GNULIB_FCHMODAT
809 HAVE_SYS_SELECT_H
810 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
811 NEXT_SYS_SELECT_H
812 REPLACE_SELECT
813 REPLACE_PSELECT
814 HAVE_PSELECT
815 GNULIB_SELECT
816 GNULIB_PSELECT
817 NEXT_AS_FIRST_DIRECTIVE_STRING_H
818 NEXT_STRING_H
819 HAVE_WINSOCK2_H
820 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
821 NEXT_STDLIB_H
822 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
823 NEXT_STDIO_H
824 GL_GENERATE_STDINT_H_FALSE
825 GL_GENERATE_STDINT_H_TRUE
826 STDINT_H
827 WINT_T_SUFFIX
828 WCHAR_T_SUFFIX
829 SIG_ATOMIC_T_SUFFIX
830 SIZE_T_SUFFIX
831 PTRDIFF_T_SUFFIX
832 HAVE_SIGNED_WINT_T
833 HAVE_SIGNED_WCHAR_T
834 HAVE_SIGNED_SIG_ATOMIC_T
835 BITSIZEOF_WINT_T
836 BITSIZEOF_WCHAR_T
837 BITSIZEOF_SIG_ATOMIC_T
838 BITSIZEOF_SIZE_T
839 BITSIZEOF_PTRDIFF_T
840 HAVE_SYS_BITYPES_H
841 HAVE_SYS_INTTYPES_H
842 HAVE_STDINT_H
843 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
844 NEXT_STDINT_H
845 HAVE_SYS_TYPES_H
846 HAVE_INTTYPES_H
847 HAVE_WCHAR_H
848 HAVE_UNSIGNED_LONG_LONG_INT
849 HAVE_LONG_LONG_INT
850 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
851 NEXT_STDDEF_H
852 GL_GENERATE_STDDEF_H_FALSE
853 GL_GENERATE_STDDEF_H_TRUE
854 STDDEF_H
855 HAVE_WCHAR_T
856 REPLACE_NULL
857 HAVE__BOOL
858 GL_GENERATE_STDBOOL_H_FALSE
859 GL_GENERATE_STDBOOL_H_TRUE
860 STDBOOL_H
861 GL_GENERATE_STDARG_H_FALSE
862 GL_GENERATE_STDARG_H_TRUE
863 STDARG_H
864 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
865 NEXT_STDARG_H
866 REPLACE_VSPRINTF
867 REPLACE_VSNPRINTF
868 REPLACE_VPRINTF
869 REPLACE_VFPRINTF
870 REPLACE_VDPRINTF
871 REPLACE_VASPRINTF
872 REPLACE_TMPFILE
873 REPLACE_STDIO_WRITE_FUNCS
874 REPLACE_STDIO_READ_FUNCS
875 REPLACE_SPRINTF
876 REPLACE_SNPRINTF
877 REPLACE_RENAMEAT
878 REPLACE_RENAME
879 REPLACE_REMOVE
880 REPLACE_PRINTF
881 REPLACE_POPEN
882 REPLACE_PERROR
883 REPLACE_OBSTACK_PRINTF
884 REPLACE_GETLINE
885 REPLACE_GETDELIM
886 REPLACE_FTELLO
887 REPLACE_FTELL
888 REPLACE_FSEEKO
889 REPLACE_FSEEK
890 REPLACE_FREOPEN
891 REPLACE_FPURGE
892 REPLACE_FPRINTF
893 REPLACE_FOPEN
894 REPLACE_FFLUSH
895 REPLACE_FDOPEN
896 REPLACE_FCLOSE
897 REPLACE_DPRINTF
898 HAVE_VDPRINTF
899 HAVE_VASPRINTF
900 HAVE_RENAMEAT
901 HAVE_POPEN
902 HAVE_PCLOSE
903 HAVE_FTELLO
904 HAVE_FSEEKO
905 HAVE_DPRINTF
906 HAVE_DECL_VSNPRINTF
907 HAVE_DECL_SNPRINTF
908 HAVE_DECL_OBSTACK_PRINTF
909 HAVE_DECL_GETLINE
910 HAVE_DECL_GETDELIM
911 HAVE_DECL_FTELLO
912 HAVE_DECL_FSEEKO
913 HAVE_DECL_FPURGE
914 GNULIB_VSPRINTF_POSIX
915 GNULIB_VSNPRINTF
916 GNULIB_VPRINTF_POSIX
917 GNULIB_VPRINTF
918 GNULIB_VFPRINTF_POSIX
919 GNULIB_VFPRINTF
920 GNULIB_VDPRINTF
921 GNULIB_VSCANF
922 GNULIB_VFSCANF
923 GNULIB_VASPRINTF
924 GNULIB_TMPFILE
925 GNULIB_STDIO_H_SIGPIPE
926 GNULIB_STDIO_H_NONBLOCKING
927 GNULIB_SPRINTF_POSIX
928 GNULIB_SNPRINTF
929 GNULIB_SCANF
930 GNULIB_RENAMEAT
931 GNULIB_RENAME
932 GNULIB_REMOVE
933 GNULIB_PUTS
934 GNULIB_PUTCHAR
935 GNULIB_PUTC
936 GNULIB_PRINTF_POSIX
937 GNULIB_PRINTF
938 GNULIB_POPEN
939 GNULIB_PERROR
940 GNULIB_PCLOSE
941 GNULIB_OBSTACK_PRINTF_POSIX
942 GNULIB_OBSTACK_PRINTF
943 GNULIB_GETLINE
944 GNULIB_GETDELIM
945 GNULIB_GETCHAR
946 GNULIB_GETC
947 GNULIB_FWRITE
948 GNULIB_FTELLO
949 GNULIB_FTELL
950 GNULIB_FSEEKO
951 GNULIB_FSEEK
952 GNULIB_FSCANF
953 GNULIB_FREOPEN
954 GNULIB_FREAD
955 GNULIB_FPUTS
956 GNULIB_FPUTC
957 GNULIB_FPURGE
958 GNULIB_FPRINTF_POSIX
959 GNULIB_FPRINTF
960 GNULIB_FOPEN
961 GNULIB_FGETS
962 GNULIB_FGETC
963 GNULIB_FFLUSH
964 GNULIB_FDOPEN
965 GNULIB_FCLOSE
966 GNULIB_DPRINTF
967 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
968 NEXT_SIGNAL_H
969 REPLACE_RAISE
970 REPLACE_PTHREAD_SIGMASK
971 HAVE_SIGHANDLER_T
972 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
973 HAVE_STRUCT_SIGACTION_SA_SIGACTION
974 HAVE_SIGACTION
975 HAVE_SIGINFO_T
976 HAVE_SIGSET_T
977 HAVE_RAISE
978 HAVE_PTHREAD_SIGMASK
979 HAVE_POSIX_SIGNALBLOCKING
980 GNULIB_SIGACTION
981 GNULIB_SIGPROCMASK
982 GNULIB_SIGNAL_H_SIGPIPE
983 GNULIB_RAISE
984 GNULIB_PTHREAD_SIGMASK
985 APPLE_UNIVERSAL_BUILD
986 HAVE_MSVC_INVALID_PARAMETER_HANDLER
987 UNDEFINE_STRTOK_R
988 REPLACE_STRTOK_R
989 REPLACE_STRSIGNAL
990 REPLACE_STRNLEN
991 REPLACE_STRNDUP
992 REPLACE_STRNCAT
993 REPLACE_STRERROR_R
994 REPLACE_STRERROR
995 REPLACE_STRCHRNUL
996 REPLACE_STRCASESTR
997 REPLACE_STRSTR
998 REPLACE_STRDUP
999 REPLACE_STPNCPY
1000 REPLACE_MEMMEM
1001 REPLACE_MEMCHR
1002 HAVE_STRVERSCMP
1003 HAVE_DECL_STRSIGNAL
1004 HAVE_DECL_STRERROR_R
1005 HAVE_DECL_STRTOK_R
1006 HAVE_STRCASESTR
1007 HAVE_STRSEP
1008 HAVE_STRPBRK
1009 HAVE_DECL_STRNLEN
1010 HAVE_DECL_STRNDUP
1011 HAVE_DECL_STRDUP
1012 HAVE_STRCHRNUL
1013 HAVE_STPNCPY
1014 HAVE_STPCPY
1015 HAVE_RAWMEMCHR
1016 HAVE_DECL_MEMRCHR
1017 HAVE_MEMPCPY
1018 HAVE_DECL_MEMMEM
1019 HAVE_MEMCHR
1020 HAVE_FFSLL
1021 HAVE_FFSL
1022 HAVE_MBSLEN
1023 GNULIB_STRVERSCMP
1024 GNULIB_STRSIGNAL
1025 GNULIB_STRERROR_R
1026 GNULIB_STRERROR
1027 GNULIB_MBSTOK_R
1028 GNULIB_MBSSEP
1029 GNULIB_MBSSPN
1030 GNULIB_MBSPBRK
1031 GNULIB_MBSCSPN
1032 GNULIB_MBSCASESTR
1033 GNULIB_MBSPCASECMP
1034 GNULIB_MBSNCASECMP
1035 GNULIB_MBSCASECMP
1036 GNULIB_MBSSTR
1037 GNULIB_MBSRCHR
1038 GNULIB_MBSCHR
1039 GNULIB_MBSNLEN
1040 GNULIB_MBSLEN
1041 GNULIB_STRTOK_R
1042 GNULIB_STRCASESTR
1043 GNULIB_STRSTR
1044 GNULIB_STRSEP
1045 GNULIB_STRPBRK
1046 GNULIB_STRNLEN
1047 GNULIB_STRNDUP
1048 GNULIB_STRNCAT
1049 GNULIB_STRDUP
1050 GNULIB_STRCHRNUL
1051 GNULIB_STPNCPY
1052 GNULIB_STPCPY
1053 GNULIB_RAWMEMCHR
1054 GNULIB_MEMRCHR
1055 GNULIB_MEMPCPY
1056 GNULIB_MEMMEM
1057 GNULIB_MEMCHR
1058 GNULIB_FFSLL
1059 GNULIB_FFSL
1060 REPLACE_WCTOMB
1061 REPLACE_UNSETENV
1062 REPLACE_STRTOD
1063 REPLACE_SETENV
1064 REPLACE_REALPATH
1065 REPLACE_REALLOC
1066 REPLACE_RANDOM_R
1067 REPLACE_PUTENV
1068 REPLACE_PTSNAME_R
1069 REPLACE_MKSTEMP
1070 REPLACE_MBTOWC
1071 REPLACE_MALLOC
1072 REPLACE_CANONICALIZE_FILE_NAME
1073 REPLACE_CALLOC
1074 HAVE_DECL_UNSETENV
1075 HAVE_UNLOCKPT
1076 HAVE_SYS_LOADAVG_H
1077 HAVE_STRUCT_RANDOM_DATA
1078 HAVE_STRTOULL
1079 HAVE_STRTOLL
1080 HAVE_STRTOD
1081 HAVE_DECL_SETENV
1082 HAVE_SETENV
1083 HAVE_RPMATCH
1084 HAVE_REALPATH
1085 HAVE_RANDOM_R
1086 HAVE_RANDOM_H
1087 HAVE_RANDOM
1088 HAVE_PTSNAME_R
1089 HAVE_PTSNAME
1090 HAVE_POSIX_OPENPT
1091 HAVE_MKSTEMPS
1092 HAVE_MKSTEMP
1093 HAVE_MKOSTEMPS
1094 HAVE_MKOSTEMP
1095 HAVE_MKDTEMP
1096 HAVE_GRANTPT
1097 HAVE_GETSUBOPT
1098 HAVE_DECL_GETLOADAVG
1099 HAVE_CANONICALIZE_FILE_NAME
1100 HAVE_ATOLL
1101 HAVE__EXIT
1102 GNULIB_WCTOMB
1103 GNULIB_UNSETENV
1104 GNULIB_UNLOCKPT
1105 GNULIB_SYSTEM_POSIX
1106 GNULIB_STRTOULL
1107 GNULIB_STRTOLL
1108 GNULIB_STRTOD
1109 GNULIB_SETENV
1110 GNULIB_RPMATCH
1111 GNULIB_REALPATH
1112 GNULIB_REALLOC_POSIX
1113 GNULIB_RANDOM_R
1114 GNULIB_RANDOM
1115 GNULIB_PUTENV
1116 GNULIB_PTSNAME_R
1117 GNULIB_PTSNAME
1118 GNULIB_POSIX_OPENPT
1119 GNULIB_MKSTEMPS
1120 GNULIB_MKSTEMP
1121 GNULIB_MKOSTEMPS
1122 GNULIB_MKOSTEMP
1123 GNULIB_MKDTEMP
1124 GNULIB_MBTOWC
1125 GNULIB_MALLOC_POSIX
1126 GNULIB_GRANTPT
1127 GNULIB_GETSUBOPT
1128 GNULIB_GETLOADAVG
1129 GNULIB_CANONICALIZE_FILE_NAME
1130 GNULIB_CALLOC_POSIX
1131 GNULIB_ATOLL
1132 GNULIB__EXIT
1133 LTLIBMULTITHREAD
1134 LIBMULTITHREAD
1135 LTLIBTHREAD
1136 LIBTHREAD
1137 LIBPTH_PREFIX
1138 LTLIBPTH
1139 LIBPTH
1140 IGNORE_UNUSED_LIBRARIES_CFLAGS
1141 LTLIBINTL
1142 LIBINTL
1143 REPLACE_ITOLD
1144 GL_GENERATE_FLOAT_H_FALSE
1145 GL_GENERATE_FLOAT_H_TRUE
1146 FLOAT_H
1147 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1148 NEXT_FLOAT_H
1149 EOVERFLOW_VALUE
1150 EOVERFLOW_HIDDEN
1151 ENOLINK_VALUE
1152 ENOLINK_HIDDEN
1153 EMULTIHOP_VALUE
1154 EMULTIHOP_HIDDEN
1155 GL_GENERATE_ERRNO_H_FALSE
1156 GL_GENERATE_ERRNO_H_TRUE
1157 ERRNO_H
1158 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1159 NEXT_ERRNO_H
1160 PRAGMA_COLUMNS
1161 PRAGMA_SYSTEM_HEADER
1162 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1163 INCLUDE_NEXT
1164 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1165 UNISTD_H_HAVE_WINSOCK2_H
1166 REPLACE_WRITE
1167 REPLACE_USLEEP
1168 REPLACE_UNLINKAT
1169 REPLACE_UNLINK
1170 REPLACE_TTYNAME_R
1171 REPLACE_SYMLINK
1172 REPLACE_SLEEP
1173 REPLACE_RMDIR
1174 REPLACE_READLINK
1175 REPLACE_READ
1176 REPLACE_PWRITE
1177 REPLACE_PREAD
1178 REPLACE_LSEEK
1179 REPLACE_LINKAT
1180 REPLACE_LINK
1181 REPLACE_LCHOWN
1182 REPLACE_ISATTY
1183 REPLACE_GETPAGESIZE
1184 REPLACE_GETGROUPS
1185 REPLACE_GETLOGIN_R
1186 REPLACE_GETDOMAINNAME
1187 REPLACE_GETCWD
1188 REPLACE_FCHOWNAT
1189 REPLACE_DUP2
1190 REPLACE_DUP
1191 REPLACE_CLOSE
1192 REPLACE_CHOWN
1193 HAVE_SYS_PARAM_H
1194 HAVE_OS_H
1195 HAVE_DECL_TTYNAME_R
1196 HAVE_DECL_SETHOSTNAME
1197 HAVE_DECL_GETUSERSHELL
1198 HAVE_DECL_GETPAGESIZE
1199 HAVE_DECL_GETLOGIN_R
1200 HAVE_DECL_GETDOMAINNAME
1201 HAVE_DECL_FDATASYNC
1202 HAVE_DECL_FCHDIR
1203 HAVE_DECL_ENVIRON
1204 HAVE_USLEEP
1205 HAVE_UNLINKAT
1206 HAVE_SYMLINKAT
1207 HAVE_SYMLINK
1208 HAVE_SLEEP
1209 HAVE_SETHOSTNAME
1210 HAVE_READLINKAT
1211 HAVE_READLINK
1212 HAVE_PWRITE
1213 HAVE_PREAD
1214 HAVE_PIPE2
1215 HAVE_PIPE
1216 HAVE_LINKAT
1217 HAVE_LINK
1218 HAVE_LCHOWN
1219 HAVE_GROUP_MEMBER
1220 HAVE_GETPAGESIZE
1221 HAVE_GETLOGIN
1222 HAVE_GETHOSTNAME
1223 HAVE_GETGROUPS
1224 HAVE_GETDTABLESIZE
1225 HAVE_FTRUNCATE
1226 HAVE_FSYNC
1227 HAVE_FDATASYNC
1228 HAVE_FCHOWNAT
1229 HAVE_FCHDIR
1230 HAVE_FACCESSAT
1231 HAVE_EUIDACCESS
1232 HAVE_DUP3
1233 HAVE_DUP2
1234 HAVE_CHOWN
1235 GNULIB_WRITE
1236 GNULIB_USLEEP
1237 GNULIB_UNLINKAT
1238 GNULIB_UNLINK
1239 GNULIB_UNISTD_H_SIGPIPE
1240 GNULIB_UNISTD_H_NONBLOCKING
1241 GNULIB_TTYNAME_R
1242 GNULIB_SYMLINKAT
1243 GNULIB_SYMLINK
1244 GNULIB_SLEEP
1245 GNULIB_SETHOSTNAME
1246 GNULIB_RMDIR
1247 GNULIB_READLINKAT
1248 GNULIB_READLINK
1249 GNULIB_READ
1250 GNULIB_PWRITE
1251 GNULIB_PREAD
1252 GNULIB_PIPE2
1253 GNULIB_PIPE
1254 GNULIB_LSEEK
1255 GNULIB_LINKAT
1256 GNULIB_LINK
1257 GNULIB_LCHOWN
1258 GNULIB_ISATTY
1259 GNULIB_GROUP_MEMBER
1260 GNULIB_GETUSERSHELL
1261 GNULIB_GETPAGESIZE
1262 GNULIB_GETLOGIN_R
1263 GNULIB_GETLOGIN
1264 GNULIB_GETHOSTNAME
1265 GNULIB_GETGROUPS
1266 GNULIB_GETDTABLESIZE
1267 GNULIB_GETDOMAINNAME
1268 GNULIB_GETCWD
1269 GNULIB_FTRUNCATE
1270 GNULIB_FSYNC
1271 GNULIB_FDATASYNC
1272 GNULIB_FCHOWNAT
1273 GNULIB_FCHDIR
1274 GNULIB_FACCESSAT
1275 GNULIB_EUIDACCESS
1276 GNULIB_ENVIRON
1277 GNULIB_DUP3
1278 GNULIB_DUP2
1279 GNULIB_DUP
1280 GNULIB_CLOSE
1281 GNULIB_CHOWN
1282 GNULIB_CHDIR
1283 GL_GENERATE_ALLOCA_H_FALSE
1284 GL_GENERATE_ALLOCA_H_TRUE
1285 ALLOCA_H
1286 ALLOCA
1287 GL_COND_LIBTOOL_FALSE
1288 GL_COND_LIBTOOL_TRUE
1289 RUN_TESTS_FALSE
1290 RUN_TESTS_TRUE
1291 CHECK_LIBS
1292 CHECK_CFLAGS
1293 PKG_CONFIG_LIBDIR
1294 PKG_CONFIG_PATH
1295 PKG_CONFIG
1296 ARFLAGS
1297 OTOOL64
1298 OTOOL
1299 LIPO
1300 NMEDIT
1301 DSYMUTIL
1302 MANIFEST_TOOL
1303 RANLIB
1304 DLLTOOL
1305 OBJDUMP
1306 LN_S
1307 NM
1308 ac_ct_DUMPBIN
1309 DUMPBIN
1310 LD
1311 FGREP
1312 SED
1313 LIBTOOL
1314 ac_ct_AR
1315 AR
1316 EGREP
1317 GREP
1318 CPP
1319 am__fastdepCC_FALSE
1320 am__fastdepCC_TRUE
1321 CCDEPMODE
1322 am__nodep
1323 AMDEPBACKSLASH
1324 AMDEP_FALSE
1325 AMDEP_TRUE
1326 am__quote
1327 am__include
1328 DEPDIR
1329 OBJEXT
1330 EXEEXT
1331 ac_ct_CC
1332 CPPFLAGS
1333 LDFLAGS
1334 CFLAGS
1335 CC
1336 host_os
1337 host_vendor
1338 host_cpu
1339 host
1340 build_os
1341 build_vendor
1342 build_cpu
1343 build
1344 AM_BACKSLASH
1345 AM_DEFAULT_VERBOSITY
1346 AM_DEFAULT_V
1347 AM_V
1348 MAINT
1349 MAINTAINER_MODE_FALSE
1350 MAINTAINER_MODE_TRUE
1351 am__untar
1352 am__tar
1353 AMTAR
1354 am__leading_dot
1355 SET_MAKE
1356 AWK
1357 mkdir_p
1358 MKDIR_P
1359 INSTALL_STRIP_PROGRAM
1360 STRIP
1361 install_sh
1362 MAKEINFO
1363 AUTOHEADER
1364 AUTOMAKE
1365 AUTOCONF
1366 ACLOCAL
1367 VERSION
1368 PACKAGE
1369 CYGPATH_W
1370 am__isrc
1371 INSTALL_DATA
1372 INSTALL_SCRIPT
1373 INSTALL_PROGRAM
1374 target_alias
1375 host_alias
1376 build_alias
1377 LIBS
1378 ECHO_T
1379 ECHO_N
1380 ECHO_C
1381 DEFS
1382 mandir
1383 localedir
1384 libdir
1385 psdir
1386 pdfdir
1387 dvidir
1388 htmldir
1389 infodir
1390 docdir
1391 oldincludedir
1392 includedir
1393 localstatedir
1394 sharedstatedir
1395 sysconfdir
1396 datadir
1397 datarootdir
1398 libexecdir
1399 sbindir
1400 bindir
1401 program_transform_name
1402 prefix
1403 exec_prefix
1404 PACKAGE_URL
1405 PACKAGE_BUGREPORT
1406 PACKAGE_STRING
1407 PACKAGE_VERSION
1408 PACKAGE_TARNAME
1409 PACKAGE_NAME
1410 PATH_SEPARATOR
1411 SHELL'
1412 ac_subst_files=''
1413 ac_user_opts='
1414 enable_option_checking
1415 enable_maintainer_mode
1416 enable_silent_rules
1417 enable_dependency_tracking
1418 enable_static
1419 enable_shared
1420 with_pic
1421 enable_fast_install
1422 with_gnu_ld
1423 with_sysroot
1424 enable_libtool_lock
1425 enable_threads
1426 enable_rpath
1427 with_libpth_prefix
1428 enable_socketpair_pipe
1429 '
1430       ac_precious_vars='build_alias
1431 host_alias
1432 target_alias
1433 CC
1434 CFLAGS
1435 LDFLAGS
1436 LIBS
1437 CPPFLAGS
1438 CPP
1439 PKG_CONFIG
1440 PKG_CONFIG_PATH
1441 PKG_CONFIG_LIBDIR
1442 CHECK_CFLAGS
1443 CHECK_LIBS'
1444
1445
1446 # Initialize some variables set by options.
1447 ac_init_help=
1448 ac_init_version=false
1449 ac_unrecognized_opts=
1450 ac_unrecognized_sep=
1451 # The variables have the same names as the options, with
1452 # dashes changed to underlines.
1453 cache_file=/dev/null
1454 exec_prefix=NONE
1455 no_create=
1456 no_recursion=
1457 prefix=NONE
1458 program_prefix=NONE
1459 program_suffix=NONE
1460 program_transform_name=s,x,x,
1461 silent=
1462 site=
1463 srcdir=
1464 verbose=
1465 x_includes=NONE
1466 x_libraries=NONE
1467
1468 # Installation directory options.
1469 # These are left unexpanded so users can "make install exec_prefix=/foo"
1470 # and all the variables that are supposed to be based on exec_prefix
1471 # by default will actually change.
1472 # Use braces instead of parens because sh, perl, etc. also accept them.
1473 # (The list follows the same order as the GNU Coding Standards.)
1474 bindir='${exec_prefix}/bin'
1475 sbindir='${exec_prefix}/sbin'
1476 libexecdir='${exec_prefix}/libexec'
1477 datarootdir='${prefix}/share'
1478 datadir='${datarootdir}'
1479 sysconfdir='${prefix}/etc'
1480 sharedstatedir='${prefix}/com'
1481 localstatedir='${prefix}/var'
1482 includedir='${prefix}/include'
1483 oldincludedir='/usr/include'
1484 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1485 infodir='${datarootdir}/info'
1486 htmldir='${docdir}'
1487 dvidir='${docdir}'
1488 pdfdir='${docdir}'
1489 psdir='${docdir}'
1490 libdir='${exec_prefix}/lib'
1491 localedir='${datarootdir}/locale'
1492 mandir='${datarootdir}/man'
1493
1494 ac_prev=
1495 ac_dashdash=
1496 for ac_option
1497 do
1498   # If the previous option needs an argument, assign it.
1499   if test -n "$ac_prev"; then
1500     eval $ac_prev=\$ac_option
1501     ac_prev=
1502     continue
1503   fi
1504
1505   case $ac_option in
1506   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1507   *=)   ac_optarg= ;;
1508   *)    ac_optarg=yes ;;
1509   esac
1510
1511   # Accept the important Cygnus configure options, so we can diagnose typos.
1512
1513   case $ac_dashdash$ac_option in
1514   --)
1515     ac_dashdash=yes ;;
1516
1517   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1518     ac_prev=bindir ;;
1519   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1520     bindir=$ac_optarg ;;
1521
1522   -build | --build | --buil | --bui | --bu)
1523     ac_prev=build_alias ;;
1524   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1525     build_alias=$ac_optarg ;;
1526
1527   -cache-file | --cache-file | --cache-fil | --cache-fi \
1528   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1529     ac_prev=cache_file ;;
1530   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1531   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1532     cache_file=$ac_optarg ;;
1533
1534   --config-cache | -C)
1535     cache_file=config.cache ;;
1536
1537   -datadir | --datadir | --datadi | --datad)
1538     ac_prev=datadir ;;
1539   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1540     datadir=$ac_optarg ;;
1541
1542   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1543   | --dataroo | --dataro | --datar)
1544     ac_prev=datarootdir ;;
1545   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1546   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1547     datarootdir=$ac_optarg ;;
1548
1549   -disable-* | --disable-*)
1550     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1551     # Reject names that are not valid shell variable names.
1552     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1553       as_fn_error $? "invalid feature name: $ac_useropt"
1554     ac_useropt_orig=$ac_useropt
1555     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1556     case $ac_user_opts in
1557       *"
1558 "enable_$ac_useropt"
1559 "*) ;;
1560       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1561          ac_unrecognized_sep=', ';;
1562     esac
1563     eval enable_$ac_useropt=no ;;
1564
1565   -docdir | --docdir | --docdi | --doc | --do)
1566     ac_prev=docdir ;;
1567   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1568     docdir=$ac_optarg ;;
1569
1570   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1571     ac_prev=dvidir ;;
1572   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1573     dvidir=$ac_optarg ;;
1574
1575   -enable-* | --enable-*)
1576     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1577     # Reject names that are not valid shell variable names.
1578     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1579       as_fn_error $? "invalid feature name: $ac_useropt"
1580     ac_useropt_orig=$ac_useropt
1581     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582     case $ac_user_opts in
1583       *"
1584 "enable_$ac_useropt"
1585 "*) ;;
1586       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1587          ac_unrecognized_sep=', ';;
1588     esac
1589     eval enable_$ac_useropt=\$ac_optarg ;;
1590
1591   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1592   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1593   | --exec | --exe | --ex)
1594     ac_prev=exec_prefix ;;
1595   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1596   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1597   | --exec=* | --exe=* | --ex=*)
1598     exec_prefix=$ac_optarg ;;
1599
1600   -gas | --gas | --ga | --g)
1601     # Obsolete; use --with-gas.
1602     with_gas=yes ;;
1603
1604   -help | --help | --hel | --he | -h)
1605     ac_init_help=long ;;
1606   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1607     ac_init_help=recursive ;;
1608   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1609     ac_init_help=short ;;
1610
1611   -host | --host | --hos | --ho)
1612     ac_prev=host_alias ;;
1613   -host=* | --host=* | --hos=* | --ho=*)
1614     host_alias=$ac_optarg ;;
1615
1616   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1617     ac_prev=htmldir ;;
1618   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1619   | --ht=*)
1620     htmldir=$ac_optarg ;;
1621
1622   -includedir | --includedir | --includedi | --included | --include \
1623   | --includ | --inclu | --incl | --inc)
1624     ac_prev=includedir ;;
1625   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1626   | --includ=* | --inclu=* | --incl=* | --inc=*)
1627     includedir=$ac_optarg ;;
1628
1629   -infodir | --infodir | --infodi | --infod | --info | --inf)
1630     ac_prev=infodir ;;
1631   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1632     infodir=$ac_optarg ;;
1633
1634   -libdir | --libdir | --libdi | --libd)
1635     ac_prev=libdir ;;
1636   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1637     libdir=$ac_optarg ;;
1638
1639   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1640   | --libexe | --libex | --libe)
1641     ac_prev=libexecdir ;;
1642   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1643   | --libexe=* | --libex=* | --libe=*)
1644     libexecdir=$ac_optarg ;;
1645
1646   -localedir | --localedir | --localedi | --localed | --locale)
1647     ac_prev=localedir ;;
1648   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1649     localedir=$ac_optarg ;;
1650
1651   -localstatedir | --localstatedir | --localstatedi | --localstated \
1652   | --localstate | --localstat | --localsta | --localst | --locals)
1653     ac_prev=localstatedir ;;
1654   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1655   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1656     localstatedir=$ac_optarg ;;
1657
1658   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1659     ac_prev=mandir ;;
1660   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1661     mandir=$ac_optarg ;;
1662
1663   -nfp | --nfp | --nf)
1664     # Obsolete; use --without-fp.
1665     with_fp=no ;;
1666
1667   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1668   | --no-cr | --no-c | -n)
1669     no_create=yes ;;
1670
1671   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1672   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1673     no_recursion=yes ;;
1674
1675   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1676   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1677   | --oldin | --oldi | --old | --ol | --o)
1678     ac_prev=oldincludedir ;;
1679   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1680   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1681   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1682     oldincludedir=$ac_optarg ;;
1683
1684   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1685     ac_prev=prefix ;;
1686   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1687     prefix=$ac_optarg ;;
1688
1689   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1690   | --program-pre | --program-pr | --program-p)
1691     ac_prev=program_prefix ;;
1692   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1693   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1694     program_prefix=$ac_optarg ;;
1695
1696   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1697   | --program-suf | --program-su | --program-s)
1698     ac_prev=program_suffix ;;
1699   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1700   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1701     program_suffix=$ac_optarg ;;
1702
1703   -program-transform-name | --program-transform-name \
1704   | --program-transform-nam | --program-transform-na \
1705   | --program-transform-n | --program-transform- \
1706   | --program-transform | --program-transfor \
1707   | --program-transfo | --program-transf \
1708   | --program-trans | --program-tran \
1709   | --progr-tra | --program-tr | --program-t)
1710     ac_prev=program_transform_name ;;
1711   -program-transform-name=* | --program-transform-name=* \
1712   | --program-transform-nam=* | --program-transform-na=* \
1713   | --program-transform-n=* | --program-transform-=* \
1714   | --program-transform=* | --program-transfor=* \
1715   | --program-transfo=* | --program-transf=* \
1716   | --program-trans=* | --program-tran=* \
1717   | --progr-tra=* | --program-tr=* | --program-t=*)
1718     program_transform_name=$ac_optarg ;;
1719
1720   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1721     ac_prev=pdfdir ;;
1722   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1723     pdfdir=$ac_optarg ;;
1724
1725   -psdir | --psdir | --psdi | --psd | --ps)
1726     ac_prev=psdir ;;
1727   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1728     psdir=$ac_optarg ;;
1729
1730   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1731   | -silent | --silent | --silen | --sile | --sil)
1732     silent=yes ;;
1733
1734   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1735     ac_prev=sbindir ;;
1736   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1737   | --sbi=* | --sb=*)
1738     sbindir=$ac_optarg ;;
1739
1740   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1741   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1742   | --sharedst | --shareds | --shared | --share | --shar \
1743   | --sha | --sh)
1744     ac_prev=sharedstatedir ;;
1745   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1746   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1747   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1748   | --sha=* | --sh=*)
1749     sharedstatedir=$ac_optarg ;;
1750
1751   -site | --site | --sit)
1752     ac_prev=site ;;
1753   -site=* | --site=* | --sit=*)
1754     site=$ac_optarg ;;
1755
1756   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1757     ac_prev=srcdir ;;
1758   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1759     srcdir=$ac_optarg ;;
1760
1761   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1762   | --syscon | --sysco | --sysc | --sys | --sy)
1763     ac_prev=sysconfdir ;;
1764   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1765   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1766     sysconfdir=$ac_optarg ;;
1767
1768   -target | --target | --targe | --targ | --tar | --ta | --t)
1769     ac_prev=target_alias ;;
1770   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1771     target_alias=$ac_optarg ;;
1772
1773   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1774     verbose=yes ;;
1775
1776   -version | --version | --versio | --versi | --vers | -V)
1777     ac_init_version=: ;;
1778
1779   -with-* | --with-*)
1780     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1781     # Reject names that are not valid shell variable names.
1782     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1783       as_fn_error $? "invalid package name: $ac_useropt"
1784     ac_useropt_orig=$ac_useropt
1785     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1786     case $ac_user_opts in
1787       *"
1788 "with_$ac_useropt"
1789 "*) ;;
1790       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1791          ac_unrecognized_sep=', ';;
1792     esac
1793     eval with_$ac_useropt=\$ac_optarg ;;
1794
1795   -without-* | --without-*)
1796     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1797     # Reject names that are not valid shell variable names.
1798     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799       as_fn_error $? "invalid package name: $ac_useropt"
1800     ac_useropt_orig=$ac_useropt
1801     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802     case $ac_user_opts in
1803       *"
1804 "with_$ac_useropt"
1805 "*) ;;
1806       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1807          ac_unrecognized_sep=', ';;
1808     esac
1809     eval with_$ac_useropt=no ;;
1810
1811   --x)
1812     # Obsolete; use --with-x.
1813     with_x=yes ;;
1814
1815   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1816   | --x-incl | --x-inc | --x-in | --x-i)
1817     ac_prev=x_includes ;;
1818   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1819   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1820     x_includes=$ac_optarg ;;
1821
1822   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1823   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1824     ac_prev=x_libraries ;;
1825   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1826   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1827     x_libraries=$ac_optarg ;;
1828
1829   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1830 Try \`$0 --help' for more information"
1831     ;;
1832
1833   *=*)
1834     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1835     # Reject names that are not valid shell variable names.
1836     case $ac_envvar in #(
1837       '' | [0-9]* | *[!_$as_cr_alnum]* )
1838       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1839     esac
1840     eval $ac_envvar=\$ac_optarg
1841     export $ac_envvar ;;
1842
1843   *)
1844     # FIXME: should be removed in autoconf 3.0.
1845     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1846     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1847       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1848     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1849     ;;
1850
1851   esac
1852 done
1853
1854 if test -n "$ac_prev"; then
1855   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1856   as_fn_error $? "missing argument to $ac_option"
1857 fi
1858
1859 if test -n "$ac_unrecognized_opts"; then
1860   case $enable_option_checking in
1861     no) ;;
1862     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1863     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1864   esac
1865 fi
1866
1867 # Check all directory arguments for consistency.
1868 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1869                 datadir sysconfdir sharedstatedir localstatedir includedir \
1870                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1871                 libdir localedir mandir
1872 do
1873   eval ac_val=\$$ac_var
1874   # Remove trailing slashes.
1875   case $ac_val in
1876     */ )
1877       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1878       eval $ac_var=\$ac_val;;
1879   esac
1880   # Be sure to have absolute directory names.
1881   case $ac_val in
1882     [\\/$]* | ?:[\\/]* )  continue;;
1883     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1884   esac
1885   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1886 done
1887
1888 # There might be people who depend on the old broken behavior: `$host'
1889 # used to hold the argument of --host etc.
1890 # FIXME: To remove some day.
1891 build=$build_alias
1892 host=$host_alias
1893 target=$target_alias
1894
1895 # FIXME: To remove some day.
1896 if test "x$host_alias" != x; then
1897   if test "x$build_alias" = x; then
1898     cross_compiling=maybe
1899   elif test "x$build_alias" != "x$host_alias"; then
1900     cross_compiling=yes
1901   fi
1902 fi
1903
1904 ac_tool_prefix=
1905 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1906
1907 test "$silent" = yes && exec 6>/dev/null
1908
1909
1910 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1911 ac_ls_di=`ls -di .` &&
1912 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1913   as_fn_error $? "working directory cannot be determined"
1914 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1915   as_fn_error $? "pwd does not report name of working directory"
1916
1917
1918 # Find the source files, if location was not specified.
1919 if test -z "$srcdir"; then
1920   ac_srcdir_defaulted=yes
1921   # Try the directory containing this script, then the parent directory.
1922   ac_confdir=`$as_dirname -- "$as_myself" ||
1923 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1924          X"$as_myself" : 'X\(//\)[^/]' \| \
1925          X"$as_myself" : 'X\(//\)$' \| \
1926          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1927 $as_echo X"$as_myself" |
1928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1929             s//\1/
1930             q
1931           }
1932           /^X\(\/\/\)[^/].*/{
1933             s//\1/
1934             q
1935           }
1936           /^X\(\/\/\)$/{
1937             s//\1/
1938             q
1939           }
1940           /^X\(\/\).*/{
1941             s//\1/
1942             q
1943           }
1944           s/.*/./; q'`
1945   srcdir=$ac_confdir
1946   if test ! -r "$srcdir/$ac_unique_file"; then
1947     srcdir=..
1948   fi
1949 else
1950   ac_srcdir_defaulted=no
1951 fi
1952 if test ! -r "$srcdir/$ac_unique_file"; then
1953   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1954   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1955 fi
1956 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1957 ac_abs_confdir=`(
1958         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1959         pwd)`
1960 # When building in place, set srcdir=.
1961 if test "$ac_abs_confdir" = "$ac_pwd"; then
1962   srcdir=.
1963 fi
1964 # Remove unnecessary trailing slashes from srcdir.
1965 # Double slashes in file names in object file debugging info
1966 # mess up M-x gdb in Emacs.
1967 case $srcdir in
1968 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1969 esac
1970 for ac_var in $ac_precious_vars; do
1971   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1972   eval ac_env_${ac_var}_value=\$${ac_var}
1973   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1974   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1975 done
1976
1977 #
1978 # Report the --help message.
1979 #
1980 if test "$ac_init_help" = "long"; then
1981   # Omit some internal or obsolete options to make the list less imposing.
1982   # This message is too long to be a string in the A/UX 3.1 sh.
1983   cat <<_ACEOF
1984 \`configure' configures libpipeline 1.2.3 to adapt to many kinds of systems.
1985
1986 Usage: $0 [OPTION]... [VAR=VALUE]...
1987
1988 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1989 VAR=VALUE.  See below for descriptions of some of the useful variables.
1990
1991 Defaults for the options are specified in brackets.
1992
1993 Configuration:
1994   -h, --help              display this help and exit
1995       --help=short        display options specific to this package
1996       --help=recursive    display the short help of all the included packages
1997   -V, --version           display version information and exit
1998   -q, --quiet, --silent   do not print \`checking ...' messages
1999       --cache-file=FILE   cache test results in FILE [disabled]
2000   -C, --config-cache      alias for \`--cache-file=config.cache'
2001   -n, --no-create         do not create output files
2002       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2003
2004 Installation directories:
2005   --prefix=PREFIX         install architecture-independent files in PREFIX
2006                           [$ac_default_prefix]
2007   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2008                           [PREFIX]
2009
2010 By default, \`make install' will install all the files in
2011 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2012 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2013 for instance \`--prefix=\$HOME'.
2014
2015 For better control, use the options below.
2016
2017 Fine tuning of the installation directories:
2018   --bindir=DIR            user executables [EPREFIX/bin]
2019   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2020   --libexecdir=DIR        program executables [EPREFIX/libexec]
2021   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2022   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2023   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2024   --libdir=DIR            object code libraries [EPREFIX/lib]
2025   --includedir=DIR        C header files [PREFIX/include]
2026   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2027   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2028   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2029   --infodir=DIR           info documentation [DATAROOTDIR/info]
2030   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2031   --mandir=DIR            man documentation [DATAROOTDIR/man]
2032   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2033   --htmldir=DIR           html documentation [DOCDIR]
2034   --dvidir=DIR            dvi documentation [DOCDIR]
2035   --pdfdir=DIR            pdf documentation [DOCDIR]
2036   --psdir=DIR             ps documentation [DOCDIR]
2037 _ACEOF
2038
2039   cat <<\_ACEOF
2040
2041 Program names:
2042   --program-prefix=PREFIX            prepend PREFIX to installed program names
2043   --program-suffix=SUFFIX            append SUFFIX to installed program names
2044   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2045
2046 System types:
2047   --build=BUILD     configure for building on BUILD [guessed]
2048   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2049 _ACEOF
2050 fi
2051
2052 if test -n "$ac_init_help"; then
2053   case $ac_init_help in
2054      short | recursive ) echo "Configuration of libpipeline 1.2.3:";;
2055    esac
2056   cat <<\_ACEOF
2057
2058 Optional Features:
2059   --disable-option-checking  ignore unrecognized --enable/--with options
2060   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2061   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2062   --enable-maintainer-mode  enable make rules and dependencies not useful
2063                           (and sometimes confusing) to the casual installer
2064   --enable-silent-rules          less verbose build output (undo: `make V=1')
2065   --disable-silent-rules         verbose build output (undo: `make V=0')
2066   --disable-dependency-tracking  speeds up one-time build
2067   --enable-dependency-tracking   do not reject slow dependency extractors
2068   --enable-static[=PKGS]  build static libraries [default=no]
2069   --enable-shared[=PKGS]  build shared libraries [default=yes]
2070   --enable-fast-install[=PKGS]
2071                           optimize for fast installation [default=yes]
2072   --disable-libtool-lock  avoid locking (might break parallel builds)
2073   --enable-threads={posix|solaris|pth|windows}
2074                           specify multithreading API
2075   --disable-threads       build without multithread safety
2076   --disable-rpath         do not hardcode runtime library paths
2077   --enable-socketpair-pipe
2078                           Use socketpair(2) as fast replacement for pipe(2)
2079
2080 Optional Packages:
2081   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2082   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2083   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2084                           both]
2085   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2086   --with-sysroot=DIR Search for dependent libraries within DIR
2087                         (or the compiler's sysroot if not specified).
2088   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2089   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2090   --without-libpth-prefix     don't search for libpth in includedir and libdir
2091
2092 Some influential environment variables:
2093   CC          C compiler command
2094   CFLAGS      C compiler flags
2095   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2096               nonstandard directory <lib dir>
2097   LIBS        libraries to pass to the linker, e.g. -l<library>
2098   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2099               you have headers in a nonstandard directory <include dir>
2100   CPP         C preprocessor
2101   PKG_CONFIG  path to pkg-config utility
2102   PKG_CONFIG_PATH
2103               directories to add to pkg-config's search path
2104   PKG_CONFIG_LIBDIR
2105               path overriding pkg-config's built-in search path
2106   CHECK_CFLAGS
2107               C compiler flags for CHECK, overriding pkg-config
2108   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2109
2110 Use these variables to override the choices made by `configure' or to help
2111 it to find libraries and programs with nonstandard names/locations.
2112
2113 Report bugs to <cjwatson@debian.org>.
2114 _ACEOF
2115 ac_status=$?
2116 fi
2117
2118 if test "$ac_init_help" = "recursive"; then
2119   # If there are subdirs, report their specific --help.
2120   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2121     test -d "$ac_dir" ||
2122       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2123       continue
2124     ac_builddir=.
2125
2126 case "$ac_dir" in
2127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2128 *)
2129   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2130   # A ".." for each directory in $ac_dir_suffix.
2131   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2132   case $ac_top_builddir_sub in
2133   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2134   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2135   esac ;;
2136 esac
2137 ac_abs_top_builddir=$ac_pwd
2138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2139 # for backward compatibility:
2140 ac_top_builddir=$ac_top_build_prefix
2141
2142 case $srcdir in
2143   .)  # We are building in place.
2144     ac_srcdir=.
2145     ac_top_srcdir=$ac_top_builddir_sub
2146     ac_abs_top_srcdir=$ac_pwd ;;
2147   [\\/]* | ?:[\\/]* )  # Absolute name.
2148     ac_srcdir=$srcdir$ac_dir_suffix;
2149     ac_top_srcdir=$srcdir
2150     ac_abs_top_srcdir=$srcdir ;;
2151   *) # Relative name.
2152     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2153     ac_top_srcdir=$ac_top_build_prefix$srcdir
2154     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2155 esac
2156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2157
2158     cd "$ac_dir" || { ac_status=$?; continue; }
2159     # Check for guested configure.
2160     if test -f "$ac_srcdir/configure.gnu"; then
2161       echo &&
2162       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2163     elif test -f "$ac_srcdir/configure"; then
2164       echo &&
2165       $SHELL "$ac_srcdir/configure" --help=recursive
2166     else
2167       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2168     fi || ac_status=$?
2169     cd "$ac_pwd" || { ac_status=$?; break; }
2170   done
2171 fi
2172
2173 test -n "$ac_init_help" && exit $ac_status
2174 if $ac_init_version; then
2175   cat <<\_ACEOF
2176 libpipeline configure 1.2.3
2177 generated by GNU Autoconf 2.69
2178
2179 Copyright (C) 2012 Free Software Foundation, Inc.
2180 This configure script is free software; the Free Software Foundation
2181 gives unlimited permission to copy, distribute and modify it.
2182 _ACEOF
2183   exit
2184 fi
2185
2186 ## ------------------------ ##
2187 ## Autoconf initialization. ##
2188 ## ------------------------ ##
2189
2190 # ac_fn_c_try_compile LINENO
2191 # --------------------------
2192 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_c_try_compile ()
2194 {
2195   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196   rm -f conftest.$ac_objext
2197   if { { ac_try="$ac_compile"
2198 case "(($ac_try" in
2199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200   *) ac_try_echo=$ac_try;;
2201 esac
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204   (eval "$ac_compile") 2>conftest.err
2205   ac_status=$?
2206   if test -s conftest.err; then
2207     grep -v '^ *+' conftest.err >conftest.er1
2208     cat conftest.er1 >&5
2209     mv -f conftest.er1 conftest.err
2210   fi
2211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212   test $ac_status = 0; } && {
2213          test -z "$ac_c_werror_flag" ||
2214          test ! -s conftest.err
2215        } && test -s conftest.$ac_objext; then :
2216   ac_retval=0
2217 else
2218   $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221         ac_retval=1
2222 fi
2223   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224   as_fn_set_status $ac_retval
2225
2226 } # ac_fn_c_try_compile
2227
2228 # ac_fn_c_try_cpp LINENO
2229 # ----------------------
2230 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2231 ac_fn_c_try_cpp ()
2232 {
2233   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234   if { { ac_try="$ac_cpp conftest.$ac_ext"
2235 case "(($ac_try" in
2236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237   *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2242   ac_status=$?
2243   if test -s conftest.err; then
2244     grep -v '^ *+' conftest.err >conftest.er1
2245     cat conftest.er1 >&5
2246     mv -f conftest.er1 conftest.err
2247   fi
2248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249   test $ac_status = 0; } > conftest.i && {
2250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2251          test ! -s conftest.err
2252        }; then :
2253   ac_retval=0
2254 else
2255   $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257
2258     ac_retval=1
2259 fi
2260   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261   as_fn_set_status $ac_retval
2262
2263 } # ac_fn_c_try_cpp
2264
2265 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2266 # -------------------------------------------------------
2267 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2268 # the include files in INCLUDES and setting the cache variable VAR
2269 # accordingly.
2270 ac_fn_c_check_header_mongrel ()
2271 {
2272   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273   if eval \${$3+:} false; then :
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if eval \${$3+:} false; then :
2277   $as_echo_n "(cached) " >&6
2278 fi
2279 eval ac_res=\$$3
2280                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 else
2283   # Is the header compilable?
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2285 $as_echo_n "checking $2 usability... " >&6; }
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $4
2289 #include <$2>
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292   ac_header_compiler=yes
2293 else
2294   ac_header_compiler=no
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2298 $as_echo "$ac_header_compiler" >&6; }
2299
2300 # Is the header present?
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2302 $as_echo_n "checking $2 presence... " >&6; }
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h.  */
2305 #include <$2>
2306 _ACEOF
2307 if ac_fn_c_try_cpp "$LINENO"; then :
2308   ac_header_preproc=yes
2309 else
2310   ac_header_preproc=no
2311 fi
2312 rm -f conftest.err conftest.i conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2314 $as_echo "$ac_header_preproc" >&6; }
2315
2316 # So?  What about this header?
2317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2318   yes:no: )
2319     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2320 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2322 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2323     ;;
2324   no:yes:* )
2325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2326 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2327     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2328 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2329     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2330 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2331     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2332 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2333     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2334 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2335 ( $as_echo "## ---------------------------------- ##
2336 ## Report this to cjwatson@debian.org ##
2337 ## ---------------------------------- ##"
2338      ) | sed "s/^/$as_me: WARNING:     /" >&2
2339     ;;
2340 esac
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344   $as_echo_n "(cached) " >&6
2345 else
2346   eval "$3=\$ac_header_compiler"
2347 fi
2348 eval ac_res=\$$3
2349                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 fi
2352   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354 } # ac_fn_c_check_header_mongrel
2355
2356 # ac_fn_c_try_run LINENO
2357 # ----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2359 # that executables *can* be run.
2360 ac_fn_c_try_run ()
2361 {
2362   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363   if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370   (eval "$ac_link") 2>&5
2371   ac_status=$?
2372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2374   { { case "(($ac_try" in
2375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376   *) ac_try_echo=$ac_try;;
2377 esac
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380   (eval "$ac_try") 2>&5
2381   ac_status=$?
2382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2383   test $ac_status = 0; }; }; then :
2384   ac_retval=0
2385 else
2386   $as_echo "$as_me: program exited with status $ac_status" >&5
2387        $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390        ac_retval=$ac_status
2391 fi
2392   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394   as_fn_set_status $ac_retval
2395
2396 } # ac_fn_c_try_run
2397
2398 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2399 # -------------------------------------------------------
2400 # Tests whether HEADER exists and can be compiled using the include files in
2401 # INCLUDES, setting the cache variable VAR accordingly.
2402 ac_fn_c_check_header_compile ()
2403 {
2404   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406 $as_echo_n "checking for $2... " >&6; }
2407 if eval \${$3+:} false; then :
2408   $as_echo_n "(cached) " >&6
2409 else
2410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 $4
2413 #include <$2>
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416   eval "$3=yes"
2417 else
2418   eval "$3=no"
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 fi
2422 eval ac_res=\$$3
2423                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424 $as_echo "$ac_res" >&6; }
2425   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426
2427 } # ac_fn_c_check_header_compile
2428
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2432 ac_fn_c_try_link ()
2433 {
2434   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435   rm -f conftest.$ac_objext conftest$ac_exeext
2436   if { { ac_try="$ac_link"
2437 case "(($ac_try" in
2438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439   *) ac_try_echo=$ac_try;;
2440 esac
2441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443   (eval "$ac_link") 2>conftest.err
2444   ac_status=$?
2445   if test -s conftest.err; then
2446     grep -v '^ *+' conftest.err >conftest.er1
2447     cat conftest.er1 >&5
2448     mv -f conftest.er1 conftest.err
2449   fi
2450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451   test $ac_status = 0; } && {
2452          test -z "$ac_c_werror_flag" ||
2453          test ! -s conftest.err
2454        } && test -s conftest$ac_exeext && {
2455          test "$cross_compiling" = yes ||
2456          test -x conftest$ac_exeext
2457        }; then :
2458   ac_retval=0
2459 else
2460   $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463         ac_retval=1
2464 fi
2465   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467   # interfere with the next link command; also delete a directory that is
2468   # left behind by Apple's compiler.  We do this before executing the actions.
2469   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471   as_fn_set_status $ac_retval
2472
2473 } # ac_fn_c_try_link
2474
2475 # ac_fn_c_check_func LINENO FUNC VAR
2476 # ----------------------------------
2477 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2478 ac_fn_c_check_func ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if eval \${$3+:} false; then :
2484   $as_echo_n "(cached) " >&6
2485 else
2486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2490 #define $2 innocuous_$2
2491
2492 /* System header to define __stub macros and hopefully few prototypes,
2493     which can conflict with char $2 (); below.
2494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2495     <limits.h> exists even on freestanding compilers.  */
2496
2497 #ifdef __STDC__
2498 # include <limits.h>
2499 #else
2500 # include <assert.h>
2501 #endif
2502
2503 #undef $2
2504
2505 /* Override any GCC internal prototype to avoid an error.
2506    Use char because int might match the return type of a GCC
2507    builtin and then its argument prototype would still apply.  */
2508 #ifdef __cplusplus
2509 extern "C"
2510 #endif
2511 char $2 ();
2512 /* The GNU C library defines this for functions which it implements
2513     to always fail with ENOSYS.  Some functions are actually named
2514     something starting with __ and the normal name is an alias.  */
2515 #if defined __stub_$2 || defined __stub___$2
2516 choke me
2517 #endif
2518
2519 int
2520 main ()
2521 {
2522 return $2 ();
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_c_try_link "$LINENO"; then :
2528   eval "$3=yes"
2529 else
2530   eval "$3=no"
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext \
2533     conftest$ac_exeext conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2539
2540 } # ac_fn_c_check_func
2541
2542 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2543 # -------------------------------------------
2544 # Tests whether TYPE exists after having included INCLUDES, setting cache
2545 # variable VAR accordingly.
2546 ac_fn_c_check_type ()
2547 {
2548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if eval \${$3+:} false; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   eval "$3=no"
2555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h.  */
2557 $4
2558 int
2559 main ()
2560 {
2561 if (sizeof ($2))
2562          return 0;
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h.  */
2570 $4
2571 int
2572 main ()
2573 {
2574 if (sizeof (($2)))
2575             return 0;
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_c_try_compile "$LINENO"; then :
2581
2582 else
2583   eval "$3=yes"
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 fi
2589 eval ac_res=\$$3
2590                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593
2594 } # ac_fn_c_check_type
2595
2596 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2597 # --------------------------------------------
2598 # Tries to find the compile-time value of EXPR in a program that includes
2599 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2600 # computed
2601 ac_fn_c_compute_int ()
2602 {
2603   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604   if test "$cross_compiling" = yes; then
2605     # Depending upon the size, compute the lo and hi bounds.
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h.  */
2608 $4
2609 int
2610 main ()
2611 {
2612 static int test_array [1 - 2 * !(($2) >= 0)];
2613 test_array [0] = 0;
2614 return test_array [0];
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_compile "$LINENO"; then :
2621   ac_lo=0 ac_mid=0
2622   while :; do
2623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h.  */
2625 $4
2626 int
2627 main ()
2628 {
2629 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2630 test_array [0] = 0;
2631 return test_array [0];
2632
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638   ac_hi=$ac_mid; break
2639 else
2640   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2641                         if test $ac_lo -le $ac_mid; then
2642                           ac_lo= ac_hi=
2643                           break
2644                         fi
2645                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648   done
2649 else
2650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h.  */
2652 $4
2653 int
2654 main ()
2655 {
2656 static int test_array [1 - 2 * !(($2) < 0)];
2657 test_array [0] = 0;
2658 return test_array [0];
2659
2660   ;
2661   return 0;
2662 }
2663 _ACEOF
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665   ac_hi=-1 ac_mid=-1
2666   while :; do
2667     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h.  */
2669 $4
2670 int
2671 main ()
2672 {
2673 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2674 test_array [0] = 0;
2675 return test_array [0];
2676
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682   ac_lo=$ac_mid; break
2683 else
2684   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2685                         if test $ac_mid -le $ac_hi; then
2686                           ac_lo= ac_hi=
2687                           break
2688                         fi
2689                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692   done
2693 else
2694   ac_lo= ac_hi=
2695 fi
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 fi
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 # Binary search between lo and hi bounds.
2700 while test "x$ac_lo" != "x$ac_hi"; do
2701   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h.  */
2704 $4
2705 int
2706 main ()
2707 {
2708 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2709 test_array [0] = 0;
2710 return test_array [0];
2711
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 if ac_fn_c_try_compile "$LINENO"; then :
2717   ac_hi=$ac_mid
2718 else
2719   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2720 fi
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 done
2723 case $ac_lo in #((
2724 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2725 '') ac_retval=1 ;;
2726 esac
2727   else
2728     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h.  */
2730 $4
2731 static long int longval () { return $2; }
2732 static unsigned long int ulongval () { return $2; }
2733 #include <stdio.h>
2734 #include <stdlib.h>
2735 int
2736 main ()
2737 {
2738
2739   FILE *f = fopen ("conftest.val", "w");
2740   if (! f)
2741     return 1;
2742   if (($2) < 0)
2743     {
2744       long int i = longval ();
2745       if (i != ($2))
2746         return 1;
2747       fprintf (f, "%ld", i);
2748     }
2749   else
2750     {
2751       unsigned long int i = ulongval ();
2752       if (i != ($2))
2753         return 1;
2754       fprintf (f, "%lu", i);
2755     }
2756   /* Do not output a trailing newline, as this causes \r\n confusion
2757      on some platforms.  */
2758   return ferror (f) || fclose (f) != 0;
2759
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 if ac_fn_c_try_run "$LINENO"; then :
2765   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2766 else
2767   ac_retval=1
2768 fi
2769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2770   conftest.$ac_objext conftest.beam conftest.$ac_ext
2771 rm -f conftest.val
2772
2773   fi
2774   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775   as_fn_set_status $ac_retval
2776
2777 } # ac_fn_c_compute_int
2778
2779 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2780 # ---------------------------------------------
2781 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2782 # accordingly.
2783 ac_fn_c_check_decl ()
2784 {
2785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2786   as_decl_name=`echo $2|sed 's/ *(.*//'`
2787   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2789 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2790 if eval \${$3+:} false; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h.  */
2795 $4
2796 int
2797 main ()
2798 {
2799 #ifndef $as_decl_name
2800 #ifdef __cplusplus
2801   (void) $as_decl_use;
2802 #else
2803   (void) $as_decl_name;
2804 #endif
2805 #endif
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 if ac_fn_c_try_compile "$LINENO"; then :
2812   eval "$3=yes"
2813 else
2814   eval "$3=no"
2815 fi
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 fi
2818 eval ac_res=\$$3
2819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2820 $as_echo "$ac_res" >&6; }
2821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2822
2823 } # ac_fn_c_check_decl
2824
2825 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2826 # ----------------------------------------------------
2827 # Tries to find if the field MEMBER exists in type AGGR, after including
2828 # INCLUDES, setting cache variable VAR accordingly.
2829 ac_fn_c_check_member ()
2830 {
2831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2833 $as_echo_n "checking for $2.$3... " >&6; }
2834 if eval \${$4+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h.  */
2839 $5
2840 int
2841 main ()
2842 {
2843 static $2 ac_aggr;
2844 if (ac_aggr.$3)
2845 return 0;
2846   ;
2847   return 0;
2848 }
2849 _ACEOF
2850 if ac_fn_c_try_compile "$LINENO"; then :
2851   eval "$4=yes"
2852 else
2853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h.  */
2855 $5
2856 int
2857 main ()
2858 {
2859 static $2 ac_aggr;
2860 if (sizeof ac_aggr.$3)
2861 return 0;
2862   ;
2863   return 0;
2864 }
2865 _ACEOF
2866 if ac_fn_c_try_compile "$LINENO"; then :
2867   eval "$4=yes"
2868 else
2869   eval "$4=no"
2870 fi
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 fi
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 fi
2875 eval ac_res=\$$4
2876                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2877 $as_echo "$ac_res" >&6; }
2878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2879
2880 } # ac_fn_c_check_member
2881 cat >config.log <<_ACEOF
2882 This file contains any messages produced by compilers while
2883 running configure, to aid debugging if configure makes a mistake.
2884
2885 It was created by libpipeline $as_me 1.2.3, which was
2886 generated by GNU Autoconf 2.69.  Invocation command line was
2887
2888   $ $0 $@
2889
2890 _ACEOF
2891 exec 5>>config.log
2892 {
2893 cat <<_ASUNAME
2894 ## --------- ##
2895 ## Platform. ##
2896 ## --------- ##
2897
2898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2903
2904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2905 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2906
2907 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2908 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2910 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2911 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2912 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2913 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2914
2915 _ASUNAME
2916
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920   IFS=$as_save_IFS
2921   test -z "$as_dir" && as_dir=.
2922     $as_echo "PATH: $as_dir"
2923   done
2924 IFS=$as_save_IFS
2925
2926 } >&5
2927
2928 cat >&5 <<_ACEOF
2929
2930
2931 ## ----------- ##
2932 ## Core tests. ##
2933 ## ----------- ##
2934
2935 _ACEOF
2936
2937
2938 # Keep a trace of the command line.
2939 # Strip out --no-create and --no-recursion so they do not pile up.
2940 # Strip out --silent because we don't want to record it for future runs.
2941 # Also quote any args containing shell meta-characters.
2942 # Make two passes to allow for proper duplicate-argument suppression.
2943 ac_configure_args=
2944 ac_configure_args0=
2945 ac_configure_args1=
2946 ac_must_keep_next=false
2947 for ac_pass in 1 2
2948 do
2949   for ac_arg
2950   do
2951     case $ac_arg in
2952     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2953     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2954     | -silent | --silent | --silen | --sile | --sil)
2955       continue ;;
2956     *\'*)
2957       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2958     esac
2959     case $ac_pass in
2960     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2961     2)
2962       as_fn_append ac_configure_args1 " '$ac_arg'"
2963       if test $ac_must_keep_next = true; then
2964         ac_must_keep_next=false # Got value, back to normal.
2965       else
2966         case $ac_arg in
2967           *=* | --config-cache | -C | -disable-* | --disable-* \
2968           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2969           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2970           | -with-* | --with-* | -without-* | --without-* | --x)
2971             case "$ac_configure_args0 " in
2972               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2973             esac
2974             ;;
2975           -* ) ac_must_keep_next=true ;;
2976         esac
2977       fi
2978       as_fn_append ac_configure_args " '$ac_arg'"
2979       ;;
2980     esac
2981   done
2982 done
2983 { ac_configure_args0=; unset ac_configure_args0;}
2984 { ac_configure_args1=; unset ac_configure_args1;}
2985
2986 # When interrupted or exit'd, cleanup temporary files, and complete
2987 # config.log.  We remove comments because anyway the quotes in there
2988 # would cause problems or look ugly.
2989 # WARNING: Use '\'' to represent an apostrophe within the trap.
2990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2991 trap 'exit_status=$?
2992   # Save into config.log some information that might help in debugging.
2993   {
2994     echo
2995
2996     $as_echo "## ---------------- ##
2997 ## Cache variables. ##
2998 ## ---------------- ##"
2999     echo
3000     # The following way of writing the cache mishandles newlines in values,
3001 (
3002   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3003     eval ac_val=\$$ac_var
3004     case $ac_val in #(
3005     *${as_nl}*)
3006       case $ac_var in #(
3007       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3009       esac
3010       case $ac_var in #(
3011       _ | IFS | as_nl) ;; #(
3012       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3013       *) { eval $ac_var=; unset $ac_var;} ;;
3014       esac ;;
3015     esac
3016   done
3017   (set) 2>&1 |
3018     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3019     *${as_nl}ac_space=\ *)
3020       sed -n \
3021         "s/'\''/'\''\\\\'\'''\''/g;
3022           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3023       ;; #(
3024     *)
3025       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3026       ;;
3027     esac |
3028     sort
3029 )
3030     echo
3031
3032     $as_echo "## ----------------- ##
3033 ## Output variables. ##
3034 ## ----------------- ##"
3035     echo
3036     for ac_var in $ac_subst_vars
3037     do
3038       eval ac_val=\$$ac_var
3039       case $ac_val in
3040       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3041       esac
3042       $as_echo "$ac_var='\''$ac_val'\''"
3043     done | sort
3044     echo
3045
3046     if test -n "$ac_subst_files"; then
3047       $as_echo "## ------------------- ##
3048 ## File substitutions. ##
3049 ## ------------------- ##"
3050       echo
3051       for ac_var in $ac_subst_files
3052       do
3053         eval ac_val=\$$ac_var
3054         case $ac_val in
3055         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3056         esac
3057         $as_echo "$ac_var='\''$ac_val'\''"
3058       done | sort
3059       echo
3060     fi
3061
3062     if test -s confdefs.h; then
3063       $as_echo "## ----------- ##
3064 ## confdefs.h. ##
3065 ## ----------- ##"
3066       echo
3067       cat confdefs.h
3068       echo
3069     fi
3070     test "$ac_signal" != 0 &&
3071       $as_echo "$as_me: caught signal $ac_signal"
3072     $as_echo "$as_me: exit $exit_status"
3073   } >&5
3074   rm -f core *.core core.conftest.* &&
3075     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3076     exit $exit_status
3077 ' 0
3078 for ac_signal in 1 2 13 15; do
3079   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3080 done
3081 ac_signal=0
3082
3083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3084 rm -f -r conftest* confdefs.h
3085
3086 $as_echo "/* confdefs.h */" > confdefs.h
3087
3088 # Predefined preprocessor variables.
3089
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE_NAME "$PACKAGE_NAME"
3092 _ACEOF
3093
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3096 _ACEOF
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3100 _ACEOF
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_STRING "$PACKAGE_STRING"
3104 _ACEOF
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3108 _ACEOF
3109
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE_URL "$PACKAGE_URL"
3112 _ACEOF
3113
3114
3115 # Let the site file select an alternate cache file if it wants to.
3116 # Prefer an explicitly selected file to automatically selected ones.
3117 ac_site_file1=NONE
3118 ac_site_file2=NONE
3119 if test -n "$CONFIG_SITE"; then
3120   # We do not want a PATH search for config.site.
3121   case $CONFIG_SITE in #((
3122     -*)  ac_site_file1=./$CONFIG_SITE;;
3123     */*) ac_site_file1=$CONFIG_SITE;;
3124     *)   ac_site_file1=./$CONFIG_SITE;;
3125   esac
3126 elif test "x$prefix" != xNONE; then
3127   ac_site_file1=$prefix/share/config.site
3128   ac_site_file2=$prefix/etc/config.site
3129 else
3130   ac_site_file1=$ac_default_prefix/share/config.site
3131   ac_site_file2=$ac_default_prefix/etc/config.site
3132 fi
3133 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3134 do
3135   test "x$ac_site_file" = xNONE && continue
3136   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3137     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3138 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3139     sed 's/^/| /' "$ac_site_file" >&5
3140     . "$ac_site_file" \
3141       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 as_fn_error $? "failed to load site script $ac_site_file
3144 See \`config.log' for more details" "$LINENO" 5; }
3145   fi
3146 done
3147
3148 if test -r "$cache_file"; then
3149   # Some versions of bash will fail to source /dev/null (special files
3150   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3151   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3152     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3153 $as_echo "$as_me: loading cache $cache_file" >&6;}
3154     case $cache_file in
3155       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3156       *)                      . "./$cache_file";;
3157     esac
3158   fi
3159 else
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3161 $as_echo "$as_me: creating cache $cache_file" >&6;}
3162   >$cache_file
3163 fi
3164
3165 gl_header_list="$gl_header_list unistd.h"
3166 gl_header_list="$gl_header_list sys/mman.h"
3167 gl_func_list="$gl_func_list mprotect"
3168 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3169 gl_func_list="$gl_func_list setenv"
3170 gl_func_list="$gl_func_list sigaction"
3171 gl_func_list="$gl_func_list sigaltstack"
3172 gl_func_list="$gl_func_list siginterrupt"
3173 gl_func_list="$gl_func_list snprintf"
3174 gl_header_list="$gl_header_list wchar.h"
3175 gl_header_list="$gl_header_list stdint.h"
3176 gl_header_list="$gl_header_list sys/socket.h"
3177 gl_func_list="$gl_func_list strndup"
3178 gl_header_list="$gl_header_list sys/select.h"
3179 gl_header_list="$gl_header_list sys/stat.h"
3180 gl_header_list="$gl_header_list sys/time.h"
3181 gl_header_list="$gl_header_list sys/wait.h"
3182 gl_func_list="$gl_func_list vasnprintf"
3183 gl_header_list="$gl_header_list features.h"
3184 # Check that the precious variables saved in the cache have kept the same
3185 # value.
3186 ac_cache_corrupted=false
3187 for ac_var in $ac_precious_vars; do
3188   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3189   eval ac_new_set=\$ac_env_${ac_var}_set
3190   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3191   eval ac_new_val=\$ac_env_${ac_var}_value
3192   case $ac_old_set,$ac_new_set in
3193     set,)
3194       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3196       ac_cache_corrupted=: ;;
3197     ,set)
3198       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3200       ac_cache_corrupted=: ;;
3201     ,);;
3202     *)
3203       if test "x$ac_old_val" != "x$ac_new_val"; then
3204         # differences in whitespace do not lead to failure.
3205         ac_old_val_w=`echo x $ac_old_val`
3206         ac_new_val_w=`echo x $ac_new_val`
3207         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3208           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3210           ac_cache_corrupted=:
3211         else
3212           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3214           eval $ac_var=\$ac_old_val
3215         fi
3216         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3217 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3218         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3219 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3220       fi;;
3221   esac
3222   # Pass precious variables to config.status.
3223   if test "$ac_new_set" = set; then
3224     case $ac_new_val in
3225     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3226     *) ac_arg=$ac_var=$ac_new_val ;;
3227     esac
3228     case " $ac_configure_args " in
3229       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3230       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3231     esac
3232   fi
3233 done
3234 if $ac_cache_corrupted; then
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3239   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3240 fi
3241 ## -------------------- ##
3242 ## Main body of script. ##
3243 ## -------------------- ##
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
3252 ac_aux_dir=
3253 for ac_dir in tools "$srcdir"/tools; do
3254   if test -f "$ac_dir/install-sh"; then
3255     ac_aux_dir=$ac_dir
3256     ac_install_sh="$ac_aux_dir/install-sh -c"
3257     break
3258   elif test -f "$ac_dir/install.sh"; then
3259     ac_aux_dir=$ac_dir
3260     ac_install_sh="$ac_aux_dir/install.sh -c"
3261     break
3262   elif test -f "$ac_dir/shtool"; then
3263     ac_aux_dir=$ac_dir
3264     ac_install_sh="$ac_aux_dir/shtool install -c"
3265     break
3266   fi
3267 done
3268 if test -z "$ac_aux_dir"; then
3269   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3270 fi
3271
3272 # These three variables are undocumented and unsupported,
3273 # and are intended to be withdrawn in a future Autoconf release.
3274 # They can cause serious problems if a builder's source tree is in a directory
3275 # whose full name contains unusual characters.
3276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3278 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3279
3280
3281 am__api_version='1.11'
3282
3283 # Find a good install program.  We prefer a C program (faster),
3284 # so one script is as good as another.  But avoid the broken or
3285 # incompatible versions:
3286 # SysV /etc/install, /usr/sbin/install
3287 # SunOS /usr/etc/install
3288 # IRIX /sbin/install
3289 # AIX /bin/install
3290 # AmigaOS /C/install, which installs bootblocks on floppy discs
3291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3294 # OS/2's system install, which has a completely different semantic
3295 # ./install, which can be erroneously created by make from ./install.sh.
3296 # Reject install programs that cannot install multiple files.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3298 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3299 if test -z "$INSTALL"; then
3300 if ${ac_cv_path_install+:} false; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308     # Account for people who put trailing slashes in PATH elements.
3309 case $as_dir/ in #((
3310   ./ | .// | /[cC]/* | \
3311   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3312   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3313   /usr/ucb/* ) ;;
3314   *)
3315     # OSF1 and SCO ODT 3.0 have their own names for install.
3316     # Don't use installbsd from OSF since it installs stuff as root
3317     # by default.
3318     for ac_prog in ginstall scoinst install; do
3319       for ac_exec_ext in '' $ac_executable_extensions; do
3320         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3321           if test $ac_prog = install &&
3322             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3323             # AIX install.  It has an incompatible calling convention.
3324             :
3325           elif test $ac_prog = install &&
3326             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3327             # program-specific install script used by HP pwplus--don't use.
3328             :
3329           else
3330             rm -rf conftest.one conftest.two conftest.dir
3331             echo one > conftest.one
3332             echo two > conftest.two
3333             mkdir conftest.dir
3334             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3335               test -s conftest.one && test -s conftest.two &&
3336               test -s conftest.dir/conftest.one &&
3337               test -s conftest.dir/conftest.two
3338             then
3339               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3340               break 3
3341             fi
3342           fi
3343         fi
3344       done
3345     done
3346     ;;
3347 esac
3348
3349   done
3350 IFS=$as_save_IFS
3351
3352 rm -rf conftest.one conftest.two conftest.dir
3353
3354 fi
3355   if test "${ac_cv_path_install+set}" = set; then
3356     INSTALL=$ac_cv_path_install
3357   else
3358     # As a last resort, use the slow shell script.  Don't cache a
3359     # value for INSTALL within a source directory, because that will
3360     # break other packages using the cache if that directory is
3361     # removed, or if the value is a relative name.
3362     INSTALL=$ac_install_sh
3363   fi
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3366 $as_echo "$INSTALL" >&6; }
3367
3368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3369 # It thinks the first close brace ends the variable substitution.
3370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3371
3372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3373
3374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3375
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3377 $as_echo_n "checking whether build environment is sane... " >&6; }
3378 # Just in case
3379 sleep 1
3380 echo timestamp > conftest.file
3381 # Reject unsafe characters in $srcdir or the absolute working directory
3382 # name.  Accept space and tab only in the latter.
3383 am_lf='
3384 '
3385 case `pwd` in
3386   *[\\\"\#\$\&\'\`$am_lf]*)
3387     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3388 esac
3389 case $srcdir in
3390   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3391     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3392 esac
3393
3394 # Do `set' in a subshell so we don't clobber the current shell's
3395 # arguments.  Must try -L first in case configure is actually a
3396 # symlink; some systems play weird games with the mod time of symlinks
3397 # (eg FreeBSD returns the mod time of the symlink's containing
3398 # directory).
3399 if (
3400    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3401    if test "$*" = "X"; then
3402       # -L didn't work.
3403       set X `ls -t "$srcdir/configure" conftest.file`
3404    fi
3405    rm -f conftest.file
3406    if test "$*" != "X $srcdir/configure conftest.file" \
3407       && test "$*" != "X conftest.file $srcdir/configure"; then
3408
3409       # If neither matched, then we have a broken ls.  This can happen
3410       # if, for instance, CONFIG_SHELL is bash and it inherits a
3411       # broken ls alias from the environment.  This has actually
3412       # happened.  Such a system could not be considered "sane".
3413       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3414 alias in your environment" "$LINENO" 5
3415    fi
3416
3417    test "$2" = conftest.file
3418    )
3419 then
3420    # Ok.
3421    :
3422 else
3423    as_fn_error $? "newly created file is older than distributed files!
3424 Check your system clock" "$LINENO" 5
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3427 $as_echo "yes" >&6; }
3428 test "$program_prefix" != NONE &&
3429   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3430 # Use a double $ so make ignores it.
3431 test "$program_suffix" != NONE &&
3432   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3433 # Double any \ or $.
3434 # By default was `s,x,x', remove it if useless.
3435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3437
3438 # expand $ac_aux_dir to an absolute path
3439 am_aux_dir=`cd $ac_aux_dir && pwd`
3440
3441 if test x"${MISSING+set}" != xset; then
3442   case $am_aux_dir in
3443   *\ * | *\     *)
3444     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3445   *)
3446     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3447   esac
3448 fi
3449 # Use eval to expand $SHELL
3450 if eval "$MISSING --run true"; then
3451   am_missing_run="$MISSING --run "
3452 else
3453   am_missing_run=
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3455 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3456 fi
3457
3458 if test x"${install_sh}" != xset; then
3459   case $am_aux_dir in
3460   *\ * | *\     *)
3461     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3462   *)
3463     install_sh="\${SHELL} $am_aux_dir/install-sh"
3464   esac
3465 fi
3466
3467 # Installed binaries are usually stripped using `strip' when the user
3468 # run `make install-strip'.  However `strip' might not be the right
3469 # tool to use in cross-compilation environments, therefore Automake
3470 # will honor the `STRIP' environment variable to overrule this program.
3471 if test "$cross_compiling" != no; then
3472   if test -n "$ac_tool_prefix"; then
3473   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}strip; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_STRIP+:} false; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   if test -n "$STRIP"; then
3481   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486   IFS=$as_save_IFS
3487   test -z "$as_dir" && as_dir=.
3488     for ac_exec_ext in '' $ac_executable_extensions; do
3489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492     break 2
3493   fi
3494 done
3495   done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 STRIP=$ac_cv_prog_STRIP
3501 if test -n "$STRIP"; then
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3503 $as_echo "$STRIP" >&6; }
3504 else
3505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509
3510 fi
3511 if test -z "$ac_cv_prog_STRIP"; then
3512   ac_ct_STRIP=$STRIP
3513   # Extract the first word of "strip", so it can be a program name with args.
3514 set dummy strip; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3518   $as_echo_n "(cached) " >&6
3519 else
3520   if test -n "$ac_ct_STRIP"; then
3521   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526   IFS=$as_save_IFS
3527   test -z "$as_dir" && as_dir=.
3528     for ac_exec_ext in '' $ac_executable_extensions; do
3529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530     ac_cv_prog_ac_ct_STRIP="strip"
3531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532     break 2
3533   fi
3534 done
3535   done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3541 if test -n "$ac_ct_STRIP"; then
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3543 $as_echo "$ac_ct_STRIP" >&6; }
3544 else
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 fi
3548
3549   if test "x$ac_ct_STRIP" = x; then
3550     STRIP=":"
3551   else
3552     case $cross_compiling:$ac_tool_warned in
3553 yes:)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3557 esac
3558     STRIP=$ac_ct_STRIP
3559   fi
3560 else
3561   STRIP="$ac_cv_prog_STRIP"
3562 fi
3563
3564 fi
3565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3566
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3568 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3569 if test -z "$MKDIR_P"; then
3570   if ${ac_cv_path_mkdir+:} false; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578     for ac_prog in mkdir gmkdir; do
3579          for ac_exec_ext in '' $ac_executable_extensions; do
3580            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3581            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3582              'mkdir (GNU coreutils) '* | \
3583              'mkdir (coreutils) '* | \
3584              'mkdir (fileutils) '4.1*)
3585                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3586                break 3;;
3587            esac
3588          done
3589        done
3590   done
3591 IFS=$as_save_IFS
3592
3593 fi
3594
3595   test -d ./--version && rmdir ./--version
3596   if test "${ac_cv_path_mkdir+set}" = set; then
3597     MKDIR_P="$ac_cv_path_mkdir -p"
3598   else
3599     # As a last resort, use the slow shell script.  Don't cache a
3600     # value for MKDIR_P within a source directory, because that will
3601     # break other packages using the cache if that directory is
3602     # removed, or if the value is a relative name.
3603     MKDIR_P="$ac_install_sh -d"
3604   fi
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3607 $as_echo "$MKDIR_P" >&6; }
3608
3609
3610 mkdir_p="$MKDIR_P"
3611 case $mkdir_p in
3612   [\\/$]* | ?:[\\/]*) ;;
3613   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3614 esac
3615
3616 for ac_prog in gawk mawk nawk awk
3617 do
3618   # Extract the first word of "$ac_prog", so it can be a program name with args.
3619 set dummy $ac_prog; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_prog_AWK+:} false; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   if test -n "$AWK"; then
3626   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631   IFS=$as_save_IFS
3632   test -z "$as_dir" && as_dir=.
3633     for ac_exec_ext in '' $ac_executable_extensions; do
3634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635     ac_cv_prog_AWK="$ac_prog"
3636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637     break 2
3638   fi
3639 done
3640   done
3641 IFS=$as_save_IFS
3642
3643 fi
3644 fi
3645 AWK=$ac_cv_prog_AWK
3646 if test -n "$AWK"; then
3647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3648 $as_echo "$AWK" >&6; }
3649 else
3650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 fi
3653
3654
3655   test -n "$AWK" && break
3656 done
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3659 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3660 set x ${MAKE-make}
3661 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3662 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3663   $as_echo_n "(cached) " >&6
3664 else
3665   cat >conftest.make <<\_ACEOF
3666 SHELL = /bin/sh
3667 all:
3668         @echo '@@@%%%=$(MAKE)=@@@%%%'
3669 _ACEOF
3670 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3671 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3672   *@@@%%%=?*=@@@%%%*)
3673     eval ac_cv_prog_make_${ac_make}_set=yes;;
3674   *)
3675     eval ac_cv_prog_make_${ac_make}_set=no;;
3676 esac
3677 rm -f conftest.make
3678 fi
3679 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3681 $as_echo "yes" >&6; }
3682   SET_MAKE=
3683 else
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686   SET_MAKE="MAKE=${MAKE-make}"
3687 fi
3688
3689 rm -rf .tst 2>/dev/null
3690 mkdir .tst 2>/dev/null
3691 if test -d .tst; then
3692   am__leading_dot=.
3693 else
3694   am__leading_dot=_
3695 fi
3696 rmdir .tst 2>/dev/null
3697
3698 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3699   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3700   # is not polluted with repeated "-I."
3701   am__isrc=' -I$(srcdir)'
3702   # test to see if srcdir already configured
3703   if test -f $srcdir/config.status; then
3704     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3705   fi
3706 fi
3707
3708 # test whether we have cygpath
3709 if test -z "$CYGPATH_W"; then
3710   if (cygpath --version) >/dev/null 2>/dev/null; then
3711     CYGPATH_W='cygpath -w'
3712   else
3713     CYGPATH_W=echo
3714   fi
3715 fi
3716
3717
3718 # Define the identity of the package.
3719  PACKAGE='libpipeline'
3720  VERSION='1.2.3'
3721
3722
3723 cat >>confdefs.h <<_ACEOF
3724 #define PACKAGE "$PACKAGE"
3725 _ACEOF
3726
3727
3728 cat >>confdefs.h <<_ACEOF
3729 #define VERSION "$VERSION"
3730 _ACEOF
3731
3732 # Some tools Automake needs.
3733
3734 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3735
3736
3737 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3738
3739
3740 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3741
3742
3743 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3744
3745
3746 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3747
3748 # We need awk for the "check" target.  The system "awk" is bad on
3749 # some platforms.
3750 # Always define AMTAR for backward compatibility.  Yes, it's still used
3751 # in the wild :-(  We should find a proper way to deprecate it ...
3752 AMTAR='$${TAR-tar}'
3753
3754 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3755
3756
3757
3758
3759
3760
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3762 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3763     # Check whether --enable-maintainer-mode was given.
3764 if test "${enable_maintainer_mode+set}" = set; then :
3765   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3766 else
3767   USE_MAINTAINER_MODE=no
3768 fi
3769
3770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3771 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3772    if test $USE_MAINTAINER_MODE = yes; then
3773   MAINTAINER_MODE_TRUE=
3774   MAINTAINER_MODE_FALSE='#'
3775 else
3776   MAINTAINER_MODE_TRUE='#'
3777   MAINTAINER_MODE_FALSE=
3778 fi
3779
3780   MAINT=$MAINTAINER_MODE_TRUE
3781
3782
3783 # Check whether --enable-silent-rules was given.
3784 if test "${enable_silent_rules+set}" = set; then :
3785   enableval=$enable_silent_rules;
3786 fi
3787
3788 case $enable_silent_rules in
3789 yes) AM_DEFAULT_VERBOSITY=0;;
3790 no)  AM_DEFAULT_VERBOSITY=1;;
3791 *)   AM_DEFAULT_VERBOSITY=0;;
3792 esac
3793 am_make=${MAKE-make}
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3795 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3796 if ${am_cv_make_support_nested_variables+:} false; then :
3797   $as_echo_n "(cached) " >&6
3798 else
3799   if $as_echo 'TRUE=$(BAR$(V))
3800 BAR0=false
3801 BAR1=true
3802 V=1
3803 am__doit:
3804         @$(TRUE)
3805 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3806   am_cv_make_support_nested_variables=yes
3807 else
3808   am_cv_make_support_nested_variables=no
3809 fi
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3812 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3813 if test $am_cv_make_support_nested_variables = yes; then
3814     AM_V='$(V)'
3815   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3816 else
3817   AM_V=$AM_DEFAULT_VERBOSITY
3818   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3819 fi
3820 AM_BACKSLASH='\'
3821
3822
3823
3824 # Make sure we can run config.sub.
3825 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3826   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3827
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3829 $as_echo_n "checking build system type... " >&6; }
3830 if ${ac_cv_build+:} false; then :
3831   $as_echo_n "(cached) " >&6
3832 else
3833   ac_build_alias=$build_alias
3834 test "x$ac_build_alias" = x &&
3835   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3836 test "x$ac_build_alias" = x &&
3837   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3838 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3839   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3840
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3843 $as_echo "$ac_cv_build" >&6; }
3844 case $ac_cv_build in
3845 *-*-*) ;;
3846 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3847 esac
3848 build=$ac_cv_build
3849 ac_save_IFS=$IFS; IFS='-'
3850 set x $ac_cv_build
3851 shift
3852 build_cpu=$1
3853 build_vendor=$2
3854 shift; shift
3855 # Remember, the first character of IFS is used to create $*,
3856 # except with old shells:
3857 build_os=$*
3858 IFS=$ac_save_IFS
3859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3860
3861
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3863 $as_echo_n "checking host system type... " >&6; }
3864 if ${ac_cv_host+:} false; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   if test "x$host_alias" = x; then
3868   ac_cv_host=$ac_cv_build
3869 else
3870   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3871     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3872 fi
3873
3874 fi
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3876 $as_echo "$ac_cv_host" >&6; }
3877 case $ac_cv_host in
3878 *-*-*) ;;
3879 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3880 esac
3881 host=$ac_cv_host
3882 ac_save_IFS=$IFS; IFS='-'
3883 set x $ac_cv_host
3884 shift
3885 host_cpu=$1
3886 host_vendor=$2
3887 shift; shift
3888 # Remember, the first character of IFS is used to create $*,
3889 # except with old shells:
3890 host_os=$*
3891 IFS=$ac_save_IFS
3892 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3893
3894
3895 DEPDIR="${am__leading_dot}deps"
3896
3897 ac_config_commands="$ac_config_commands depfiles"
3898
3899
3900 am_make=${MAKE-make}
3901 cat > confinc << 'END'
3902 am__doit:
3903         @echo this is the am__doit target
3904 .PHONY: am__doit
3905 END
3906 # If we don't find an include directive, just comment out the code.
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3908 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3909 am__include="#"
3910 am__quote=
3911 _am_result=none
3912 # First try GNU make style include.
3913 echo "include confinc" > confmf
3914 # Ignore all kinds of additional output from `make'.
3915 case `$am_make -s -f confmf 2> /dev/null` in #(
3916 *the\ am__doit\ target*)
3917   am__include=include
3918   am__quote=
3919   _am_result=GNU
3920   ;;
3921 esac
3922 # Now try BSD make style include.
3923 if test "$am__include" = "#"; then
3924    echo '.include "confinc"' > confmf
3925    case `$am_make -s -f confmf 2> /dev/null` in #(
3926    *the\ am__doit\ target*)
3927      am__include=.include
3928      am__quote="\""
3929      _am_result=BSD
3930      ;;
3931    esac
3932 fi
3933
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3936 $as_echo "$_am_result" >&6; }
3937 rm -f confinc confmf
3938
3939 # Check whether --enable-dependency-tracking was given.
3940 if test "${enable_dependency_tracking+set}" = set; then :
3941   enableval=$enable_dependency_tracking;
3942 fi
3943
3944 if test "x$enable_dependency_tracking" != xno; then
3945   am_depcomp="$ac_aux_dir/depcomp"
3946   AMDEPBACKSLASH='\'
3947   am__nodep='_no'
3948 fi
3949  if test "x$enable_dependency_tracking" != xno; then
3950   AMDEP_TRUE=
3951   AMDEP_FALSE='#'
3952 else
3953   AMDEP_TRUE='#'
3954   AMDEP_FALSE=
3955 fi
3956
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 if test -n "$ac_tool_prefix"; then
3964   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_CC+:} false; then :
3969   $as_echo_n "(cached) " >&6
3970 else
3971   if test -n "$CC"; then
3972   ac_cv_prog_CC="$CC" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979     for ac_exec_ext in '' $ac_executable_extensions; do
3980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983     break 2
3984   fi
3985 done
3986   done
3987 IFS=$as_save_IFS
3988
3989 fi
3990 fi
3991 CC=$ac_cv_prog_CC
3992 if test -n "$CC"; then
3993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 $as_echo "$CC" >&6; }
3995 else
3996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 fi
3999
4000
4001 fi
4002 if test -z "$ac_cv_prog_CC"; then
4003   ac_ct_CC=$CC
4004   # Extract the first word of "gcc", so it can be a program name with args.
4005 set dummy gcc; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4009   $as_echo_n "(cached) " >&6
4010 else
4011   if test -n "$ac_ct_CC"; then
4012   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019     for ac_exec_ext in '' $ac_executable_extensions; do
4020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021     ac_cv_prog_ac_ct_CC="gcc"
4022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023     break 2
4024   fi
4025 done
4026   done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4032 if test -n "$ac_ct_CC"; then
4033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4034 $as_echo "$ac_ct_CC" >&6; }
4035 else
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040   if test "x$ac_ct_CC" = x; then
4041     CC=""
4042   else
4043     case $cross_compiling:$ac_tool_warned in
4044 yes:)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047 ac_tool_warned=yes ;;
4048 esac
4049     CC=$ac_ct_CC
4050   fi
4051 else
4052   CC="$ac_cv_prog_CC"
4053 fi
4054
4055 if test -z "$CC"; then
4056           if test -n "$ac_tool_prefix"; then
4057     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4058 set dummy ${ac_tool_prefix}cc; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_CC+:} false; then :
4062   $as_echo_n "(cached) " >&6
4063 else
4064   if test -n "$CC"; then
4065   ac_cv_prog_CC="$CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072     for ac_exec_ext in '' $ac_executable_extensions; do
4073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074     ac_cv_prog_CC="${ac_tool_prefix}cc"
4075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076     break 2
4077   fi
4078 done
4079   done
4080 IFS=$as_save_IFS
4081
4082 fi
4083 fi
4084 CC=$ac_cv_prog_CC
4085 if test -n "$CC"; then
4086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4087 $as_echo "$CC" >&6; }
4088 else
4089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4091 fi
4092
4093
4094   fi
4095 fi
4096 if test -z "$CC"; then
4097   # Extract the first word of "cc", so it can be a program name with args.
4098 set dummy cc; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CC+:} false; then :
4102   $as_echo_n "(cached) " >&6
4103 else
4104   if test -n "$CC"; then
4105   ac_cv_prog_CC="$CC" # Let the user override the test.
4106 else
4107   ac_prog_rejected=no
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111   IFS=$as_save_IFS
4112   test -z "$as_dir" && as_dir=.
4113     for ac_exec_ext in '' $ac_executable_extensions; do
4114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4116        ac_prog_rejected=yes
4117        continue
4118      fi
4119     ac_cv_prog_CC="cc"
4120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121     break 2
4122   fi
4123 done
4124   done
4125 IFS=$as_save_IFS
4126
4127 if test $ac_prog_rejected = yes; then
4128   # We found a bogon in the path, so make sure we never use it.
4129   set dummy $ac_cv_prog_CC
4130   shift
4131   if test $# != 0; then
4132     # We chose a different compiler from the bogus one.
4133     # However, it has the same basename, so the bogon will be chosen
4134     # first if we set CC to just the basename; use the full file name.
4135     shift
4136     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4137   fi
4138 fi
4139 fi
4140 fi
4141 CC=$ac_cv_prog_CC
4142 if test -n "$CC"; then
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144 $as_echo "$CC" >&6; }
4145 else
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 fi
4149
4150
4151 fi
4152 if test -z "$CC"; then
4153   if test -n "$ac_tool_prefix"; then
4154   for ac_prog in cl.exe
4155   do
4156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_CC+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   if test -n "$CC"; then
4164   ac_cv_prog_CC="$CC" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171     for ac_exec_ext in '' $ac_executable_extensions; do
4172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178   done
4179 IFS=$as_save_IFS
4180
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     test -n "$CC" && break
4194   done
4195 fi
4196 if test -z "$CC"; then
4197   ac_ct_CC=$CC
4198   for ac_prog in cl.exe
4199 do
4200   # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   if test -n "$ac_ct_CC"; then
4208   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217     ac_cv_prog_ac_ct_CC="$ac_prog"
4218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222   done
4223 IFS=$as_save_IFS
4224
4225 fi
4226 fi
4227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4228 if test -n "$ac_ct_CC"; then
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4230 $as_echo "$ac_ct_CC" >&6; }
4231 else
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 fi
4235
4236
4237   test -n "$ac_ct_CC" && break
4238 done
4239
4240   if test "x$ac_ct_CC" = x; then
4241     CC=""
4242   else
4243     case $cross_compiling:$ac_tool_warned in
4244 yes:)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4247 ac_tool_warned=yes ;;
4248 esac
4249     CC=$ac_ct_CC
4250   fi
4251 fi
4252
4253 fi
4254
4255
4256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258 as_fn_error $? "no acceptable C compiler found in \$PATH
4259 See \`config.log' for more details" "$LINENO" 5; }
4260
4261 # Provide some information about the compiler.
4262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4263 set X $ac_compile
4264 ac_compiler=$2
4265 for ac_option in --version -v -V -qversion; do
4266   { { ac_try="$ac_compiler $ac_option >&5"
4267 case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4272 $as_echo "$ac_try_echo"; } >&5
4273   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4274   ac_status=$?
4275   if test -s conftest.err; then
4276     sed '10a\
4277 ... rest of stderr output deleted ...
4278          10q' conftest.err >conftest.er1
4279     cat conftest.er1 >&5
4280   fi
4281   rm -f conftest.er1 conftest.err
4282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283   test $ac_status = 0; }
4284 done
4285
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h.  */
4288
4289 int
4290 main ()
4291 {
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 ac_clean_files_save=$ac_clean_files
4298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4299 # Try to create an executable without -o first, disregard a.out.
4300 # It will help us diagnose broken compilers, and finding out an intuition
4301 # of exeext.
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4303 $as_echo_n "checking whether the C compiler works... " >&6; }
4304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4305
4306 # The possible output files:
4307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4308
4309 ac_rmfiles=
4310 for ac_file in $ac_files
4311 do
4312   case $ac_file in
4313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4314     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4315   esac
4316 done
4317 rm -f $ac_rmfiles
4318
4319 if { { ac_try="$ac_link_default"
4320 case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326   (eval "$ac_link_default") 2>&5
4327   ac_status=$?
4328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329   test $ac_status = 0; }; then :
4330   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4332 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4333 # so that the user can short-circuit this test for compilers unknown to
4334 # Autoconf.
4335 for ac_file in $ac_files ''
4336 do
4337   test -f "$ac_file" || continue
4338   case $ac_file in
4339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4340         ;;
4341     [ab].out )
4342         # We found the default executable, but exeext='' is most
4343         # certainly right.
4344         break;;
4345     *.* )
4346         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4347         then :; else
4348            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4349         fi
4350         # We set ac_cv_exeext here because the later test for it is not
4351         # safe: cross compilers may not add the suffix if given an `-o'
4352         # argument, so we may need to know it at that point already.
4353         # Even if this section looks crufty: it has the advantage of
4354         # actually working.
4355         break;;
4356     * )
4357         break;;
4358   esac
4359 done
4360 test "$ac_cv_exeext" = no && ac_cv_exeext=
4361
4362 else
4363   ac_file=''
4364 fi
4365 if test -z "$ac_file"; then :
4366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4368 $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error 77 "C compiler cannot create executables
4374 See \`config.log' for more details" "$LINENO" 5; }
4375 else
4376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377 $as_echo "yes" >&6; }
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4380 $as_echo_n "checking for C compiler default output file name... " >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4382 $as_echo "$ac_file" >&6; }
4383 ac_exeext=$ac_cv_exeext
4384
4385 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4386 ac_clean_files=$ac_clean_files_save
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4388 $as_echo_n "checking for suffix of executables... " >&6; }
4389 if { { ac_try="$ac_link"
4390 case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395 $as_echo "$ac_try_echo"; } >&5
4396   (eval "$ac_link") 2>&5
4397   ac_status=$?
4398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399   test $ac_status = 0; }; then :
4400   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4401 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4402 # work properly (i.e., refer to `conftest.exe'), while it won't with
4403 # `rm'.
4404 for ac_file in conftest.exe conftest conftest.*; do
4405   test -f "$ac_file" || continue
4406   case $ac_file in
4407     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4408     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4409           break;;
4410     * ) break;;
4411   esac
4412 done
4413 else
4414   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4417 See \`config.log' for more details" "$LINENO" 5; }
4418 fi
4419 rm -f conftest conftest$ac_cv_exeext
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4421 $as_echo "$ac_cv_exeext" >&6; }
4422
4423 rm -f conftest.$ac_ext
4424 EXEEXT=$ac_cv_exeext
4425 ac_exeext=$EXEEXT
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h.  */
4428 #include <stdio.h>
4429 int
4430 main ()
4431 {
4432 FILE *f = fopen ("conftest.out", "w");
4433  return ferror (f) || fclose (f) != 0;
4434
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 ac_clean_files="$ac_clean_files conftest.out"
4440 # Check that the compiler produces executables we can run.  If not, either
4441 # the compiler is broken, or we cross compile.
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4443 $as_echo_n "checking whether we are cross compiling... " >&6; }
4444 if test "$cross_compiling" != yes; then
4445   { { ac_try="$ac_link"
4446 case "(($ac_try" in
4447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448   *) ac_try_echo=$ac_try;;
4449 esac
4450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451 $as_echo "$ac_try_echo"; } >&5
4452   (eval "$ac_link") 2>&5
4453   ac_status=$?
4454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455   test $ac_status = 0; }
4456   if { ac_try='./conftest$ac_cv_exeext'
4457   { { case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463   (eval "$ac_try") 2>&5
4464   ac_status=$?
4465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466   test $ac_status = 0; }; }; then
4467     cross_compiling=no
4468   else
4469     if test "$cross_compiling" = maybe; then
4470         cross_compiling=yes
4471     else
4472         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "cannot run C compiled programs.
4475 If you meant to cross compile, use \`--host'.
4476 See \`config.log' for more details" "$LINENO" 5; }
4477     fi
4478   fi
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4481 $as_echo "$cross_compiling" >&6; }
4482
4483 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4484 ac_clean_files=$ac_clean_files_save
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4486 $as_echo_n "checking for suffix of object files... " >&6; }
4487 if ${ac_cv_objext+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h.  */
4492
4493 int
4494 main ()
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.o conftest.obj
4502 if { { ac_try="$ac_compile"
4503 case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509   (eval "$ac_compile") 2>&5
4510   ac_status=$?
4511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512   test $ac_status = 0; }; then :
4513   for ac_file in conftest.o conftest.obj conftest.*; do
4514   test -f "$ac_file" || continue;
4515   case $ac_file in
4516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4518        break;;
4519   esac
4520 done
4521 else
4522   $as_echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $? "cannot compute suffix of object files: cannot compile
4528 See \`config.log' for more details" "$LINENO" 5; }
4529 fi
4530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4533 $as_echo "$ac_cv_objext" >&6; }
4534 OBJEXT=$ac_cv_objext
4535 ac_objext=$OBJEXT
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4538 if ${ac_cv_c_compiler_gnu+:} false; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543
4544 int
4545 main ()
4546 {
4547 #ifndef __GNUC__
4548        choke me
4549 #endif
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 if ac_fn_c_try_compile "$LINENO"; then :
4556   ac_compiler_gnu=yes
4557 else
4558   ac_compiler_gnu=no
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4562
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4566 if test $ac_compiler_gnu = yes; then
4567   GCC=yes
4568 else
4569   GCC=
4570 fi
4571 ac_test_CFLAGS=${CFLAGS+set}
4572 ac_save_CFLAGS=$CFLAGS
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4575 if ${ac_cv_prog_cc_g+:} false; then :
4576   $as_echo_n "(cached) " >&6
4577 else
4578   ac_save_c_werror_flag=$ac_c_werror_flag
4579    ac_c_werror_flag=yes
4580    ac_cv_prog_cc_g=no
4581    CFLAGS="-g"
4582    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h.  */
4584
4585 int
4586 main ()
4587 {
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594   ac_cv_prog_cc_g=yes
4595 else
4596   CFLAGS=""
4597       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599
4600 int
4601 main ()
4602 {
4603
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609
4610 else
4611   ac_c_werror_flag=$ac_save_c_werror_flag
4612          CFLAGS="-g"
4613          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h.  */
4615
4616 int
4617 main ()
4618 {
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 if ac_fn_c_try_compile "$LINENO"; then :
4625   ac_cv_prog_cc_g=yes
4626 fi
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 fi
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632    ac_c_werror_flag=$ac_save_c_werror_flag
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4635 $as_echo "$ac_cv_prog_cc_g" >&6; }
4636 if test "$ac_test_CFLAGS" = set; then
4637   CFLAGS=$ac_save_CFLAGS
4638 elif test $ac_cv_prog_cc_g = yes; then
4639   if test "$GCC" = yes; then
4640     CFLAGS="-g -O2"
4641   else
4642     CFLAGS="-g"
4643   fi
4644 else
4645   if test "$GCC" = yes; then
4646     CFLAGS="-O2"
4647   else
4648     CFLAGS=
4649   fi
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4653 if ${ac_cv_prog_cc_c89+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   ac_cv_prog_cc_c89=no
4657 ac_save_CC=$CC
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h.  */
4660 #include <stdarg.h>
4661 #include <stdio.h>
4662 struct stat;
4663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4664 struct buf { int x; };
4665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4666 static char *e (p, i)
4667      char **p;
4668      int i;
4669 {
4670   return p[i];
4671 }
4672 static char *f (char * (*g) (char **, int), char **p, ...)
4673 {
4674   char *s;
4675   va_list v;
4676   va_start (v,p);
4677   s = g (p, va_arg (v,int));
4678   va_end (v);
4679   return s;
4680 }
4681
4682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4683    function prototypes and stuff, but not '\xHH' hex character constants.
4684    These don't provoke an error unfortunately, instead are silently treated
4685    as 'x'.  The following induces an error, until -std is added to get
4686    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4687    array size at least.  It's necessary to write '\x00'==0 to get something
4688    that's true only with -std.  */
4689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4690
4691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4692    inside strings and character constants.  */
4693 #define FOO(x) 'x'
4694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4695
4696 int test (int i, double x);
4697 struct s1 {int (*f) (int a);};
4698 struct s2 {int (*f) (double a);};
4699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4700 int argc;
4701 char **argv;
4702 int
4703 main ()
4704 {
4705 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4711         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4712 do
4713   CC="$ac_save_CC $ac_arg"
4714   if ac_fn_c_try_compile "$LINENO"; then :
4715   ac_cv_prog_cc_c89=$ac_arg
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext
4718   test "x$ac_cv_prog_cc_c89" != "xno" && break
4719 done
4720 rm -f conftest.$ac_ext
4721 CC=$ac_save_CC
4722
4723 fi
4724 # AC_CACHE_VAL
4725 case "x$ac_cv_prog_cc_c89" in
4726   x)
4727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4728 $as_echo "none needed" >&6; } ;;
4729   xno)
4730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4731 $as_echo "unsupported" >&6; } ;;
4732   *)
4733     CC="$CC $ac_cv_prog_cc_c89"
4734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4736 esac
4737 if test "x$ac_cv_prog_cc_c89" != xno; then :
4738
4739 fi
4740
4741 ac_ext=c
4742 ac_cpp='$CPP $CPPFLAGS'
4743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746
4747 depcc="$CC"   am_compiler_list=
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4750 $as_echo_n "checking dependency style of $depcc... " >&6; }
4751 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4755   # We make a subdir and do the tests there.  Otherwise we can end up
4756   # making bogus files that we don't know about and never remove.  For
4757   # instance it was reported that on HP-UX the gcc test will end up
4758   # making a dummy file named `D' -- because `-MD' means `put the output
4759   # in D'.
4760   rm -rf conftest.dir
4761   mkdir conftest.dir
4762   # Copy depcomp to subdir because otherwise we won't find it if we're
4763   # using a relative directory.
4764   cp "$am_depcomp" conftest.dir
4765   cd conftest.dir
4766   # We will build objects and dependencies in a subdirectory because
4767   # it helps to detect inapplicable dependency modes.  For instance
4768   # both Tru64's cc and ICC support -MD to output dependencies as a
4769   # side effect of compilation, but ICC will put the dependencies in
4770   # the current directory while Tru64 will put them in the object
4771   # directory.
4772   mkdir sub
4773
4774   am_cv_CC_dependencies_compiler_type=none
4775   if test "$am_compiler_list" = ""; then
4776      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4777   fi
4778   am__universal=false
4779   case " $depcc " in #(
4780      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4781      esac
4782
4783   for depmode in $am_compiler_list; do
4784     # Setup a source with many dependencies, because some compilers
4785     # like to wrap large dependency lists on column 80 (with \), and
4786     # we should not choose a depcomp mode which is confused by this.
4787     #
4788     # We need to recreate these files for each test, as the compiler may
4789     # overwrite some of them when testing with obscure command lines.
4790     # This happens at least with the AIX C compiler.
4791     : > sub/conftest.c
4792     for i in 1 2 3 4 5 6; do
4793       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4794       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4795       # Solaris 8's {/usr,}/bin/sh.
4796       touch sub/conftst$i.h
4797     done
4798     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4799
4800     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4801     # mode.  It turns out that the SunPro C++ compiler does not properly
4802     # handle `-M -o', and we need to detect this.  Also, some Intel
4803     # versions had trouble with output in subdirs
4804     am__obj=sub/conftest.${OBJEXT-o}
4805     am__minus_obj="-o $am__obj"
4806     case $depmode in
4807     gcc)
4808       # This depmode causes a compiler race in universal mode.
4809       test "$am__universal" = false || continue
4810       ;;
4811     nosideeffect)
4812       # after this tag, mechanisms are not by side-effect, so they'll
4813       # only be used when explicitly requested
4814       if test "x$enable_dependency_tracking" = xyes; then
4815         continue
4816       else
4817         break
4818       fi
4819       ;;
4820     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4821       # This compiler won't grok `-c -o', but also, the minuso test has
4822       # not run yet.  These depmodes are late enough in the game, and
4823       # so weak that their functioning should not be impacted.
4824       am__obj=conftest.${OBJEXT-o}
4825       am__minus_obj=
4826       ;;
4827     none) break ;;
4828     esac
4829     if depmode=$depmode \
4830        source=sub/conftest.c object=$am__obj \
4831        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4832        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4833          >/dev/null 2>conftest.err &&
4834        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4835        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4836        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4837        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4838       # icc doesn't choke on unknown options, it will just issue warnings
4839       # or remarks (even with -Werror).  So we grep stderr for any message
4840       # that says an option was ignored or not supported.
4841       # When given -MP, icc 7.0 and 7.1 complain thusly:
4842       #   icc: Command line warning: ignoring option '-M'; no argument required
4843       # The diagnosis changed in icc 8.0:
4844       #   icc: Command line remark: option '-MP' not supported
4845       if (grep 'ignoring option' conftest.err ||
4846           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4847         am_cv_CC_dependencies_compiler_type=$depmode
4848         break
4849       fi
4850     fi
4851   done
4852
4853   cd ..
4854   rm -rf conftest.dir
4855 else
4856   am_cv_CC_dependencies_compiler_type=none
4857 fi
4858
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4863
4864  if
4865   test "x$enable_dependency_tracking" != xno \
4866   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4867   am__fastdepCC_TRUE=
4868   am__fastdepCC_FALSE='#'
4869 else
4870   am__fastdepCC_TRUE='#'
4871   am__fastdepCC_FALSE=
4872 fi
4873
4874
4875
4876 ac_ext=c
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4882 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4883 # On Suns, sometimes $CPP names a directory.
4884 if test -n "$CPP" && test -d "$CPP"; then
4885   CPP=
4886 fi
4887 if test -z "$CPP"; then
4888   if ${ac_cv_prog_CPP+:} false; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891       # Double quotes because CPP needs to be expanded
4892     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4893     do
4894       ac_preproc_ok=false
4895 for ac_c_preproc_warn_flag in '' yes
4896 do
4897   # Use a header file that comes with gcc, so configuring glibc
4898   # with a fresh cross-compiler works.
4899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900   # <limits.h> exists even on freestanding compilers.
4901   # On the NeXT, cc -E runs the code through the compiler's parser,
4902   # not just through cpp. "Syntax error" is here to catch this case.
4903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h.  */
4905 #ifdef __STDC__
4906 # include <limits.h>
4907 #else
4908 # include <assert.h>
4909 #endif
4910                      Syntax error
4911 _ACEOF
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4913
4914 else
4915   # Broken: fails on valid input.
4916 continue
4917 fi
4918 rm -f conftest.err conftest.i conftest.$ac_ext
4919
4920   # OK, works on sane cases.  Now check whether nonexistent headers
4921   # can be detected and how.
4922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h.  */
4924 #include <ac_nonexistent.h>
4925 _ACEOF
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4927   # Broken: success on invalid input.
4928 continue
4929 else
4930   # Passes both tests.
4931 ac_preproc_ok=:
4932 break
4933 fi
4934 rm -f conftest.err conftest.i conftest.$ac_ext
4935
4936 done
4937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938 rm -f conftest.i conftest.err conftest.$ac_ext
4939 if $ac_preproc_ok; then :
4940   break
4941 fi
4942
4943     done
4944     ac_cv_prog_CPP=$CPP
4945
4946 fi
4947   CPP=$ac_cv_prog_CPP
4948 else
4949   ac_cv_prog_CPP=$CPP
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4952 $as_echo "$CPP" >&6; }
4953 ac_preproc_ok=false
4954 for ac_c_preproc_warn_flag in '' yes
4955 do
4956   # Use a header file that comes with gcc, so configuring glibc
4957   # with a fresh cross-compiler works.
4958   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959   # <limits.h> exists even on freestanding compilers.
4960   # On the NeXT, cc -E runs the code through the compiler's parser,
4961   # not just through cpp. "Syntax error" is here to catch this case.
4962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h.  */
4964 #ifdef __STDC__
4965 # include <limits.h>
4966 #else
4967 # include <assert.h>
4968 #endif
4969                      Syntax error
4970 _ACEOF
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4972
4973 else
4974   # Broken: fails on valid input.
4975 continue
4976 fi
4977 rm -f conftest.err conftest.i conftest.$ac_ext
4978
4979   # OK, works on sane cases.  Now check whether nonexistent headers
4980   # can be detected and how.
4981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h.  */
4983 #include <ac_nonexistent.h>
4984 _ACEOF
4985 if ac_fn_c_try_cpp "$LINENO"; then :
4986   # Broken: success on invalid input.
4987 continue
4988 else
4989   # Passes both tests.
4990 ac_preproc_ok=:
4991 break
4992 fi
4993 rm -f conftest.err conftest.i conftest.$ac_ext
4994
4995 done
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.i conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then :
4999
5000 else
5001   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details" "$LINENO" 5; }
5005 fi
5006
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5016 if ${ac_cv_path_GREP+:} false; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   if test -z "$GREP"; then
5020   ac_path_GREP_found=false
5021   # Loop through the user's path and test for each of PROGNAME-LIST
5022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027     for ac_prog in grep ggrep; do
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5030       as_fn_executable_p "$ac_path_GREP" || continue
5031 # Check for GNU ac_path_GREP and select it if it is found.
5032   # Check for GNU $ac_path_GREP
5033 case `"$ac_path_GREP" --version 2>&1` in
5034 *GNU*)
5035   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5036 *)
5037   ac_count=0
5038   $as_echo_n 0123456789 >"conftest.in"
5039   while :
5040   do
5041     cat "conftest.in" "conftest.in" >"conftest.tmp"
5042     mv "conftest.tmp" "conftest.in"
5043     cp "conftest.in" "conftest.nl"
5044     $as_echo 'GREP' >> "conftest.nl"
5045     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047     as_fn_arith $ac_count + 1 && ac_count=$as_val
5048     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5049       # Best one so far, save it but keep looking for a better one
5050       ac_cv_path_GREP="$ac_path_GREP"
5051       ac_path_GREP_max=$ac_count
5052     fi
5053     # 10*(2^10) chars as input seems more than enough
5054     test $ac_count -gt 10 && break
5055   done
5056   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057 esac
5058
5059       $ac_path_GREP_found && break 3
5060     done
5061   done
5062   done
5063 IFS=$as_save_IFS
5064   if test -z "$ac_cv_path_GREP"; then
5065     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5066   fi
5067 else
5068   ac_cv_path_GREP=$GREP
5069 fi
5070
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5073 $as_echo "$ac_cv_path_GREP" >&6; }
5074  GREP="$ac_cv_path_GREP"
5075
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5078 $as_echo_n "checking for egrep... " >&6; }
5079 if ${ac_cv_path_EGREP+:} false; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5083    then ac_cv_path_EGREP="$GREP -E"
5084    else
5085      if test -z "$EGREP"; then
5086   ac_path_EGREP_found=false
5087   # Loop through the user's path and test for each of PROGNAME-LIST
5088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093     for ac_prog in egrep; do
5094     for ac_exec_ext in '' $ac_executable_extensions; do
5095       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5096       as_fn_executable_p "$ac_path_EGREP" || continue
5097 # Check for GNU ac_path_EGREP and select it if it is found.
5098   # Check for GNU $ac_path_EGREP
5099 case `"$ac_path_EGREP" --version 2>&1` in
5100 *GNU*)
5101   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5102 *)
5103   ac_count=0
5104   $as_echo_n 0123456789 >"conftest.in"
5105   while :
5106   do
5107     cat "conftest.in" "conftest.in" >"conftest.tmp"
5108     mv "conftest.tmp" "conftest.in"
5109     cp "conftest.in" "conftest.nl"
5110     $as_echo 'EGREP' >> "conftest.nl"
5111     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113     as_fn_arith $ac_count + 1 && ac_count=$as_val
5114     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5115       # Best one so far, save it but keep looking for a better one
5116       ac_cv_path_EGREP="$ac_path_EGREP"
5117       ac_path_EGREP_max=$ac_count
5118     fi
5119     # 10*(2^10) chars as input seems more than enough
5120     test $ac_count -gt 10 && break
5121   done
5122   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 esac
5124
5125       $ac_path_EGREP_found && break 3
5126     done
5127   done
5128   done
5129 IFS=$as_save_IFS
5130   if test -z "$ac_cv_path_EGREP"; then
5131     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5132   fi
5133 else
5134   ac_cv_path_EGREP=$EGREP
5135 fi
5136
5137    fi
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5140 $as_echo "$ac_cv_path_EGREP" >&6; }
5141  EGREP="$ac_cv_path_EGREP"
5142
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5145 $as_echo_n "checking for ANSI C header files... " >&6; }
5146 if ${ac_cv_header_stdc+:} false; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h.  */
5151 #include <stdlib.h>
5152 #include <stdarg.h>
5153 #include <string.h>
5154 #include <float.h>
5155
5156 int
5157 main ()
5158 {
5159
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165   ac_cv_header_stdc=yes
5166 else
5167   ac_cv_header_stdc=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170
5171 if test $ac_cv_header_stdc = yes; then
5172   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h.  */
5175 #include <string.h>
5176
5177 _ACEOF
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179   $EGREP "memchr" >/dev/null 2>&1; then :
5180
5181 else
5182   ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest*
5185
5186 fi
5187
5188 if test $ac_cv_header_stdc = yes; then
5189   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h.  */
5192 #include <stdlib.h>
5193
5194 _ACEOF
5195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196   $EGREP "free" >/dev/null 2>&1; then :
5197
5198 else
5199   ac_cv_header_stdc=no
5200 fi
5201 rm -f conftest*
5202
5203 fi
5204
5205 if test $ac_cv_header_stdc = yes; then
5206   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5207   if test "$cross_compiling" = yes; then :
5208   :
5209 else
5210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h.  */
5212 #include <ctype.h>
5213 #include <stdlib.h>
5214 #if ((' ' & 0x0FF) == 0x020)
5215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5217 #else
5218 # define ISLOWER(c) \
5219                    (('a' <= (c) && (c) <= 'i') \
5220                      || ('j' <= (c) && (c) <= 'r') \
5221                      || ('s' <= (c) && (c) <= 'z'))
5222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5223 #endif
5224
5225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5226 int
5227 main ()
5228 {
5229   int i;
5230   for (i = 0; i < 256; i++)
5231     if (XOR (islower (i), ISLOWER (i))
5232         || toupper (i) != TOUPPER (i))
5233       return 2;
5234   return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_c_try_run "$LINENO"; then :
5238
5239 else
5240   ac_cv_header_stdc=no
5241 fi
5242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5243   conftest.$ac_objext conftest.beam conftest.$ac_ext
5244 fi
5245
5246 fi
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5249 $as_echo "$ac_cv_header_stdc" >&6; }
5250 if test $ac_cv_header_stdc = yes; then
5251
5252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5253
5254 fi
5255
5256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5258                   inttypes.h stdint.h unistd.h
5259 do :
5260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5262 "
5263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5264   cat >>confdefs.h <<_ACEOF
5265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 _ACEOF
5267
5268 fi
5269
5270 done
5271
5272
5273
5274
5275
5276   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5277 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5278   MINIX=yes
5279 else
5280   MINIX=
5281 fi
5282
5283
5284   if test "$MINIX" = yes; then
5285
5286 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5287
5288
5289 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5290
5291
5292 $as_echo "#define _MINIX 1" >>confdefs.h
5293
5294   fi
5295
5296         case "$host_os" in
5297     hpux*)
5298
5299 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5300
5301       ;;
5302   esac
5303
5304
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5306 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5307 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h.  */
5312
5313 #         define __EXTENSIONS__ 1
5314           $ac_includes_default
5315 int
5316 main ()
5317 {
5318
5319   ;
5320   return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324   ac_cv_safe_to_define___extensions__=yes
5325 else
5326   ac_cv_safe_to_define___extensions__=no
5327 fi
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5331 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5332   test $ac_cv_safe_to_define___extensions__ = yes &&
5333     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5334
5335   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5336
5337   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5338
5339   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5340
5341   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5342
5343   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5344
5345
5346
5347 if test -n "$ac_tool_prefix"; then
5348   for ac_prog in ar lib "link -lib"
5349   do
5350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_AR+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   if test -n "$AR"; then
5358   ac_cv_prog_AR="$AR" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_exec_ext in '' $ac_executable_extensions; do
5366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372   done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 AR=$ac_cv_prog_AR
5378 if test -n "$AR"; then
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5380 $as_echo "$AR" >&6; }
5381 else
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386
5387     test -n "$AR" && break
5388   done
5389 fi
5390 if test -z "$AR"; then
5391   ac_ct_AR=$AR
5392   for ac_prog in ar lib "link -lib"
5393 do
5394   # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test -n "$ac_ct_AR"; then
5402   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409     for ac_exec_ext in '' $ac_executable_extensions; do
5410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411     ac_cv_prog_ac_ct_AR="$ac_prog"
5412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416   done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5422 if test -n "$ac_ct_AR"; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5424 $as_echo "$ac_ct_AR" >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431   test -n "$ac_ct_AR" && break
5432 done
5433
5434   if test "x$ac_ct_AR" = x; then
5435     AR="false"
5436   else
5437     case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5442 esac
5443     AR=$ac_ct_AR
5444   fi
5445 fi
5446
5447 : ${AR=ar}
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5450 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5451 if ${am_cv_ar_interface+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454   am_cv_ar_interface=ar
5455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h.  */
5457 int some_variable = 0;
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5461       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5462   (eval $am_ar_try) 2>&5
5463   ac_status=$?
5464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465   test $ac_status = 0; }
5466       if test "$ac_status" -eq 0; then
5467         am_cv_ar_interface=ar
5468       else
5469         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5470         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5471   (eval $am_ar_try) 2>&5
5472   ac_status=$?
5473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5474   test $ac_status = 0; }
5475         if test "$ac_status" -eq 0; then
5476           am_cv_ar_interface=lib
5477         else
5478           am_cv_ar_interface=unknown
5479         fi
5480       fi
5481       rm -f conftest.lib libconftest.a
5482
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5488 $as_echo "$am_cv_ar_interface" >&6; }
5489
5490 case $am_cv_ar_interface in
5491 ar)
5492   ;;
5493 lib)
5494   # Microsoft lib, so override with the ar-lib wrapper script.
5495   # FIXME: It is wrong to rewrite AR.
5496   # But if we don't then we get into trouble of one sort or another.
5497   # A longer-term fix would be to have automake use am__AR in this case,
5498   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5499   # similar.
5500   AR="$am_aux_dir/ar-lib $AR"
5501   ;;
5502 unknown)
5503   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5504   ;;
5505 esac
5506
5507 case `pwd` in
5508   *\ * | *\     *)
5509     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5510 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5511 esac
5512
5513
5514
5515 macro_version='2.4.2'
5516 macro_revision='1.3337'
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 ltmain="$ac_aux_dir/ltmain.sh"
5531
5532 # Backslashify metacharacters that are still active within
5533 # double-quoted strings.
5534 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5535
5536 # Same as above, but do not quote variable references.
5537 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5538
5539 # Sed substitution to delay expansion of an escaped shell variable in a
5540 # double_quote_subst'ed string.
5541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5542
5543 # Sed substitution to delay expansion of an escaped single quote.
5544 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5545
5546 # Sed substitution to avoid accidental globbing in evaled expressions
5547 no_glob_subst='s/\*/\\\*/g'
5548
5549 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5551 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5554 $as_echo_n "checking how to print strings... " >&6; }
5555 # Test print first, because it will be a builtin if present.
5556 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5557    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5558   ECHO='print -r --'
5559 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5560   ECHO='printf %s\n'
5561 else
5562   # Use this function as a fallback that always works.
5563   func_fallback_echo ()
5564   {
5565     eval 'cat <<_LTECHO_EOF
5566 $1
5567 _LTECHO_EOF'
5568   }
5569   ECHO='func_fallback_echo'
5570 fi
5571
5572 # func_echo_all arg...
5573 # Invoke $ECHO with all args, space-separated.
5574 func_echo_all ()
5575 {
5576     $ECHO ""
5577 }
5578
5579 case "$ECHO" in
5580   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5581 $as_echo "printf" >&6; } ;;
5582   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5583 $as_echo "print -r" >&6; } ;;
5584   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5585 $as_echo "cat" >&6; } ;;
5586 esac
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5602 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5603 if ${ac_cv_path_SED+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5607      for ac_i in 1 2 3 4 5 6 7; do
5608        ac_script="$ac_script$as_nl$ac_script"
5609      done
5610      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5611      { ac_script=; unset ac_script;}
5612      if test -z "$SED"; then
5613   ac_path_SED_found=false
5614   # Loop through the user's path and test for each of PROGNAME-LIST
5615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620     for ac_prog in sed gsed; do
5621     for ac_exec_ext in '' $ac_executable_extensions; do
5622       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5623       as_fn_executable_p "$ac_path_SED" || continue
5624 # Check for GNU ac_path_SED and select it if it is found.
5625   # Check for GNU $ac_path_SED
5626 case `"$ac_path_SED" --version 2>&1` in
5627 *GNU*)
5628   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5629 *)
5630   ac_count=0
5631   $as_echo_n 0123456789 >"conftest.in"
5632   while :
5633   do
5634     cat "conftest.in" "conftest.in" >"conftest.tmp"
5635     mv "conftest.tmp" "conftest.in"
5636     cp "conftest.in" "conftest.nl"
5637     $as_echo '' >> "conftest.nl"
5638     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5639     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5640     as_fn_arith $ac_count + 1 && ac_count=$as_val
5641     if test $ac_count -gt ${ac_path_SED_max-0}; then
5642       # Best one so far, save it but keep looking for a better one
5643       ac_cv_path_SED="$ac_path_SED"
5644       ac_path_SED_max=$ac_count
5645     fi
5646     # 10*(2^10) chars as input seems more than enough
5647     test $ac_count -gt 10 && break
5648   done
5649   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5650 esac
5651
5652       $ac_path_SED_found && break 3
5653     done
5654   done
5655   done
5656 IFS=$as_save_IFS
5657   if test -z "$ac_cv_path_SED"; then
5658     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5659   fi
5660 else
5661   ac_cv_path_SED=$SED
5662 fi
5663
5664 fi
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5666 $as_echo "$ac_cv_path_SED" >&6; }
5667  SED="$ac_cv_path_SED"
5668   rm -f conftest.sed
5669
5670 test -z "$SED" && SED=sed
5671 Xsed="$SED -e 1s/^X//"
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5684 $as_echo_n "checking for fgrep... " >&6; }
5685 if ${ac_cv_path_FGREP+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5689    then ac_cv_path_FGREP="$GREP -F"
5690    else
5691      if test -z "$FGREP"; then
5692   ac_path_FGREP_found=false
5693   # Loop through the user's path and test for each of PROGNAME-LIST
5694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699     for ac_prog in fgrep; do
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5702       as_fn_executable_p "$ac_path_FGREP" || continue
5703 # Check for GNU ac_path_FGREP and select it if it is found.
5704   # Check for GNU $ac_path_FGREP
5705 case `"$ac_path_FGREP" --version 2>&1` in
5706 *GNU*)
5707   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5708 *)
5709   ac_count=0
5710   $as_echo_n 0123456789 >"conftest.in"
5711   while :
5712   do
5713     cat "conftest.in" "conftest.in" >"conftest.tmp"
5714     mv "conftest.tmp" "conftest.in"
5715     cp "conftest.in" "conftest.nl"
5716     $as_echo 'FGREP' >> "conftest.nl"
5717     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5718     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5719     as_fn_arith $ac_count + 1 && ac_count=$as_val
5720     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5721       # Best one so far, save it but keep looking for a better one
5722       ac_cv_path_FGREP="$ac_path_FGREP"
5723       ac_path_FGREP_max=$ac_count
5724     fi
5725     # 10*(2^10) chars as input seems more than enough
5726     test $ac_count -gt 10 && break
5727   done
5728   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5729 esac
5730
5731       $ac_path_FGREP_found && break 3
5732     done
5733   done
5734   done
5735 IFS=$as_save_IFS
5736   if test -z "$ac_cv_path_FGREP"; then
5737     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5738   fi
5739 else
5740   ac_cv_path_FGREP=$FGREP
5741 fi
5742
5743    fi
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5746 $as_echo "$ac_cv_path_FGREP" >&6; }
5747  FGREP="$ac_cv_path_FGREP"
5748
5749
5750 test -z "$GREP" && GREP=grep
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770 # Check whether --with-gnu-ld was given.
5771 if test "${with_gnu_ld+set}" = set; then :
5772   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5773 else
5774   with_gnu_ld=no
5775 fi
5776
5777 ac_prog=ld
5778 if test "$GCC" = yes; then
5779   # Check if gcc -print-prog-name=ld gives a path.
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5781 $as_echo_n "checking for ld used by $CC... " >&6; }
5782   case $host in
5783   *-*-mingw*)
5784     # gcc leaves a trailing carriage return which upsets mingw
5785     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5786   *)
5787     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5788   esac
5789   case $ac_prog in
5790     # Accept absolute paths.
5791     [\\/]* | ?:[\\/]*)
5792       re_direlt='/[^/][^/]*/\.\./'
5793       # Canonicalize the pathname of ld
5794       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5795       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5796         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5797       done
5798       test -z "$LD" && LD="$ac_prog"
5799       ;;
5800   "")
5801     # If it fails, then pretend we aren't using GCC.
5802     ac_prog=ld
5803     ;;
5804   *)
5805     # If it is relative, then search for the first ld in PATH.
5806     with_gnu_ld=unknown
5807     ;;
5808   esac
5809 elif test "$with_gnu_ld" = yes; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5811 $as_echo_n "checking for GNU ld... " >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5814 $as_echo_n "checking for non-GNU ld... " >&6; }
5815 fi
5816 if ${lt_cv_path_LD+:} false; then :
5817   $as_echo_n "(cached) " >&6
5818 else
5819   if test -z "$LD"; then
5820   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5821   for ac_dir in $PATH; do
5822     IFS="$lt_save_ifs"
5823     test -z "$ac_dir" && ac_dir=.
5824     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5825       lt_cv_path_LD="$ac_dir/$ac_prog"
5826       # Check to see if the program is GNU ld.  I'd rather use --version,
5827       # but apparently some variants of GNU ld only accept -v.
5828       # Break only if it was the GNU/non-GNU ld that we prefer.
5829       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5830       *GNU* | *'with BFD'*)
5831         test "$with_gnu_ld" != no && break
5832         ;;
5833       *)
5834         test "$with_gnu_ld" != yes && break
5835         ;;
5836       esac
5837     fi
5838   done
5839   IFS="$lt_save_ifs"
5840 else
5841   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5842 fi
5843 fi
5844
5845 LD="$lt_cv_path_LD"
5846 if test -n "$LD"; then
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5848 $as_echo "$LD" >&6; }
5849 else
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5856 if ${lt_cv_prog_gnu_ld+:} false; then :
5857   $as_echo_n "(cached) " >&6
5858 else
5859   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5860 case `$LD -v 2>&1 </dev/null` in
5861 *GNU* | *'with BFD'*)
5862   lt_cv_prog_gnu_ld=yes
5863   ;;
5864 *)
5865   lt_cv_prog_gnu_ld=no
5866   ;;
5867 esac
5868 fi
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5870 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5871 with_gnu_ld=$lt_cv_prog_gnu_ld
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5882 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5883 if ${lt_cv_path_NM+:} false; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if test -n "$NM"; then
5887   # Let the user override the test.
5888   lt_cv_path_NM="$NM"
5889 else
5890   lt_nm_to_check="${ac_tool_prefix}nm"
5891   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5892     lt_nm_to_check="$lt_nm_to_check nm"
5893   fi
5894   for lt_tmp_nm in $lt_nm_to_check; do
5895     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5896     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5897       IFS="$lt_save_ifs"
5898       test -z "$ac_dir" && ac_dir=.
5899       tmp_nm="$ac_dir/$lt_tmp_nm"
5900       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5901         # Check to see if the nm accepts a BSD-compat flag.
5902         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5903         #   nm: unknown option "B" ignored
5904         # Tru64's nm complains that /dev/null is an invalid object file
5905         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5906         */dev/null* | *'Invalid file or object type'*)
5907           lt_cv_path_NM="$tmp_nm -B"
5908           break
5909           ;;
5910         *)
5911           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5912           */dev/null*)
5913             lt_cv_path_NM="$tmp_nm -p"
5914             break
5915             ;;
5916           *)
5917             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5918             continue # so that we can try to find one that supports BSD flags
5919             ;;
5920           esac
5921           ;;
5922         esac
5923       fi
5924     done
5925     IFS="$lt_save_ifs"
5926   done
5927   : ${lt_cv_path_NM=no}
5928 fi
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5931 $as_echo "$lt_cv_path_NM" >&6; }
5932 if test "$lt_cv_path_NM" != "no"; then
5933   NM="$lt_cv_path_NM"
5934 else
5935   # Didn't find any BSD compatible name lister, look for dumpbin.
5936   if test -n "$DUMPBIN"; then :
5937     # Let the user override the test.
5938   else
5939     if test -n "$ac_tool_prefix"; then
5940   for ac_prog in dumpbin "link -dump"
5941   do
5942     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_DUMPBIN+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   if test -n "$DUMPBIN"; then
5950   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957     for ac_exec_ext in '' $ac_executable_extensions; do
5958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964   done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 DUMPBIN=$ac_cv_prog_DUMPBIN
5970 if test -n "$DUMPBIN"; then
5971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5972 $as_echo "$DUMPBIN" >&6; }
5973 else
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978
5979     test -n "$DUMPBIN" && break
5980   done
5981 fi
5982 if test -z "$DUMPBIN"; then
5983   ac_ct_DUMPBIN=$DUMPBIN
5984   for ac_prog in dumpbin "link -dump"
5985 do
5986   # Extract the first word of "$ac_prog", so it can be a program name with args.
5987 set dummy $ac_prog; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5991   $as_echo_n "(cached) " >&6
5992 else
5993   if test -n "$ac_ct_DUMPBIN"; then
5994   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001     for ac_exec_ext in '' $ac_executable_extensions; do
6002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008   done
6009 IFS=$as_save_IFS
6010
6011 fi
6012 fi
6013 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6014 if test -n "$ac_ct_DUMPBIN"; then
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6016 $as_echo "$ac_ct_DUMPBIN" >&6; }
6017 else
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6020 fi
6021
6022
6023   test -n "$ac_ct_DUMPBIN" && break
6024 done
6025
6026   if test "x$ac_ct_DUMPBIN" = x; then
6027     DUMPBIN=":"
6028   else
6029     case $cross_compiling:$ac_tool_warned in
6030 yes:)
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6033 ac_tool_warned=yes ;;
6034 esac
6035     DUMPBIN=$ac_ct_DUMPBIN
6036   fi
6037 fi
6038
6039     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6040     *COFF*)
6041       DUMPBIN="$DUMPBIN -symbols"
6042       ;;
6043     *)
6044       DUMPBIN=:
6045       ;;
6046     esac
6047   fi
6048
6049   if test "$DUMPBIN" != ":"; then
6050     NM="$DUMPBIN"
6051   fi
6052 fi
6053 test -z "$NM" && NM=nm
6054
6055
6056
6057
6058
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6061 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6062 if ${lt_cv_nm_interface+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   lt_cv_nm_interface="BSD nm"
6066   echo "int some_variable = 0;" > conftest.$ac_ext
6067   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6068   (eval "$ac_compile" 2>conftest.err)
6069   cat conftest.err >&5
6070   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6071   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6072   cat conftest.err >&5
6073   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6074   cat conftest.out >&5
6075   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6076     lt_cv_nm_interface="MS dumpbin"
6077   fi
6078   rm -f conftest*
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6081 $as_echo "$lt_cv_nm_interface" >&6; }
6082
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6084 $as_echo_n "checking whether ln -s works... " >&6; }
6085 LN_S=$as_ln_s
6086 if test "$LN_S" = "ln -s"; then
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6088 $as_echo "yes" >&6; }
6089 else
6090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6091 $as_echo "no, using $LN_S" >&6; }
6092 fi
6093
6094 # find the maximum length of command line arguments
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6096 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6097 if ${lt_cv_sys_max_cmd_len+:} false; then :
6098   $as_echo_n "(cached) " >&6
6099 else
6100     i=0
6101   teststring="ABCD"
6102
6103   case $build_os in
6104   msdosdjgpp*)
6105     # On DJGPP, this test can blow up pretty badly due to problems in libc
6106     # (any single argument exceeding 2000 bytes causes a buffer overrun
6107     # during glob expansion).  Even if it were fixed, the result of this
6108     # check would be larger than it should be.
6109     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6110     ;;
6111
6112   gnu*)
6113     # Under GNU Hurd, this test is not required because there is
6114     # no limit to the length of command line arguments.
6115     # Libtool will interpret -1 as no limit whatsoever
6116     lt_cv_sys_max_cmd_len=-1;
6117     ;;
6118
6119   cygwin* | mingw* | cegcc*)
6120     # On Win9x/ME, this test blows up -- it succeeds, but takes
6121     # about 5 minutes as the teststring grows exponentially.
6122     # Worse, since 9x/ME are not pre-emptively multitasking,
6123     # you end up with a "frozen" computer, even though with patience
6124     # the test eventually succeeds (with a max line length of 256k).
6125     # Instead, let's just punt: use the minimum linelength reported by
6126     # all of the supported platforms: 8192 (on NT/2K/XP).
6127     lt_cv_sys_max_cmd_len=8192;
6128     ;;
6129
6130   mint*)
6131     # On MiNT this can take a long time and run out of memory.
6132     lt_cv_sys_max_cmd_len=8192;
6133     ;;
6134
6135   amigaos*)
6136     # On AmigaOS with pdksh, this test takes hours, literally.
6137     # So we just punt and use a minimum line length of 8192.
6138     lt_cv_sys_max_cmd_len=8192;
6139     ;;
6140
6141   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6142     # This has been around since 386BSD, at least.  Likely further.
6143     if test -x /sbin/sysctl; then
6144       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6145     elif test -x /usr/sbin/sysctl; then
6146       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6147     else
6148       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6149     fi
6150     # And add a safety zone
6151     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6152     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6153     ;;
6154
6155   interix*)
6156     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6157     lt_cv_sys_max_cmd_len=196608
6158     ;;
6159
6160   os2*)
6161     # The test takes a long time on OS/2.
6162     lt_cv_sys_max_cmd_len=8192
6163     ;;
6164
6165   osf*)
6166     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6167     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6168     # nice to cause kernel panics so lets avoid the loop below.
6169     # First set a reasonable default.
6170     lt_cv_sys_max_cmd_len=16384
6171     #
6172     if test -x /sbin/sysconfig; then
6173       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6174         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6175       esac
6176     fi
6177     ;;
6178   sco3.2v5*)
6179     lt_cv_sys_max_cmd_len=102400
6180     ;;
6181   sysv5* | sco5v6* | sysv4.2uw2*)
6182     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6183     if test -n "$kargmax"; then
6184       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6185     else
6186       lt_cv_sys_max_cmd_len=32768
6187     fi
6188     ;;
6189   *)
6190     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6191     if test -n "$lt_cv_sys_max_cmd_len" && \
6192         test undefined != "$lt_cv_sys_max_cmd_len"; then
6193       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6195     else
6196       # Make teststring a little bigger before we do anything with it.
6197       # a 1K string should be a reasonable start.
6198       for i in 1 2 3 4 5 6 7 8 ; do
6199         teststring=$teststring$teststring
6200       done
6201       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6202       # If test is not a shell built-in, we'll probably end up computing a
6203       # maximum length that is only half of the actual maximum length, but
6204       # we can't tell.
6205       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6206                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6207               test $i != 17 # 1/2 MB should be enough
6208       do
6209         i=`expr $i + 1`
6210         teststring=$teststring$teststring
6211       done
6212       # Only check the string length outside the loop.
6213       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6214       teststring=
6215       # Add a significant safety factor because C++ compilers can tack on
6216       # massive amounts of additional arguments before passing them to the
6217       # linker.  It appears as though 1/2 is a usable value.
6218       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6219     fi
6220     ;;
6221   esac
6222
6223 fi
6224
6225 if test -n $lt_cv_sys_max_cmd_len ; then
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6227 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6228 else
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6230 $as_echo "none" >&6; }
6231 fi
6232 max_cmd_len=$lt_cv_sys_max_cmd_len
6233
6234
6235
6236
6237
6238
6239 : ${CP="cp -f"}
6240 : ${MV="mv -f"}
6241 : ${RM="rm -f"}
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6244 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6245 # Try some XSI features
6246 xsi_shell=no
6247 ( _lt_dummy="a/b/c"
6248   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6249       = c,a/b,b/c, \
6250     && eval 'test $(( 1 + 1 )) -eq 2 \
6251     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6252   && xsi_shell=yes
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6254 $as_echo "$xsi_shell" >&6; }
6255
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6258 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6259 lt_shell_append=no
6260 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6261     >/dev/null 2>&1 \
6262   && lt_shell_append=yes
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6264 $as_echo "$lt_shell_append" >&6; }
6265
6266
6267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6268   lt_unset=unset
6269 else
6270   lt_unset=false
6271 fi
6272
6273
6274
6275
6276
6277 # test EBCDIC or ASCII
6278 case `echo X|tr X '\101'` in
6279  A) # ASCII based system
6280     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6281   lt_SP2NL='tr \040 \012'
6282   lt_NL2SP='tr \015\012 \040\040'
6283   ;;
6284  *) # EBCDIC based system
6285   lt_SP2NL='tr \100 \n'
6286   lt_NL2SP='tr \r\n \100\100'
6287   ;;
6288 esac
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6299 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6300 if ${lt_cv_to_host_file_cmd+:} false; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303   case $host in
6304   *-*-mingw* )
6305     case $build in
6306       *-*-mingw* ) # actually msys
6307         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6308         ;;
6309       *-*-cygwin* )
6310         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6311         ;;
6312       * ) # otherwise, assume *nix
6313         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6314         ;;
6315     esac
6316     ;;
6317   *-*-cygwin* )
6318     case $build in
6319       *-*-mingw* ) # actually msys
6320         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6321         ;;
6322       *-*-cygwin* )
6323         lt_cv_to_host_file_cmd=func_convert_file_noop
6324         ;;
6325       * ) # otherwise, assume *nix
6326         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6327         ;;
6328     esac
6329     ;;
6330   * ) # unhandled hosts (and "normal" native builds)
6331     lt_cv_to_host_file_cmd=func_convert_file_noop
6332     ;;
6333 esac
6334
6335 fi
6336
6337 to_host_file_cmd=$lt_cv_to_host_file_cmd
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6339 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6340
6341
6342
6343
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6346 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6347 if ${lt_cv_to_tool_file_cmd+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   #assume ordinary cross tools, or native build.
6351 lt_cv_to_tool_file_cmd=func_convert_file_noop
6352 case $host in
6353   *-*-mingw* )
6354     case $build in
6355       *-*-mingw* ) # actually msys
6356         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6357         ;;
6358     esac
6359     ;;
6360 esac
6361
6362 fi
6363
6364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6366 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6367
6368
6369
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6373 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6374 if ${lt_cv_ld_reload_flag+:} false; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   lt_cv_ld_reload_flag='-r'
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6380 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6381 reload_flag=$lt_cv_ld_reload_flag
6382 case $reload_flag in
6383 "" | " "*) ;;
6384 *) reload_flag=" $reload_flag" ;;
6385 esac
6386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6387 case $host_os in
6388   cygwin* | mingw* | pw32* | cegcc*)
6389     if test "$GCC" != yes; then
6390       reload_cmds=false
6391     fi
6392     ;;
6393   darwin*)
6394     if test "$GCC" = yes; then
6395       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6396     else
6397       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6398     fi
6399     ;;
6400 esac
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 if test -n "$ac_tool_prefix"; then
6411   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_OBJDUMP+:} false; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   if test -n "$OBJDUMP"; then
6419   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426     for ac_exec_ext in '' $ac_executable_extensions; do
6427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433   done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 OBJDUMP=$ac_cv_prog_OBJDUMP
6439 if test -n "$OBJDUMP"; then
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6441 $as_echo "$OBJDUMP" >&6; }
6442 else
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447
6448 fi
6449 if test -z "$ac_cv_prog_OBJDUMP"; then
6450   ac_ct_OBJDUMP=$OBJDUMP
6451   # Extract the first word of "objdump", so it can be a program name with args.
6452 set dummy objdump; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   if test -n "$ac_ct_OBJDUMP"; then
6459   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464   IFS=$as_save_IFS
6465   test -z "$as_dir" && as_dir=.
6466     for ac_exec_ext in '' $ac_executable_extensions; do
6467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470     break 2
6471   fi
6472 done
6473   done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6479 if test -n "$ac_ct_OBJDUMP"; then
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6481 $as_echo "$ac_ct_OBJDUMP" >&6; }
6482 else
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487   if test "x$ac_ct_OBJDUMP" = x; then
6488     OBJDUMP="false"
6489   else
6490     case $cross_compiling:$ac_tool_warned in
6491 yes:)
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494 ac_tool_warned=yes ;;
6495 esac
6496     OBJDUMP=$ac_ct_OBJDUMP
6497   fi
6498 else
6499   OBJDUMP="$ac_cv_prog_OBJDUMP"
6500 fi
6501
6502 test -z "$OBJDUMP" && OBJDUMP=objdump
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6513 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6514 if ${lt_cv_deplibs_check_method+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   lt_cv_file_magic_cmd='$MAGIC_CMD'
6518 lt_cv_file_magic_test_file=
6519 lt_cv_deplibs_check_method='unknown'
6520 # Need to set the preceding variable on all platforms that support
6521 # interlibrary dependencies.
6522 # 'none' -- dependencies not supported.
6523 # `unknown' -- same as none, but documents that we really don't know.
6524 # 'pass_all' -- all dependencies passed with no checks.
6525 # 'test_compile' -- check by making test program.
6526 # 'file_magic [[regex]]' -- check by looking for files in library path
6527 # which responds to the $file_magic_cmd with a given extended regex.
6528 # If you have `file' or equivalent on your system and you're not sure
6529 # whether `pass_all' will *always* work, you probably want this one.
6530
6531 case $host_os in
6532 aix[4-9]*)
6533   lt_cv_deplibs_check_method=pass_all
6534   ;;
6535
6536 beos*)
6537   lt_cv_deplibs_check_method=pass_all
6538   ;;
6539
6540 bsdi[45]*)
6541   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6542   lt_cv_file_magic_cmd='/usr/bin/file -L'
6543   lt_cv_file_magic_test_file=/shlib/libc.so
6544   ;;
6545
6546 cygwin*)
6547   # func_win32_libid is a shell function defined in ltmain.sh
6548   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6549   lt_cv_file_magic_cmd='func_win32_libid'
6550   ;;
6551
6552 mingw* | pw32*)
6553   # Base MSYS/MinGW do not provide the 'file' command needed by
6554   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6555   # unless we find 'file', for example because we are cross-compiling.
6556   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6557   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6558     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6559     lt_cv_file_magic_cmd='func_win32_libid'
6560   else
6561     # Keep this pattern in sync with the one in func_win32_libid.
6562     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6563     lt_cv_file_magic_cmd='$OBJDUMP -f'
6564   fi
6565   ;;
6566
6567 cegcc*)
6568   # use the weaker test based on 'objdump'. See mingw*.
6569   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6570   lt_cv_file_magic_cmd='$OBJDUMP -f'
6571   ;;
6572
6573 darwin* | rhapsody*)
6574   lt_cv_deplibs_check_method=pass_all
6575   ;;
6576
6577 freebsd* | dragonfly*)
6578   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6579     case $host_cpu in
6580     i*86 )
6581       # Not sure whether the presence of OpenBSD here was a mistake.
6582       # Let's accept both of them until this is cleared up.
6583       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6584       lt_cv_file_magic_cmd=/usr/bin/file
6585       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6586       ;;
6587     esac
6588   else
6589     lt_cv_deplibs_check_method=pass_all
6590   fi
6591   ;;
6592
6593 haiku*)
6594   lt_cv_deplibs_check_method=pass_all
6595   ;;
6596
6597 hpux10.20* | hpux11*)
6598   lt_cv_file_magic_cmd=/usr/bin/file
6599   case $host_cpu in
6600   ia64*)
6601     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6602     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6603     ;;
6604   hppa*64*)
6605     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]'
6606     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6607     ;;
6608   *)
6609     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6610     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6611     ;;
6612   esac
6613   ;;
6614
6615 interix[3-9]*)
6616   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6617   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6618   ;;
6619
6620 irix5* | irix6* | nonstopux*)
6621   case $LD in
6622   *-32|*"-32 ") libmagic=32-bit;;
6623   *-n32|*"-n32 ") libmagic=N32;;
6624   *-64|*"-64 ") libmagic=64-bit;;
6625   *) libmagic=never-match;;
6626   esac
6627   lt_cv_deplibs_check_method=pass_all
6628   ;;
6629
6630 # This must be glibc/ELF.
6631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6632   lt_cv_deplibs_check_method=pass_all
6633   ;;
6634
6635 netbsd* | netbsdelf*-gnu)
6636   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638   else
6639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6640   fi
6641   ;;
6642
6643 newos6*)
6644   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6645   lt_cv_file_magic_cmd=/usr/bin/file
6646   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6647   ;;
6648
6649 *nto* | *qnx*)
6650   lt_cv_deplibs_check_method=pass_all
6651   ;;
6652
6653 openbsd*)
6654   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6655     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6656   else
6657     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6658   fi
6659   ;;
6660
6661 osf3* | osf4* | osf5*)
6662   lt_cv_deplibs_check_method=pass_all
6663   ;;
6664
6665 rdos*)
6666   lt_cv_deplibs_check_method=pass_all
6667   ;;
6668
6669 solaris*)
6670   lt_cv_deplibs_check_method=pass_all
6671   ;;
6672
6673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6674   lt_cv_deplibs_check_method=pass_all
6675   ;;
6676
6677 sysv4 | sysv4.3*)
6678   case $host_vendor in
6679   motorola)
6680     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]'
6681     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6682     ;;
6683   ncr)
6684     lt_cv_deplibs_check_method=pass_all
6685     ;;
6686   sequent)
6687     lt_cv_file_magic_cmd='/bin/file'
6688     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6689     ;;
6690   sni)
6691     lt_cv_file_magic_cmd='/bin/file'
6692     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6693     lt_cv_file_magic_test_file=/lib/libc.so
6694     ;;
6695   siemens)
6696     lt_cv_deplibs_check_method=pass_all
6697     ;;
6698   pc)
6699     lt_cv_deplibs_check_method=pass_all
6700     ;;
6701   esac
6702   ;;
6703
6704 tpf*)
6705   lt_cv_deplibs_check_method=pass_all
6706   ;;
6707 esac
6708
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6712
6713 file_magic_glob=
6714 want_nocaseglob=no
6715 if test "$build" = "$host"; then
6716   case $host_os in
6717   mingw* | pw32*)
6718     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6719       want_nocaseglob=yes
6720     else
6721       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6722     fi
6723     ;;
6724   esac
6725 fi
6726
6727 file_magic_cmd=$lt_cv_file_magic_cmd
6728 deplibs_check_method=$lt_cv_deplibs_check_method
6729 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 if test -n "$ac_tool_prefix"; then
6753   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_prog_DLLTOOL+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   if test -n "$DLLTOOL"; then
6761   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768     for ac_exec_ext in '' $ac_executable_extensions; do
6769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775   done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 DLLTOOL=$ac_cv_prog_DLLTOOL
6781 if test -n "$DLLTOOL"; then
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6783 $as_echo "$DLLTOOL" >&6; }
6784 else
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789
6790 fi
6791 if test -z "$ac_cv_prog_DLLTOOL"; then
6792   ac_ct_DLLTOOL=$DLLTOOL
6793   # Extract the first word of "dlltool", so it can be a program name with args.
6794 set dummy dlltool; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$ac_ct_DLLTOOL"; then
6801   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6821 if test -n "$ac_ct_DLLTOOL"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6823 $as_echo "$ac_ct_DLLTOOL" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829   if test "x$ac_ct_DLLTOOL" = x; then
6830     DLLTOOL="false"
6831   else
6832     case $cross_compiling:$ac_tool_warned in
6833 yes:)
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836 ac_tool_warned=yes ;;
6837 esac
6838     DLLTOOL=$ac_ct_DLLTOOL
6839   fi
6840 else
6841   DLLTOOL="$ac_cv_prog_DLLTOOL"
6842 fi
6843
6844 test -z "$DLLTOOL" && DLLTOOL=dlltool
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6856 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6857 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   lt_cv_sharedlib_from_linklib_cmd='unknown'
6861
6862 case $host_os in
6863 cygwin* | mingw* | pw32* | cegcc*)
6864   # two different shell functions defined in ltmain.sh
6865   # decide which to use based on capabilities of $DLLTOOL
6866   case `$DLLTOOL --help 2>&1` in
6867   *--identify-strict*)
6868     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6869     ;;
6870   *)
6871     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6872     ;;
6873   esac
6874   ;;
6875 *)
6876   # fallback: assume linklib IS sharedlib
6877   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6878   ;;
6879 esac
6880
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6883 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6884 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6885 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6886
6887
6888
6889
6890
6891
6892
6893 if test -n "$ac_tool_prefix"; then
6894   for ac_prog in ar
6895   do
6896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_AR+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   if test -n "$AR"; then
6904   ac_cv_prog_AR="$AR" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 AR=$ac_cv_prog_AR
6924 if test -n "$AR"; then
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6926 $as_echo "$AR" >&6; }
6927 else
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932
6933     test -n "$AR" && break
6934   done
6935 fi
6936 if test -z "$AR"; then
6937   ac_ct_AR=$AR
6938   for ac_prog in ar
6939 do
6940   # Extract the first word of "$ac_prog", so it can be a program name with args.
6941 set dummy $ac_prog; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   if test -n "$ac_ct_AR"; then
6948   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955     for ac_exec_ext in '' $ac_executable_extensions; do
6956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957     ac_cv_prog_ac_ct_AR="$ac_prog"
6958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962   done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6968 if test -n "$ac_ct_AR"; then
6969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6970 $as_echo "$ac_ct_AR" >&6; }
6971 else
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976
6977   test -n "$ac_ct_AR" && break
6978 done
6979
6980   if test "x$ac_ct_AR" = x; then
6981     AR="false"
6982   else
6983     case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989     AR=$ac_ct_AR
6990   fi
6991 fi
6992
6993 : ${AR=ar}
6994 : ${AR_FLAGS=cru}
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7007 $as_echo_n "checking for archiver @FILE support... " >&6; }
7008 if ${lt_cv_ar_at_file+:} false; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   lt_cv_ar_at_file=no
7012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h.  */
7014
7015 int
7016 main ()
7017 {
7018
7019   ;
7020   return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024   echo conftest.$ac_objext > conftest.lst
7025       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7026       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7027   (eval $lt_ar_try) 2>&5
7028   ac_status=$?
7029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030   test $ac_status = 0; }
7031       if test "$ac_status" -eq 0; then
7032         # Ensure the archiver fails upon bogus file names.
7033         rm -f conftest.$ac_objext libconftest.a
7034         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7035   (eval $lt_ar_try) 2>&5
7036   ac_status=$?
7037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038   test $ac_status = 0; }
7039         if test "$ac_status" -ne 0; then
7040           lt_cv_ar_at_file=@
7041         fi
7042       fi
7043       rm -f conftest.* libconftest.a
7044
7045 fi
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7050 $as_echo "$lt_cv_ar_at_file" >&6; }
7051
7052 if test "x$lt_cv_ar_at_file" = xno; then
7053   archiver_list_spec=
7054 else
7055   archiver_list_spec=$lt_cv_ar_at_file
7056 fi
7057
7058
7059
7060
7061
7062
7063
7064 if test -n "$ac_tool_prefix"; then
7065   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}strip; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_STRIP+:} false; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   if test -n "$STRIP"; then
7073   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080     for ac_exec_ext in '' $ac_executable_extensions; do
7081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087   done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 STRIP=$ac_cv_prog_STRIP
7093 if test -n "$STRIP"; then
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7095 $as_echo "$STRIP" >&6; }
7096 else
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101
7102 fi
7103 if test -z "$ac_cv_prog_STRIP"; then
7104   ac_ct_STRIP=$STRIP
7105   # Extract the first word of "strip", so it can be a program name with args.
7106 set dummy strip; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   if test -n "$ac_ct_STRIP"; then
7113   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120     for ac_exec_ext in '' $ac_executable_extensions; do
7121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122     ac_cv_prog_ac_ct_STRIP="strip"
7123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127   done
7128 IFS=$as_save_IFS
7129
7130 fi
7131 fi
7132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7133 if test -n "$ac_ct_STRIP"; then
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7135 $as_echo "$ac_ct_STRIP" >&6; }
7136 else
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141   if test "x$ac_ct_STRIP" = x; then
7142     STRIP=":"
7143   else
7144     case $cross_compiling:$ac_tool_warned in
7145 yes:)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150     STRIP=$ac_ct_STRIP
7151   fi
7152 else
7153   STRIP="$ac_cv_prog_STRIP"
7154 fi
7155
7156 test -z "$STRIP" && STRIP=:
7157
7158
7159
7160
7161
7162
7163 if test -n "$ac_tool_prefix"; then
7164   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test -n "$RANLIB"; then
7172   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
7192 if test -n "$RANLIB"; then
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7194 $as_echo "$RANLIB" >&6; }
7195 else
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7198 fi
7199
7200
7201 fi
7202 if test -z "$ac_cv_prog_RANLIB"; then
7203   ac_ct_RANLIB=$RANLIB
7204   # Extract the first word of "ranlib", so it can be a program name with args.
7205 set dummy ranlib; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$ac_ct_RANLIB"; then
7212   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221     ac_cv_prog_ac_ct_RANLIB="ranlib"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7232 if test -n "$ac_ct_RANLIB"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7234 $as_echo "$ac_ct_RANLIB" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240   if test "x$ac_ct_RANLIB" = x; then
7241     RANLIB=":"
7242   else
7243     case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7248 esac
7249     RANLIB=$ac_ct_RANLIB
7250   fi
7251 else
7252   RANLIB="$ac_cv_prog_RANLIB"
7253 fi
7254
7255 test -z "$RANLIB" && RANLIB=:
7256
7257
7258
7259
7260
7261
7262 # Determine commands to create old-style static archives.
7263 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7264 old_postinstall_cmds='chmod 644 $oldlib'
7265 old_postuninstall_cmds=
7266
7267 if test -n "$RANLIB"; then
7268   case $host_os in
7269   openbsd*)
7270     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7271     ;;
7272   *)
7273     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7274     ;;
7275   esac
7276   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7277 fi
7278
7279 case $host_os in
7280   darwin*)
7281     lock_old_archive_extraction=yes ;;
7282   *)
7283     lock_old_archive_extraction=no ;;
7284 esac
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324 # If no C compiler was specified, use CC.
7325 LTCC=${LTCC-"$CC"}
7326
7327 # If no C compiler flags were specified, use CFLAGS.
7328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7329
7330 # Allow CC to be a program name with arguments.
7331 compiler=$CC
7332
7333
7334 # Check for command to grab the raw symbol name followed by C symbol from nm.
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7336 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7337 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340
7341 # These are sane defaults that work on at least a few old systems.
7342 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7343
7344 # Character class describing NM global symbol codes.
7345 symcode='[BCDEGRST]'
7346
7347 # Regexp to match symbols that can be accessed directly from C.
7348 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7349
7350 # Define system-specific variables.
7351 case $host_os in
7352 aix*)
7353   symcode='[BCDT]'
7354   ;;
7355 cygwin* | mingw* | pw32* | cegcc*)
7356   symcode='[ABCDGISTW]'
7357   ;;
7358 hpux*)
7359   if test "$host_cpu" = ia64; then
7360     symcode='[ABCDEGRST]'
7361   fi
7362   ;;
7363 irix* | nonstopux*)
7364   symcode='[BCDEGRST]'
7365   ;;
7366 osf*)
7367   symcode='[BCDEGQRST]'
7368   ;;
7369 solaris*)
7370   symcode='[BDRT]'
7371   ;;
7372 sco3.2v5*)
7373   symcode='[DT]'
7374   ;;
7375 sysv4.2uw2*)
7376   symcode='[DT]'
7377   ;;
7378 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7379   symcode='[ABDT]'
7380   ;;
7381 sysv4)
7382   symcode='[DFNSTU]'
7383   ;;
7384 esac
7385
7386 # If we're using GNU nm, then use its standard symbol codes.
7387 case `$NM -V 2>&1` in
7388 *GNU* | *'with BFD'*)
7389   symcode='[ABCDGIRSTW]' ;;
7390 esac
7391
7392 # Transform an extracted symbol line into a proper C declaration.
7393 # Some systems (esp. on ia64) link data and code symbols differently,
7394 # so use this general approach.
7395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7396
7397 # Transform an extracted symbol line into symbol name and symbol address
7398 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7399 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'"
7400
7401 # Handle CRLF in mingw tool chain
7402 opt_cr=
7403 case $build_os in
7404 mingw*)
7405   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7406   ;;
7407 esac
7408
7409 # Try without a prefix underscore, then with it.
7410 for ac_symprfx in "" "_"; do
7411
7412   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7413   symxfrm="\\1 $ac_symprfx\\2 \\2"
7414
7415   # Write the raw and C identifiers.
7416   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7417     # Fake it for dumpbin and say T for any non-static function
7418     # and D for any global variable.
7419     # Also find C++ and __fastcall symbols from MSVC++,
7420     # which start with @ or ?.
7421     lt_cv_sys_global_symbol_pipe="$AWK '"\
7422 "     {last_section=section; section=\$ 3};"\
7423 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7424 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7425 "     \$ 0!~/External *\|/{next};"\
7426 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7427 "     {if(hide[section]) next};"\
7428 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7429 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7430 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7431 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7432 "     ' prfx=^$ac_symprfx"
7433   else
7434     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7435   fi
7436   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7437
7438   # Check to see that the pipe works correctly.
7439   pipe_works=no
7440
7441   rm -f conftest*
7442   cat > conftest.$ac_ext <<_LT_EOF
7443 #ifdef __cplusplus
7444 extern "C" {
7445 #endif
7446 char nm_test_var;
7447 void nm_test_func(void);
7448 void nm_test_func(void){}
7449 #ifdef __cplusplus
7450 }
7451 #endif
7452 int main(){nm_test_var='a';nm_test_func();return(0);}
7453 _LT_EOF
7454
7455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7456   (eval $ac_compile) 2>&5
7457   ac_status=$?
7458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459   test $ac_status = 0; }; then
7460     # Now try to grab the symbols.
7461     nlist=conftest.nm
7462     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7463   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7464   ac_status=$?
7465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466   test $ac_status = 0; } && test -s "$nlist"; then
7467       # Try sorting and uniquifying the output.
7468       if sort "$nlist" | uniq > "$nlist"T; then
7469         mv -f "$nlist"T "$nlist"
7470       else
7471         rm -f "$nlist"T
7472       fi
7473
7474       # Make sure that we snagged all the symbols we need.
7475       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7476         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7477           cat <<_LT_EOF > conftest.$ac_ext
7478 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7479 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7480 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7481    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7482 # define LT_DLSYM_CONST
7483 #elif defined(__osf__)
7484 /* This system does not cope well with relocations in const data.  */
7485 # define LT_DLSYM_CONST
7486 #else
7487 # define LT_DLSYM_CONST const
7488 #endif
7489
7490 #ifdef __cplusplus
7491 extern "C" {
7492 #endif
7493
7494 _LT_EOF
7495           # Now generate the symbol file.
7496           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7497
7498           cat <<_LT_EOF >> conftest.$ac_ext
7499
7500 /* The mapping between symbol names and symbols.  */
7501 LT_DLSYM_CONST struct {
7502   const char *name;
7503   void       *address;
7504 }
7505 lt__PROGRAM__LTX_preloaded_symbols[] =
7506 {
7507   { "@PROGRAM@", (void *) 0 },
7508 _LT_EOF
7509           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7510           cat <<\_LT_EOF >> conftest.$ac_ext
7511   {0, (void *) 0}
7512 };
7513
7514 /* This works around a problem in FreeBSD linker */
7515 #ifdef FREEBSD_WORKAROUND
7516 static const void *lt_preloaded_setup() {
7517   return lt__PROGRAM__LTX_preloaded_symbols;
7518 }
7519 #endif
7520
7521 #ifdef __cplusplus
7522 }
7523 #endif
7524 _LT_EOF
7525           # Now try linking the two files.
7526           mv conftest.$ac_objext conftstm.$ac_objext
7527           lt_globsym_save_LIBS=$LIBS
7528           lt_globsym_save_CFLAGS=$CFLAGS
7529           LIBS="conftstm.$ac_objext"
7530           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7531           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7532   (eval $ac_link) 2>&5
7533   ac_status=$?
7534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7535   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7536             pipe_works=yes
7537           fi
7538           LIBS=$lt_globsym_save_LIBS
7539           CFLAGS=$lt_globsym_save_CFLAGS
7540         else
7541           echo "cannot find nm_test_func in $nlist" >&5
7542         fi
7543       else
7544         echo "cannot find nm_test_var in $nlist" >&5
7545       fi
7546     else
7547       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7548     fi
7549   else
7550     echo "$progname: failed program was:" >&5
7551     cat conftest.$ac_ext >&5
7552   fi
7553   rm -rf conftest* conftst*
7554
7555   # Do not use the global_symbol_pipe unless it works.
7556   if test "$pipe_works" = yes; then
7557     break
7558   else
7559     lt_cv_sys_global_symbol_pipe=
7560   fi
7561 done
7562
7563 fi
7564
7565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7566   lt_cv_sys_global_symbol_to_cdecl=
7567 fi
7568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7570 $as_echo "failed" >&6; }
7571 else
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7573 $as_echo "ok" >&6; }
7574 fi
7575
7576 # Response file support.
7577 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7578   nm_file_list_spec='@'
7579 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7580   nm_file_list_spec='@'
7581 fi
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7610 $as_echo_n "checking for sysroot... " >&6; }
7611
7612 # Check whether --with-sysroot was given.
7613 if test "${with_sysroot+set}" = set; then :
7614   withval=$with_sysroot;
7615 else
7616   with_sysroot=no
7617 fi
7618
7619
7620 lt_sysroot=
7621 case ${with_sysroot} in #(
7622  yes)
7623    if test "$GCC" = yes; then
7624      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7625    fi
7626    ;; #(
7627  /*)
7628    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7629    ;; #(
7630  no|'')
7631    ;; #(
7632  *)
7633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7634 $as_echo "${with_sysroot}" >&6; }
7635    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7636    ;;
7637 esac
7638
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7640 $as_echo "${lt_sysroot:-no}" >&6; }
7641
7642
7643
7644
7645
7646 # Check whether --enable-libtool-lock was given.
7647 if test "${enable_libtool_lock+set}" = set; then :
7648   enableval=$enable_libtool_lock;
7649 fi
7650
7651 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7652
7653 # Some flags need to be propagated to the compiler or linker for good
7654 # libtool support.
7655 case $host in
7656 ia64-*-hpux*)
7657   # Find out which ABI we are using.
7658   echo 'int i;' > conftest.$ac_ext
7659   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7660   (eval $ac_compile) 2>&5
7661   ac_status=$?
7662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663   test $ac_status = 0; }; then
7664     case `/usr/bin/file conftest.$ac_objext` in
7665       *ELF-32*)
7666         HPUX_IA64_MODE="32"
7667         ;;
7668       *ELF-64*)
7669         HPUX_IA64_MODE="64"
7670         ;;
7671     esac
7672   fi
7673   rm -rf conftest*
7674   ;;
7675 *-*-irix6*)
7676   # Find out which ABI we are using.
7677   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7678   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7679   (eval $ac_compile) 2>&5
7680   ac_status=$?
7681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7682   test $ac_status = 0; }; then
7683     if test "$lt_cv_prog_gnu_ld" = yes; then
7684       case `/usr/bin/file conftest.$ac_objext` in
7685         *32-bit*)
7686           LD="${LD-ld} -melf32bsmip"
7687           ;;
7688         *N32*)
7689           LD="${LD-ld} -melf32bmipn32"
7690           ;;
7691         *64-bit*)
7692           LD="${LD-ld} -melf64bmip"
7693         ;;
7694       esac
7695     else
7696       case `/usr/bin/file conftest.$ac_objext` in
7697         *32-bit*)
7698           LD="${LD-ld} -32"
7699           ;;
7700         *N32*)
7701           LD="${LD-ld} -n32"
7702           ;;
7703         *64-bit*)
7704           LD="${LD-ld} -64"
7705           ;;
7706       esac
7707     fi
7708   fi
7709   rm -rf conftest*
7710   ;;
7711
7712 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7713 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7714   # Find out which ABI we are using.
7715   echo 'int i;' > conftest.$ac_ext
7716   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7717   (eval $ac_compile) 2>&5
7718   ac_status=$?
7719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720   test $ac_status = 0; }; then
7721     case `/usr/bin/file conftest.o` in
7722       *32-bit*)
7723         case $host in
7724           x86_64-*kfreebsd*-gnu)
7725             LD="${LD-ld} -m elf_i386_fbsd"
7726             ;;
7727           x86_64-*linux*)
7728             case `/usr/bin/file conftest.o` in
7729               *x86-64*)
7730                 LD="${LD-ld} -m elf32_x86_64"
7731                 ;;
7732               *)
7733                 LD="${LD-ld} -m elf_i386"
7734                 ;;
7735             esac
7736             ;;
7737           ppc64-*linux*|powerpc64-*linux*)
7738             LD="${LD-ld} -m elf32ppclinux"
7739             ;;
7740           s390x-*linux*)
7741             LD="${LD-ld} -m elf_s390"
7742             ;;
7743           sparc64-*linux*)
7744             LD="${LD-ld} -m elf32_sparc"
7745             ;;
7746         esac
7747         ;;
7748       *64-bit*)
7749         case $host in
7750           x86_64-*kfreebsd*-gnu)
7751             LD="${LD-ld} -m elf_x86_64_fbsd"
7752             ;;
7753           x86_64-*linux*)
7754             LD="${LD-ld} -m elf_x86_64"
7755             ;;
7756           ppc*-*linux*|powerpc*-*linux*)
7757             LD="${LD-ld} -m elf64ppc"
7758             ;;
7759           s390*-*linux*|s390*-*tpf*)
7760             LD="${LD-ld} -m elf64_s390"
7761             ;;
7762           sparc*-*linux*)
7763             LD="${LD-ld} -m elf64_sparc"
7764             ;;
7765         esac
7766         ;;
7767     esac
7768   fi
7769   rm -rf conftest*
7770   ;;
7771
7772 *-*-sco3.2v5*)
7773   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7774   SAVE_CFLAGS="$CFLAGS"
7775   CFLAGS="$CFLAGS -belf"
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7777 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7778 if ${lt_cv_cc_needs_belf+:} false; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   ac_ext=c
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h.  */
7789
7790 int
7791 main ()
7792 {
7793
7794   ;
7795   return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_link "$LINENO"; then :
7799   lt_cv_cc_needs_belf=yes
7800 else
7801   lt_cv_cc_needs_belf=no
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext \
7804     conftest$ac_exeext conftest.$ac_ext
7805      ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7813 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7814   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7815     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7816     CFLAGS="$SAVE_CFLAGS"
7817   fi
7818   ;;
7819 *-*solaris*)
7820   # Find out which ABI we are using.
7821   echo 'int i;' > conftest.$ac_ext
7822   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7823   (eval $ac_compile) 2>&5
7824   ac_status=$?
7825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826   test $ac_status = 0; }; then
7827     case `/usr/bin/file conftest.o` in
7828     *64-bit*)
7829       case $lt_cv_prog_gnu_ld in
7830       yes*)
7831         case $host in
7832         i?86-*-solaris*)
7833           LD="${LD-ld} -m elf_x86_64"
7834           ;;
7835         sparc*-*-solaris*)
7836           LD="${LD-ld} -m elf64_sparc"
7837           ;;
7838         esac
7839         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7840         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7841           LD="${LD-ld}_sol2"
7842         fi
7843         ;;
7844       *)
7845         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7846           LD="${LD-ld} -64"
7847         fi
7848         ;;
7849       esac
7850       ;;
7851     esac
7852   fi
7853   rm -rf conftest*
7854   ;;
7855 esac
7856
7857 need_locks="$enable_libtool_lock"
7858
7859 if test -n "$ac_tool_prefix"; then
7860   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7861 set dummy ${ac_tool_prefix}mt; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7865   $as_echo_n "(cached) " >&6
7866 else
7867   if test -n "$MANIFEST_TOOL"; then
7868   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873   IFS=$as_save_IFS
7874   test -z "$as_dir" && as_dir=.
7875     for ac_exec_ext in '' $ac_executable_extensions; do
7876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879     break 2
7880   fi
7881 done
7882   done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7888 if test -n "$MANIFEST_TOOL"; then
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7890 $as_echo "$MANIFEST_TOOL" >&6; }
7891 else
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895
7896
7897 fi
7898 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7899   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7900   # Extract the first word of "mt", so it can be a program name with args.
7901 set dummy mt; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7905   $as_echo_n "(cached) " >&6
7906 else
7907   if test -n "$ac_ct_MANIFEST_TOOL"; then
7908   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913   IFS=$as_save_IFS
7914   test -z "$as_dir" && as_dir=.
7915     for ac_exec_ext in '' $ac_executable_extensions; do
7916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919     break 2
7920   fi
7921 done
7922   done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7928 if test -n "$ac_ct_MANIFEST_TOOL"; then
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7930 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7931 else
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7937     MANIFEST_TOOL=":"
7938   else
7939     case $cross_compiling:$ac_tool_warned in
7940 yes:)
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7943 ac_tool_warned=yes ;;
7944 esac
7945     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7946   fi
7947 else
7948   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7949 fi
7950
7951 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7953 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7954 if ${lt_cv_path_mainfest_tool+:} false; then :
7955   $as_echo_n "(cached) " >&6
7956 else
7957   lt_cv_path_mainfest_tool=no
7958   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7959   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7960   cat conftest.err >&5
7961   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7962     lt_cv_path_mainfest_tool=yes
7963   fi
7964   rm -f conftest*
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7967 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7968 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7969   MANIFEST_TOOL=:
7970 fi
7971
7972
7973
7974
7975
7976
7977   case $host_os in
7978     rhapsody* | darwin*)
7979     if test -n "$ac_tool_prefix"; then
7980   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   if test -n "$DSYMUTIL"; then
7988   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7989 else
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 for as_dir in $PATH
7992 do
7993   IFS=$as_save_IFS
7994   test -z "$as_dir" && as_dir=.
7995     for ac_exec_ext in '' $ac_executable_extensions; do
7996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999     break 2
8000   fi
8001 done
8002   done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8008 if test -n "$DSYMUTIL"; then
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8010 $as_echo "$DSYMUTIL" >&6; }
8011 else
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 fi
8015
8016
8017 fi
8018 if test -z "$ac_cv_prog_DSYMUTIL"; then
8019   ac_ct_DSYMUTIL=$DSYMUTIL
8020   # Extract the first word of "dsymutil", so it can be a program name with args.
8021 set dummy dsymutil; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   if test -n "$ac_ct_DSYMUTIL"; then
8028   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8048 if test -n "$ac_ct_DSYMUTIL"; then
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8050 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8051 else
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056   if test "x$ac_ct_DSYMUTIL" = x; then
8057     DSYMUTIL=":"
8058   else
8059     case $cross_compiling:$ac_tool_warned in
8060 yes:)
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8064 esac
8065     DSYMUTIL=$ac_ct_DSYMUTIL
8066   fi
8067 else
8068   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8069 fi
8070
8071     if test -n "$ac_tool_prefix"; then
8072   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if ${ac_cv_prog_NMEDIT+:} false; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079   if test -n "$NMEDIT"; then
8080   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085   IFS=$as_save_IFS
8086   test -z "$as_dir" && as_dir=.
8087     for ac_exec_ext in '' $ac_executable_extensions; do
8088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091     break 2
8092   fi
8093 done
8094   done
8095 IFS=$as_save_IFS
8096
8097 fi
8098 fi
8099 NMEDIT=$ac_cv_prog_NMEDIT
8100 if test -n "$NMEDIT"; then
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8102 $as_echo "$NMEDIT" >&6; }
8103 else
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8107
8108
8109 fi
8110 if test -z "$ac_cv_prog_NMEDIT"; then
8111   ac_ct_NMEDIT=$NMEDIT
8112   # Extract the first word of "nmedit", so it can be a program name with args.
8113 set dummy nmedit; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   if test -n "$ac_ct_NMEDIT"; then
8120   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127     for ac_exec_ext in '' $ac_executable_extensions; do
8128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134   done
8135 IFS=$as_save_IFS
8136
8137 fi
8138 fi
8139 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8140 if test -n "$ac_ct_NMEDIT"; then
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8142 $as_echo "$ac_ct_NMEDIT" >&6; }
8143 else
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148   if test "x$ac_ct_NMEDIT" = x; then
8149     NMEDIT=":"
8150   else
8151     case $cross_compiling:$ac_tool_warned in
8152 yes:)
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8156 esac
8157     NMEDIT=$ac_ct_NMEDIT
8158   fi
8159 else
8160   NMEDIT="$ac_cv_prog_NMEDIT"
8161 fi
8162
8163     if test -n "$ac_tool_prefix"; then
8164   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if ${ac_cv_prog_LIPO+:} false; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   if test -n "$LIPO"; then
8172   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179     for ac_exec_ext in '' $ac_executable_extensions; do
8180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186   done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 LIPO=$ac_cv_prog_LIPO
8192 if test -n "$LIPO"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8194 $as_echo "$LIPO" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200
8201 fi
8202 if test -z "$ac_cv_prog_LIPO"; then
8203   ac_ct_LIPO=$LIPO
8204   # Extract the first word of "lipo", so it can be a program name with args.
8205 set dummy lipo; 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_ac_ct_LIPO+:} false; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$ac_ct_LIPO"; then
8212   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
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 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8232 if test -n "$ac_ct_LIPO"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8234 $as_echo "$ac_ct_LIPO" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240   if test "x$ac_ct_LIPO" = x; then
8241     LIPO=":"
8242   else
8243     case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8248 esac
8249     LIPO=$ac_ct_LIPO
8250   fi
8251 else
8252   LIPO="$ac_cv_prog_LIPO"
8253 fi
8254
8255     if test -n "$ac_tool_prefix"; then
8256   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}otool; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_prog_OTOOL+:} false; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   if test -n "$OTOOL"; then
8264   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271     for ac_exec_ext in '' $ac_executable_extensions; do
8272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8273     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278   done
8279 IFS=$as_save_IFS
8280
8281 fi
8282 fi
8283 OTOOL=$ac_cv_prog_OTOOL
8284 if test -n "$OTOOL"; then
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8286 $as_echo "$OTOOL" >&6; }
8287 else
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293 fi
8294 if test -z "$ac_cv_prog_OTOOL"; then
8295   ac_ct_OTOOL=$OTOOL
8296   # Extract the first word of "otool", so it can be a program name with args.
8297 set dummy otool; 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_ac_ct_OTOOL+:} false; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   if test -n "$ac_ct_OTOOL"; then
8304   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8324 if test -n "$ac_ct_OTOOL"; then
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8326 $as_echo "$ac_ct_OTOOL" >&6; }
8327 else
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332   if test "x$ac_ct_OTOOL" = x; then
8333     OTOOL=":"
8334   else
8335     case $cross_compiling:$ac_tool_warned in
8336 yes:)
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8339 ac_tool_warned=yes ;;
8340 esac
8341     OTOOL=$ac_ct_OTOOL
8342   fi
8343 else
8344   OTOOL="$ac_cv_prog_OTOOL"
8345 fi
8346
8347     if test -n "$ac_tool_prefix"; then
8348   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8349 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_OTOOL64+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355   if test -n "$OTOOL64"; then
8356   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361   IFS=$as_save_IFS
8362   test -z "$as_dir" && as_dir=.
8363     for ac_exec_ext in '' $ac_executable_extensions; do
8364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367     break 2
8368   fi
8369 done
8370   done
8371 IFS=$as_save_IFS
8372
8373 fi
8374 fi
8375 OTOOL64=$ac_cv_prog_OTOOL64
8376 if test -n "$OTOOL64"; then
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8378 $as_echo "$OTOOL64" >&6; }
8379 else
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8382 fi
8383
8384
8385 fi
8386 if test -z "$ac_cv_prog_OTOOL64"; then
8387   ac_ct_OTOOL64=$OTOOL64
8388   # Extract the first word of "otool64", so it can be a program name with args.
8389 set dummy otool64; 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_ac_ct_OTOOL64+:} false; then :
8393   $as_echo_n "(cached) " >&6
8394 else
8395   if test -n "$ac_ct_OTOOL64"; then
8396   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_ac_ct_OTOOL64="otool64"
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 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8416 if test -n "$ac_ct_OTOOL64"; then
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8418 $as_echo "$ac_ct_OTOOL64" >&6; }
8419 else
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8423
8424   if test "x$ac_ct_OTOOL64" = x; then
8425     OTOOL64=":"
8426   else
8427     case $cross_compiling:$ac_tool_warned in
8428 yes:)
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8431 ac_tool_warned=yes ;;
8432 esac
8433     OTOOL64=$ac_ct_OTOOL64
8434   fi
8435 else
8436   OTOOL64="$ac_cv_prog_OTOOL64"
8437 fi
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8466 $as_echo_n "checking for -single_module linker flag... " >&6; }
8467 if ${lt_cv_apple_cc_single_mod+:} false; then :
8468   $as_echo_n "(cached) " >&6
8469 else
8470   lt_cv_apple_cc_single_mod=no
8471       if test -z "${LT_MULTI_MODULE}"; then
8472         # By default we will add the -single_module flag. You can override
8473         # by either setting the environment variable LT_MULTI_MODULE
8474         # non-empty at configure time, or by adding -multi_module to the
8475         # link flags.
8476         rm -rf libconftest.dylib*
8477         echo "int foo(void){return 1;}" > conftest.c
8478         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8479 -dynamiclib -Wl,-single_module conftest.c" >&5
8480         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8481           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8482         _lt_result=$?
8483         # If there is a non-empty error log, and "single_module"
8484         # appears in it, assume the flag caused a linker warning
8485         if test -s conftest.err && $GREP single_module conftest.err; then
8486           cat conftest.err >&5
8487         # Otherwise, if the output was created with a 0 exit code from
8488         # the compiler, it worked.
8489         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8490           lt_cv_apple_cc_single_mod=yes
8491         else
8492           cat conftest.err >&5
8493         fi
8494         rm -rf libconftest.dylib*
8495         rm -f conftest.*
8496       fi
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8499 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8500
8501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8502 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8503 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506   lt_cv_ld_exported_symbols_list=no
8507       save_LDFLAGS=$LDFLAGS
8508       echo "_main" > conftest.sym
8509       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8510       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h.  */
8512
8513 int
8514 main ()
8515 {
8516
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 if ac_fn_c_try_link "$LINENO"; then :
8522   lt_cv_ld_exported_symbols_list=yes
8523 else
8524   lt_cv_ld_exported_symbols_list=no
8525 fi
8526 rm -f core conftest.err conftest.$ac_objext \
8527     conftest$ac_exeext conftest.$ac_ext
8528         LDFLAGS="$save_LDFLAGS"
8529
8530 fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8532 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8533
8534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8535 $as_echo_n "checking for -force_load linker flag... " >&6; }
8536 if ${lt_cv_ld_force_load+:} false; then :
8537   $as_echo_n "(cached) " >&6
8538 else
8539   lt_cv_ld_force_load=no
8540       cat > conftest.c << _LT_EOF
8541 int forced_loaded() { return 2;}
8542 _LT_EOF
8543       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8544       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8545       echo "$AR cru libconftest.a conftest.o" >&5
8546       $AR cru libconftest.a conftest.o 2>&5
8547       echo "$RANLIB libconftest.a" >&5
8548       $RANLIB libconftest.a 2>&5
8549       cat > conftest.c << _LT_EOF
8550 int main() { return 0;}
8551 _LT_EOF
8552       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8553       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8554       _lt_result=$?
8555       if test -s conftest.err && $GREP force_load conftest.err; then
8556         cat conftest.err >&5
8557       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8558         lt_cv_ld_force_load=yes
8559       else
8560         cat conftest.err >&5
8561       fi
8562         rm -f conftest.err libconftest.a conftest conftest.c
8563         rm -rf conftest.dSYM
8564
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8567 $as_echo "$lt_cv_ld_force_load" >&6; }
8568     case $host_os in
8569     rhapsody* | darwin1.[012])
8570       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8571     darwin1.*)
8572       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8573     darwin*) # darwin 5.x on
8574       # if running on 10.5 or later, the deployment target defaults
8575       # to the OS version, if on x86, and 10.4, the deployment
8576       # target defaults to 10.4. Don't you love it?
8577       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8578         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8579           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8580         10.[012]*)
8581           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8582         10.*)
8583           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8584       esac
8585     ;;
8586   esac
8587     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8588       _lt_dar_single_mod='$single_module'
8589     fi
8590     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8591       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8592     else
8593       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8594     fi
8595     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8596       _lt_dsymutil='~$DSYMUTIL $lib || :'
8597     else
8598       _lt_dsymutil=
8599     fi
8600     ;;
8601   esac
8602
8603 for ac_header in dlfcn.h
8604 do :
8605   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8606 "
8607 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8608   cat >>confdefs.h <<_ACEOF
8609 #define HAVE_DLFCN_H 1
8610 _ACEOF
8611
8612 fi
8613
8614 done
8615
8616
8617
8618
8619
8620 # Set options
8621 # Check whether --enable-static was given.
8622 if test "${enable_static+set}" = set; then :
8623   enableval=$enable_static; p=${PACKAGE-default}
8624     case $enableval in
8625     yes) enable_static=yes ;;
8626     no) enable_static=no ;;
8627     *)
8628      enable_static=no
8629       # Look at the argument we got.  We use all the common list separators.
8630       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8631       for pkg in $enableval; do
8632         IFS="$lt_save_ifs"
8633         if test "X$pkg" = "X$p"; then
8634           enable_static=yes
8635         fi
8636       done
8637       IFS="$lt_save_ifs"
8638       ;;
8639     esac
8640 else
8641   enable_static=no
8642 fi
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653         enable_dlopen=no
8654
8655
8656   enable_win32_dll=no
8657
8658
8659             # Check whether --enable-shared was given.
8660 if test "${enable_shared+set}" = set; then :
8661   enableval=$enable_shared; p=${PACKAGE-default}
8662     case $enableval in
8663     yes) enable_shared=yes ;;
8664     no) enable_shared=no ;;
8665     *)
8666       enable_shared=no
8667       # Look at the argument we got.  We use all the common list separators.
8668       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8669       for pkg in $enableval; do
8670         IFS="$lt_save_ifs"
8671         if test "X$pkg" = "X$p"; then
8672           enable_shared=yes
8673         fi
8674       done
8675       IFS="$lt_save_ifs"
8676       ;;
8677     esac
8678 else
8679   enable_shared=yes
8680 fi
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692 # Check whether --with-pic was given.
8693 if test "${with_pic+set}" = set; then :
8694   withval=$with_pic; lt_p=${PACKAGE-default}
8695     case $withval in
8696     yes|no) pic_mode=$withval ;;
8697     *)
8698       pic_mode=default
8699       # Look at the argument we got.  We use all the common list separators.
8700       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8701       for lt_pkg in $withval; do
8702         IFS="$lt_save_ifs"
8703         if test "X$lt_pkg" = "X$lt_p"; then
8704           pic_mode=yes
8705         fi
8706       done
8707       IFS="$lt_save_ifs"
8708       ;;
8709     esac
8710 else
8711   pic_mode=default
8712 fi
8713
8714
8715 test -z "$pic_mode" && pic_mode=default
8716
8717
8718
8719
8720
8721
8722
8723   # Check whether --enable-fast-install was given.
8724 if test "${enable_fast_install+set}" = set; then :
8725   enableval=$enable_fast_install; p=${PACKAGE-default}
8726     case $enableval in
8727     yes) enable_fast_install=yes ;;
8728     no) enable_fast_install=no ;;
8729     *)
8730       enable_fast_install=no
8731       # Look at the argument we got.  We use all the common list separators.
8732       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8733       for pkg in $enableval; do
8734         IFS="$lt_save_ifs"
8735         if test "X$pkg" = "X$p"; then
8736           enable_fast_install=yes
8737         fi
8738       done
8739       IFS="$lt_save_ifs"
8740       ;;
8741     esac
8742 else
8743   enable_fast_install=yes
8744 fi
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 # This can be used to rebuild libtool when needed
8757 LIBTOOL_DEPS="$ltmain"
8758
8759 # Always use our own libtool.
8760 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 test -z "$LN_S" && LN_S="ln -s"
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806 if test -n "${ZSH_VERSION+set}" ; then
8807    setopt NO_GLOB_SUBST
8808 fi
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8811 $as_echo_n "checking for objdir... " >&6; }
8812 if ${lt_cv_objdir+:} false; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815   rm -f .libs 2>/dev/null
8816 mkdir .libs 2>/dev/null
8817 if test -d .libs; then
8818   lt_cv_objdir=.libs
8819 else
8820   # MS-DOS does not allow filenames that begin with a dot.
8821   lt_cv_objdir=_libs
8822 fi
8823 rmdir .libs 2>/dev/null
8824 fi
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8826 $as_echo "$lt_cv_objdir" >&6; }
8827 objdir=$lt_cv_objdir
8828
8829
8830
8831
8832
8833 cat >>confdefs.h <<_ACEOF
8834 #define LT_OBJDIR "$lt_cv_objdir/"
8835 _ACEOF
8836
8837
8838
8839
8840 case $host_os in
8841 aix3*)
8842   # AIX sometimes has problems with the GCC collect2 program.  For some
8843   # reason, if we set the COLLECT_NAMES environment variable, the problems
8844   # vanish in a puff of smoke.
8845   if test "X${COLLECT_NAMES+set}" != Xset; then
8846     COLLECT_NAMES=
8847     export COLLECT_NAMES
8848   fi
8849   ;;
8850 esac
8851
8852 # Global variables:
8853 ofile=libtool
8854 can_build_shared=yes
8855
8856 # All known linkers require a `.a' archive for static linking (except MSVC,
8857 # which needs '.lib').
8858 libext=a
8859
8860 with_gnu_ld="$lt_cv_prog_gnu_ld"
8861
8862 old_CC="$CC"
8863 old_CFLAGS="$CFLAGS"
8864
8865 # Set sane defaults for various variables
8866 test -z "$CC" && CC=cc
8867 test -z "$LTCC" && LTCC=$CC
8868 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8869 test -z "$LD" && LD=ld
8870 test -z "$ac_objext" && ac_objext=o
8871
8872 for cc_temp in $compiler""; do
8873   case $cc_temp in
8874     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8875     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8876     \-*) ;;
8877     *) break;;
8878   esac
8879 done
8880 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8881
8882
8883 # Only perform the check for file, if the check method requires it
8884 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8885 case $deplibs_check_method in
8886 file_magic*)
8887   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8889 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8890 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8891   $as_echo_n "(cached) " >&6
8892 else
8893   case $MAGIC_CMD in
8894 [\\/*] |  ?:[\\/]*)
8895   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8896   ;;
8897 *)
8898   lt_save_MAGIC_CMD="$MAGIC_CMD"
8899   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8900   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8901   for ac_dir in $ac_dummy; do
8902     IFS="$lt_save_ifs"
8903     test -z "$ac_dir" && ac_dir=.
8904     if test -f $ac_dir/${ac_tool_prefix}file; then
8905       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8906       if test -n "$file_magic_test_file"; then
8907         case $deplibs_check_method in
8908         "file_magic "*)
8909           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8910           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8911           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8912             $EGREP "$file_magic_regex" > /dev/null; then
8913             :
8914           else
8915             cat <<_LT_EOF 1>&2
8916
8917 *** Warning: the command libtool uses to detect shared libraries,
8918 *** $file_magic_cmd, produces output that libtool cannot recognize.
8919 *** The result is that libtool may fail to recognize shared libraries
8920 *** as such.  This will affect the creation of libtool libraries that
8921 *** depend on shared libraries, but programs linked with such libtool
8922 *** libraries will work regardless of this problem.  Nevertheless, you
8923 *** may want to report the problem to your system manager and/or to
8924 *** bug-libtool@gnu.org
8925
8926 _LT_EOF
8927           fi ;;
8928         esac
8929       fi
8930       break
8931     fi
8932   done
8933   IFS="$lt_save_ifs"
8934   MAGIC_CMD="$lt_save_MAGIC_CMD"
8935   ;;
8936 esac
8937 fi
8938
8939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8940 if test -n "$MAGIC_CMD"; then
8941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8942 $as_echo "$MAGIC_CMD" >&6; }
8943 else
8944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8946 fi
8947
8948
8949
8950
8951
8952 if test -z "$lt_cv_path_MAGIC_CMD"; then
8953   if test -n "$ac_tool_prefix"; then
8954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8955 $as_echo_n "checking for file... " >&6; }
8956 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   case $MAGIC_CMD in
8960 [\\/*] |  ?:[\\/]*)
8961   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8962   ;;
8963 *)
8964   lt_save_MAGIC_CMD="$MAGIC_CMD"
8965   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8966   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8967   for ac_dir in $ac_dummy; do
8968     IFS="$lt_save_ifs"
8969     test -z "$ac_dir" && ac_dir=.
8970     if test -f $ac_dir/file; then
8971       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8972       if test -n "$file_magic_test_file"; then
8973         case $deplibs_check_method in
8974         "file_magic "*)
8975           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8976           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8977           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8978             $EGREP "$file_magic_regex" > /dev/null; then
8979             :
8980           else
8981             cat <<_LT_EOF 1>&2
8982
8983 *** Warning: the command libtool uses to detect shared libraries,
8984 *** $file_magic_cmd, produces output that libtool cannot recognize.
8985 *** The result is that libtool may fail to recognize shared libraries
8986 *** as such.  This will affect the creation of libtool libraries that
8987 *** depend on shared libraries, but programs linked with such libtool
8988 *** libraries will work regardless of this problem.  Nevertheless, you
8989 *** may want to report the problem to your system manager and/or to
8990 *** bug-libtool@gnu.org
8991
8992 _LT_EOF
8993           fi ;;
8994         esac
8995       fi
8996       break
8997     fi
8998   done
8999   IFS="$lt_save_ifs"
9000   MAGIC_CMD="$lt_save_MAGIC_CMD"
9001   ;;
9002 esac
9003 fi
9004
9005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9006 if test -n "$MAGIC_CMD"; then
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9008 $as_echo "$MAGIC_CMD" >&6; }
9009 else
9010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9012 fi
9013
9014
9015   else
9016     MAGIC_CMD=:
9017   fi
9018 fi
9019
9020   fi
9021   ;;
9022 esac
9023
9024 # Use C for the default configuration in the libtool script
9025
9026 lt_save_CC="$CC"
9027 ac_ext=c
9028 ac_cpp='$CPP $CPPFLAGS'
9029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033
9034 # Source file extension for C test sources.
9035 ac_ext=c
9036
9037 # Object file extension for compiled C test sources.
9038 objext=o
9039 objext=$objext
9040
9041 # Code to be used in simple compile tests
9042 lt_simple_compile_test_code="int some_variable = 0;"
9043
9044 # Code to be used in simple link tests
9045 lt_simple_link_test_code='int main(){return(0);}'
9046
9047
9048
9049
9050
9051
9052
9053 # If no C compiler was specified, use CC.
9054 LTCC=${LTCC-"$CC"}
9055
9056 # If no C compiler flags were specified, use CFLAGS.
9057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9058
9059 # Allow CC to be a program name with arguments.
9060 compiler=$CC
9061
9062 # Save the default compiler, since it gets overwritten when the other
9063 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9064 compiler_DEFAULT=$CC
9065
9066 # save warnings/boilerplate of simple test code
9067 ac_outfile=conftest.$ac_objext
9068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9070 _lt_compiler_boilerplate=`cat conftest.err`
9071 $RM conftest*
9072
9073 ac_outfile=conftest.$ac_objext
9074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9076 _lt_linker_boilerplate=`cat conftest.err`
9077 $RM -r conftest*
9078
9079
9080 ## CAVEAT EMPTOR:
9081 ## There is no encapsulation within the following macros, do not change
9082 ## the running order or otherwise move them around unless you know exactly
9083 ## what you are doing...
9084 if test -n "$compiler"; then
9085
9086 lt_prog_compiler_no_builtin_flag=
9087
9088 if test "$GCC" = yes; then
9089   case $cc_basename in
9090   nvcc*)
9091     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9092   *)
9093     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9094   esac
9095
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9097 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9098 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   lt_cv_prog_compiler_rtti_exceptions=no
9102    ac_outfile=conftest.$ac_objext
9103    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9104    lt_compiler_flag="-fno-rtti -fno-exceptions"
9105    # Insert the option either (1) after the last *FLAGS variable, or
9106    # (2) before a word containing "conftest.", or (3) at the end.
9107    # Note that $ac_compile itself does not contain backslashes and begins
9108    # with a dollar sign (not a hyphen), so the echo should work correctly.
9109    # The option is referenced via a variable to avoid confusing sed.
9110    lt_compile=`echo "$ac_compile" | $SED \
9111    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9113    -e 's:$: $lt_compiler_flag:'`
9114    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9115    (eval "$lt_compile" 2>conftest.err)
9116    ac_status=$?
9117    cat conftest.err >&5
9118    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119    if (exit $ac_status) && test -s "$ac_outfile"; then
9120      # The compiler can only warn and ignore the option if not recognized
9121      # So say no if there are warnings other than the usual output.
9122      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9123      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9124      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9125        lt_cv_prog_compiler_rtti_exceptions=yes
9126      fi
9127    fi
9128    $RM conftest*
9129
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9132 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9133
9134 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9135     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9136 else
9137     :
9138 fi
9139
9140 fi
9141
9142
9143
9144
9145
9146
9147   lt_prog_compiler_wl=
9148 lt_prog_compiler_pic=
9149 lt_prog_compiler_static=
9150
9151
9152   if test "$GCC" = yes; then
9153     lt_prog_compiler_wl='-Wl,'
9154     lt_prog_compiler_static='-static'
9155
9156     case $host_os in
9157       aix*)
9158       # All AIX code is PIC.
9159       if test "$host_cpu" = ia64; then
9160         # AIX 5 now supports IA64 processor
9161         lt_prog_compiler_static='-Bstatic'
9162       fi
9163       ;;
9164
9165     amigaos*)
9166       case $host_cpu in
9167       powerpc)
9168             # see comment about AmigaOS4 .so support
9169             lt_prog_compiler_pic='-fPIC'
9170         ;;
9171       m68k)
9172             # FIXME: we need at least 68020 code to build shared libraries, but
9173             # adding the `-m68020' flag to GCC prevents building anything better,
9174             # like `-m68040'.
9175             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9176         ;;
9177       esac
9178       ;;
9179
9180     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9181       # PIC is the default for these OSes.
9182       ;;
9183
9184     mingw* | cygwin* | pw32* | os2* | cegcc*)
9185       # This hack is so that the source file can tell whether it is being
9186       # built for inclusion in a dll (and should export symbols for example).
9187       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9188       # (--disable-auto-import) libraries
9189       lt_prog_compiler_pic='-DDLL_EXPORT'
9190       ;;
9191
9192     darwin* | rhapsody*)
9193       # PIC is the default on this platform
9194       # Common symbols not allowed in MH_DYLIB files
9195       lt_prog_compiler_pic='-fno-common'
9196       ;;
9197
9198     haiku*)
9199       # PIC is the default for Haiku.
9200       # The "-static" flag exists, but is broken.
9201       lt_prog_compiler_static=
9202       ;;
9203
9204     hpux*)
9205       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9206       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9207       # sets the default TLS model and affects inlining.
9208       case $host_cpu in
9209       hppa*64*)
9210         # +Z the default
9211         ;;
9212       *)
9213         lt_prog_compiler_pic='-fPIC'
9214         ;;
9215       esac
9216       ;;
9217
9218     interix[3-9]*)
9219       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9220       # Instead, we relocate shared libraries at runtime.
9221       ;;
9222
9223     msdosdjgpp*)
9224       # Just because we use GCC doesn't mean we suddenly get shared libraries
9225       # on systems that don't support them.
9226       lt_prog_compiler_can_build_shared=no
9227       enable_shared=no
9228       ;;
9229
9230     *nto* | *qnx*)
9231       # QNX uses GNU C++, but need to define -shared option too, otherwise
9232       # it will coredump.
9233       lt_prog_compiler_pic='-fPIC -shared'
9234       ;;
9235
9236     sysv4*MP*)
9237       if test -d /usr/nec; then
9238         lt_prog_compiler_pic=-Kconform_pic
9239       fi
9240       ;;
9241
9242     *)
9243       lt_prog_compiler_pic='-fPIC'
9244       ;;
9245     esac
9246
9247     case $cc_basename in
9248     nvcc*) # Cuda Compiler Driver 2.2
9249       lt_prog_compiler_wl='-Xlinker '
9250       if test -n "$lt_prog_compiler_pic"; then
9251         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9252       fi
9253       ;;
9254     esac
9255   else
9256     # PORTME Check for flag to pass linker flags through the system compiler.
9257     case $host_os in
9258     aix*)
9259       lt_prog_compiler_wl='-Wl,'
9260       if test "$host_cpu" = ia64; then
9261         # AIX 5 now supports IA64 processor
9262         lt_prog_compiler_static='-Bstatic'
9263       else
9264         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9265       fi
9266       ;;
9267
9268     mingw* | cygwin* | pw32* | os2* | cegcc*)
9269       # This hack is so that the source file can tell whether it is being
9270       # built for inclusion in a dll (and should export symbols for example).
9271       lt_prog_compiler_pic='-DDLL_EXPORT'
9272       ;;
9273
9274     hpux9* | hpux10* | hpux11*)
9275       lt_prog_compiler_wl='-Wl,'
9276       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9277       # not for PA HP-UX.
9278       case $host_cpu in
9279       hppa*64*|ia64*)
9280         # +Z the default
9281         ;;
9282       *)
9283         lt_prog_compiler_pic='+Z'
9284         ;;
9285       esac
9286       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9287       lt_prog_compiler_static='${wl}-a ${wl}archive'
9288       ;;
9289
9290     irix5* | irix6* | nonstopux*)
9291       lt_prog_compiler_wl='-Wl,'
9292       # PIC (with -KPIC) is the default.
9293       lt_prog_compiler_static='-non_shared'
9294       ;;
9295
9296     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9297       case $cc_basename in
9298       # old Intel for x86_64 which still supported -KPIC.
9299       ecc*)
9300         lt_prog_compiler_wl='-Wl,'
9301         lt_prog_compiler_pic='-KPIC'
9302         lt_prog_compiler_static='-static'
9303         ;;
9304       # icc used to be incompatible with GCC.
9305       # ICC 10 doesn't accept -KPIC any more.
9306       icc* | ifort*)
9307         lt_prog_compiler_wl='-Wl,'
9308         lt_prog_compiler_pic='-fPIC'
9309         lt_prog_compiler_static='-static'
9310         ;;
9311       # Lahey Fortran 8.1.
9312       lf95*)
9313         lt_prog_compiler_wl='-Wl,'
9314         lt_prog_compiler_pic='--shared'
9315         lt_prog_compiler_static='--static'
9316         ;;
9317       nagfor*)
9318         # NAG Fortran compiler
9319         lt_prog_compiler_wl='-Wl,-Wl,,'
9320         lt_prog_compiler_pic='-PIC'
9321         lt_prog_compiler_static='-Bstatic'
9322         ;;
9323       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9324         # Portland Group compilers (*not* the Pentium gcc compiler,
9325         # which looks to be a dead project)
9326         lt_prog_compiler_wl='-Wl,'
9327         lt_prog_compiler_pic='-fpic'
9328         lt_prog_compiler_static='-Bstatic'
9329         ;;
9330       ccc*)
9331         lt_prog_compiler_wl='-Wl,'
9332         # All Alpha code is PIC.
9333         lt_prog_compiler_static='-non_shared'
9334         ;;
9335       xl* | bgxl* | bgf* | mpixl*)
9336         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9337         lt_prog_compiler_wl='-Wl,'
9338         lt_prog_compiler_pic='-qpic'
9339         lt_prog_compiler_static='-qstaticlink'
9340         ;;
9341       *)
9342         case `$CC -V 2>&1 | sed 5q` in
9343         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9344           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9345           lt_prog_compiler_pic='-KPIC'
9346           lt_prog_compiler_static='-Bstatic'
9347           lt_prog_compiler_wl=''
9348           ;;
9349         *Sun\ F* | *Sun*Fortran*)
9350           lt_prog_compiler_pic='-KPIC'
9351           lt_prog_compiler_static='-Bstatic'
9352           lt_prog_compiler_wl='-Qoption ld '
9353           ;;
9354         *Sun\ C*)
9355           # Sun C 5.9
9356           lt_prog_compiler_pic='-KPIC'
9357           lt_prog_compiler_static='-Bstatic'
9358           lt_prog_compiler_wl='-Wl,'
9359           ;;
9360         *Intel*\ [CF]*Compiler*)
9361           lt_prog_compiler_wl='-Wl,'
9362           lt_prog_compiler_pic='-fPIC'
9363           lt_prog_compiler_static='-static'
9364           ;;
9365         *Portland\ Group*)
9366           lt_prog_compiler_wl='-Wl,'
9367           lt_prog_compiler_pic='-fpic'
9368           lt_prog_compiler_static='-Bstatic'
9369           ;;
9370         esac
9371         ;;
9372       esac
9373       ;;
9374
9375     newsos6)
9376       lt_prog_compiler_pic='-KPIC'
9377       lt_prog_compiler_static='-Bstatic'
9378       ;;
9379
9380     *nto* | *qnx*)
9381       # QNX uses GNU C++, but need to define -shared option too, otherwise
9382       # it will coredump.
9383       lt_prog_compiler_pic='-fPIC -shared'
9384       ;;
9385
9386     osf3* | osf4* | osf5*)
9387       lt_prog_compiler_wl='-Wl,'
9388       # All OSF/1 code is PIC.
9389       lt_prog_compiler_static='-non_shared'
9390       ;;
9391
9392     rdos*)
9393       lt_prog_compiler_static='-non_shared'
9394       ;;
9395
9396     solaris*)
9397       lt_prog_compiler_pic='-KPIC'
9398       lt_prog_compiler_static='-Bstatic'
9399       case $cc_basename in
9400       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9401         lt_prog_compiler_wl='-Qoption ld ';;
9402       *)
9403         lt_prog_compiler_wl='-Wl,';;
9404       esac
9405       ;;
9406
9407     sunos4*)
9408       lt_prog_compiler_wl='-Qoption ld '
9409       lt_prog_compiler_pic='-PIC'
9410       lt_prog_compiler_static='-Bstatic'
9411       ;;
9412
9413     sysv4 | sysv4.2uw2* | sysv4.3*)
9414       lt_prog_compiler_wl='-Wl,'
9415       lt_prog_compiler_pic='-KPIC'
9416       lt_prog_compiler_static='-Bstatic'
9417       ;;
9418
9419     sysv4*MP*)
9420       if test -d /usr/nec ;then
9421         lt_prog_compiler_pic='-Kconform_pic'
9422         lt_prog_compiler_static='-Bstatic'
9423       fi
9424       ;;
9425
9426     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9427       lt_prog_compiler_wl='-Wl,'
9428       lt_prog_compiler_pic='-KPIC'
9429       lt_prog_compiler_static='-Bstatic'
9430       ;;
9431
9432     unicos*)
9433       lt_prog_compiler_wl='-Wl,'
9434       lt_prog_compiler_can_build_shared=no
9435       ;;
9436
9437     uts4*)
9438       lt_prog_compiler_pic='-pic'
9439       lt_prog_compiler_static='-Bstatic'
9440       ;;
9441
9442     *)
9443       lt_prog_compiler_can_build_shared=no
9444       ;;
9445     esac
9446   fi
9447
9448 case $host_os in
9449   # For platforms which do not support PIC, -DPIC is meaningless:
9450   *djgpp*)
9451     lt_prog_compiler_pic=
9452     ;;
9453   *)
9454     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9455     ;;
9456 esac
9457
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9459 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9460 if ${lt_cv_prog_compiler_pic+:} false; then :
9461   $as_echo_n "(cached) " >&6
9462 else
9463   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9464 fi
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9466 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9467 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9468
9469 #
9470 # Check to make sure the PIC flag actually works.
9471 #
9472 if test -n "$lt_prog_compiler_pic"; then
9473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9475 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9476   $as_echo_n "(cached) " >&6
9477 else
9478   lt_cv_prog_compiler_pic_works=no
9479    ac_outfile=conftest.$ac_objext
9480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9481    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9482    # Insert the option either (1) after the last *FLAGS variable, or
9483    # (2) before a word containing "conftest.", or (3) at the end.
9484    # Note that $ac_compile itself does not contain backslashes and begins
9485    # with a dollar sign (not a hyphen), so the echo should work correctly.
9486    # The option is referenced via a variable to avoid confusing sed.
9487    lt_compile=`echo "$ac_compile" | $SED \
9488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9490    -e 's:$: $lt_compiler_flag:'`
9491    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9492    (eval "$lt_compile" 2>conftest.err)
9493    ac_status=$?
9494    cat conftest.err >&5
9495    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496    if (exit $ac_status) && test -s "$ac_outfile"; then
9497      # The compiler can only warn and ignore the option if not recognized
9498      # So say no if there are warnings other than the usual output.
9499      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9502        lt_cv_prog_compiler_pic_works=yes
9503      fi
9504    fi
9505    $RM conftest*
9506
9507 fi
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9509 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9510
9511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9512     case $lt_prog_compiler_pic in
9513      "" | " "*) ;;
9514      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9515      esac
9516 else
9517     lt_prog_compiler_pic=
9518      lt_prog_compiler_can_build_shared=no
9519 fi
9520
9521 fi
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533 #
9534 # Check to make sure the static flag actually works.
9535 #
9536 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9538 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9539 if ${lt_cv_prog_compiler_static_works+:} false; then :
9540   $as_echo_n "(cached) " >&6
9541 else
9542   lt_cv_prog_compiler_static_works=no
9543    save_LDFLAGS="$LDFLAGS"
9544    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9545    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9546    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9547      # The linker can only warn and ignore the option if not recognized
9548      # So say no if there are warnings
9549      if test -s conftest.err; then
9550        # Append any errors to the config.log.
9551        cat conftest.err 1>&5
9552        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9553        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9554        if diff conftest.exp conftest.er2 >/dev/null; then
9555          lt_cv_prog_compiler_static_works=yes
9556        fi
9557      else
9558        lt_cv_prog_compiler_static_works=yes
9559      fi
9560    fi
9561    $RM -r conftest*
9562    LDFLAGS="$save_LDFLAGS"
9563
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9566 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9567
9568 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9569     :
9570 else
9571     lt_prog_compiler_static=
9572 fi
9573
9574
9575
9576
9577
9578
9579
9580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9581 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9582 if ${lt_cv_prog_compiler_c_o+:} false; then :
9583   $as_echo_n "(cached) " >&6
9584 else
9585   lt_cv_prog_compiler_c_o=no
9586    $RM -r conftest 2>/dev/null
9587    mkdir conftest
9588    cd conftest
9589    mkdir out
9590    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9591
9592    lt_compiler_flag="-o out/conftest2.$ac_objext"
9593    # Insert the option either (1) after the last *FLAGS variable, or
9594    # (2) before a word containing "conftest.", or (3) at the end.
9595    # Note that $ac_compile itself does not contain backslashes and begins
9596    # with a dollar sign (not a hyphen), so the echo should work correctly.
9597    lt_compile=`echo "$ac_compile" | $SED \
9598    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9599    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9600    -e 's:$: $lt_compiler_flag:'`
9601    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9602    (eval "$lt_compile" 2>out/conftest.err)
9603    ac_status=$?
9604    cat out/conftest.err >&5
9605    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9607    then
9608      # The compiler can only warn and ignore the option if not recognized
9609      # So say no if there are warnings
9610      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9611      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9612      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9613        lt_cv_prog_compiler_c_o=yes
9614      fi
9615    fi
9616    chmod u+w . 2>&5
9617    $RM conftest*
9618    # SGI C++ compiler will create directory out/ii_files/ for
9619    # template instantiation
9620    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9621    $RM out/* && rmdir out
9622    cd ..
9623    $RM -r conftest
9624    $RM conftest*
9625
9626 fi
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9628 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9629
9630
9631
9632
9633
9634
9635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9637 if ${lt_cv_prog_compiler_c_o+:} false; then :
9638   $as_echo_n "(cached) " >&6
9639 else
9640   lt_cv_prog_compiler_c_o=no
9641    $RM -r conftest 2>/dev/null
9642    mkdir conftest
9643    cd conftest
9644    mkdir out
9645    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9646
9647    lt_compiler_flag="-o out/conftest2.$ac_objext"
9648    # Insert the option either (1) after the last *FLAGS variable, or
9649    # (2) before a word containing "conftest.", or (3) at the end.
9650    # Note that $ac_compile itself does not contain backslashes and begins
9651    # with a dollar sign (not a hyphen), so the echo should work correctly.
9652    lt_compile=`echo "$ac_compile" | $SED \
9653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655    -e 's:$: $lt_compiler_flag:'`
9656    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657    (eval "$lt_compile" 2>out/conftest.err)
9658    ac_status=$?
9659    cat out/conftest.err >&5
9660    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9662    then
9663      # The compiler can only warn and ignore the option if not recognized
9664      # So say no if there are warnings
9665      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9666      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9667      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9668        lt_cv_prog_compiler_c_o=yes
9669      fi
9670    fi
9671    chmod u+w . 2>&5
9672    $RM conftest*
9673    # SGI C++ compiler will create directory out/ii_files/ for
9674    # template instantiation
9675    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9676    $RM out/* && rmdir out
9677    cd ..
9678    $RM -r conftest
9679    $RM conftest*
9680
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9683 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9684
9685
9686
9687
9688 hard_links="nottested"
9689 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9690   # do not overwrite the value of need_locks provided by the user
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9692 $as_echo_n "checking if we can lock with hard links... " >&6; }
9693   hard_links=yes
9694   $RM conftest*
9695   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9696   touch conftest.a
9697   ln conftest.a conftest.b 2>&5 || hard_links=no
9698   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9700 $as_echo "$hard_links" >&6; }
9701   if test "$hard_links" = no; then
9702     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9704     need_locks=warn
9705   fi
9706 else
9707   need_locks=no
9708 fi
9709
9710
9711
9712
9713
9714
9715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9717
9718   runpath_var=
9719   allow_undefined_flag=
9720   always_export_symbols=no
9721   archive_cmds=
9722   archive_expsym_cmds=
9723   compiler_needs_object=no
9724   enable_shared_with_static_runtimes=no
9725   export_dynamic_flag_spec=
9726   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9727   hardcode_automatic=no
9728   hardcode_direct=no
9729   hardcode_direct_absolute=no
9730   hardcode_libdir_flag_spec=
9731   hardcode_libdir_separator=
9732   hardcode_minus_L=no
9733   hardcode_shlibpath_var=unsupported
9734   inherit_rpath=no
9735   link_all_deplibs=unknown
9736   module_cmds=
9737   module_expsym_cmds=
9738   old_archive_from_new_cmds=
9739   old_archive_from_expsyms_cmds=
9740   thread_safe_flag_spec=
9741   whole_archive_flag_spec=
9742   # include_expsyms should be a list of space-separated symbols to be *always*
9743   # included in the symbol list
9744   include_expsyms=
9745   # exclude_expsyms can be an extended regexp of symbols to exclude
9746   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9747   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9748   # as well as any symbol that contains `d'.
9749   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9750   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9751   # platforms (ab)use it in PIC code, but their linkers get confused if
9752   # the symbol is explicitly referenced.  Since portable code cannot
9753   # rely on this symbol name, it's probably fine to never include it in
9754   # preloaded symbol tables.
9755   # Exclude shared library initialization/finalization symbols.
9756   extract_expsyms_cmds=
9757
9758   case $host_os in
9759   cygwin* | mingw* | pw32* | cegcc*)
9760     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9761     # When not using gcc, we currently assume that we are using
9762     # Microsoft Visual C++.
9763     if test "$GCC" != yes; then
9764       with_gnu_ld=no
9765     fi
9766     ;;
9767   interix*)
9768     # we just hope/assume this is gcc and not c89 (= MSVC++)
9769     with_gnu_ld=yes
9770     ;;
9771   openbsd*)
9772     with_gnu_ld=no
9773     ;;
9774   linux* | k*bsd*-gnu | gnu*)
9775     link_all_deplibs=no
9776     ;;
9777   esac
9778
9779   ld_shlibs=yes
9780
9781   # On some targets, GNU ld is compatible enough with the native linker
9782   # that we're better off using the native interface for both.
9783   lt_use_gnu_ld_interface=no
9784   if test "$with_gnu_ld" = yes; then
9785     case $host_os in
9786       aix*)
9787         # The AIX port of GNU ld has always aspired to compatibility
9788         # with the native linker.  However, as the warning in the GNU ld
9789         # block says, versions before 2.19.5* couldn't really create working
9790         # shared libraries, regardless of the interface used.
9791         case `$LD -v 2>&1` in
9792           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9793           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9794           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9795           *)
9796             lt_use_gnu_ld_interface=yes
9797             ;;
9798         esac
9799         ;;
9800       *)
9801         lt_use_gnu_ld_interface=yes
9802         ;;
9803     esac
9804   fi
9805
9806   if test "$lt_use_gnu_ld_interface" = yes; then
9807     # If archive_cmds runs LD, not CC, wlarc should be empty
9808     wlarc='${wl}'
9809
9810     # Set some defaults for GNU ld with shared library support. These
9811     # are reset later if shared libraries are not supported. Putting them
9812     # here allows them to be overridden if necessary.
9813     runpath_var=LD_RUN_PATH
9814     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9815     export_dynamic_flag_spec='${wl}--export-dynamic'
9816     # ancient GNU ld didn't support --whole-archive et. al.
9817     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9818       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9819     else
9820       whole_archive_flag_spec=
9821     fi
9822     supports_anon_versioning=no
9823     case `$LD -v 2>&1` in
9824       *GNU\ gold*) supports_anon_versioning=yes ;;
9825       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9826       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9827       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9828       *\ 2.11.*) ;; # other 2.11 versions
9829       *) supports_anon_versioning=yes ;;
9830     esac
9831
9832     # See if GNU ld supports shared libraries.
9833     case $host_os in
9834     aix[3-9]*)
9835       # On AIX/PPC, the GNU linker is very broken
9836       if test "$host_cpu" != ia64; then
9837         ld_shlibs=no
9838         cat <<_LT_EOF 1>&2
9839
9840 *** Warning: the GNU linker, at least up to release 2.19, is reported
9841 *** to be unable to reliably create shared libraries on AIX.
9842 *** Therefore, libtool is disabling shared libraries support.  If you
9843 *** really care for shared libraries, you may want to install binutils
9844 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9845 *** You will then need to restart the configuration process.
9846
9847 _LT_EOF
9848       fi
9849       ;;
9850
9851     amigaos*)
9852       case $host_cpu in
9853       powerpc)
9854             # see comment about AmigaOS4 .so support
9855             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856             archive_expsym_cmds=''
9857         ;;
9858       m68k)
9859             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)'
9860             hardcode_libdir_flag_spec='-L$libdir'
9861             hardcode_minus_L=yes
9862         ;;
9863       esac
9864       ;;
9865
9866     beos*)
9867       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9868         allow_undefined_flag=unsupported
9869         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9870         # support --undefined.  This deserves some investigation.  FIXME
9871         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9872       else
9873         ld_shlibs=no
9874       fi
9875       ;;
9876
9877     cygwin* | mingw* | pw32* | cegcc*)
9878       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9879       # as there is no search path for DLLs.
9880       hardcode_libdir_flag_spec='-L$libdir'
9881       export_dynamic_flag_spec='${wl}--export-all-symbols'
9882       allow_undefined_flag=unsupported
9883       always_export_symbols=no
9884       enable_shared_with_static_runtimes=yes
9885       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'
9886       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9887
9888       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9889         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9890         # If the export-symbols file already is a .def file (1st line
9891         # is EXPORTS), use it as is; otherwise, prepend...
9892         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9893           cp $export_symbols $output_objdir/$soname.def;
9894         else
9895           echo EXPORTS > $output_objdir/$soname.def;
9896           cat $export_symbols >> $output_objdir/$soname.def;
9897         fi~
9898         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9899       else
9900         ld_shlibs=no
9901       fi
9902       ;;
9903
9904     haiku*)
9905       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906       link_all_deplibs=yes
9907       ;;
9908
9909     interix[3-9]*)
9910       hardcode_direct=no
9911       hardcode_shlibpath_var=no
9912       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9913       export_dynamic_flag_spec='${wl}-E'
9914       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9915       # Instead, shared libraries are loaded at an image base (0x10000000 by
9916       # default) and relocated if they conflict, which is a slow very memory
9917       # consuming and fragmenting process.  To avoid this, we pick a random,
9918       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9919       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9920       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9921       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'
9922       ;;
9923
9924     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9925       tmp_diet=no
9926       if test "$host_os" = linux-dietlibc; then
9927         case $cc_basename in
9928           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9929         esac
9930       fi
9931       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9932          && test "$tmp_diet" = no
9933       then
9934         tmp_addflag=' $pic_flag'
9935         tmp_sharedflag='-shared'
9936         case $cc_basename,$host_cpu in
9937         pgcc*)                          # Portland Group C compiler
9938           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'
9939           tmp_addflag=' $pic_flag'
9940           ;;
9941         pgf77* | pgf90* | pgf95* | pgfortran*)
9942                                         # Portland Group f77 and f90 compilers
9943           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'
9944           tmp_addflag=' $pic_flag -Mnomain' ;;
9945         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9946           tmp_addflag=' -i_dynamic' ;;
9947         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9948           tmp_addflag=' -i_dynamic -nofor_main' ;;
9949         ifc* | ifort*)                  # Intel Fortran compiler
9950           tmp_addflag=' -nofor_main' ;;
9951         lf95*)                          # Lahey Fortran 8.1
9952           whole_archive_flag_spec=
9953           tmp_sharedflag='--shared' ;;
9954         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9955           tmp_sharedflag='-qmkshrobj'
9956           tmp_addflag= ;;
9957         nvcc*)  # Cuda Compiler Driver 2.2
9958           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'
9959           compiler_needs_object=yes
9960           ;;
9961         esac
9962         case `$CC -V 2>&1 | sed 5q` in
9963         *Sun\ C*)                       # Sun C 5.9
9964           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'
9965           compiler_needs_object=yes
9966           tmp_sharedflag='-G' ;;
9967         *Sun\ F*)                       # Sun Fortran 8.3
9968           tmp_sharedflag='-G' ;;
9969         esac
9970         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9971
9972         if test "x$supports_anon_versioning" = xyes; then
9973           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9974             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9975             echo "local: *; };" >> $output_objdir/$libname.ver~
9976             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9977         fi
9978
9979         case $cc_basename in
9980         xlf* | bgf* | bgxlf* | mpixlf*)
9981           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9982           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9983           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9984           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9985           if test "x$supports_anon_versioning" = xyes; then
9986             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9987               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9988               echo "local: *; };" >> $output_objdir/$libname.ver~
9989               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9990           fi
9991           ;;
9992         esac
9993       else
9994         ld_shlibs=no
9995       fi
9996       ;;
9997
9998     netbsd* | netbsdelf*-gnu)
9999       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10000         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10001         wlarc=
10002       else
10003         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10004         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10005       fi
10006       ;;
10007
10008     solaris*)
10009       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10010         ld_shlibs=no
10011         cat <<_LT_EOF 1>&2
10012
10013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10014 *** create shared libraries on Solaris systems.  Therefore, libtool
10015 *** is disabling shared libraries support.  We urge you to upgrade GNU
10016 *** binutils to release 2.9.1 or newer.  Another option is to modify
10017 *** your PATH or compiler configuration so that the native linker is
10018 *** used, and then restart.
10019
10020 _LT_EOF
10021       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10022         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10024       else
10025         ld_shlibs=no
10026       fi
10027       ;;
10028
10029     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10030       case `$LD -v 2>&1` in
10031         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10032         ld_shlibs=no
10033         cat <<_LT_EOF 1>&2
10034
10035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10036 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10037 *** is disabling shared libraries support.  We urge you to upgrade GNU
10038 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10039 *** your PATH or compiler configuration so that the native linker is
10040 *** used, and then restart.
10041
10042 _LT_EOF
10043         ;;
10044         *)
10045           # For security reasons, it is highly recommended that you always
10046           # use absolute paths for naming shared libraries, and exclude the
10047           # DT_RUNPATH tag from executables and libraries.  But doing so
10048           # requires that you compile everything twice, which is a pain.
10049           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10050             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10053           else
10054             ld_shlibs=no
10055           fi
10056         ;;
10057       esac
10058       ;;
10059
10060     sunos4*)
10061       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10062       wlarc=
10063       hardcode_direct=yes
10064       hardcode_shlibpath_var=no
10065       ;;
10066
10067     *)
10068       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10069         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10070         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10071       else
10072         ld_shlibs=no
10073       fi
10074       ;;
10075     esac
10076
10077     if test "$ld_shlibs" = no; then
10078       runpath_var=
10079       hardcode_libdir_flag_spec=
10080       export_dynamic_flag_spec=
10081       whole_archive_flag_spec=
10082     fi
10083   else
10084     # PORTME fill in a description of your system's linker (not GNU ld)
10085     case $host_os in
10086     aix3*)
10087       allow_undefined_flag=unsupported
10088       always_export_symbols=yes
10089       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'
10090       # Note: this linker hardcodes the directories in LIBPATH if there
10091       # are no directories specified by -L.
10092       hardcode_minus_L=yes
10093       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10094         # Neither direct hardcoding nor static linking is supported with a
10095         # broken collect2.
10096         hardcode_direct=unsupported
10097       fi
10098       ;;
10099
10100     aix[4-9]*)
10101       if test "$host_cpu" = ia64; then
10102         # On IA64, the linker does run time linking by default, so we don't
10103         # have to do anything special.
10104         aix_use_runtimelinking=no
10105         exp_sym_flag='-Bexport'
10106         no_entry_flag=""
10107       else
10108         # If we're using GNU nm, then we don't want the "-C" option.
10109         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10110         # Also, AIX nm treats weak defined symbols like other global
10111         # defined symbols, whereas GNU nm marks them as "W".
10112         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10113           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'
10114         else
10115           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'
10116         fi
10117         aix_use_runtimelinking=no
10118
10119         # Test if we are trying to use run time linking or normal
10120         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10121         # need to do runtime linking.
10122         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10123           for ld_flag in $LDFLAGS; do
10124           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10125             aix_use_runtimelinking=yes
10126             break
10127           fi
10128           done
10129           ;;
10130         esac
10131
10132         exp_sym_flag='-bexport'
10133         no_entry_flag='-bnoentry'
10134       fi
10135
10136       # When large executables or shared objects are built, AIX ld can
10137       # have problems creating the table of contents.  If linking a library
10138       # or program results in "error TOC overflow" add -mminimal-toc to
10139       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10140       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10141
10142       archive_cmds=''
10143       hardcode_direct=yes
10144       hardcode_direct_absolute=yes
10145       hardcode_libdir_separator=':'
10146       link_all_deplibs=yes
10147       file_list_spec='${wl}-f,'
10148
10149       if test "$GCC" = yes; then
10150         case $host_os in aix4.[012]|aix4.[012].*)
10151         # We only want to do this on AIX 4.2 and lower, the check
10152         # below for broken collect2 doesn't work under 4.3+
10153           collect2name=`${CC} -print-prog-name=collect2`
10154           if test -f "$collect2name" &&
10155            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10156           then
10157           # We have reworked collect2
10158           :
10159           else
10160           # We have old collect2
10161           hardcode_direct=unsupported
10162           # It fails to find uninstalled libraries when the uninstalled
10163           # path is not listed in the libpath.  Setting hardcode_minus_L
10164           # to unsupported forces relinking
10165           hardcode_minus_L=yes
10166           hardcode_libdir_flag_spec='-L$libdir'
10167           hardcode_libdir_separator=
10168           fi
10169           ;;
10170         esac
10171         shared_flag='-shared'
10172         if test "$aix_use_runtimelinking" = yes; then
10173           shared_flag="$shared_flag "'${wl}-G'
10174         fi
10175         link_all_deplibs=no
10176       else
10177         # not using gcc
10178         if test "$host_cpu" = ia64; then
10179         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10180         # chokes on -Wl,-G. The following line is correct:
10181           shared_flag='-G'
10182         else
10183           if test "$aix_use_runtimelinking" = yes; then
10184             shared_flag='${wl}-G'
10185           else
10186             shared_flag='${wl}-bM:SRE'
10187           fi
10188         fi
10189       fi
10190
10191       export_dynamic_flag_spec='${wl}-bexpall'
10192       # It seems that -bexpall does not export symbols beginning with
10193       # underscore (_), so it is better to generate a list of symbols to export.
10194       always_export_symbols=yes
10195       if test "$aix_use_runtimelinking" = yes; then
10196         # Warning - without using the other runtime loading flags (-brtl),
10197         # -berok will link without error, but may produce a broken library.
10198         allow_undefined_flag='-berok'
10199         # Determine the default libpath from the value encoded in an
10200         # empty executable.
10201         if test "${lt_cv_aix_libpath+set}" = set; then
10202   aix_libpath=$lt_cv_aix_libpath
10203 else
10204   if ${lt_cv_aix_libpath_+:} false; then :
10205   $as_echo_n "(cached) " >&6
10206 else
10207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h.  */
10209
10210 int
10211 main ()
10212 {
10213
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219
10220   lt_aix_libpath_sed='
10221       /Import File Strings/,/^$/ {
10222           /^0/ {
10223               s/^0  *\([^ ]*\) *$/\1/
10224               p
10225           }
10226       }'
10227   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10228   # Check for a 64-bit object if we didn't find anything.
10229   if test -z "$lt_cv_aix_libpath_"; then
10230     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10231   fi
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext \
10234     conftest$ac_exeext conftest.$ac_ext
10235   if test -z "$lt_cv_aix_libpath_"; then
10236     lt_cv_aix_libpath_="/usr/lib:/lib"
10237   fi
10238
10239 fi
10240
10241   aix_libpath=$lt_cv_aix_libpath_
10242 fi
10243
10244         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10245         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"
10246       else
10247         if test "$host_cpu" = ia64; then
10248           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10249           allow_undefined_flag="-z nodefs"
10250           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"
10251         else
10252          # Determine the default libpath from the value encoded in an
10253          # empty executable.
10254          if test "${lt_cv_aix_libpath+set}" = set; then
10255   aix_libpath=$lt_cv_aix_libpath
10256 else
10257   if ${lt_cv_aix_libpath_+:} false; then :
10258   $as_echo_n "(cached) " >&6
10259 else
10260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h.  */
10262
10263 int
10264 main ()
10265 {
10266
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272
10273   lt_aix_libpath_sed='
10274       /Import File Strings/,/^$/ {
10275           /^0/ {
10276               s/^0  *\([^ ]*\) *$/\1/
10277               p
10278           }
10279       }'
10280   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281   # Check for a 64-bit object if we didn't find anything.
10282   if test -z "$lt_cv_aix_libpath_"; then
10283     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10284   fi
10285 fi
10286 rm -f core conftest.err conftest.$ac_objext \
10287     conftest$ac_exeext conftest.$ac_ext
10288   if test -z "$lt_cv_aix_libpath_"; then
10289     lt_cv_aix_libpath_="/usr/lib:/lib"
10290   fi
10291
10292 fi
10293
10294   aix_libpath=$lt_cv_aix_libpath_
10295 fi
10296
10297          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10298           # Warning - without using the other run time loading flags,
10299           # -berok will link without error, but may produce a broken library.
10300           no_undefined_flag=' ${wl}-bernotok'
10301           allow_undefined_flag=' ${wl}-berok'
10302           if test "$with_gnu_ld" = yes; then
10303             # We only use this code for GNU lds that support --whole-archive.
10304             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10305           else
10306             # Exported symbols can be pulled into shared objects from archives
10307             whole_archive_flag_spec='$convenience'
10308           fi
10309           archive_cmds_need_lc=yes
10310           # This is similar to how AIX traditionally builds its shared libraries.
10311           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'
10312         fi
10313       fi
10314       ;;
10315
10316     amigaos*)
10317       case $host_cpu in
10318       powerpc)
10319             # see comment about AmigaOS4 .so support
10320             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10321             archive_expsym_cmds=''
10322         ;;
10323       m68k)
10324             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)'
10325             hardcode_libdir_flag_spec='-L$libdir'
10326             hardcode_minus_L=yes
10327         ;;
10328       esac
10329       ;;
10330
10331     bsdi[45]*)
10332       export_dynamic_flag_spec=-rdynamic
10333       ;;
10334
10335     cygwin* | mingw* | pw32* | cegcc*)
10336       # When not using gcc, we currently assume that we are using
10337       # Microsoft Visual C++.
10338       # hardcode_libdir_flag_spec is actually meaningless, as there is
10339       # no search path for DLLs.
10340       case $cc_basename in
10341       cl*)
10342         # Native MSVC
10343         hardcode_libdir_flag_spec=' '
10344         allow_undefined_flag=unsupported
10345         always_export_symbols=yes
10346         file_list_spec='@'
10347         # Tell ltmain to make .lib files, not .a files.
10348         libext=lib
10349         # Tell ltmain to make .dll files, not .so files.
10350         shrext_cmds=".dll"
10351         # FIXME: Setting linknames here is a bad hack.
10352         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10353         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10354             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10355           else
10356             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10357           fi~
10358           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10359           linknames='
10360         # The linker will not automatically build a static lib if we build a DLL.
10361         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10362         enable_shared_with_static_runtimes=yes
10363         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10364         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10365         # Don't use ranlib
10366         old_postinstall_cmds='chmod 644 $oldlib'
10367         postlink_cmds='lt_outputfile="@OUTPUT@"~
10368           lt_tool_outputfile="@TOOL_OUTPUT@"~
10369           case $lt_outputfile in
10370             *.exe|*.EXE) ;;
10371             *)
10372               lt_outputfile="$lt_outputfile.exe"
10373               lt_tool_outputfile="$lt_tool_outputfile.exe"
10374               ;;
10375           esac~
10376           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10377             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10378             $RM "$lt_outputfile.manifest";
10379           fi'
10380         ;;
10381       *)
10382         # Assume MSVC wrapper
10383         hardcode_libdir_flag_spec=' '
10384         allow_undefined_flag=unsupported
10385         # Tell ltmain to make .lib files, not .a files.
10386         libext=lib
10387         # Tell ltmain to make .dll files, not .so files.
10388         shrext_cmds=".dll"
10389         # FIXME: Setting linknames here is a bad hack.
10390         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10391         # The linker will automatically build a .lib file if we build a DLL.
10392         old_archive_from_new_cmds='true'
10393         # FIXME: Should let the user specify the lib program.
10394         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10395         enable_shared_with_static_runtimes=yes
10396         ;;
10397       esac
10398       ;;
10399
10400     darwin* | rhapsody*)
10401
10402
10403   archive_cmds_need_lc=no
10404   hardcode_direct=no
10405   hardcode_automatic=yes
10406   hardcode_shlibpath_var=unsupported
10407   if test "$lt_cv_ld_force_load" = "yes"; then
10408     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\"`'
10409
10410   else
10411     whole_archive_flag_spec=''
10412   fi
10413   link_all_deplibs=yes
10414   allow_undefined_flag="$_lt_dar_allow_undefined"
10415   case $cc_basename in
10416      ifort*) _lt_dar_can_shared=yes ;;
10417      *) _lt_dar_can_shared=$GCC ;;
10418   esac
10419   if test "$_lt_dar_can_shared" = "yes"; then
10420     output_verbose_link_cmd=func_echo_all
10421     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10422     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10423     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}"
10424     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}"
10425
10426   else
10427   ld_shlibs=no
10428   fi
10429
10430       ;;
10431
10432     dgux*)
10433       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434       hardcode_libdir_flag_spec='-L$libdir'
10435       hardcode_shlibpath_var=no
10436       ;;
10437
10438     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10439     # support.  Future versions do this automatically, but an explicit c++rt0.o
10440     # does not break anything, and helps significantly (at the cost of a little
10441     # extra space).
10442     freebsd2.2*)
10443       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10444       hardcode_libdir_flag_spec='-R$libdir'
10445       hardcode_direct=yes
10446       hardcode_shlibpath_var=no
10447       ;;
10448
10449     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10450     freebsd2.*)
10451       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10452       hardcode_direct=yes
10453       hardcode_minus_L=yes
10454       hardcode_shlibpath_var=no
10455       ;;
10456
10457     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10458     freebsd* | dragonfly*)
10459       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10460       hardcode_libdir_flag_spec='-R$libdir'
10461       hardcode_direct=yes
10462       hardcode_shlibpath_var=no
10463       ;;
10464
10465     hpux9*)
10466       if test "$GCC" = yes; then
10467         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'
10468       else
10469         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'
10470       fi
10471       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10472       hardcode_libdir_separator=:
10473       hardcode_direct=yes
10474
10475       # hardcode_minus_L: Not really in the search PATH,
10476       # but as the default location of the library.
10477       hardcode_minus_L=yes
10478       export_dynamic_flag_spec='${wl}-E'
10479       ;;
10480
10481     hpux10*)
10482       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10483         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10484       else
10485         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10486       fi
10487       if test "$with_gnu_ld" = no; then
10488         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10489         hardcode_libdir_separator=:
10490         hardcode_direct=yes
10491         hardcode_direct_absolute=yes
10492         export_dynamic_flag_spec='${wl}-E'
10493         # hardcode_minus_L: Not really in the search PATH,
10494         # but as the default location of the library.
10495         hardcode_minus_L=yes
10496       fi
10497       ;;
10498
10499     hpux11*)
10500       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10501         case $host_cpu in
10502         hppa*64*)
10503           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10504           ;;
10505         ia64*)
10506           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10507           ;;
10508         *)
10509           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10510           ;;
10511         esac
10512       else
10513         case $host_cpu in
10514         hppa*64*)
10515           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10516           ;;
10517         ia64*)
10518           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10519           ;;
10520         *)
10521
10522           # Older versions of the 11.00 compiler do not understand -b yet
10523           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10524           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10525 $as_echo_n "checking if $CC understands -b... " >&6; }
10526 if ${lt_cv_prog_compiler__b+:} false; then :
10527   $as_echo_n "(cached) " >&6
10528 else
10529   lt_cv_prog_compiler__b=no
10530    save_LDFLAGS="$LDFLAGS"
10531    LDFLAGS="$LDFLAGS -b"
10532    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10533    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10534      # The linker can only warn and ignore the option if not recognized
10535      # So say no if there are warnings
10536      if test -s conftest.err; then
10537        # Append any errors to the config.log.
10538        cat conftest.err 1>&5
10539        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10540        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10541        if diff conftest.exp conftest.er2 >/dev/null; then
10542          lt_cv_prog_compiler__b=yes
10543        fi
10544      else
10545        lt_cv_prog_compiler__b=yes
10546      fi
10547    fi
10548    $RM -r conftest*
10549    LDFLAGS="$save_LDFLAGS"
10550
10551 fi
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10553 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10554
10555 if test x"$lt_cv_prog_compiler__b" = xyes; then
10556     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10557 else
10558     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10559 fi
10560
10561           ;;
10562         esac
10563       fi
10564       if test "$with_gnu_ld" = no; then
10565         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10566         hardcode_libdir_separator=:
10567
10568         case $host_cpu in
10569         hppa*64*|ia64*)
10570           hardcode_direct=no
10571           hardcode_shlibpath_var=no
10572           ;;
10573         *)
10574           hardcode_direct=yes
10575           hardcode_direct_absolute=yes
10576           export_dynamic_flag_spec='${wl}-E'
10577
10578           # hardcode_minus_L: Not really in the search PATH,
10579           # but as the default location of the library.
10580           hardcode_minus_L=yes
10581           ;;
10582         esac
10583       fi
10584       ;;
10585
10586     irix5* | irix6* | nonstopux*)
10587       if test "$GCC" = yes; then
10588         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'
10589         # Try to use the -exported_symbol ld option, if it does not
10590         # work, assume that -exports_file does not work either and
10591         # implicitly export all symbols.
10592         # This should be the same for all languages, so no per-tag cache variable.
10593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10594 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10595 if ${lt_cv_irix_exported_symbol+:} false; then :
10596   $as_echo_n "(cached) " >&6
10597 else
10598   save_LDFLAGS="$LDFLAGS"
10599            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10600            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h.  */
10602 int foo (void) { return 0; }
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605   lt_cv_irix_exported_symbol=yes
10606 else
10607   lt_cv_irix_exported_symbol=no
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext \
10610     conftest$ac_exeext conftest.$ac_ext
10611            LDFLAGS="$save_LDFLAGS"
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10614 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10615         if test "$lt_cv_irix_exported_symbol" = yes; then
10616           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'
10617         fi
10618       else
10619         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'
10620         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'
10621       fi
10622       archive_cmds_need_lc='no'
10623       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10624       hardcode_libdir_separator=:
10625       inherit_rpath=yes
10626       link_all_deplibs=yes
10627       ;;
10628
10629     netbsd* | netbsdelf*-gnu)
10630       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10631         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10632       else
10633         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10634       fi
10635       hardcode_libdir_flag_spec='-R$libdir'
10636       hardcode_direct=yes
10637       hardcode_shlibpath_var=no
10638       ;;
10639
10640     newsos6)
10641       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642       hardcode_direct=yes
10643       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10644       hardcode_libdir_separator=:
10645       hardcode_shlibpath_var=no
10646       ;;
10647
10648     *nto* | *qnx*)
10649       ;;
10650
10651     openbsd*)
10652       if test -f /usr/libexec/ld.so; then
10653         hardcode_direct=yes
10654         hardcode_shlibpath_var=no
10655         hardcode_direct_absolute=yes
10656         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10657           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10658           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10659           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10660           export_dynamic_flag_spec='${wl}-E'
10661         else
10662           case $host_os in
10663            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10664              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10665              hardcode_libdir_flag_spec='-R$libdir'
10666              ;;
10667            *)
10668              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10669              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10670              ;;
10671           esac
10672         fi
10673       else
10674         ld_shlibs=no
10675       fi
10676       ;;
10677
10678     os2*)
10679       hardcode_libdir_flag_spec='-L$libdir'
10680       hardcode_minus_L=yes
10681       allow_undefined_flag=unsupported
10682       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'
10683       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10684       ;;
10685
10686     osf3*)
10687       if test "$GCC" = yes; then
10688         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10689         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'
10690       else
10691         allow_undefined_flag=' -expect_unresolved \*'
10692         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'
10693       fi
10694       archive_cmds_need_lc='no'
10695       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10696       hardcode_libdir_separator=:
10697       ;;
10698
10699     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10700       if test "$GCC" = yes; then
10701         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10702         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'
10703         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10704       else
10705         allow_undefined_flag=' -expect_unresolved \*'
10706         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'
10707         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~
10708         $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'
10709
10710         # Both c and cxx compiler support -rpath directly
10711         hardcode_libdir_flag_spec='-rpath $libdir'
10712       fi
10713       archive_cmds_need_lc='no'
10714       hardcode_libdir_separator=:
10715       ;;
10716
10717     solaris*)
10718       no_undefined_flag=' -z defs'
10719       if test "$GCC" = yes; then
10720         wlarc='${wl}'
10721         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10722         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10723           $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'
10724       else
10725         case `$CC -V 2>&1` in
10726         *"Compilers 5.0"*)
10727           wlarc=''
10728           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10730           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10731           ;;
10732         *)
10733           wlarc='${wl}'
10734           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10735           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10736           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10737           ;;
10738         esac
10739       fi
10740       hardcode_libdir_flag_spec='-R$libdir'
10741       hardcode_shlibpath_var=no
10742       case $host_os in
10743       solaris2.[0-5] | solaris2.[0-5].*) ;;
10744       *)
10745         # The compiler driver will combine and reorder linker options,
10746         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10747         # but is careful enough not to reorder.
10748         # Supported since Solaris 2.6 (maybe 2.5.1?)
10749         if test "$GCC" = yes; then
10750           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10751         else
10752           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10753         fi
10754         ;;
10755       esac
10756       link_all_deplibs=yes
10757       ;;
10758
10759     sunos4*)
10760       if test "x$host_vendor" = xsequent; then
10761         # Use $CC to link under sequent, because it throws in some extra .o
10762         # files that make .init and .fini sections work.
10763         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10764       else
10765         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10766       fi
10767       hardcode_libdir_flag_spec='-L$libdir'
10768       hardcode_direct=yes
10769       hardcode_minus_L=yes
10770       hardcode_shlibpath_var=no
10771       ;;
10772
10773     sysv4)
10774       case $host_vendor in
10775         sni)
10776           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10777           hardcode_direct=yes # is this really true???
10778         ;;
10779         siemens)
10780           ## LD is ld it makes a PLAMLIB
10781           ## CC just makes a GrossModule.
10782           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10783           reload_cmds='$CC -r -o $output$reload_objs'
10784           hardcode_direct=no
10785         ;;
10786         motorola)
10787           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10788           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10789         ;;
10790       esac
10791       runpath_var='LD_RUN_PATH'
10792       hardcode_shlibpath_var=no
10793       ;;
10794
10795     sysv4.3*)
10796       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10797       hardcode_shlibpath_var=no
10798       export_dynamic_flag_spec='-Bexport'
10799       ;;
10800
10801     sysv4*MP*)
10802       if test -d /usr/nec; then
10803         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10804         hardcode_shlibpath_var=no
10805         runpath_var=LD_RUN_PATH
10806         hardcode_runpath_var=yes
10807         ld_shlibs=yes
10808       fi
10809       ;;
10810
10811     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10812       no_undefined_flag='${wl}-z,text'
10813       archive_cmds_need_lc=no
10814       hardcode_shlibpath_var=no
10815       runpath_var='LD_RUN_PATH'
10816
10817       if test "$GCC" = yes; then
10818         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10819         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820       else
10821         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10822         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823       fi
10824       ;;
10825
10826     sysv5* | sco3.2v5* | sco5v6*)
10827       # Note: We can NOT use -z defs as we might desire, because we do not
10828       # link with -lc, and that would cause any symbols used from libc to
10829       # always be unresolved, which means just about no library would
10830       # ever link correctly.  If we're not using GNU ld we use -z text
10831       # though, which does catch some bad symbols but isn't as heavy-handed
10832       # as -z defs.
10833       no_undefined_flag='${wl}-z,text'
10834       allow_undefined_flag='${wl}-z,nodefs'
10835       archive_cmds_need_lc=no
10836       hardcode_shlibpath_var=no
10837       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10838       hardcode_libdir_separator=':'
10839       link_all_deplibs=yes
10840       export_dynamic_flag_spec='${wl}-Bexport'
10841       runpath_var='LD_RUN_PATH'
10842
10843       if test "$GCC" = yes; then
10844         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10845         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10846       else
10847         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10848         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10849       fi
10850       ;;
10851
10852     uts4*)
10853       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10854       hardcode_libdir_flag_spec='-L$libdir'
10855       hardcode_shlibpath_var=no
10856       ;;
10857
10858     *)
10859       ld_shlibs=no
10860       ;;
10861     esac
10862
10863     if test x$host_vendor = xsni; then
10864       case $host in
10865       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10866         export_dynamic_flag_spec='${wl}-Blargedynsym'
10867         ;;
10868       esac
10869     fi
10870   fi
10871
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10873 $as_echo "$ld_shlibs" >&6; }
10874 test "$ld_shlibs" = no && can_build_shared=no
10875
10876 with_gnu_ld=$with_gnu_ld
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892 #
10893 # Do we need to explicitly link libc?
10894 #
10895 case "x$archive_cmds_need_lc" in
10896 x|xyes)
10897   # Assume -lc should be added
10898   archive_cmds_need_lc=yes
10899
10900   if test "$enable_shared" = yes && test "$GCC" = yes; then
10901     case $archive_cmds in
10902     *'~'*)
10903       # FIXME: we may have to deal with multi-command sequences.
10904       ;;
10905     '$CC '*)
10906       # Test whether the compiler implicitly links with -lc since on some
10907       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10908       # to ld, don't add -lc before -lgcc.
10909       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10910 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10911 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10912   $as_echo_n "(cached) " >&6
10913 else
10914   $RM conftest*
10915         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10916
10917         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10918   (eval $ac_compile) 2>&5
10919   ac_status=$?
10920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10921   test $ac_status = 0; } 2>conftest.err; then
10922           soname=conftest
10923           lib=conftest
10924           libobjs=conftest.$ac_objext
10925           deplibs=
10926           wl=$lt_prog_compiler_wl
10927           pic_flag=$lt_prog_compiler_pic
10928           compiler_flags=-v
10929           linker_flags=-v
10930           verstring=
10931           output_objdir=.
10932           libname=conftest
10933           lt_save_allow_undefined_flag=$allow_undefined_flag
10934           allow_undefined_flag=
10935           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10936   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10937   ac_status=$?
10938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10939   test $ac_status = 0; }
10940           then
10941             lt_cv_archive_cmds_need_lc=no
10942           else
10943             lt_cv_archive_cmds_need_lc=yes
10944           fi
10945           allow_undefined_flag=$lt_save_allow_undefined_flag
10946         else
10947           cat conftest.err 1>&5
10948         fi
10949         $RM conftest*
10950
10951 fi
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10953 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10954       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10955       ;;
10956     esac
10957   fi
10958   ;;
10959 esac
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11113 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11114
11115 if test "$GCC" = yes; then
11116   case $host_os in
11117     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11118     *) lt_awk_arg="/^libraries:/" ;;
11119   esac
11120   case $host_os in
11121     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11122     *) lt_sed_strip_eq="s,=/,/,g" ;;
11123   esac
11124   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11125   case $lt_search_path_spec in
11126   *\;*)
11127     # if the path contains ";" then we assume it to be the separator
11128     # otherwise default to the standard path separator (i.e. ":") - it is
11129     # assumed that no part of a normal pathname contains ";" but that should
11130     # okay in the real world where ";" in dirpaths is itself problematic.
11131     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11132     ;;
11133   *)
11134     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11135     ;;
11136   esac
11137   # Ok, now we have the path, separated by spaces, we can step through it
11138   # and add multilib dir if necessary.
11139   lt_tmp_lt_search_path_spec=
11140   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11141   for lt_sys_path in $lt_search_path_spec; do
11142     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11143       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11144     else
11145       test -d "$lt_sys_path" && \
11146         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11147     fi
11148   done
11149   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11150 BEGIN {RS=" "; FS="/|\n";} {
11151   lt_foo="";
11152   lt_count=0;
11153   for (lt_i = NF; lt_i > 0; lt_i--) {
11154     if ($lt_i != "" && $lt_i != ".") {
11155       if ($lt_i == "..") {
11156         lt_count++;
11157       } else {
11158         if (lt_count == 0) {
11159           lt_foo="/" $lt_i lt_foo;
11160         } else {
11161           lt_count--;
11162         }
11163       }
11164     }
11165   }
11166   if (lt_foo != "") { lt_freq[lt_foo]++; }
11167   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11168 }'`
11169   # AWK program above erroneously prepends '/' to C:/dos/paths
11170   # for these hosts.
11171   case $host_os in
11172     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11173       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11174   esac
11175   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11176 else
11177   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11178 fi
11179 library_names_spec=
11180 libname_spec='lib$name'
11181 soname_spec=
11182 shrext_cmds=".so"
11183 postinstall_cmds=
11184 postuninstall_cmds=
11185 finish_cmds=
11186 finish_eval=
11187 shlibpath_var=
11188 shlibpath_overrides_runpath=unknown
11189 version_type=none
11190 dynamic_linker="$host_os ld.so"
11191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11192 need_lib_prefix=unknown
11193 hardcode_into_libs=no
11194
11195 # when you set need_version to no, make sure it does not cause -set_version
11196 # flags to be left without arguments
11197 need_version=unknown
11198
11199 case $host_os in
11200 aix3*)
11201   version_type=linux # correct to gnu/linux during the next big refactor
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11203   shlibpath_var=LIBPATH
11204
11205   # AIX 3 has no versioning support, so we append a major version to the name.
11206   soname_spec='${libname}${release}${shared_ext}$major'
11207   ;;
11208
11209 aix[4-9]*)
11210   version_type=linux # correct to gnu/linux during the next big refactor
11211   need_lib_prefix=no
11212   need_version=no
11213   hardcode_into_libs=yes
11214   if test "$host_cpu" = ia64; then
11215     # AIX 5 supports IA64
11216     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11217     shlibpath_var=LD_LIBRARY_PATH
11218   else
11219     # With GCC up to 2.95.x, collect2 would create an import file
11220     # for dependence libraries.  The import file would start with
11221     # the line `#! .'.  This would cause the generated library to
11222     # depend on `.', always an invalid library.  This was fixed in
11223     # development snapshots of GCC prior to 3.0.
11224     case $host_os in
11225       aix4 | aix4.[01] | aix4.[01].*)
11226       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11227            echo ' yes '
11228            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11229         :
11230       else
11231         can_build_shared=no
11232       fi
11233       ;;
11234     esac
11235     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11236     # soname into executable. Probably we can add versioning support to
11237     # collect2, so additional links can be useful in future.
11238     if test "$aix_use_runtimelinking" = yes; then
11239       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11240       # instead of lib<name>.a to let people know that these are not
11241       # typical AIX shared libraries.
11242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11243     else
11244       # We preserve .a as extension for shared libraries through AIX4.2
11245       # and later when we are not doing run time linking.
11246       library_names_spec='${libname}${release}.a $libname.a'
11247       soname_spec='${libname}${release}${shared_ext}$major'
11248     fi
11249     shlibpath_var=LIBPATH
11250   fi
11251   ;;
11252
11253 amigaos*)
11254   case $host_cpu in
11255   powerpc)
11256     # Since July 2007 AmigaOS4 officially supports .so libraries.
11257     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259     ;;
11260   m68k)
11261     library_names_spec='$libname.ixlibrary $libname.a'
11262     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11263     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'
11264     ;;
11265   esac
11266   ;;
11267
11268 beos*)
11269   library_names_spec='${libname}${shared_ext}'
11270   dynamic_linker="$host_os ld.so"
11271   shlibpath_var=LIBRARY_PATH
11272   ;;
11273
11274 bsdi[45]*)
11275   version_type=linux # correct to gnu/linux during the next big refactor
11276   need_version=no
11277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278   soname_spec='${libname}${release}${shared_ext}$major'
11279   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11282   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11283   # the default ld.so.conf also contains /usr/contrib/lib and
11284   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11285   # libtool to hard-code these into programs
11286   ;;
11287
11288 cygwin* | mingw* | pw32* | cegcc*)
11289   version_type=windows
11290   shrext_cmds=".dll"
11291   need_version=no
11292   need_lib_prefix=no
11293
11294   case $GCC,$cc_basename in
11295   yes,*)
11296     # gcc
11297     library_names_spec='$libname.dll.a'
11298     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11299     postinstall_cmds='base_file=`basename \${file}`~
11300       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11301       dldir=$destdir/`dirname \$dlpath`~
11302       test -d \$dldir || mkdir -p \$dldir~
11303       $install_prog $dir/$dlname \$dldir/$dlname~
11304       chmod a+x \$dldir/$dlname~
11305       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11306         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11307       fi'
11308     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11309       dlpath=$dir/\$dldll~
11310        $RM \$dlpath'
11311     shlibpath_overrides_runpath=yes
11312
11313     case $host_os in
11314     cygwin*)
11315       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11316       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11317
11318       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11319       ;;
11320     mingw* | cegcc*)
11321       # MinGW DLLs use traditional 'lib' prefix
11322       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11323       ;;
11324     pw32*)
11325       # pw32 DLLs use 'pw' prefix rather than 'lib'
11326       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11327       ;;
11328     esac
11329     dynamic_linker='Win32 ld.exe'
11330     ;;
11331
11332   *,cl*)
11333     # Native MSVC
11334     libname_spec='$name'
11335     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11336     library_names_spec='${libname}.dll.lib'
11337
11338     case $build_os in
11339     mingw*)
11340       sys_lib_search_path_spec=
11341       lt_save_ifs=$IFS
11342       IFS=';'
11343       for lt_path in $LIB
11344       do
11345         IFS=$lt_save_ifs
11346         # Let DOS variable expansion print the short 8.3 style file name.
11347         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11348         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11349       done
11350       IFS=$lt_save_ifs
11351       # Convert to MSYS style.
11352       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11353       ;;
11354     cygwin*)
11355       # Convert to unix form, then to dos form, then back to unix form
11356       # but this time dos style (no spaces!) so that the unix form looks
11357       # like /cygdrive/c/PROGRA~1:/cygdr...
11358       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11359       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11360       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11361       ;;
11362     *)
11363       sys_lib_search_path_spec="$LIB"
11364       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11365         # It is most probably a Windows format PATH.
11366         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11367       else
11368         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11369       fi
11370       # FIXME: find the short name or the path components, as spaces are
11371       # common. (e.g. "Program Files" -> "PROGRA~1")
11372       ;;
11373     esac
11374
11375     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11376     postinstall_cmds='base_file=`basename \${file}`~
11377       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11378       dldir=$destdir/`dirname \$dlpath`~
11379       test -d \$dldir || mkdir -p \$dldir~
11380       $install_prog $dir/$dlname \$dldir/$dlname'
11381     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11382       dlpath=$dir/\$dldll~
11383        $RM \$dlpath'
11384     shlibpath_overrides_runpath=yes
11385     dynamic_linker='Win32 link.exe'
11386     ;;
11387
11388   *)
11389     # Assume MSVC wrapper
11390     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11391     dynamic_linker='Win32 ld.exe'
11392     ;;
11393   esac
11394   # FIXME: first we should search . and the directory the executable is in
11395   shlibpath_var=PATH
11396   ;;
11397
11398 darwin* | rhapsody*)
11399   dynamic_linker="$host_os dyld"
11400   version_type=darwin
11401   need_lib_prefix=no
11402   need_version=no
11403   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11404   soname_spec='${libname}${release}${major}$shared_ext'
11405   shlibpath_overrides_runpath=yes
11406   shlibpath_var=DYLD_LIBRARY_PATH
11407   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11408
11409   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11410   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11411   ;;
11412
11413 dgux*)
11414   version_type=linux # correct to gnu/linux during the next big refactor
11415   need_lib_prefix=no
11416   need_version=no
11417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11418   soname_spec='${libname}${release}${shared_ext}$major'
11419   shlibpath_var=LD_LIBRARY_PATH
11420   ;;
11421
11422 freebsd* | dragonfly*)
11423   # DragonFly does not have aout.  When/if they implement a new
11424   # versioning mechanism, adjust this.
11425   if test -x /usr/bin/objformat; then
11426     objformat=`/usr/bin/objformat`
11427   else
11428     case $host_os in
11429     freebsd[23].*) objformat=aout ;;
11430     *) objformat=elf ;;
11431     esac
11432   fi
11433   version_type=freebsd-$objformat
11434   case $version_type in
11435     freebsd-elf*)
11436       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11437       need_version=no
11438       need_lib_prefix=no
11439       ;;
11440     freebsd-*)
11441       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11442       need_version=yes
11443       ;;
11444   esac
11445   shlibpath_var=LD_LIBRARY_PATH
11446   case $host_os in
11447   freebsd2.*)
11448     shlibpath_overrides_runpath=yes
11449     ;;
11450   freebsd3.[01]* | freebsdelf3.[01]*)
11451     shlibpath_overrides_runpath=yes
11452     hardcode_into_libs=yes
11453     ;;
11454   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11455   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11456     shlibpath_overrides_runpath=no
11457     hardcode_into_libs=yes
11458     ;;
11459   *) # from 4.6 on, and DragonFly
11460     shlibpath_overrides_runpath=yes
11461     hardcode_into_libs=yes
11462     ;;
11463   esac
11464   ;;
11465
11466 haiku*)
11467   version_type=linux # correct to gnu/linux during the next big refactor
11468   need_lib_prefix=no
11469   need_version=no
11470   dynamic_linker="$host_os runtime_loader"
11471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11472   soname_spec='${libname}${release}${shared_ext}$major'
11473   shlibpath_var=LIBRARY_PATH
11474   shlibpath_overrides_runpath=yes
11475   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11476   hardcode_into_libs=yes
11477   ;;
11478
11479 hpux9* | hpux10* | hpux11*)
11480   # Give a soname corresponding to the major version so that dld.sl refuses to
11481   # link against other versions.
11482   version_type=sunos
11483   need_lib_prefix=no
11484   need_version=no
11485   case $host_cpu in
11486   ia64*)
11487     shrext_cmds='.so'
11488     hardcode_into_libs=yes
11489     dynamic_linker="$host_os dld.so"
11490     shlibpath_var=LD_LIBRARY_PATH
11491     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493     soname_spec='${libname}${release}${shared_ext}$major'
11494     if test "X$HPUX_IA64_MODE" = X32; then
11495       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11496     else
11497       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11498     fi
11499     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11500     ;;
11501   hppa*64*)
11502     shrext_cmds='.sl'
11503     hardcode_into_libs=yes
11504     dynamic_linker="$host_os dld.sl"
11505     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11506     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508     soname_spec='${libname}${release}${shared_ext}$major'
11509     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11510     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11511     ;;
11512   *)
11513     shrext_cmds='.sl'
11514     dynamic_linker="$host_os dld.sl"
11515     shlibpath_var=SHLIB_PATH
11516     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518     soname_spec='${libname}${release}${shared_ext}$major'
11519     ;;
11520   esac
11521   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11522   postinstall_cmds='chmod 555 $lib'
11523   # or fails outright, so override atomically:
11524   install_override_mode=555
11525   ;;
11526
11527 interix[3-9]*)
11528   version_type=linux # correct to gnu/linux during the next big refactor
11529   need_lib_prefix=no
11530   need_version=no
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11532   soname_spec='${libname}${release}${shared_ext}$major'
11533   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   shlibpath_overrides_runpath=no
11536   hardcode_into_libs=yes
11537   ;;
11538
11539 irix5* | irix6* | nonstopux*)
11540   case $host_os in
11541     nonstopux*) version_type=nonstopux ;;
11542     *)
11543         if test "$lt_cv_prog_gnu_ld" = yes; then
11544                 version_type=linux # correct to gnu/linux during the next big refactor
11545         else
11546                 version_type=irix
11547         fi ;;
11548   esac
11549   need_lib_prefix=no
11550   need_version=no
11551   soname_spec='${libname}${release}${shared_ext}$major'
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11553   case $host_os in
11554   irix5* | nonstopux*)
11555     libsuff= shlibsuff=
11556     ;;
11557   *)
11558     case $LD in # libtool.m4 will add one of these switches to LD
11559     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11560       libsuff= shlibsuff= libmagic=32-bit;;
11561     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11562       libsuff=32 shlibsuff=N32 libmagic=N32;;
11563     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11564       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11565     *) libsuff= shlibsuff= libmagic=never-match;;
11566     esac
11567     ;;
11568   esac
11569   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11570   shlibpath_overrides_runpath=no
11571   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11572   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11573   hardcode_into_libs=yes
11574   ;;
11575
11576 # No shared lib support for Linux oldld, aout, or coff.
11577 linux*oldld* | linux*aout* | linux*coff*)
11578   dynamic_linker=no
11579   ;;
11580
11581 # This must be glibc/ELF.
11582 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11583   version_type=linux # correct to gnu/linux during the next big refactor
11584   need_lib_prefix=no
11585   need_version=no
11586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587   soname_spec='${libname}${release}${shared_ext}$major'
11588   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11589   shlibpath_var=LD_LIBRARY_PATH
11590   shlibpath_overrides_runpath=no
11591
11592   # Some binutils ld are patched to set DT_RUNPATH
11593   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11594   $as_echo_n "(cached) " >&6
11595 else
11596   lt_cv_shlibpath_overrides_runpath=no
11597     save_LDFLAGS=$LDFLAGS
11598     save_libdir=$libdir
11599     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11600          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h.  */
11603
11604 int
11605 main ()
11606 {
11607
11608   ;
11609   return 0;
11610 }
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11614   lt_cv_shlibpath_overrides_runpath=yes
11615 fi
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext \
11618     conftest$ac_exeext conftest.$ac_ext
11619     LDFLAGS=$save_LDFLAGS
11620     libdir=$save_libdir
11621
11622 fi
11623
11624   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11625
11626   # This implies no fast_install, which is unacceptable.
11627   # Some rework will be needed to allow for fast_install
11628   # before this can be enabled.
11629   hardcode_into_libs=yes
11630
11631   # Append ld.so.conf contents to the search path
11632   if test -f /etc/ld.so.conf; then
11633     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' ' '`
11634     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11635   fi
11636
11637   # We used to test for /lib/ld.so.1 and disable shared libraries on
11638   # powerpc, because MkLinux only supported shared libraries with the
11639   # GNU dynamic linker.  Since this was broken with cross compilers,
11640   # most powerpc-linux boxes support dynamic linking these days and
11641   # people can always --disable-shared, the test was removed, and we
11642   # assume the GNU/Linux dynamic linker is in use.
11643   dynamic_linker='GNU/Linux ld.so'
11644   ;;
11645
11646 netbsdelf*-gnu)
11647   version_type=linux
11648   need_lib_prefix=no
11649   need_version=no
11650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11651   soname_spec='${libname}${release}${shared_ext}$major'
11652   shlibpath_var=LD_LIBRARY_PATH
11653   shlibpath_overrides_runpath=no
11654   hardcode_into_libs=yes
11655   dynamic_linker='NetBSD ld.elf_so'
11656   ;;
11657
11658 netbsd*)
11659   version_type=sunos
11660   need_lib_prefix=no
11661   need_version=no
11662   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11664     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11665     dynamic_linker='NetBSD (a.out) ld.so'
11666   else
11667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11668     soname_spec='${libname}${release}${shared_ext}$major'
11669     dynamic_linker='NetBSD ld.elf_so'
11670   fi
11671   shlibpath_var=LD_LIBRARY_PATH
11672   shlibpath_overrides_runpath=yes
11673   hardcode_into_libs=yes
11674   ;;
11675
11676 newsos6)
11677   version_type=linux # correct to gnu/linux during the next big refactor
11678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679   shlibpath_var=LD_LIBRARY_PATH
11680   shlibpath_overrides_runpath=yes
11681   ;;
11682
11683 *nto* | *qnx*)
11684   version_type=qnx
11685   need_lib_prefix=no
11686   need_version=no
11687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688   soname_spec='${libname}${release}${shared_ext}$major'
11689   shlibpath_var=LD_LIBRARY_PATH
11690   shlibpath_overrides_runpath=no
11691   hardcode_into_libs=yes
11692   dynamic_linker='ldqnx.so'
11693   ;;
11694
11695 openbsd*)
11696   version_type=sunos
11697   sys_lib_dlsearch_path_spec="/usr/lib"
11698   need_lib_prefix=no
11699   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11700   case $host_os in
11701     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11702     *)                          need_version=no  ;;
11703   esac
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11705   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11706   shlibpath_var=LD_LIBRARY_PATH
11707   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11708     case $host_os in
11709       openbsd2.[89] | openbsd2.[89].*)
11710         shlibpath_overrides_runpath=no
11711         ;;
11712       *)
11713         shlibpath_overrides_runpath=yes
11714         ;;
11715       esac
11716   else
11717     shlibpath_overrides_runpath=yes
11718   fi
11719   ;;
11720
11721 os2*)
11722   libname_spec='$name'
11723   shrext_cmds=".dll"
11724   need_lib_prefix=no
11725   library_names_spec='$libname${shared_ext} $libname.a'
11726   dynamic_linker='OS/2 ld.exe'
11727   shlibpath_var=LIBPATH
11728   ;;
11729
11730 osf3* | osf4* | osf5*)
11731   version_type=osf
11732   need_lib_prefix=no
11733   need_version=no
11734   soname_spec='${libname}${release}${shared_ext}$major'
11735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736   shlibpath_var=LD_LIBRARY_PATH
11737   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11738   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11739   ;;
11740
11741 rdos*)
11742   dynamic_linker=no
11743   ;;
11744
11745 solaris*)
11746   version_type=linux # correct to gnu/linux during the next big refactor
11747   need_lib_prefix=no
11748   need_version=no
11749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750   soname_spec='${libname}${release}${shared_ext}$major'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   shlibpath_overrides_runpath=yes
11753   hardcode_into_libs=yes
11754   # ldd complains unless libraries are executable
11755   postinstall_cmds='chmod +x $lib'
11756   ;;
11757
11758 sunos4*)
11759   version_type=sunos
11760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11761   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11762   shlibpath_var=LD_LIBRARY_PATH
11763   shlibpath_overrides_runpath=yes
11764   if test "$with_gnu_ld" = yes; then
11765     need_lib_prefix=no
11766   fi
11767   need_version=yes
11768   ;;
11769
11770 sysv4 | sysv4.3*)
11771   version_type=linux # correct to gnu/linux during the next big refactor
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773   soname_spec='${libname}${release}${shared_ext}$major'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   case $host_vendor in
11776     sni)
11777       shlibpath_overrides_runpath=no
11778       need_lib_prefix=no
11779       runpath_var=LD_RUN_PATH
11780       ;;
11781     siemens)
11782       need_lib_prefix=no
11783       ;;
11784     motorola)
11785       need_lib_prefix=no
11786       need_version=no
11787       shlibpath_overrides_runpath=no
11788       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11789       ;;
11790   esac
11791   ;;
11792
11793 sysv4*MP*)
11794   if test -d /usr/nec ;then
11795     version_type=linux # correct to gnu/linux during the next big refactor
11796     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11797     soname_spec='$libname${shared_ext}.$major'
11798     shlibpath_var=LD_LIBRARY_PATH
11799   fi
11800   ;;
11801
11802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11803   version_type=freebsd-elf
11804   need_lib_prefix=no
11805   need_version=no
11806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11807   soname_spec='${libname}${release}${shared_ext}$major'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   shlibpath_overrides_runpath=yes
11810   hardcode_into_libs=yes
11811   if test "$with_gnu_ld" = yes; then
11812     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11813   else
11814     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11815     case $host_os in
11816       sco3.2v5*)
11817         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11818         ;;
11819     esac
11820   fi
11821   sys_lib_dlsearch_path_spec='/usr/lib'
11822   ;;
11823
11824 tpf*)
11825   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11826   version_type=linux # correct to gnu/linux during the next big refactor
11827   need_lib_prefix=no
11828   need_version=no
11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=no
11832   hardcode_into_libs=yes
11833   ;;
11834
11835 uts4*)
11836   version_type=linux # correct to gnu/linux during the next big refactor
11837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838   soname_spec='${libname}${release}${shared_ext}$major'
11839   shlibpath_var=LD_LIBRARY_PATH
11840   ;;
11841
11842 *)
11843   dynamic_linker=no
11844   ;;
11845 esac
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11847 $as_echo "$dynamic_linker" >&6; }
11848 test "$dynamic_linker" = no && can_build_shared=no
11849
11850 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11851 if test "$GCC" = yes; then
11852   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11853 fi
11854
11855 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11856   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11857 fi
11858 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11859   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11860 fi
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11954 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11955 hardcode_action=
11956 if test -n "$hardcode_libdir_flag_spec" ||
11957    test -n "$runpath_var" ||
11958    test "X$hardcode_automatic" = "Xyes" ; then
11959
11960   # We can hardcode non-existent directories.
11961   if test "$hardcode_direct" != no &&
11962      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11963      # have to relink, otherwise we might link with an installed library
11964      # when we should be linking with a yet-to-be-installed one
11965      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11966      test "$hardcode_minus_L" != no; then
11967     # Linking always hardcodes the temporary library directory.
11968     hardcode_action=relink
11969   else
11970     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11971     hardcode_action=immediate
11972   fi
11973 else
11974   # We cannot hardcode anything, or else we can only hardcode existing
11975   # directories.
11976   hardcode_action=unsupported
11977 fi
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11979 $as_echo "$hardcode_action" >&6; }
11980
11981 if test "$hardcode_action" = relink ||
11982    test "$inherit_rpath" = yes; then
11983   # Fast installation is not supported
11984   enable_fast_install=no
11985 elif test "$shlibpath_overrides_runpath" = yes ||
11986      test "$enable_shared" = no; then
11987   # Fast installation is not necessary
11988   enable_fast_install=needless
11989 fi
11990
11991
11992
11993
11994
11995
11996   if test "x$enable_dlopen" != xyes; then
11997   enable_dlopen=unknown
11998   enable_dlopen_self=unknown
11999   enable_dlopen_self_static=unknown
12000 else
12001   lt_cv_dlopen=no
12002   lt_cv_dlopen_libs=
12003
12004   case $host_os in
12005   beos*)
12006     lt_cv_dlopen="load_add_on"
12007     lt_cv_dlopen_libs=
12008     lt_cv_dlopen_self=yes
12009     ;;
12010
12011   mingw* | pw32* | cegcc*)
12012     lt_cv_dlopen="LoadLibrary"
12013     lt_cv_dlopen_libs=
12014     ;;
12015
12016   cygwin*)
12017     lt_cv_dlopen="dlopen"
12018     lt_cv_dlopen_libs=
12019     ;;
12020
12021   darwin*)
12022   # if libdl is installed we need to link against it
12023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12024 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12025 if ${ac_cv_lib_dl_dlopen+:} false; then :
12026   $as_echo_n "(cached) " >&6
12027 else
12028   ac_check_lib_save_LIBS=$LIBS
12029 LIBS="-ldl  $LIBS"
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h.  */
12032
12033 /* Override any GCC internal prototype to avoid an error.
12034    Use char because int might match the return type of a GCC
12035    builtin and then its argument prototype would still apply.  */
12036 #ifdef __cplusplus
12037 extern "C"
12038 #endif
12039 char dlopen ();
12040 int
12041 main ()
12042 {
12043 return dlopen ();
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 if ac_fn_c_try_link "$LINENO"; then :
12049   ac_cv_lib_dl_dlopen=yes
12050 else
12051   ac_cv_lib_dl_dlopen=no
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext \
12054     conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12058 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12059 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12060   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12061 else
12062
12063     lt_cv_dlopen="dyld"
12064     lt_cv_dlopen_libs=
12065     lt_cv_dlopen_self=yes
12066
12067 fi
12068
12069     ;;
12070
12071   *)
12072     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12073 if test "x$ac_cv_func_shl_load" = xyes; then :
12074   lt_cv_dlopen="shl_load"
12075 else
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12077 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12078 if ${ac_cv_lib_dld_shl_load+:} false; then :
12079   $as_echo_n "(cached) " >&6
12080 else
12081   ac_check_lib_save_LIBS=$LIBS
12082 LIBS="-ldld  $LIBS"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h.  */
12085
12086 /* Override any GCC internal prototype to avoid an error.
12087    Use char because int might match the return type of a GCC
12088    builtin and then its argument prototype would still apply.  */
12089 #ifdef __cplusplus
12090 extern "C"
12091 #endif
12092 char shl_load ();
12093 int
12094 main ()
12095 {
12096 return shl_load ();
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_c_try_link "$LINENO"; then :
12102   ac_cv_lib_dld_shl_load=yes
12103 else
12104   ac_cv_lib_dld_shl_load=no
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext \
12107     conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12111 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12112 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12113   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12114 else
12115   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12116 if test "x$ac_cv_func_dlopen" = xyes; then :
12117   lt_cv_dlopen="dlopen"
12118 else
12119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12121 if ${ac_cv_lib_dl_dlopen+:} false; then :
12122   $as_echo_n "(cached) " >&6
12123 else
12124   ac_check_lib_save_LIBS=$LIBS
12125 LIBS="-ldl  $LIBS"
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h.  */
12128
12129 /* Override any GCC internal prototype to avoid an error.
12130    Use char because int might match the return type of a GCC
12131    builtin and then its argument prototype would still apply.  */
12132 #ifdef __cplusplus
12133 extern "C"
12134 #endif
12135 char dlopen ();
12136 int
12137 main ()
12138 {
12139 return dlopen ();
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"; then :
12145   ac_cv_lib_dl_dlopen=yes
12146 else
12147   ac_cv_lib_dl_dlopen=no
12148 fi
12149 rm -f core conftest.err conftest.$ac_objext \
12150     conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12152 fi
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12155 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12156   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12157 else
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12159 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12160 if ${ac_cv_lib_svld_dlopen+:} false; then :
12161   $as_echo_n "(cached) " >&6
12162 else
12163   ac_check_lib_save_LIBS=$LIBS
12164 LIBS="-lsvld  $LIBS"
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h.  */
12167
12168 /* Override any GCC internal prototype to avoid an error.
12169    Use char because int might match the return type of a GCC
12170    builtin and then its argument prototype would still apply.  */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 char dlopen ();
12175 int
12176 main ()
12177 {
12178 return dlopen ();
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184   ac_cv_lib_svld_dlopen=yes
12185 else
12186   ac_cv_lib_svld_dlopen=no
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext \
12189     conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12193 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12194 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12195   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12196 else
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12198 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12199 if ${ac_cv_lib_dld_dld_link+:} false; then :
12200   $as_echo_n "(cached) " >&6
12201 else
12202   ac_check_lib_save_LIBS=$LIBS
12203 LIBS="-ldld  $LIBS"
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h.  */
12206
12207 /* Override any GCC internal prototype to avoid an error.
12208    Use char because int might match the return type of a GCC
12209    builtin and then its argument prototype would still apply.  */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char dld_link ();
12214 int
12215 main ()
12216 {
12217 return dld_link ();
12218   ;
12219   return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_link "$LINENO"; then :
12223   ac_cv_lib_dld_dld_link=yes
12224 else
12225   ac_cv_lib_dld_dld_link=no
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext \
12228     conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12230 fi
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12232 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12233 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12234   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12235 fi
12236
12237
12238 fi
12239
12240
12241 fi
12242
12243
12244 fi
12245
12246
12247 fi
12248
12249
12250 fi
12251
12252     ;;
12253   esac
12254
12255   if test "x$lt_cv_dlopen" != xno; then
12256     enable_dlopen=yes
12257   else
12258     enable_dlopen=no
12259   fi
12260
12261   case $lt_cv_dlopen in
12262   dlopen)
12263     save_CPPFLAGS="$CPPFLAGS"
12264     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12265
12266     save_LDFLAGS="$LDFLAGS"
12267     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12268
12269     save_LIBS="$LIBS"
12270     LIBS="$lt_cv_dlopen_libs $LIBS"
12271
12272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12273 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12274 if ${lt_cv_dlopen_self+:} false; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277           if test "$cross_compiling" = yes; then :
12278   lt_cv_dlopen_self=cross
12279 else
12280   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12281   lt_status=$lt_dlunknown
12282   cat > conftest.$ac_ext <<_LT_EOF
12283 #line $LINENO "configure"
12284 #include "confdefs.h"
12285
12286 #if HAVE_DLFCN_H
12287 #include <dlfcn.h>
12288 #endif
12289
12290 #include <stdio.h>
12291
12292 #ifdef RTLD_GLOBAL
12293 #  define LT_DLGLOBAL           RTLD_GLOBAL
12294 #else
12295 #  ifdef DL_GLOBAL
12296 #    define LT_DLGLOBAL         DL_GLOBAL
12297 #  else
12298 #    define LT_DLGLOBAL         0
12299 #  endif
12300 #endif
12301
12302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12303    find out it does not work in some platform. */
12304 #ifndef LT_DLLAZY_OR_NOW
12305 #  ifdef RTLD_LAZY
12306 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12307 #  else
12308 #    ifdef DL_LAZY
12309 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12310 #    else
12311 #      ifdef RTLD_NOW
12312 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12313 #      else
12314 #        ifdef DL_NOW
12315 #          define LT_DLLAZY_OR_NOW      DL_NOW
12316 #        else
12317 #          define LT_DLLAZY_OR_NOW      0
12318 #        endif
12319 #      endif
12320 #    endif
12321 #  endif
12322 #endif
12323
12324 /* When -fvisbility=hidden is used, assume the code has been annotated
12325    correspondingly for the symbols needed.  */
12326 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12327 int fnord () __attribute__((visibility("default")));
12328 #endif
12329
12330 int fnord () { return 42; }
12331 int main ()
12332 {
12333   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12334   int status = $lt_dlunknown;
12335
12336   if (self)
12337     {
12338       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12339       else
12340         {
12341           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12342           else puts (dlerror ());
12343         }
12344       /* dlclose (self); */
12345     }
12346   else
12347     puts (dlerror ());
12348
12349   return status;
12350 }
12351 _LT_EOF
12352   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12353   (eval $ac_link) 2>&5
12354   ac_status=$?
12355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12356   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12357     (./conftest; exit; ) >&5 2>/dev/null
12358     lt_status=$?
12359     case x$lt_status in
12360       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12361       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12362       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12363     esac
12364   else :
12365     # compilation failed
12366     lt_cv_dlopen_self=no
12367   fi
12368 fi
12369 rm -fr conftest*
12370
12371
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12374 $as_echo "$lt_cv_dlopen_self" >&6; }
12375
12376     if test "x$lt_cv_dlopen_self" = xyes; then
12377       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12378       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12379 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12380 if ${lt_cv_dlopen_self_static+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383           if test "$cross_compiling" = yes; then :
12384   lt_cv_dlopen_self_static=cross
12385 else
12386   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387   lt_status=$lt_dlunknown
12388   cat > conftest.$ac_ext <<_LT_EOF
12389 #line $LINENO "configure"
12390 #include "confdefs.h"
12391
12392 #if HAVE_DLFCN_H
12393 #include <dlfcn.h>
12394 #endif
12395
12396 #include <stdio.h>
12397
12398 #ifdef RTLD_GLOBAL
12399 #  define LT_DLGLOBAL           RTLD_GLOBAL
12400 #else
12401 #  ifdef DL_GLOBAL
12402 #    define LT_DLGLOBAL         DL_GLOBAL
12403 #  else
12404 #    define LT_DLGLOBAL         0
12405 #  endif
12406 #endif
12407
12408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409    find out it does not work in some platform. */
12410 #ifndef LT_DLLAZY_OR_NOW
12411 #  ifdef RTLD_LAZY
12412 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12413 #  else
12414 #    ifdef DL_LAZY
12415 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12416 #    else
12417 #      ifdef RTLD_NOW
12418 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12419 #      else
12420 #        ifdef DL_NOW
12421 #          define LT_DLLAZY_OR_NOW      DL_NOW
12422 #        else
12423 #          define LT_DLLAZY_OR_NOW      0
12424 #        endif
12425 #      endif
12426 #    endif
12427 #  endif
12428 #endif
12429
12430 /* When -fvisbility=hidden is used, assume the code has been annotated
12431    correspondingly for the symbols needed.  */
12432 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12433 int fnord () __attribute__((visibility("default")));
12434 #endif
12435
12436 int fnord () { return 42; }
12437 int main ()
12438 {
12439   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12440   int status = $lt_dlunknown;
12441
12442   if (self)
12443     {
12444       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12445       else
12446         {
12447           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12448           else puts (dlerror ());
12449         }
12450       /* dlclose (self); */
12451     }
12452   else
12453     puts (dlerror ());
12454
12455   return status;
12456 }
12457 _LT_EOF
12458   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12459   (eval $ac_link) 2>&5
12460   ac_status=$?
12461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12462   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12463     (./conftest; exit; ) >&5 2>/dev/null
12464     lt_status=$?
12465     case x$lt_status in
12466       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12467       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12468       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12469     esac
12470   else :
12471     # compilation failed
12472     lt_cv_dlopen_self_static=no
12473   fi
12474 fi
12475 rm -fr conftest*
12476
12477
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12480 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12481     fi
12482
12483     CPPFLAGS="$save_CPPFLAGS"
12484     LDFLAGS="$save_LDFLAGS"
12485     LIBS="$save_LIBS"
12486     ;;
12487   esac
12488
12489   case $lt_cv_dlopen_self in
12490   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12491   *) enable_dlopen_self=unknown ;;
12492   esac
12493
12494   case $lt_cv_dlopen_self_static in
12495   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12496   *) enable_dlopen_self_static=unknown ;;
12497   esac
12498 fi
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516 striplib=
12517 old_striplib=
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12519 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12520 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12521   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12522   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12524 $as_echo "yes" >&6; }
12525 else
12526 # FIXME - insert some real tests, host_os isn't really good enough
12527   case $host_os in
12528   darwin*)
12529     if test -n "$STRIP" ; then
12530       striplib="$STRIP -x"
12531       old_striplib="$STRIP -S"
12532       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533 $as_echo "yes" >&6; }
12534     else
12535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537     fi
12538     ;;
12539   *)
12540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542     ;;
12543   esac
12544 fi
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557   # Report which library types will actually be built
12558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12559 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12561 $as_echo "$can_build_shared" >&6; }
12562
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12564 $as_echo_n "checking whether to build shared libraries... " >&6; }
12565   test "$can_build_shared" = "no" && enable_shared=no
12566
12567   # On AIX, shared libraries and static libraries use the same namespace, and
12568   # are all built from PIC.
12569   case $host_os in
12570   aix3*)
12571     test "$enable_shared" = yes && enable_static=no
12572     if test -n "$RANLIB"; then
12573       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12574       postinstall_cmds='$RANLIB $lib'
12575     fi
12576     ;;
12577
12578   aix[4-9]*)
12579     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12580       test "$enable_shared" = yes && enable_static=no
12581     fi
12582     ;;
12583   esac
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12585 $as_echo "$enable_shared" >&6; }
12586
12587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12588 $as_echo_n "checking whether to build static libraries... " >&6; }
12589   # Make sure either enable_shared or enable_static is yes.
12590   test "$enable_shared" = yes || enable_static=yes
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12592 $as_echo "$enable_static" >&6; }
12593
12594
12595
12596
12597 fi
12598 ac_ext=c
12599 ac_cpp='$CPP $CPPFLAGS'
12600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12603
12604 CC="$lt_save_CC"
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620         ac_config_commands="$ac_config_commands libtool"
12621
12622
12623
12624
12625 # Only expand once:
12626
12627
12628
12629 ac_config_headers="$ac_config_headers config.h"
12630
12631
12632
12633 # Check $PATH for the following programs and append suitable options.
12634 ac_ext=c
12635 ac_cpp='$CPP $CPPFLAGS'
12636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12639 if test -n "$ac_tool_prefix"; then
12640   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_prog_CC+:} false; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647   if test -n "$CC"; then
12648   ac_cv_prog_CC="$CC" # Let the user override the test.
12649 else
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12652 do
12653   IFS=$as_save_IFS
12654   test -z "$as_dir" && as_dir=.
12655     for ac_exec_ext in '' $ac_executable_extensions; do
12656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12657     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659     break 2
12660   fi
12661 done
12662   done
12663 IFS=$as_save_IFS
12664
12665 fi
12666 fi
12667 CC=$ac_cv_prog_CC
12668 if test -n "$CC"; then
12669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12670 $as_echo "$CC" >&6; }
12671 else
12672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12674 fi
12675
12676
12677 fi
12678 if test -z "$ac_cv_prog_CC"; then
12679   ac_ct_CC=$CC
12680   # Extract the first word of "gcc", so it can be a program name with args.
12681 set dummy gcc; ac_word=$2
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683 $as_echo_n "checking for $ac_word... " >&6; }
12684 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12685   $as_echo_n "(cached) " >&6
12686 else
12687   if test -n "$ac_ct_CC"; then
12688   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12689 else
12690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691 for as_dir in $PATH
12692 do
12693   IFS=$as_save_IFS
12694   test -z "$as_dir" && as_dir=.
12695     for ac_exec_ext in '' $ac_executable_extensions; do
12696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12697     ac_cv_prog_ac_ct_CC="gcc"
12698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12699     break 2
12700   fi
12701 done
12702   done
12703 IFS=$as_save_IFS
12704
12705 fi
12706 fi
12707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12708 if test -n "$ac_ct_CC"; then
12709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12710 $as_echo "$ac_ct_CC" >&6; }
12711 else
12712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714 fi
12715
12716   if test "x$ac_ct_CC" = x; then
12717     CC=""
12718   else
12719     case $cross_compiling:$ac_tool_warned in
12720 yes:)
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12723 ac_tool_warned=yes ;;
12724 esac
12725     CC=$ac_ct_CC
12726   fi
12727 else
12728   CC="$ac_cv_prog_CC"
12729 fi
12730
12731 if test -z "$CC"; then
12732           if test -n "$ac_tool_prefix"; then
12733     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12734 set dummy ${ac_tool_prefix}cc; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_prog_CC+:} false; then :
12738   $as_echo_n "(cached) " >&6
12739 else
12740   if test -n "$CC"; then
12741   ac_cv_prog_CC="$CC" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12745 do
12746   IFS=$as_save_IFS
12747   test -z "$as_dir" && as_dir=.
12748     for ac_exec_ext in '' $ac_executable_extensions; do
12749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12750     ac_cv_prog_CC="${ac_tool_prefix}cc"
12751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752     break 2
12753   fi
12754 done
12755   done
12756 IFS=$as_save_IFS
12757
12758 fi
12759 fi
12760 CC=$ac_cv_prog_CC
12761 if test -n "$CC"; then
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12763 $as_echo "$CC" >&6; }
12764 else
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768
12769
12770   fi
12771 fi
12772 if test -z "$CC"; then
12773   # Extract the first word of "cc", so it can be a program name with args.
12774 set dummy cc; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_prog_CC+:} false; then :
12778   $as_echo_n "(cached) " >&6
12779 else
12780   if test -n "$CC"; then
12781   ac_cv_prog_CC="$CC" # Let the user override the test.
12782 else
12783   ac_prog_rejected=no
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787   IFS=$as_save_IFS
12788   test -z "$as_dir" && as_dir=.
12789     for ac_exec_ext in '' $ac_executable_extensions; do
12790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12792        ac_prog_rejected=yes
12793        continue
12794      fi
12795     ac_cv_prog_CC="cc"
12796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797     break 2
12798   fi
12799 done
12800   done
12801 IFS=$as_save_IFS
12802
12803 if test $ac_prog_rejected = yes; then
12804   # We found a bogon in the path, so make sure we never use it.
12805   set dummy $ac_cv_prog_CC
12806   shift
12807   if test $# != 0; then
12808     # We chose a different compiler from the bogus one.
12809     # However, it has the same basename, so the bogon will be chosen
12810     # first if we set CC to just the basename; use the full file name.
12811     shift
12812     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12813   fi
12814 fi
12815 fi
12816 fi
12817 CC=$ac_cv_prog_CC
12818 if test -n "$CC"; then
12819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12820 $as_echo "$CC" >&6; }
12821 else
12822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12824 fi
12825
12826
12827 fi
12828 if test -z "$CC"; then
12829   if test -n "$ac_tool_prefix"; then
12830   for ac_prog in cl.exe
12831   do
12832     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if ${ac_cv_prog_CC+:} false; then :
12837   $as_echo_n "(cached) " >&6
12838 else
12839   if test -n "$CC"; then
12840   ac_cv_prog_CC="$CC" # Let the user override the test.
12841 else
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854   done
12855 IFS=$as_save_IFS
12856
12857 fi
12858 fi
12859 CC=$ac_cv_prog_CC
12860 if test -n "$CC"; then
12861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12862 $as_echo "$CC" >&6; }
12863 else
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12866 fi
12867
12868
12869     test -n "$CC" && break
12870   done
12871 fi
12872 if test -z "$CC"; then
12873   ac_ct_CC=$CC
12874   for ac_prog in cl.exe
12875 do
12876   # Extract the first word of "$ac_prog", so it can be a program name with args.
12877 set dummy $ac_prog; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12881   $as_echo_n "(cached) " >&6
12882 else
12883   if test -n "$ac_ct_CC"; then
12884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12885 else
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12888 do
12889   IFS=$as_save_IFS
12890   test -z "$as_dir" && as_dir=.
12891     for ac_exec_ext in '' $ac_executable_extensions; do
12892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12893     ac_cv_prog_ac_ct_CC="$ac_prog"
12894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895     break 2
12896   fi
12897 done
12898   done
12899 IFS=$as_save_IFS
12900
12901 fi
12902 fi
12903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12904 if test -n "$ac_ct_CC"; then
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12906 $as_echo "$ac_ct_CC" >&6; }
12907 else
12908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12910 fi
12911
12912
12913   test -n "$ac_ct_CC" && break
12914 done
12915
12916   if test "x$ac_ct_CC" = x; then
12917     CC=""
12918   else
12919     case $cross_compiling:$ac_tool_warned in
12920 yes:)
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12923 ac_tool_warned=yes ;;
12924 esac
12925     CC=$ac_ct_CC
12926   fi
12927 fi
12928
12929 fi
12930
12931
12932 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12934 as_fn_error $? "no acceptable C compiler found in \$PATH
12935 See \`config.log' for more details" "$LINENO" 5; }
12936
12937 # Provide some information about the compiler.
12938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12939 set X $ac_compile
12940 ac_compiler=$2
12941 for ac_option in --version -v -V -qversion; do
12942   { { ac_try="$ac_compiler $ac_option >&5"
12943 case "(($ac_try" in
12944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945   *) ac_try_echo=$ac_try;;
12946 esac
12947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12948 $as_echo "$ac_try_echo"; } >&5
12949   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12950   ac_status=$?
12951   if test -s conftest.err; then
12952     sed '10a\
12953 ... rest of stderr output deleted ...
12954          10q' conftest.err >conftest.er1
12955     cat conftest.er1 >&5
12956   fi
12957   rm -f conftest.er1 conftest.err
12958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959   test $ac_status = 0; }
12960 done
12961
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12964 if ${ac_cv_c_compiler_gnu+:} false; then :
12965   $as_echo_n "(cached) " >&6
12966 else
12967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h.  */
12969
12970 int
12971 main ()
12972 {
12973 #ifndef __GNUC__
12974        choke me
12975 #endif
12976
12977   ;
12978   return 0;
12979 }
12980 _ACEOF
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982   ac_compiler_gnu=yes
12983 else
12984   ac_compiler_gnu=no
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12988
12989 fi
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12992 if test $ac_compiler_gnu = yes; then
12993   GCC=yes
12994 else
12995   GCC=
12996 fi
12997 ac_test_CFLAGS=${CFLAGS+set}
12998 ac_save_CFLAGS=$CFLAGS
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13001 if ${ac_cv_prog_cc_g+:} false; then :
13002   $as_echo_n "(cached) " >&6
13003 else
13004   ac_save_c_werror_flag=$ac_c_werror_flag
13005    ac_c_werror_flag=yes
13006    ac_cv_prog_cc_g=no
13007    CFLAGS="-g"
13008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h.  */
13010
13011 int
13012 main ()
13013 {
13014
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_compile "$LINENO"; then :
13020   ac_cv_prog_cc_g=yes
13021 else
13022   CFLAGS=""
13023       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h.  */
13025
13026 int
13027 main ()
13028 {
13029
13030   ;
13031   return 0;
13032 }
13033 _ACEOF
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035
13036 else
13037   ac_c_werror_flag=$ac_save_c_werror_flag
13038          CFLAGS="-g"
13039          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h.  */
13041
13042 int
13043 main ()
13044 {
13045
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051   ac_cv_prog_cc_g=yes
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13056 fi
13057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058    ac_c_werror_flag=$ac_save_c_werror_flag
13059 fi
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13061 $as_echo "$ac_cv_prog_cc_g" >&6; }
13062 if test "$ac_test_CFLAGS" = set; then
13063   CFLAGS=$ac_save_CFLAGS
13064 elif test $ac_cv_prog_cc_g = yes; then
13065   if test "$GCC" = yes; then
13066     CFLAGS="-g -O2"
13067   else
13068     CFLAGS="-g"
13069   fi
13070 else
13071   if test "$GCC" = yes; then
13072     CFLAGS="-O2"
13073   else
13074     CFLAGS=
13075   fi
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13079 if ${ac_cv_prog_cc_c89+:} false; then :
13080   $as_echo_n "(cached) " >&6
13081 else
13082   ac_cv_prog_cc_c89=no
13083 ac_save_CC=$CC
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h.  */
13086 #include <stdarg.h>
13087 #include <stdio.h>
13088 struct stat;
13089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13090 struct buf { int x; };
13091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13092 static char *e (p, i)
13093      char **p;
13094      int i;
13095 {
13096   return p[i];
13097 }
13098 static char *f (char * (*g) (char **, int), char **p, ...)
13099 {
13100   char *s;
13101   va_list v;
13102   va_start (v,p);
13103   s = g (p, va_arg (v,int));
13104   va_end (v);
13105   return s;
13106 }
13107
13108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13109    function prototypes and stuff, but not '\xHH' hex character constants.
13110    These don't provoke an error unfortunately, instead are silently treated
13111    as 'x'.  The following induces an error, until -std is added to get
13112    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13113    array size at least.  It's necessary to write '\x00'==0 to get something
13114    that's true only with -std.  */
13115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13116
13117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13118    inside strings and character constants.  */
13119 #define FOO(x) 'x'
13120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13121
13122 int test (int i, double x);
13123 struct s1 {int (*f) (int a);};
13124 struct s2 {int (*f) (double a);};
13125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13126 int argc;
13127 char **argv;
13128 int
13129 main ()
13130 {
13131 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13137         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13138 do
13139   CC="$ac_save_CC $ac_arg"
13140   if ac_fn_c_try_compile "$LINENO"; then :
13141   ac_cv_prog_cc_c89=$ac_arg
13142 fi
13143 rm -f core conftest.err conftest.$ac_objext
13144   test "x$ac_cv_prog_cc_c89" != "xno" && break
13145 done
13146 rm -f conftest.$ac_ext
13147 CC=$ac_save_CC
13148
13149 fi
13150 # AC_CACHE_VAL
13151 case "x$ac_cv_prog_cc_c89" in
13152   x)
13153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13154 $as_echo "none needed" >&6; } ;;
13155   xno)
13156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13157 $as_echo "unsupported" >&6; } ;;
13158   *)
13159     CC="$CC $ac_cv_prog_cc_c89"
13160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13161 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13162 esac
13163 if test "x$ac_cv_prog_cc_c89" != xno; then :
13164
13165 fi
13166
13167 ac_ext=c
13168 ac_cpp='$CPP $CPPFLAGS'
13169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13172
13173 depcc="$CC"   am_compiler_list=
13174
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13176 $as_echo_n "checking dependency style of $depcc... " >&6; }
13177 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13181   # We make a subdir and do the tests there.  Otherwise we can end up
13182   # making bogus files that we don't know about and never remove.  For
13183   # instance it was reported that on HP-UX the gcc test will end up
13184   # making a dummy file named `D' -- because `-MD' means `put the output
13185   # in D'.
13186   rm -rf conftest.dir
13187   mkdir conftest.dir
13188   # Copy depcomp to subdir because otherwise we won't find it if we're
13189   # using a relative directory.
13190   cp "$am_depcomp" conftest.dir
13191   cd conftest.dir
13192   # We will build objects and dependencies in a subdirectory because
13193   # it helps to detect inapplicable dependency modes.  For instance
13194   # both Tru64's cc and ICC support -MD to output dependencies as a
13195   # side effect of compilation, but ICC will put the dependencies in
13196   # the current directory while Tru64 will put them in the object
13197   # directory.
13198   mkdir sub
13199
13200   am_cv_CC_dependencies_compiler_type=none
13201   if test "$am_compiler_list" = ""; then
13202      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13203   fi
13204   am__universal=false
13205   case " $depcc " in #(
13206      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13207      esac
13208
13209   for depmode in $am_compiler_list; do
13210     # Setup a source with many dependencies, because some compilers
13211     # like to wrap large dependency lists on column 80 (with \), and
13212     # we should not choose a depcomp mode which is confused by this.
13213     #
13214     # We need to recreate these files for each test, as the compiler may
13215     # overwrite some of them when testing with obscure command lines.
13216     # This happens at least with the AIX C compiler.
13217     : > sub/conftest.c
13218     for i in 1 2 3 4 5 6; do
13219       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13220       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13221       # Solaris 8's {/usr,}/bin/sh.
13222       touch sub/conftst$i.h
13223     done
13224     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13225
13226     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13227     # mode.  It turns out that the SunPro C++ compiler does not properly
13228     # handle `-M -o', and we need to detect this.  Also, some Intel
13229     # versions had trouble with output in subdirs
13230     am__obj=sub/conftest.${OBJEXT-o}
13231     am__minus_obj="-o $am__obj"
13232     case $depmode in
13233     gcc)
13234       # This depmode causes a compiler race in universal mode.
13235       test "$am__universal" = false || continue
13236       ;;
13237     nosideeffect)
13238       # after this tag, mechanisms are not by side-effect, so they'll
13239       # only be used when explicitly requested
13240       if test "x$enable_dependency_tracking" = xyes; then
13241         continue
13242       else
13243         break
13244       fi
13245       ;;
13246     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13247       # This compiler won't grok `-c -o', but also, the minuso test has
13248       # not run yet.  These depmodes are late enough in the game, and
13249       # so weak that their functioning should not be impacted.
13250       am__obj=conftest.${OBJEXT-o}
13251       am__minus_obj=
13252       ;;
13253     none) break ;;
13254     esac
13255     if depmode=$depmode \
13256        source=sub/conftest.c object=$am__obj \
13257        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13258        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13259          >/dev/null 2>conftest.err &&
13260        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13261        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13262        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13263        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13264       # icc doesn't choke on unknown options, it will just issue warnings
13265       # or remarks (even with -Werror).  So we grep stderr for any message
13266       # that says an option was ignored or not supported.
13267       # When given -MP, icc 7.0 and 7.1 complain thusly:
13268       #   icc: Command line warning: ignoring option '-M'; no argument required
13269       # The diagnosis changed in icc 8.0:
13270       #   icc: Command line remark: option '-MP' not supported
13271       if (grep 'ignoring option' conftest.err ||
13272           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13273         am_cv_CC_dependencies_compiler_type=$depmode
13274         break
13275       fi
13276     fi
13277   done
13278
13279   cd ..
13280   rm -rf conftest.dir
13281 else
13282   am_cv_CC_dependencies_compiler_type=none
13283 fi
13284
13285 fi
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13287 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13288 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13289
13290  if
13291   test "x$enable_dependency_tracking" != xno \
13292   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13293   am__fastdepCC_TRUE=
13294   am__fastdepCC_FALSE='#'
13295 else
13296   am__fastdepCC_TRUE='#'
13297   am__fastdepCC_FALSE=
13298 fi
13299
13300
13301
13302
13303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13304 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13305 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308
13309       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h.  */
13311
13312 #ifdef __ACK__
13313 Amsterdam
13314 #endif
13315
13316 _ACEOF
13317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13318   $EGREP "Amsterdam" >/dev/null 2>&1; then :
13319   gl_cv_c_amsterdam_compiler=yes
13320 else
13321   gl_cv_c_amsterdam_compiler=no
13322 fi
13323 rm -f conftest*
13324
13325
13326 fi
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13328 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13329   if test -z "$AR"; then
13330     if test $gl_cv_c_amsterdam_compiler = yes; then
13331       AR='cc -c.a'
13332       if test -z "$ARFLAGS"; then
13333         ARFLAGS='-o'
13334       fi
13335     else
13336                   if test -n "$ac_tool_prefix"; then
13337   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13338 set dummy ${ac_tool_prefix}ar; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if ${ac_cv_prog_AR+:} false; then :
13342   $as_echo_n "(cached) " >&6
13343 else
13344   if test -n "$AR"; then
13345   ac_cv_prog_AR="$AR" # Let the user override the test.
13346 else
13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348 for as_dir in $PATH
13349 do
13350   IFS=$as_save_IFS
13351   test -z "$as_dir" && as_dir=.
13352     for ac_exec_ext in '' $ac_executable_extensions; do
13353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13354     ac_cv_prog_AR="${ac_tool_prefix}ar"
13355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13356     break 2
13357   fi
13358 done
13359   done
13360 IFS=$as_save_IFS
13361
13362 fi
13363 fi
13364 AR=$ac_cv_prog_AR
13365 if test -n "$AR"; then
13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13367 $as_echo "$AR" >&6; }
13368 else
13369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372
13373
13374 fi
13375 if test -z "$ac_cv_prog_AR"; then
13376   ac_ct_AR=$AR
13377   # Extract the first word of "ar", so it can be a program name with args.
13378 set dummy ar; ac_word=$2
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380 $as_echo_n "checking for $ac_word... " >&6; }
13381 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13382   $as_echo_n "(cached) " >&6
13383 else
13384   if test -n "$ac_ct_AR"; then
13385   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13386 else
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13389 do
13390   IFS=$as_save_IFS
13391   test -z "$as_dir" && as_dir=.
13392     for ac_exec_ext in '' $ac_executable_extensions; do
13393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394     ac_cv_prog_ac_ct_AR="ar"
13395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396     break 2
13397   fi
13398 done
13399   done
13400 IFS=$as_save_IFS
13401
13402 fi
13403 fi
13404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13405 if test -n "$ac_ct_AR"; then
13406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13407 $as_echo "$ac_ct_AR" >&6; }
13408 else
13409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13411 fi
13412
13413   if test "x$ac_ct_AR" = x; then
13414     AR="ar"
13415   else
13416     case $cross_compiling:$ac_tool_warned in
13417 yes:)
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13420 ac_tool_warned=yes ;;
13421 esac
13422     AR=$ac_ct_AR
13423   fi
13424 else
13425   AR="$ac_cv_prog_AR"
13426 fi
13427
13428       if test -z "$ARFLAGS"; then
13429         ARFLAGS='cru'
13430       fi
13431     fi
13432   else
13433     if test -z "$ARFLAGS"; then
13434       ARFLAGS='cru'
13435     fi
13436   fi
13437
13438
13439   if test -z "$RANLIB"; then
13440     if test $gl_cv_c_amsterdam_compiler = yes; then
13441       RANLIB=':'
13442     else
13443             if test -n "$ac_tool_prefix"; then
13444   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if ${ac_cv_prog_RANLIB+:} false; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   if test -n "$RANLIB"; then
13452   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13453 else
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13456 do
13457   IFS=$as_save_IFS
13458   test -z "$as_dir" && as_dir=.
13459     for ac_exec_ext in '' $ac_executable_extensions; do
13460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463     break 2
13464   fi
13465 done
13466   done
13467 IFS=$as_save_IFS
13468
13469 fi
13470 fi
13471 RANLIB=$ac_cv_prog_RANLIB
13472 if test -n "$RANLIB"; then
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13474 $as_echo "$RANLIB" >&6; }
13475 else
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479
13480
13481 fi
13482 if test -z "$ac_cv_prog_RANLIB"; then
13483   ac_ct_RANLIB=$RANLIB
13484   # Extract the first word of "ranlib", so it can be a program name with args.
13485 set dummy ranlib; ac_word=$2
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 $as_echo_n "checking for $ac_word... " >&6; }
13488 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13489   $as_echo_n "(cached) " >&6
13490 else
13491   if test -n "$ac_ct_RANLIB"; then
13492   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13493 else
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13496 do
13497   IFS=$as_save_IFS
13498   test -z "$as_dir" && as_dir=.
13499     for ac_exec_ext in '' $ac_executable_extensions; do
13500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13501     ac_cv_prog_ac_ct_RANLIB="ranlib"
13502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13503     break 2
13504   fi
13505 done
13506   done
13507 IFS=$as_save_IFS
13508
13509 fi
13510 fi
13511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13512 if test -n "$ac_ct_RANLIB"; then
13513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13514 $as_echo "$ac_ct_RANLIB" >&6; }
13515 else
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13518 fi
13519
13520   if test "x$ac_ct_RANLIB" = x; then
13521     RANLIB=":"
13522   else
13523     case $cross_compiling:$ac_tool_warned in
13524 yes:)
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13527 ac_tool_warned=yes ;;
13528 esac
13529     RANLIB=$ac_ct_RANLIB
13530   fi
13531 else
13532   RANLIB="$ac_cv_prog_RANLIB"
13533 fi
13534
13535     fi
13536   fi
13537
13538
13539 if test "x$CC" != xcc; then
13540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
13541 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
13542 else
13543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
13544 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
13545 fi
13546 set dummy $CC; ac_cc=`$as_echo "$2" |
13547                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13548 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
13549   $as_echo_n "(cached) " >&6
13550 else
13551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h.  */
13553
13554 int
13555 main ()
13556 {
13557
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 # Make sure it works both with $CC and with simple cc.
13563 # We do the test twice because some compilers refuse to overwrite an
13564 # existing .o file with -o, though they will create one.
13565 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13566 rm -f conftest2.*
13567 if { { case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13572 $as_echo "$ac_try_echo"; } >&5
13573   (eval "$ac_try") 2>&5
13574   ac_status=$?
13575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13576   test $ac_status = 0; } &&
13577    test -f conftest2.$ac_objext && { { case "(($ac_try" in
13578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579   *) ac_try_echo=$ac_try;;
13580 esac
13581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13582 $as_echo "$ac_try_echo"; } >&5
13583   (eval "$ac_try") 2>&5
13584   ac_status=$?
13585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13586   test $ac_status = 0; };
13587 then
13588   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
13589   if test "x$CC" != xcc; then
13590     # Test first that cc exists at all.
13591     if { ac_try='cc -c conftest.$ac_ext >&5'
13592   { { case "(($ac_try" in
13593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594   *) ac_try_echo=$ac_try;;
13595 esac
13596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13597 $as_echo "$ac_try_echo"; } >&5
13598   (eval "$ac_try") 2>&5
13599   ac_status=$?
13600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13601   test $ac_status = 0; }; }; then
13602       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13603       rm -f conftest2.*
13604       if { { case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13609 $as_echo "$ac_try_echo"; } >&5
13610   (eval "$ac_try") 2>&5
13611   ac_status=$?
13612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13613   test $ac_status = 0; } &&
13614          test -f conftest2.$ac_objext && { { case "(($ac_try" in
13615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616   *) ac_try_echo=$ac_try;;
13617 esac
13618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13619 $as_echo "$ac_try_echo"; } >&5
13620   (eval "$ac_try") 2>&5
13621   ac_status=$?
13622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623   test $ac_status = 0; };
13624       then
13625         # cc works too.
13626         :
13627       else
13628         # cc exists but doesn't like -o.
13629         eval ac_cv_prog_cc_${ac_cc}_c_o=no
13630       fi
13631     fi
13632   fi
13633 else
13634   eval ac_cv_prog_cc_${ac_cc}_c_o=no
13635 fi
13636 rm -f core conftest*
13637
13638 fi
13639 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13641 $as_echo "yes" >&6; }
13642 else
13643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13645
13646 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
13647
13648 fi
13649
13650 # FIXME: we rely on the cache variable name because
13651 # there is no other way.
13652 set dummy $CC
13653 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13654 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13655 if test "$am_t" != yes; then
13656    # Losing compiler, so override with the script.
13657    # FIXME: It is wrong to rewrite CC.
13658    # But if we don't then we get into trouble of one sort or another.
13659    # A longer-term fix would be to have automake use am__CC in this case,
13660    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13661    CC="$am_aux_dir/compile $CC"
13662 fi
13663
13664
13665
13666
13667
13668
13669
13670    case $ac_cv_prog_cc_stdc in #(
13671   no) :
13672     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
13673   *) :
13674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13675 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13676 if ${ac_cv_prog_cc_c99+:} false; then :
13677   $as_echo_n "(cached) " >&6
13678 else
13679   ac_cv_prog_cc_c99=no
13680 ac_save_CC=$CC
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h.  */
13683 #include <stdarg.h>
13684 #include <stdbool.h>
13685 #include <stdlib.h>
13686 #include <wchar.h>
13687 #include <stdio.h>
13688
13689 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
13690 #define debug(...) fprintf (stderr, __VA_ARGS__)
13691 #define showlist(...) puts (#__VA_ARGS__)
13692 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13693 static void
13694 test_varargs_macros (void)
13695 {
13696   int x = 1234;
13697   int y = 5678;
13698   debug ("Flag");
13699   debug ("X = %d\n", x);
13700   showlist (The first, second, and third items.);
13701   report (x>y, "x is %d but y is %d", x, y);
13702 }
13703
13704 // Check long long types.
13705 #define BIG64 18446744073709551615ull
13706 #define BIG32 4294967295ul
13707 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13708 #if !BIG_OK
13709   your preprocessor is broken;
13710 #endif
13711 #if BIG_OK
13712 #else
13713   your preprocessor is broken;
13714 #endif
13715 static long long int bignum = -9223372036854775807LL;
13716 static unsigned long long int ubignum = BIG64;
13717
13718 struct incomplete_array
13719 {
13720   int datasize;
13721   double data[];
13722 };
13723
13724 struct named_init {
13725   int number;
13726   const wchar_t *name;
13727   double average;
13728 };
13729
13730 typedef const char *ccp;
13731
13732 static inline int
13733 test_restrict (ccp restrict text)
13734 {
13735   // See if C++-style comments work.
13736   // Iterate through items via the restricted pointer.
13737   // Also check for declarations in for loops.
13738   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13739     continue;
13740   return 0;
13741 }
13742
13743 // Check varargs and va_copy.
13744 static void
13745 test_varargs (const char *format, ...)
13746 {
13747   va_list args;
13748   va_start (args, format);
13749   va_list args_copy;
13750   va_copy (args_copy, args);
13751
13752   const char *str;
13753   int number;
13754   float fnumber;
13755
13756   while (*format)
13757     {
13758       switch (*format++)
13759         {
13760         case 's': // string
13761           str = va_arg (args_copy, const char *);
13762           break;
13763         case 'd': // int
13764           number = va_arg (args_copy, int);
13765           break;
13766         case 'f': // float
13767           fnumber = va_arg (args_copy, double);
13768           break;
13769         default:
13770           break;
13771         }
13772     }
13773   va_end (args_copy);
13774   va_end (args);
13775 }
13776
13777 int
13778 main ()
13779 {
13780
13781   // Check bool.
13782   _Bool success = false;
13783
13784   // Check restrict.
13785   if (test_restrict ("String literal") == 0)
13786     success = true;
13787   char *restrict newvar = "Another string";
13788
13789   // Check varargs.
13790   test_varargs ("s, d' f .", "string", 65, 34.234);
13791   test_varargs_macros ();
13792
13793   // Check flexible array members.
13794   struct incomplete_array *ia =
13795     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13796   ia->datasize = 10;
13797   for (int i = 0; i < ia->datasize; ++i)
13798     ia->data[i] = i * 1.234;
13799
13800   // Check named initializers.
13801   struct named_init ni = {
13802     .number = 34,
13803     .name = L"Test wide string",
13804     .average = 543.34343,
13805   };
13806
13807   ni.number = 58;
13808
13809   int dynamic_array[ni.number];
13810   dynamic_array[ni.number - 1] = 543;
13811
13812   // work around unused variable warnings
13813   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13814           || dynamic_array[ni.number - 1] != 543);
13815
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13821 do
13822   CC="$ac_save_CC $ac_arg"
13823   if ac_fn_c_try_compile "$LINENO"; then :
13824   ac_cv_prog_cc_c99=$ac_arg
13825 fi
13826 rm -f core conftest.err conftest.$ac_objext
13827   test "x$ac_cv_prog_cc_c99" != "xno" && break
13828 done
13829 rm -f conftest.$ac_ext
13830 CC=$ac_save_CC
13831
13832 fi
13833 # AC_CACHE_VAL
13834 case "x$ac_cv_prog_cc_c99" in
13835   x)
13836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13837 $as_echo "none needed" >&6; } ;;
13838   xno)
13839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13840 $as_echo "unsupported" >&6; } ;;
13841   *)
13842     CC="$CC $ac_cv_prog_cc_c99"
13843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13844 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13845 esac
13846 if test "x$ac_cv_prog_cc_c99" != xno; then :
13847   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13848 else
13849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13850 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13851 if ${ac_cv_prog_cc_c89+:} false; then :
13852   $as_echo_n "(cached) " >&6
13853 else
13854   ac_cv_prog_cc_c89=no
13855 ac_save_CC=$CC
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h.  */
13858 #include <stdarg.h>
13859 #include <stdio.h>
13860 struct stat;
13861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13862 struct buf { int x; };
13863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13864 static char *e (p, i)
13865      char **p;
13866      int i;
13867 {
13868   return p[i];
13869 }
13870 static char *f (char * (*g) (char **, int), char **p, ...)
13871 {
13872   char *s;
13873   va_list v;
13874   va_start (v,p);
13875   s = g (p, va_arg (v,int));
13876   va_end (v);
13877   return s;
13878 }
13879
13880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13881    function prototypes and stuff, but not '\xHH' hex character constants.
13882    These don't provoke an error unfortunately, instead are silently treated
13883    as 'x'.  The following induces an error, until -std is added to get
13884    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13885    array size at least.  It's necessary to write '\x00'==0 to get something
13886    that's true only with -std.  */
13887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13888
13889 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13890    inside strings and character constants.  */
13891 #define FOO(x) 'x'
13892 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13893
13894 int test (int i, double x);
13895 struct s1 {int (*f) (int a);};
13896 struct s2 {int (*f) (double a);};
13897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13898 int argc;
13899 char **argv;
13900 int
13901 main ()
13902 {
13903 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13904   ;
13905   return 0;
13906 }
13907 _ACEOF
13908 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13909         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13910 do
13911   CC="$ac_save_CC $ac_arg"
13912   if ac_fn_c_try_compile "$LINENO"; then :
13913   ac_cv_prog_cc_c89=$ac_arg
13914 fi
13915 rm -f core conftest.err conftest.$ac_objext
13916   test "x$ac_cv_prog_cc_c89" != "xno" && break
13917 done
13918 rm -f conftest.$ac_ext
13919 CC=$ac_save_CC
13920
13921 fi
13922 # AC_CACHE_VAL
13923 case "x$ac_cv_prog_cc_c89" in
13924   x)
13925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13926 $as_echo "none needed" >&6; } ;;
13927   xno)
13928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13929 $as_echo "unsupported" >&6; } ;;
13930   *)
13931     CC="$CC $ac_cv_prog_cc_c89"
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13934 esac
13935 if test "x$ac_cv_prog_cc_c89" != xno; then :
13936   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13937 else
13938   ac_cv_prog_cc_stdc=no
13939 fi
13940
13941 fi
13942  ;;
13943 esac
13944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
13945 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
13946   if ${ac_cv_prog_cc_stdc+:} false; then :
13947   $as_echo_n "(cached) " >&6
13948 fi
13949
13950   case $ac_cv_prog_cc_stdc in #(
13951   no) :
13952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13953 $as_echo "unsupported" >&6; } ;; #(
13954   '') :
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13956 $as_echo "none needed" >&6; } ;; #(
13957   *) :
13958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
13959 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
13960 esac
13961
13962
13963
13964
13965
13966
13967   # Check whether --enable-threads was given.
13968 if test "${enable_threads+set}" = set; then :
13969   enableval=$enable_threads; gl_use_threads=$enableval
13970 else
13971   if test -n "$gl_use_threads_default"; then
13972        gl_use_threads="$gl_use_threads_default"
13973      else
13974        case "$host_os" in
13975                                                                osf*) gl_use_threads=no ;;
13976          cygwin*)
13977                case `uname -r` in
13978                  1.[0-5].*) gl_use_threads=no ;;
13979                  *)         gl_use_threads=yes ;;
13980                esac
13981                ;;
13982          *)    gl_use_threads=yes ;;
13983        esac
13984      fi
13985
13986 fi
13987
13988   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13989     # For using <pthread.h>:
13990     case "$host_os" in
13991       osf*)
13992         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
13993         # groks <pthread.h>. cc also understands the flag -pthread, but
13994         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
13995         # 2. putting a flag into CPPFLAGS that has an effect on the linker
13996         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
13997         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
13998         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
13999         ;;
14000     esac
14001     # Some systems optimize for single-threaded programs by default, and
14002     # need special flags to disable these optimizations. For example, the
14003     # definition of 'errno' in <errno.h>.
14004     case "$host_os" in
14005       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14006       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14007     esac
14008   fi
14009
14010
14011
14012
14013   # Code from module alloca-opt:
14014   # Code from module dirname:
14015   # Code from module dirname-lgpl:
14016   # Code from module dosname:
14017   # Code from module double-slash-root:
14018   # Code from module environ:
14019   # Code from module errno:
14020   # Code from module error:
14021   # Code from module exitfail:
14022   # Code from module extensions:
14023
14024   # Code from module float:
14025   # Code from module full-write:
14026   # Code from module gettext-h:
14027   # Code from module havelib:
14028   # Code from module include_next:
14029   # Code from module inline:
14030   # Code from module intprops:
14031   # Code from module lib-ignore:
14032   # Code from module lock:
14033   # Code from module malloc-posix:
14034   # Code from module malloca:
14035   # Code from module memchr:
14036   # Code from module msvc-inval:
14037   # Code from module msvc-nothrow:
14038   # Code from module multiarch:
14039   # Code from module raise:
14040   # Code from module read:
14041   # Code from module safe-read:
14042   # Code from module safe-write:
14043   # Code from module setenv:
14044   # Code from module sigaction:
14045   # Code from module signal:
14046   # Code from module signal-h:
14047   # Code from module sigprocmask:
14048   # Code from module size_max:
14049   # Code from module snippet/_Noreturn:
14050   # Code from module snippet/arg-nonnull:
14051   # Code from module snippet/c++defs:
14052   # Code from module snippet/warn-on-use:
14053   # Code from module snprintf:
14054   # Code from module ssize_t:
14055   # Code from module stdarg:
14056
14057
14058
14059   # Code from module stdbool:
14060   # Code from module stddef:
14061   # Code from module stdint:
14062   # Code from module stdio:
14063   # Code from module stdlib:
14064   # Code from module strerror:
14065   # Code from module strerror-override:
14066   # Code from module string:
14067   # Code from module strndup:
14068   # Code from module strnlen:
14069   # Code from module strsignal:
14070   # Code from module sys_select:
14071   # Code from module sys_stat:
14072   # Code from module sys_time:
14073   # Code from module sys_wait:
14074   # Code from module threadlib:
14075
14076
14077
14078   # Code from module time:
14079   # Code from module tls:
14080   # Code from module unistd:
14081   # Code from module unsetenv:
14082   # Code from module vasnprintf:
14083   # Code from module vasprintf:
14084   # Code from module verify:
14085   # Code from module waitpid:
14086   # Code from module wchar:
14087   # Code from module write:
14088   # Code from module xalloc:
14089   # Code from module xalloc-die:
14090   # Code from module xalloc-oversized:
14091   # Code from module xsize:
14092   # Code from module xstrndup:
14093   # Code from module xvasprintf:
14094
14095 ac_ext=c
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14101 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14102 # On Suns, sometimes $CPP names a directory.
14103 if test -n "$CPP" && test -d "$CPP"; then
14104   CPP=
14105 fi
14106 if test -z "$CPP"; then
14107   if ${ac_cv_prog_CPP+:} false; then :
14108   $as_echo_n "(cached) " >&6
14109 else
14110       # Double quotes because CPP needs to be expanded
14111     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14112     do
14113       ac_preproc_ok=false
14114 for ac_c_preproc_warn_flag in '' yes
14115 do
14116   # Use a header file that comes with gcc, so configuring glibc
14117   # with a fresh cross-compiler works.
14118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14119   # <limits.h> exists even on freestanding compilers.
14120   # On the NeXT, cc -E runs the code through the compiler's parser,
14121   # not just through cpp. "Syntax error" is here to catch this case.
14122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h.  */
14124 #ifdef __STDC__
14125 # include <limits.h>
14126 #else
14127 # include <assert.h>
14128 #endif
14129                      Syntax error
14130 _ACEOF
14131 if ac_fn_c_try_cpp "$LINENO"; then :
14132
14133 else
14134   # Broken: fails on valid input.
14135 continue
14136 fi
14137 rm -f conftest.err conftest.i conftest.$ac_ext
14138
14139   # OK, works on sane cases.  Now check whether nonexistent headers
14140   # can be detected and how.
14141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h.  */
14143 #include <ac_nonexistent.h>
14144 _ACEOF
14145 if ac_fn_c_try_cpp "$LINENO"; then :
14146   # Broken: success on invalid input.
14147 continue
14148 else
14149   # Passes both tests.
14150 ac_preproc_ok=:
14151 break
14152 fi
14153 rm -f conftest.err conftest.i conftest.$ac_ext
14154
14155 done
14156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14157 rm -f conftest.i conftest.err conftest.$ac_ext
14158 if $ac_preproc_ok; then :
14159   break
14160 fi
14161
14162     done
14163     ac_cv_prog_CPP=$CPP
14164
14165 fi
14166   CPP=$ac_cv_prog_CPP
14167 else
14168   ac_cv_prog_CPP=$CPP
14169 fi
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14171 $as_echo "$CPP" >&6; }
14172 ac_preproc_ok=false
14173 for ac_c_preproc_warn_flag in '' yes
14174 do
14175   # Use a header file that comes with gcc, so configuring glibc
14176   # with a fresh cross-compiler works.
14177   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14178   # <limits.h> exists even on freestanding compilers.
14179   # On the NeXT, cc -E runs the code through the compiler's parser,
14180   # not just through cpp. "Syntax error" is here to catch this case.
14181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h.  */
14183 #ifdef __STDC__
14184 # include <limits.h>
14185 #else
14186 # include <assert.h>
14187 #endif
14188                      Syntax error
14189 _ACEOF
14190 if ac_fn_c_try_cpp "$LINENO"; then :
14191
14192 else
14193   # Broken: fails on valid input.
14194 continue
14195 fi
14196 rm -f conftest.err conftest.i conftest.$ac_ext
14197
14198   # OK, works on sane cases.  Now check whether nonexistent headers
14199   # can be detected and how.
14200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h.  */
14202 #include <ac_nonexistent.h>
14203 _ACEOF
14204 if ac_fn_c_try_cpp "$LINENO"; then :
14205   # Broken: success on invalid input.
14206 continue
14207 else
14208   # Passes both tests.
14209 ac_preproc_ok=:
14210 break
14211 fi
14212 rm -f conftest.err conftest.i conftest.$ac_ext
14213
14214 done
14215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14216 rm -f conftest.i conftest.err conftest.$ac_ext
14217 if $ac_preproc_ok; then :
14218
14219 else
14220   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14222 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14223 See \`config.log' for more details" "$LINENO" 5; }
14224 fi
14225
14226 ac_ext=c
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14231
14232 CFLAGS="$CFLAGS -Wall"
14233 if test "$GCC" = yes
14234 then
14235         pipeline_saved_CFLAGS="$CFLAGS"
14236  CFLAGS="$CFLAGS -W"
14237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -W" >&5
14238 $as_echo_n "checking that GCC supports -W... " >&6; }
14239 if ${pipeline_cv_gcc_warning_+:} false; then :
14240   $as_echo_n "(cached) " >&6
14241 else
14242   pipeline_cv_gcc_warning_=no
14243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h.  */
14245
14246 int
14247 main ()
14248 {
14249
14250   ;
14251   return 0;
14252 }
14253 _ACEOF
14254 if ac_fn_c_try_compile "$LINENO"; then :
14255   pipeline_cv_gcc_warning_=yes
14256 fi
14257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 fi
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_" >&5
14260 $as_echo "$pipeline_cv_gcc_warning_" >&6; }
14261  if test "$pipeline_cv_gcc_warning_" = no; then
14262    CFLAGS="$pipeline_saved_CFLAGS"
14263  fi # -W
14264         pipeline_saved_CFLAGS="$CFLAGS"
14265  CFLAGS="$CFLAGS -Wpointer-arith"
14266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wpointer-arith" >&5
14267 $as_echo_n "checking that GCC supports -Wpointer-arith... " >&6; }
14268 if ${pipeline_cv_gcc_warning_pointer_arith+:} false; then :
14269   $as_echo_n "(cached) " >&6
14270 else
14271   pipeline_cv_gcc_warning_pointer_arith=no
14272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h.  */
14274
14275 int
14276 main ()
14277 {
14278
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284   pipeline_cv_gcc_warning_pointer_arith=yes
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287 fi
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_pointer_arith" >&5
14289 $as_echo "$pipeline_cv_gcc_warning_pointer_arith" >&6; }
14290  if test "$pipeline_cv_gcc_warning_pointer_arith" = no; then
14291    CFLAGS="$pipeline_saved_CFLAGS"
14292  fi
14293         pipeline_saved_CFLAGS="$CFLAGS"
14294  CFLAGS="$CFLAGS -Wwrite-strings"
14295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wwrite-strings" >&5
14296 $as_echo_n "checking that GCC supports -Wwrite-strings... " >&6; }
14297 if ${pipeline_cv_gcc_warning_write_strings+:} false; then :
14298   $as_echo_n "(cached) " >&6
14299 else
14300   pipeline_cv_gcc_warning_write_strings=no
14301     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h.  */
14303
14304 int
14305 main ()
14306 {
14307
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 if ac_fn_c_try_compile "$LINENO"; then :
14313   pipeline_cv_gcc_warning_write_strings=yes
14314 fi
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316 fi
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_write_strings" >&5
14318 $as_echo "$pipeline_cv_gcc_warning_write_strings" >&6; }
14319  if test "$pipeline_cv_gcc_warning_write_strings" = no; then
14320    CFLAGS="$pipeline_saved_CFLAGS"
14321  fi
14322         pipeline_saved_CFLAGS="$CFLAGS"
14323  CFLAGS="$CFLAGS -Wstrict-prototypes"
14324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wstrict-prototypes" >&5
14325 $as_echo_n "checking that GCC supports -Wstrict-prototypes... " >&6; }
14326 if ${pipeline_cv_gcc_warning_strict_prototypes+:} false; then :
14327   $as_echo_n "(cached) " >&6
14328 else
14329   pipeline_cv_gcc_warning_strict_prototypes=no
14330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h.  */
14332
14333 int
14334 main ()
14335 {
14336
14337   ;
14338   return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_compile "$LINENO"; then :
14342   pipeline_cv_gcc_warning_strict_prototypes=yes
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_strict_prototypes" >&5
14347 $as_echo "$pipeline_cv_gcc_warning_strict_prototypes" >&6; }
14348  if test "$pipeline_cv_gcc_warning_strict_prototypes" = no; then
14349    CFLAGS="$pipeline_saved_CFLAGS"
14350  fi
14351         pipeline_saved_CFLAGS="$CFLAGS"
14352  CFLAGS="$CFLAGS -Wshadow"
14353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wshadow" >&5
14354 $as_echo_n "checking that GCC supports -Wshadow... " >&6; }
14355 if ${pipeline_cv_gcc_warning_shadow+:} false; then :
14356   $as_echo_n "(cached) " >&6
14357 else
14358   pipeline_cv_gcc_warning_shadow=no
14359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h.  */
14361
14362 int
14363 main ()
14364 {
14365
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_compile "$LINENO"; then :
14371   pipeline_cv_gcc_warning_shadow=yes
14372 fi
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_shadow" >&5
14376 $as_echo "$pipeline_cv_gcc_warning_shadow" >&6; }
14377  if test "$pipeline_cv_gcc_warning_shadow" = no; then
14378    CFLAGS="$pipeline_saved_CFLAGS"
14379  fi
14380         pipeline_saved_CFLAGS="$CFLAGS"
14381  CFLAGS="$CFLAGS -Wformat-security"
14382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wformat-security" >&5
14383 $as_echo_n "checking that GCC supports -Wformat-security... " >&6; }
14384 if ${pipeline_cv_gcc_warning_format_security+:} false; then :
14385   $as_echo_n "(cached) " >&6
14386 else
14387   pipeline_cv_gcc_warning_format_security=no
14388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h.  */
14390
14391 int
14392 main ()
14393 {
14394
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400   pipeline_cv_gcc_warning_format_security=yes
14401 fi
14402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_format_security" >&5
14405 $as_echo "$pipeline_cv_gcc_warning_format_security" >&6; }
14406  if test "$pipeline_cv_gcc_warning_format_security" = no; then
14407    CFLAGS="$pipeline_saved_CFLAGS"
14408  fi
14409         pipeline_saved_CFLAGS="$CFLAGS"
14410  CFLAGS="$CFLAGS -Wredundant-decls"
14411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wredundant-decls" >&5
14412 $as_echo_n "checking that GCC supports -Wredundant-decls... " >&6; }
14413 if ${pipeline_cv_gcc_warning_redundant_decls+:} false; then :
14414   $as_echo_n "(cached) " >&6
14415 else
14416   pipeline_cv_gcc_warning_redundant_decls=no
14417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h.  */
14419
14420 int
14421 main ()
14422 {
14423
14424   ;
14425   return 0;
14426 }
14427 _ACEOF
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429   pipeline_cv_gcc_warning_redundant_decls=yes
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 fi
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_redundant_decls" >&5
14434 $as_echo "$pipeline_cv_gcc_warning_redundant_decls" >&6; }
14435  if test "$pipeline_cv_gcc_warning_redundant_decls" = no; then
14436    CFLAGS="$pipeline_saved_CFLAGS"
14437  fi
14438         pipeline_saved_CFLAGS="$CFLAGS"
14439  CFLAGS="$CFLAGS -Wno-missing-field-initializers"
14440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that GCC supports -Wno-missing-field-initializers" >&5
14441 $as_echo_n "checking that GCC supports -Wno-missing-field-initializers... " >&6; }
14442 if ${pipeline_cv_gcc_warning_no_missing_field_initializers+:} false; then :
14443   $as_echo_n "(cached) " >&6
14444 else
14445   pipeline_cv_gcc_warning_no_missing_field_initializers=no
14446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h.  */
14448
14449 int
14450 main ()
14451 {
14452
14453   ;
14454   return 0;
14455 }
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458   pipeline_cv_gcc_warning_no_missing_field_initializers=yes
14459 fi
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_gcc_warning_no_missing_field_initializers" >&5
14463 $as_echo "$pipeline_cv_gcc_warning_no_missing_field_initializers" >&6; }
14464  if test "$pipeline_cv_gcc_warning_no_missing_field_initializers" = no; then
14465    CFLAGS="$pipeline_saved_CFLAGS"
14466  fi
14467 fi
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14469 $as_echo_n "checking whether ln -s works... " >&6; }
14470 LN_S=$as_ln_s
14471 if test "$LN_S" = "ln -s"; then
14472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473 $as_echo "yes" >&6; }
14474 else
14475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14476 $as_echo "no, using $LN_S" >&6; }
14477 fi
14478
14479
14480
14481
14482
14483
14484
14485
14486 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14487         if test -n "$ac_tool_prefix"; then
14488   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14489 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491 $as_echo_n "checking for $ac_word... " >&6; }
14492 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14493   $as_echo_n "(cached) " >&6
14494 else
14495   case $PKG_CONFIG in
14496   [\\/]* | ?:[\\/]*)
14497   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14498   ;;
14499   *)
14500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14501 for as_dir in $PATH
14502 do
14503   IFS=$as_save_IFS
14504   test -z "$as_dir" && as_dir=.
14505     for ac_exec_ext in '' $ac_executable_extensions; do
14506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14507     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14509     break 2
14510   fi
14511 done
14512   done
14513 IFS=$as_save_IFS
14514
14515   ;;
14516 esac
14517 fi
14518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14519 if test -n "$PKG_CONFIG"; then
14520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14521 $as_echo "$PKG_CONFIG" >&6; }
14522 else
14523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 $as_echo "no" >&6; }
14525 fi
14526
14527
14528 fi
14529 if test -z "$ac_cv_path_PKG_CONFIG"; then
14530   ac_pt_PKG_CONFIG=$PKG_CONFIG
14531   # Extract the first word of "pkg-config", so it can be a program name with args.
14532 set dummy pkg-config; ac_word=$2
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14534 $as_echo_n "checking for $ac_word... " >&6; }
14535 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14536   $as_echo_n "(cached) " >&6
14537 else
14538   case $ac_pt_PKG_CONFIG in
14539   [\\/]* | ?:[\\/]*)
14540   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14541   ;;
14542   *)
14543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544 for as_dir in $PATH
14545 do
14546   IFS=$as_save_IFS
14547   test -z "$as_dir" && as_dir=.
14548     for ac_exec_ext in '' $ac_executable_extensions; do
14549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14550     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14552     break 2
14553   fi
14554 done
14555   done
14556 IFS=$as_save_IFS
14557
14558   ;;
14559 esac
14560 fi
14561 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14562 if test -n "$ac_pt_PKG_CONFIG"; then
14563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14564 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14565 else
14566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567 $as_echo "no" >&6; }
14568 fi
14569
14570   if test "x$ac_pt_PKG_CONFIG" = x; then
14571     PKG_CONFIG=""
14572   else
14573     case $cross_compiling:$ac_tool_warned in
14574 yes:)
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14577 ac_tool_warned=yes ;;
14578 esac
14579     PKG_CONFIG=$ac_pt_PKG_CONFIG
14580   fi
14581 else
14582   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14583 fi
14584
14585 fi
14586 if test -n "$PKG_CONFIG"; then
14587         _pkg_min_version=0.9.0
14588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14589 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14590         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14591                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14592 $as_echo "yes" >&6; }
14593         else
14594                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14595 $as_echo "no" >&6; }
14596                 PKG_CONFIG=""
14597         fi
14598 fi
14599
14600 pkg_failed=no
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
14602 $as_echo_n "checking for CHECK... " >&6; }
14603
14604 if test -n "$CHECK_CFLAGS"; then
14605     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
14606  elif test -n "$PKG_CONFIG"; then
14607     if test -n "$PKG_CONFIG" && \
14608     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14609   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14610   ac_status=$?
14611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612   test $ac_status = 0; }; then
14613   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
14614                       test "x$?" != "x0" && pkg_failed=yes
14615 else
14616   pkg_failed=yes
14617 fi
14618  else
14619     pkg_failed=untried
14620 fi
14621 if test -n "$CHECK_LIBS"; then
14622     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
14623  elif test -n "$PKG_CONFIG"; then
14624     if test -n "$PKG_CONFIG" && \
14625     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
14626   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
14627   ac_status=$?
14628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14629   test $ac_status = 0; }; then
14630   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
14631                       test "x$?" != "x0" && pkg_failed=yes
14632 else
14633   pkg_failed=yes
14634 fi
14635  else
14636     pkg_failed=untried
14637 fi
14638
14639
14640
14641 if test $pkg_failed = yes; then
14642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643 $as_echo "no" >&6; }
14644
14645 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14646         _pkg_short_errors_supported=yes
14647 else
14648         _pkg_short_errors_supported=no
14649 fi
14650         if test $_pkg_short_errors_supported = yes; then
14651                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14652         else
14653                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
14654         fi
14655         # Put the nasty error message in config.log where it belongs
14656         echo "$CHECK_PKG_ERRORS" >&5
14657
14658         run_tests=no
14659 elif test $pkg_failed = untried; then
14660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14661 $as_echo "no" >&6; }
14662         run_tests=no
14663 else
14664         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
14665         CHECK_LIBS=$pkg_cv_CHECK_LIBS
14666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14667 $as_echo "yes" >&6; }
14668         run_tests=yes
14669 fi
14670  if test "x$run_tests" = xyes; then
14671   RUN_TESTS_TRUE=
14672   RUN_TESTS_FALSE='#'
14673 else
14674   RUN_TESTS_TRUE='#'
14675   RUN_TESTS_FALSE=
14676 fi
14677
14678
14679 # Check for various header files and associated libraries.
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
14681 $as_echo_n "checking for library containing strerror... " >&6; }
14682 if ${ac_cv_search_strerror+:} false; then :
14683   $as_echo_n "(cached) " >&6
14684 else
14685   ac_func_search_save_LIBS=$LIBS
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h.  */
14688
14689 /* Override any GCC internal prototype to avoid an error.
14690    Use char because int might match the return type of a GCC
14691    builtin and then its argument prototype would still apply.  */
14692 #ifdef __cplusplus
14693 extern "C"
14694 #endif
14695 char strerror ();
14696 int
14697 main ()
14698 {
14699 return strerror ();
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 for ac_lib in '' cposix; do
14705   if test -z "$ac_lib"; then
14706     ac_res="none required"
14707   else
14708     ac_res=-l$ac_lib
14709     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14710   fi
14711   if ac_fn_c_try_link "$LINENO"; then :
14712   ac_cv_search_strerror=$ac_res
14713 fi
14714 rm -f core conftest.err conftest.$ac_objext \
14715     conftest$ac_exeext
14716   if ${ac_cv_search_strerror+:} false; then :
14717   break
14718 fi
14719 done
14720 if ${ac_cv_search_strerror+:} false; then :
14721
14722 else
14723   ac_cv_search_strerror=no
14724 fi
14725 rm conftest.$ac_ext
14726 LIBS=$ac_func_search_save_LIBS
14727 fi
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
14729 $as_echo "$ac_cv_search_strerror" >&6; }
14730 ac_res=$ac_cv_search_strerror
14731 if test "$ac_res" != no; then :
14732   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14733
14734 fi
14735
14736
14737
14738
14739
14740
14741           LIBC_FATAL_STDERR_=1
14742   export LIBC_FATAL_STDERR_
14743
14744 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14745 if test "x$ac_cv_type_size_t" = xyes; then :
14746
14747 else
14748
14749 cat >>confdefs.h <<_ACEOF
14750 #define size_t unsigned int
14751 _ACEOF
14752
14753 fi
14754
14755 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14756 # for constant arguments.  Useless!
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14758 $as_echo_n "checking for working alloca.h... " >&6; }
14759 if ${ac_cv_working_alloca_h+:} false; then :
14760   $as_echo_n "(cached) " >&6
14761 else
14762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h.  */
14764 #include <alloca.h>
14765 int
14766 main ()
14767 {
14768 char *p = (char *) alloca (2 * sizeof (int));
14769                           if (p) return 0;
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 if ac_fn_c_try_link "$LINENO"; then :
14775   ac_cv_working_alloca_h=yes
14776 else
14777   ac_cv_working_alloca_h=no
14778 fi
14779 rm -f core conftest.err conftest.$ac_objext \
14780     conftest$ac_exeext conftest.$ac_ext
14781 fi
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14783 $as_echo "$ac_cv_working_alloca_h" >&6; }
14784 if test $ac_cv_working_alloca_h = yes; then
14785
14786 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14787
14788 fi
14789
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14791 $as_echo_n "checking for alloca... " >&6; }
14792 if ${ac_cv_func_alloca_works+:} false; then :
14793   $as_echo_n "(cached) " >&6
14794 else
14795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h.  */
14797 #ifdef __GNUC__
14798 # define alloca __builtin_alloca
14799 #else
14800 # ifdef _MSC_VER
14801 #  include <malloc.h>
14802 #  define alloca _alloca
14803 # else
14804 #  ifdef HAVE_ALLOCA_H
14805 #   include <alloca.h>
14806 #  else
14807 #   ifdef _AIX
14808  #pragma alloca
14809 #   else
14810 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14811 void *alloca (size_t);
14812 #    endif
14813 #   endif
14814 #  endif
14815 # endif
14816 #endif
14817
14818 int
14819 main ()
14820 {
14821 char *p = (char *) alloca (1);
14822                                     if (p) return 0;
14823   ;
14824   return 0;
14825 }
14826 _ACEOF
14827 if ac_fn_c_try_link "$LINENO"; then :
14828   ac_cv_func_alloca_works=yes
14829 else
14830   ac_cv_func_alloca_works=no
14831 fi
14832 rm -f core conftest.err conftest.$ac_objext \
14833     conftest$ac_exeext conftest.$ac_ext
14834 fi
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14836 $as_echo "$ac_cv_func_alloca_works" >&6; }
14837
14838 if test $ac_cv_func_alloca_works = yes; then
14839
14840 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14841
14842 else
14843   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14844 # that cause trouble.  Some versions do not even contain alloca or
14845 # contain a buggy version.  If you still want to use their alloca,
14846 # use ar to extract alloca.o from them instead of compiling alloca.c.
14847
14848
14849
14850
14851
14852 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14853
14854 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14855
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14858 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14859 if ${ac_cv_os_cray+:} false; then :
14860   $as_echo_n "(cached) " >&6
14861 else
14862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h.  */
14864 #if defined CRAY && ! defined CRAY2
14865 webecray
14866 #else
14867 wenotbecray
14868 #endif
14869
14870 _ACEOF
14871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872   $EGREP "webecray" >/dev/null 2>&1; then :
14873   ac_cv_os_cray=yes
14874 else
14875   ac_cv_os_cray=no
14876 fi
14877 rm -f conftest*
14878
14879 fi
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14881 $as_echo "$ac_cv_os_cray" >&6; }
14882 if test $ac_cv_os_cray = yes; then
14883   for ac_func in _getb67 GETB67 getb67; do
14884     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14885 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14886 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14887
14888 cat >>confdefs.h <<_ACEOF
14889 #define CRAY_STACKSEG_END $ac_func
14890 _ACEOF
14891
14892     break
14893 fi
14894
14895   done
14896 fi
14897
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14899 $as_echo_n "checking stack direction for C alloca... " >&6; }
14900 if ${ac_cv_c_stack_direction+:} false; then :
14901   $as_echo_n "(cached) " >&6
14902 else
14903   if test "$cross_compiling" = yes; then :
14904   ac_cv_c_stack_direction=0
14905 else
14906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h.  */
14908 $ac_includes_default
14909 int
14910 find_stack_direction (int *addr, int depth)
14911 {
14912   int dir, dummy = 0;
14913   if (! addr)
14914     addr = &dummy;
14915   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14916   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14917   return dir + dummy;
14918 }
14919
14920 int
14921 main (int argc, char **argv)
14922 {
14923   return find_stack_direction (0, argc + !argv + 20) < 0;
14924 }
14925 _ACEOF
14926 if ac_fn_c_try_run "$LINENO"; then :
14927   ac_cv_c_stack_direction=1
14928 else
14929   ac_cv_c_stack_direction=-1
14930 fi
14931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14932   conftest.$ac_objext conftest.beam conftest.$ac_ext
14933 fi
14934
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14937 $as_echo "$ac_cv_c_stack_direction" >&6; }
14938 cat >>confdefs.h <<_ACEOF
14939 #define STACK_DIRECTION $ac_cv_c_stack_direction
14940 _ACEOF
14941
14942
14943 fi
14944
14945
14946
14947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14948 $as_echo_n "checking whether // is distinct from /... " >&6; }
14949 if ${gl_cv_double_slash_root+:} false; then :
14950   $as_echo_n "(cached) " >&6
14951 else
14952    if test x"$cross_compiling" = xyes ; then
14953         # When cross-compiling, there is no way to tell whether // is special
14954         # short of a list of hosts.  However, the only known hosts to date
14955         # that have a distinct // are Apollo DomainOS (too old to port to),
14956         # Cygwin, and z/OS.  If anyone knows of another system for which // has
14957         # special semantics and is distinct from /, please report it to
14958         # <bug-gnulib@gnu.org>.
14959         case $host in
14960           *-cygwin | i370-ibm-openedition)
14961             gl_cv_double_slash_root=yes ;;
14962           *)
14963             # Be optimistic and assume that / and // are the same when we
14964             # don't know.
14965             gl_cv_double_slash_root='unknown, assuming no' ;;
14966         esac
14967       else
14968         set x `ls -di / // 2>/dev/null`
14969         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
14970           gl_cv_double_slash_root=no
14971         else
14972           gl_cv_double_slash_root=yes
14973         fi
14974       fi
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14977 $as_echo "$gl_cv_double_slash_root" >&6; }
14978   if test "$gl_cv_double_slash_root" = yes; then
14979
14980 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14981
14982   fi
14983
14984
14985
14986
14987
14988
14989   GNULIB_CHDIR=0;
14990   GNULIB_CHOWN=0;
14991   GNULIB_CLOSE=0;
14992   GNULIB_DUP=0;
14993   GNULIB_DUP2=0;
14994   GNULIB_DUP3=0;
14995   GNULIB_ENVIRON=0;
14996   GNULIB_EUIDACCESS=0;
14997   GNULIB_FACCESSAT=0;
14998   GNULIB_FCHDIR=0;
14999   GNULIB_FCHOWNAT=0;
15000   GNULIB_FDATASYNC=0;
15001   GNULIB_FSYNC=0;
15002   GNULIB_FTRUNCATE=0;
15003   GNULIB_GETCWD=0;
15004   GNULIB_GETDOMAINNAME=0;
15005   GNULIB_GETDTABLESIZE=0;
15006   GNULIB_GETGROUPS=0;
15007   GNULIB_GETHOSTNAME=0;
15008   GNULIB_GETLOGIN=0;
15009   GNULIB_GETLOGIN_R=0;
15010   GNULIB_GETPAGESIZE=0;
15011   GNULIB_GETUSERSHELL=0;
15012   GNULIB_GROUP_MEMBER=0;
15013   GNULIB_ISATTY=0;
15014   GNULIB_LCHOWN=0;
15015   GNULIB_LINK=0;
15016   GNULIB_LINKAT=0;
15017   GNULIB_LSEEK=0;
15018   GNULIB_PIPE=0;
15019   GNULIB_PIPE2=0;
15020   GNULIB_PREAD=0;
15021   GNULIB_PWRITE=0;
15022   GNULIB_READ=0;
15023   GNULIB_READLINK=0;
15024   GNULIB_READLINKAT=0;
15025   GNULIB_RMDIR=0;
15026   GNULIB_SETHOSTNAME=0;
15027   GNULIB_SLEEP=0;
15028   GNULIB_SYMLINK=0;
15029   GNULIB_SYMLINKAT=0;
15030   GNULIB_TTYNAME_R=0;
15031   GNULIB_UNISTD_H_NONBLOCKING=0;
15032   GNULIB_UNISTD_H_SIGPIPE=0;
15033   GNULIB_UNLINK=0;
15034   GNULIB_UNLINKAT=0;
15035   GNULIB_USLEEP=0;
15036   GNULIB_WRITE=0;
15037     HAVE_CHOWN=1;
15038   HAVE_DUP2=1;
15039   HAVE_DUP3=1;
15040   HAVE_EUIDACCESS=1;
15041   HAVE_FACCESSAT=1;
15042   HAVE_FCHDIR=1;
15043   HAVE_FCHOWNAT=1;
15044   HAVE_FDATASYNC=1;
15045   HAVE_FSYNC=1;
15046   HAVE_FTRUNCATE=1;
15047   HAVE_GETDTABLESIZE=1;
15048   HAVE_GETGROUPS=1;
15049   HAVE_GETHOSTNAME=1;
15050   HAVE_GETLOGIN=1;
15051   HAVE_GETPAGESIZE=1;
15052   HAVE_GROUP_MEMBER=1;
15053   HAVE_LCHOWN=1;
15054   HAVE_LINK=1;
15055   HAVE_LINKAT=1;
15056   HAVE_PIPE=1;
15057   HAVE_PIPE2=1;
15058   HAVE_PREAD=1;
15059   HAVE_PWRITE=1;
15060   HAVE_READLINK=1;
15061   HAVE_READLINKAT=1;
15062   HAVE_SETHOSTNAME=1;
15063   HAVE_SLEEP=1;
15064   HAVE_SYMLINK=1;
15065   HAVE_SYMLINKAT=1;
15066   HAVE_UNLINKAT=1;
15067   HAVE_USLEEP=1;
15068   HAVE_DECL_ENVIRON=1;
15069   HAVE_DECL_FCHDIR=1;
15070   HAVE_DECL_FDATASYNC=1;
15071   HAVE_DECL_GETDOMAINNAME=1;
15072   HAVE_DECL_GETLOGIN_R=1;
15073   HAVE_DECL_GETPAGESIZE=1;
15074   HAVE_DECL_GETUSERSHELL=1;
15075   HAVE_DECL_SETHOSTNAME=1;
15076   HAVE_DECL_TTYNAME_R=1;
15077   HAVE_OS_H=0;
15078   HAVE_SYS_PARAM_H=0;
15079   REPLACE_CHOWN=0;
15080   REPLACE_CLOSE=0;
15081   REPLACE_DUP=0;
15082   REPLACE_DUP2=0;
15083   REPLACE_FCHOWNAT=0;
15084   REPLACE_GETCWD=0;
15085   REPLACE_GETDOMAINNAME=0;
15086   REPLACE_GETLOGIN_R=0;
15087   REPLACE_GETGROUPS=0;
15088   REPLACE_GETPAGESIZE=0;
15089   REPLACE_ISATTY=0;
15090   REPLACE_LCHOWN=0;
15091   REPLACE_LINK=0;
15092   REPLACE_LINKAT=0;
15093   REPLACE_LSEEK=0;
15094   REPLACE_PREAD=0;
15095   REPLACE_PWRITE=0;
15096   REPLACE_READ=0;
15097   REPLACE_READLINK=0;
15098   REPLACE_RMDIR=0;
15099   REPLACE_SLEEP=0;
15100   REPLACE_SYMLINK=0;
15101   REPLACE_TTYNAME_R=0;
15102   REPLACE_UNLINK=0;
15103   REPLACE_UNLINKAT=0;
15104   REPLACE_USLEEP=0;
15105   REPLACE_WRITE=0;
15106   UNISTD_H_HAVE_WINSOCK2_H=0;
15107   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15108
15109
15110
15111
15112
15113
15114   for ac_header in $gl_header_list
15115 do :
15116   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15117 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15119   cat >>confdefs.h <<_ACEOF
15120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15121 _ACEOF
15122
15123 fi
15124
15125 done
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136   :
15137
15138
15139
15140
15141
15142
15143
15144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15145 $as_echo_n "checking if environ is properly declared... " >&6; }
15146   if ${gt_cv_var_environ_declaration+:} false; then :
15147   $as_echo_n "(cached) " >&6
15148 else
15149
15150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h.  */
15152 #if HAVE_UNISTD_H
15153      #include <unistd.h>
15154      #endif
15155      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
15156      #include <stdlib.h>
15157
15158            extern struct { int foo; } environ;
15159 int
15160 main ()
15161 {
15162 environ.foo = 1;
15163   ;
15164   return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_compile "$LINENO"; then :
15168   gt_cv_var_environ_declaration=no
15169 else
15170   gt_cv_var_environ_declaration=yes
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 fi
15174
15175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15176 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15177   if test $gt_cv_var_environ_declaration = yes; then
15178
15179 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15180
15181   fi
15182
15183
15184   if test $gt_cv_var_environ_declaration != yes; then
15185     HAVE_DECL_ENVIRON=0
15186   fi
15187
15188
15189
15190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15191 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15192 if ${gl_cv_have_include_next+:} false; then :
15193   $as_echo_n "(cached) " >&6
15194 else
15195   rm -rf conftestd1a conftestd1b conftestd2
15196      mkdir conftestd1a conftestd1b conftestd2
15197                                                   cat <<EOF > conftestd1a/conftest.h
15198 #define DEFINED_IN_CONFTESTD1
15199 #include_next <conftest.h>
15200 #ifdef DEFINED_IN_CONFTESTD2
15201 int foo;
15202 #else
15203 #error "include_next doesn't work"
15204 #endif
15205 EOF
15206      cat <<EOF > conftestd1b/conftest.h
15207 #define DEFINED_IN_CONFTESTD1
15208 #include <stdio.h>
15209 #include_next <conftest.h>
15210 #ifdef DEFINED_IN_CONFTESTD2
15211 int foo;
15212 #else
15213 #error "include_next doesn't work"
15214 #endif
15215 EOF
15216      cat <<EOF > conftestd2/conftest.h
15217 #ifndef DEFINED_IN_CONFTESTD1
15218 #error "include_next test doesn't work"
15219 #endif
15220 #define DEFINED_IN_CONFTESTD2
15221 EOF
15222      gl_save_CPPFLAGS="$CPPFLAGS"
15223      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15224      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h.  */
15226 #include <conftest.h>
15227 _ACEOF
15228 if ac_fn_c_try_compile "$LINENO"; then :
15229   gl_cv_have_include_next=yes
15230 else
15231   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15232         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h.  */
15234 #include <conftest.h>
15235 _ACEOF
15236 if ac_fn_c_try_compile "$LINENO"; then :
15237   gl_cv_have_include_next=buggy
15238 else
15239   gl_cv_have_include_next=no
15240 fi
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242
15243 fi
15244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15245      CPPFLAGS="$gl_save_CPPFLAGS"
15246      rm -rf conftestd1a conftestd1b conftestd2
15247
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15250 $as_echo "$gl_cv_have_include_next" >&6; }
15251   PRAGMA_SYSTEM_HEADER=
15252   if test $gl_cv_have_include_next = yes; then
15253     INCLUDE_NEXT=include_next
15254     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15255     if test -n "$GCC"; then
15256       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15257     fi
15258   else
15259     if test $gl_cv_have_include_next = buggy; then
15260       INCLUDE_NEXT=include
15261       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15262     else
15263       INCLUDE_NEXT=include
15264       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15265     fi
15266   fi
15267
15268
15269
15270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15271 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15272 if ${gl_cv_pragma_columns+:} false; then :
15273   $as_echo_n "(cached) " >&6
15274 else
15275        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h.  */
15277
15278 #ifdef __TANDEM
15279 choke me
15280 #endif
15281
15282 _ACEOF
15283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15284   $EGREP "choke me" >/dev/null 2>&1; then :
15285   gl_cv_pragma_columns=yes
15286 else
15287   gl_cv_pragma_columns=no
15288 fi
15289 rm -f conftest*
15290
15291
15292 fi
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15294 $as_echo "$gl_cv_pragma_columns" >&6; }
15295   if test $gl_cv_pragma_columns = yes; then
15296     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15297   else
15298     PRAGMA_COLUMNS=
15299   fi
15300
15301
15302
15303
15304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15305 $as_echo_n "checking for complete errno.h... " >&6; }
15306 if ${gl_cv_header_errno_h_complete+:} false; then :
15307   $as_echo_n "(cached) " >&6
15308 else
15309
15310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h.  */
15312
15313 #include <errno.h>
15314 #if !defined ENOMSG
15315 booboo
15316 #endif
15317 #if !defined EIDRM
15318 booboo
15319 #endif
15320 #if !defined ENOLINK
15321 booboo
15322 #endif
15323 #if !defined EPROTO
15324 booboo
15325 #endif
15326 #if !defined EMULTIHOP
15327 booboo
15328 #endif
15329 #if !defined EBADMSG
15330 booboo
15331 #endif
15332 #if !defined EOVERFLOW
15333 booboo
15334 #endif
15335 #if !defined ENOTSUP
15336 booboo
15337 #endif
15338 #if !defined ENETRESET
15339 booboo
15340 #endif
15341 #if !defined ECONNABORTED
15342 booboo
15343 #endif
15344 #if !defined ESTALE
15345 booboo
15346 #endif
15347 #if !defined EDQUOT
15348 booboo
15349 #endif
15350 #if !defined ECANCELED
15351 booboo
15352 #endif
15353
15354 _ACEOF
15355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15356   $EGREP "booboo" >/dev/null 2>&1; then :
15357   gl_cv_header_errno_h_complete=no
15358 else
15359   gl_cv_header_errno_h_complete=yes
15360 fi
15361 rm -f conftest*
15362
15363
15364 fi
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15366 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15367   if test $gl_cv_header_errno_h_complete = yes; then
15368     ERRNO_H=''
15369   else
15370
15371
15372
15373
15374
15375
15376
15377
15378      if test $gl_cv_have_include_next = yes; then
15379        gl_cv_next_errno_h='<'errno.h'>'
15380      else
15381        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15382 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15383 if ${gl_cv_next_errno_h+:} false; then :
15384   $as_echo_n "(cached) " >&6
15385 else
15386
15387                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h.  */
15389 #include <errno.h>
15390
15391 _ACEOF
15392                                                                                                                         case "$host_os" in
15393                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
15394                  *)    gl_absname_cpp="$ac_cpp" ;;
15395                esac
15396
15397                case "$host_os" in
15398                  mingw*)
15399                                                                                                                                      gl_dirsep_regex='[/\\]'
15400                    ;;
15401                  *)
15402                    gl_dirsep_regex='\/'
15403                    ;;
15404                esac
15405                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15406
15407                gl_header_literal_regex=`echo 'errno.h' \
15408                                         | sed -e "$gl_make_literal_regex_sed"`
15409                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15410                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15411                    s|^/[^/]|//&|
15412                    p
15413                    q
15414                  }'
15415                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15416                       sed -n "$gl_absolute_header_sed"`'"'
15417
15418
15419 fi
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15421 $as_echo "$gl_cv_next_errno_h" >&6; }
15422      fi
15423      NEXT_ERRNO_H=$gl_cv_next_errno_h
15424
15425      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15426        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15427        gl_next_as_first_directive='<'errno.h'>'
15428      else
15429        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15430        gl_next_as_first_directive=$gl_cv_next_errno_h
15431      fi
15432      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15433
15434
15435
15436
15437     ERRNO_H='errno.h'
15438   fi
15439
15440    if test -n "$ERRNO_H"; then
15441   GL_GENERATE_ERRNO_H_TRUE=
15442   GL_GENERATE_ERRNO_H_FALSE='#'
15443 else
15444   GL_GENERATE_ERRNO_H_TRUE='#'
15445   GL_GENERATE_ERRNO_H_FALSE=
15446 fi
15447
15448
15449   if test -n "$ERRNO_H"; then
15450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15451 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15452 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15453   $as_echo_n "(cached) " >&6
15454 else
15455
15456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h.  */
15458
15459 #include <errno.h>
15460 #ifdef EMULTIHOP
15461 yes
15462 #endif
15463
15464 _ACEOF
15465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15466   $EGREP "yes" >/dev/null 2>&1; then :
15467   gl_cv_header_errno_h_EMULTIHOP=yes
15468 else
15469   gl_cv_header_errno_h_EMULTIHOP=no
15470 fi
15471 rm -f conftest*
15472
15473       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15474         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h.  */
15476
15477 #define _XOPEN_SOURCE_EXTENDED 1
15478 #include <errno.h>
15479 #ifdef EMULTIHOP
15480 yes
15481 #endif
15482
15483 _ACEOF
15484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15485   $EGREP "yes" >/dev/null 2>&1; then :
15486   gl_cv_header_errno_h_EMULTIHOP=hidden
15487 fi
15488 rm -f conftest*
15489
15490         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15491                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
15492 #define _XOPEN_SOURCE_EXTENDED 1
15493 #include <errno.h>
15494 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15495 #include <stdio.h>
15496 #include <stdlib.h>
15497 "; then :
15498
15499 fi
15500
15501         fi
15502       fi
15503
15504 fi
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
15506 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
15507     case $gl_cv_header_errno_h_EMULTIHOP in
15508       yes | no)
15509         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
15510         ;;
15511       *)
15512         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
15513         ;;
15514     esac
15515
15516
15517   fi
15518
15519
15520   if test -n "$ERRNO_H"; then
15521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
15522 $as_echo_n "checking for ENOLINK value... " >&6; }
15523 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
15524   $as_echo_n "(cached) " >&6
15525 else
15526
15527       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h.  */
15529
15530 #include <errno.h>
15531 #ifdef ENOLINK
15532 yes
15533 #endif
15534
15535 _ACEOF
15536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15537   $EGREP "yes" >/dev/null 2>&1; then :
15538   gl_cv_header_errno_h_ENOLINK=yes
15539 else
15540   gl_cv_header_errno_h_ENOLINK=no
15541 fi
15542 rm -f conftest*
15543
15544       if test $gl_cv_header_errno_h_ENOLINK = no; then
15545         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h.  */
15547
15548 #define _XOPEN_SOURCE_EXTENDED 1
15549 #include <errno.h>
15550 #ifdef ENOLINK
15551 yes
15552 #endif
15553
15554 _ACEOF
15555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15556   $EGREP "yes" >/dev/null 2>&1; then :
15557   gl_cv_header_errno_h_ENOLINK=hidden
15558 fi
15559 rm -f conftest*
15560
15561         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
15562                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
15563 #define _XOPEN_SOURCE_EXTENDED 1
15564 #include <errno.h>
15565 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15566 #include <stdio.h>
15567 #include <stdlib.h>
15568 "; then :
15569
15570 fi
15571
15572         fi
15573       fi
15574
15575 fi
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
15577 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
15578     case $gl_cv_header_errno_h_ENOLINK in
15579       yes | no)
15580         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
15581         ;;
15582       *)
15583         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
15584         ;;
15585     esac
15586
15587
15588   fi
15589
15590
15591   if test -n "$ERRNO_H"; then
15592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
15593 $as_echo_n "checking for EOVERFLOW value... " >&6; }
15594 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
15595   $as_echo_n "(cached) " >&6
15596 else
15597
15598       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h.  */
15600
15601 #include <errno.h>
15602 #ifdef EOVERFLOW
15603 yes
15604 #endif
15605
15606 _ACEOF
15607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15608   $EGREP "yes" >/dev/null 2>&1; then :
15609   gl_cv_header_errno_h_EOVERFLOW=yes
15610 else
15611   gl_cv_header_errno_h_EOVERFLOW=no
15612 fi
15613 rm -f conftest*
15614
15615       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
15616         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h.  */
15618
15619 #define _XOPEN_SOURCE_EXTENDED 1
15620 #include <errno.h>
15621 #ifdef EOVERFLOW
15622 yes
15623 #endif
15624
15625 _ACEOF
15626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15627   $EGREP "yes" >/dev/null 2>&1; then :
15628   gl_cv_header_errno_h_EOVERFLOW=hidden
15629 fi
15630 rm -f conftest*
15631
15632         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
15633                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
15634 #define _XOPEN_SOURCE_EXTENDED 1
15635 #include <errno.h>
15636 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
15637 #include <stdio.h>
15638 #include <stdlib.h>
15639 "; then :
15640
15641 fi
15642
15643         fi
15644       fi
15645
15646 fi
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
15648 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
15649     case $gl_cv_header_errno_h_EOVERFLOW in
15650       yes | no)
15651         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
15652         ;;
15653       *)
15654         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
15655         ;;
15656     esac
15657
15658
15659   fi
15660
15661
15662 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15663 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
15664   ac_have_decl=1
15665 else
15666   ac_have_decl=0
15667 fi
15668
15669 cat >>confdefs.h <<_ACEOF
15670 #define HAVE_DECL_STRERROR_R $ac_have_decl
15671 _ACEOF
15672
15673 for ac_func in strerror_r
15674 do :
15675   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15676 if test "x$ac_cv_func_strerror_r" = xyes; then :
15677   cat >>confdefs.h <<_ACEOF
15678 #define HAVE_STRERROR_R 1
15679 _ACEOF
15680
15681 fi
15682 done
15683
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15685 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15686 if ${ac_cv_func_strerror_r_char_p+:} false; then :
15687   $as_echo_n "(cached) " >&6
15688 else
15689
15690     ac_cv_func_strerror_r_char_p=no
15691     if test $ac_cv_have_decl_strerror_r = yes; then
15692       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h.  */
15694 $ac_includes_default
15695 int
15696 main ()
15697 {
15698
15699           char buf[100];
15700           char x = *strerror_r (0, buf, sizeof buf);
15701           char *p = strerror_r (0, buf, sizeof buf);
15702           return !p || x;
15703
15704   ;
15705   return 0;
15706 }
15707 _ACEOF
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709   ac_cv_func_strerror_r_char_p=yes
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712     else
15713       # strerror_r is not declared.  Choose between
15714       # systems that have relatively inaccessible declarations for the
15715       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
15716       # former has a strerror_r that returns char*, while the latter
15717       # has a strerror_r that returns `int'.
15718       # This test should segfault on the DEC system.
15719       if test "$cross_compiling" = yes; then :
15720   :
15721 else
15722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h.  */
15724 $ac_includes_default
15725         extern char *strerror_r ();
15726 int
15727 main ()
15728 {
15729 char buf[100];
15730           char x = *strerror_r (0, buf, sizeof buf);
15731           return ! isalpha (x);
15732   ;
15733   return 0;
15734 }
15735 _ACEOF
15736 if ac_fn_c_try_run "$LINENO"; then :
15737   ac_cv_func_strerror_r_char_p=yes
15738 fi
15739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15740   conftest.$ac_objext conftest.beam conftest.$ac_ext
15741 fi
15742
15743     fi
15744
15745 fi
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15747 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15748 if test $ac_cv_func_strerror_r_char_p = yes; then
15749
15750 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15751
15752 fi
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15755 $as_echo_n "checking for inline... " >&6; }
15756 if ${ac_cv_c_inline+:} false; then :
15757   $as_echo_n "(cached) " >&6
15758 else
15759   ac_cv_c_inline=no
15760 for ac_kw in inline __inline__ __inline; do
15761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h.  */
15763 #ifndef __cplusplus
15764 typedef int foo_t;
15765 static $ac_kw foo_t static_foo () {return 0; }
15766 $ac_kw foo_t foo () {return 0; }
15767 #endif
15768
15769 _ACEOF
15770 if ac_fn_c_try_compile "$LINENO"; then :
15771   ac_cv_c_inline=$ac_kw
15772 fi
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774   test "$ac_cv_c_inline" != no && break
15775 done
15776
15777 fi
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15779 $as_echo "$ac_cv_c_inline" >&6; }
15780
15781 case $ac_cv_c_inline in
15782   inline | yes) ;;
15783   *)
15784     case $ac_cv_c_inline in
15785       no) ac_val=;;
15786       *) ac_val=$ac_cv_c_inline;;
15787     esac
15788     cat >>confdefs.h <<_ACEOF
15789 #ifndef __cplusplus
15790 #define inline $ac_val
15791 #endif
15792 _ACEOF
15793     ;;
15794 esac
15795
15796
15797   XGETTEXT_EXTRA_OPTIONS=
15798
15799
15800       if test "X$prefix" = "XNONE"; then
15801     acl_final_prefix="$ac_default_prefix"
15802   else
15803     acl_final_prefix="$prefix"
15804   fi
15805   if test "X$exec_prefix" = "XNONE"; then
15806     acl_final_exec_prefix='${prefix}'
15807   else
15808     acl_final_exec_prefix="$exec_prefix"
15809   fi
15810   acl_save_prefix="$prefix"
15811   prefix="$acl_final_prefix"
15812   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15813   prefix="$acl_save_prefix"
15814
15815
15816 # Check whether --with-gnu-ld was given.
15817 if test "${with_gnu_ld+set}" = set; then :
15818   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15819 else
15820   with_gnu_ld=no
15821 fi
15822
15823 # Prepare PATH_SEPARATOR.
15824 # The user is always right.
15825 if test "${PATH_SEPARATOR+set}" != set; then
15826   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15827   # contains only /bin. Note that ksh looks also at the FPATH variable,
15828   # so we have to set that as well for the test.
15829   PATH_SEPARATOR=:
15830   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15831     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15832            || PATH_SEPARATOR=';'
15833        }
15834 fi
15835 ac_prog=ld
15836 if test "$GCC" = yes; then
15837   # Check if gcc -print-prog-name=ld gives a path.
15838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15839 $as_echo_n "checking for ld used by GCC... " >&6; }
15840   case $host in
15841   *-*-mingw*)
15842     # gcc leaves a trailing carriage return which upsets mingw
15843     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15844   *)
15845     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15846   esac
15847   case $ac_prog in
15848     # Accept absolute paths.
15849     [\\/]* | [A-Za-z]:[\\/]*)
15850       re_direlt='/[^/][^/]*/\.\./'
15851       # Canonicalize the path of ld
15852       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15853       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15854         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15855       done
15856       test -z "$LD" && LD="$ac_prog"
15857       ;;
15858   "")
15859     # If it fails, then pretend we aren't using GCC.
15860     ac_prog=ld
15861     ;;
15862   *)
15863     # If it is relative, then search for the first ld in PATH.
15864     with_gnu_ld=unknown
15865     ;;
15866   esac
15867 elif test "$with_gnu_ld" = yes; then
15868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15869 $as_echo_n "checking for GNU ld... " >&6; }
15870 else
15871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15872 $as_echo_n "checking for non-GNU ld... " >&6; }
15873 fi
15874 if ${acl_cv_path_LD+:} false; then :
15875   $as_echo_n "(cached) " >&6
15876 else
15877   if test -z "$LD"; then
15878   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15879   for ac_dir in $PATH; do
15880     test -z "$ac_dir" && ac_dir=.
15881     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15882       acl_cv_path_LD="$ac_dir/$ac_prog"
15883       # Check to see if the program is GNU ld.  I'd rather use --version,
15884       # but apparently some GNU ld's only accept -v.
15885       # Break only if it was the GNU/non-GNU ld that we prefer.
15886       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15887       *GNU* | *'with BFD'*)
15888         test "$with_gnu_ld" != no && break ;;
15889       *)
15890         test "$with_gnu_ld" != yes && break ;;
15891       esac
15892     fi
15893   done
15894   IFS="$ac_save_ifs"
15895 else
15896   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15897 fi
15898 fi
15899
15900 LD="$acl_cv_path_LD"
15901 if test -n "$LD"; then
15902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15903 $as_echo "$LD" >&6; }
15904 else
15905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15907 fi
15908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15911 if ${acl_cv_prog_gnu_ld+:} false; then :
15912   $as_echo_n "(cached) " >&6
15913 else
15914   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15915 case `$LD -v 2>&1 </dev/null` in
15916 *GNU* | *'with BFD'*)
15917   acl_cv_prog_gnu_ld=yes ;;
15918 *)
15919   acl_cv_prog_gnu_ld=no ;;
15920 esac
15921 fi
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15923 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15924 with_gnu_ld=$acl_cv_prog_gnu_ld
15925
15926
15927
15928
15929                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15930 $as_echo_n "checking for shared library run path origin... " >&6; }
15931 if ${acl_cv_rpath+:} false; then :
15932   $as_echo_n "(cached) " >&6
15933 else
15934
15935     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15936     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15937     . ./conftest.sh
15938     rm -f ./conftest.sh
15939     acl_cv_rpath=done
15940
15941 fi
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15943 $as_echo "$acl_cv_rpath" >&6; }
15944   wl="$acl_cv_wl"
15945   acl_libext="$acl_cv_libext"
15946   acl_shlibext="$acl_cv_shlibext"
15947   acl_libname_spec="$acl_cv_libname_spec"
15948   acl_library_names_spec="$acl_cv_library_names_spec"
15949   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15950   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15951   acl_hardcode_direct="$acl_cv_hardcode_direct"
15952   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15953     # Check whether --enable-rpath was given.
15954 if test "${enable_rpath+set}" = set; then :
15955   enableval=$enable_rpath; :
15956 else
15957   enable_rpath=yes
15958 fi
15959
15960
15961
15962
15963   acl_libdirstem=lib
15964   acl_libdirstem2=
15965   case "$host_os" in
15966     solaris*)
15967                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15968 $as_echo_n "checking for 64-bit host... " >&6; }
15969 if ${gl_cv_solaris_64bit+:} false; then :
15970   $as_echo_n "(cached) " >&6
15971 else
15972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h.  */
15974
15975 #ifdef _LP64
15976 sixtyfour bits
15977 #endif
15978
15979 _ACEOF
15980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15981   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
15982   gl_cv_solaris_64bit=yes
15983 else
15984   gl_cv_solaris_64bit=no
15985 fi
15986 rm -f conftest*
15987
15988
15989 fi
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15991 $as_echo "$gl_cv_solaris_64bit" >&6; }
15992       if test $gl_cv_solaris_64bit = yes; then
15993         acl_libdirstem=lib/64
15994         case "$host_cpu" in
15995           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15996           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15997         esac
15998       fi
15999       ;;
16000     *)
16001       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16002       if test -n "$searchpath"; then
16003         acl_save_IFS="${IFS=    }"; IFS=":"
16004         for searchdir in $searchpath; do
16005           if test -d "$searchdir"; then
16006             case "$searchdir" in
16007               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16008               */../ | */.. )
16009                 # Better ignore directories of this form. They are misleading.
16010                 ;;
16011               *) searchdir=`cd "$searchdir" && pwd`
16012                  case "$searchdir" in
16013                    */lib64 ) acl_libdirstem=lib64 ;;
16014                  esac ;;
16015             esac
16016           fi
16017         done
16018         IFS="$acl_save_IFS"
16019       fi
16020       ;;
16021   esac
16022   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16023
16024
16025
16026   gl_threads_api=none
16027   LIBTHREAD=
16028   LTLIBTHREAD=
16029   LIBMULTITHREAD=
16030   LTLIBMULTITHREAD=
16031   if test "$gl_use_threads" != no; then
16032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16033 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16034 if ${gl_cv_have_weak+:} false; then :
16035   $as_echo_n "(cached) " >&6
16036 else
16037   gl_cv_have_weak=no
16038               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h.  */
16040 extern void xyzzy ();
16041 #pragma weak xyzzy
16042 int
16043 main ()
16044 {
16045 xyzzy();
16046   ;
16047   return 0;
16048 }
16049 _ACEOF
16050 if ac_fn_c_try_link "$LINENO"; then :
16051   gl_cv_have_weak=maybe
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext \
16054     conftest$ac_exeext conftest.$ac_ext
16055        if test $gl_cv_have_weak = maybe; then
16056                            if test "$cross_compiling" = yes; then :
16057                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h.  */
16059 #ifdef __ELF__
16060                Extensible Linking Format
16061                #endif
16062
16063 _ACEOF
16064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16065   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16066   gl_cv_have_weak="guessing yes"
16067 else
16068   gl_cv_have_weak="guessing no"
16069 fi
16070 rm -f conftest*
16071
16072
16073 else
16074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h.  */
16076
16077 #include <stdio.h>
16078 #pragma weak fputs
16079 int main ()
16080 {
16081   return (fputs == NULL);
16082 }
16083 _ACEOF
16084 if ac_fn_c_try_run "$LINENO"; then :
16085   gl_cv_have_weak=yes
16086 else
16087   gl_cv_have_weak=no
16088 fi
16089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16090   conftest.$ac_objext conftest.beam conftest.$ac_ext
16091 fi
16092
16093        fi
16094
16095 fi
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16097 $as_echo "$gl_cv_have_weak" >&6; }
16098     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16099       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16100       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16101       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16102 if test "x$ac_cv_header_pthread_h" = xyes; then :
16103   gl_have_pthread_h=yes
16104 else
16105   gl_have_pthread_h=no
16106 fi
16107
16108
16109       if test "$gl_have_pthread_h" = yes; then
16110         # Other possible tests:
16111         #   -lpthreads (FSU threads, PCthreads)
16112         #   -lgthreads
16113         gl_have_pthread=
16114         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16115         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16116         # the second one only in libpthread, and lock.c needs it.
16117         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h.  */
16119 #include <pthread.h>
16120 int
16121 main ()
16122 {
16123 pthread_mutex_lock((pthread_mutex_t*)0);
16124                pthread_mutexattr_init((pthread_mutexattr_t*)0);
16125   ;
16126   return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_link "$LINENO"; then :
16130   gl_have_pthread=yes
16131 fi
16132 rm -f core conftest.err conftest.$ac_objext \
16133     conftest$ac_exeext conftest.$ac_ext
16134         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16135         # since it is defined as a macro on OSF/1.)
16136         if test -n "$gl_have_pthread"; then
16137           # The program links fine without libpthread. But it may actually
16138           # need to link with libpthread in order to create multiple threads.
16139           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16140 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16141 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16142   $as_echo_n "(cached) " >&6
16143 else
16144   ac_check_lib_save_LIBS=$LIBS
16145 LIBS="-lpthread  $LIBS"
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h.  */
16148
16149 /* Override any GCC internal prototype to avoid an error.
16150    Use char because int might match the return type of a GCC
16151    builtin and then its argument prototype would still apply.  */
16152 #ifdef __cplusplus
16153 extern "C"
16154 #endif
16155 char pthread_kill ();
16156 int
16157 main ()
16158 {
16159 return pthread_kill ();
16160   ;
16161   return 0;
16162 }
16163 _ACEOF
16164 if ac_fn_c_try_link "$LINENO"; then :
16165   ac_cv_lib_pthread_pthread_kill=yes
16166 else
16167   ac_cv_lib_pthread_pthread_kill=no
16168 fi
16169 rm -f core conftest.err conftest.$ac_objext \
16170     conftest$ac_exeext conftest.$ac_ext
16171 LIBS=$ac_check_lib_save_LIBS
16172 fi
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16174 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16175 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16176   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16177              # On Solaris and HP-UX, most pthread functions exist also in libc.
16178              # Therefore pthread_in_use() needs to actually try to create a
16179              # thread: pthread_create from libc will fail, whereas
16180              # pthread_create will actually create a thread.
16181              case "$host_os" in
16182                solaris* | hpux*)
16183
16184 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16185
16186              esac
16187
16188 fi
16189
16190         else
16191           # Some library is needed. Try libpthread and libc_r.
16192           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16193 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16194 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16195   $as_echo_n "(cached) " >&6
16196 else
16197   ac_check_lib_save_LIBS=$LIBS
16198 LIBS="-lpthread  $LIBS"
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h.  */
16201
16202 /* Override any GCC internal prototype to avoid an error.
16203    Use char because int might match the return type of a GCC
16204    builtin and then its argument prototype would still apply.  */
16205 #ifdef __cplusplus
16206 extern "C"
16207 #endif
16208 char pthread_kill ();
16209 int
16210 main ()
16211 {
16212 return pthread_kill ();
16213   ;
16214   return 0;
16215 }
16216 _ACEOF
16217 if ac_fn_c_try_link "$LINENO"; then :
16218   ac_cv_lib_pthread_pthread_kill=yes
16219 else
16220   ac_cv_lib_pthread_pthread_kill=no
16221 fi
16222 rm -f core conftest.err conftest.$ac_objext \
16223     conftest$ac_exeext conftest.$ac_ext
16224 LIBS=$ac_check_lib_save_LIBS
16225 fi
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16227 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16228 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16229   gl_have_pthread=yes
16230              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16231              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16232 fi
16233
16234           if test -z "$gl_have_pthread"; then
16235             # For FreeBSD 4.
16236             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16237 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16238 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16239   $as_echo_n "(cached) " >&6
16240 else
16241   ac_check_lib_save_LIBS=$LIBS
16242 LIBS="-lc_r  $LIBS"
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h.  */
16245
16246 /* Override any GCC internal prototype to avoid an error.
16247    Use char because int might match the return type of a GCC
16248    builtin and then its argument prototype would still apply.  */
16249 #ifdef __cplusplus
16250 extern "C"
16251 #endif
16252 char pthread_kill ();
16253 int
16254 main ()
16255 {
16256 return pthread_kill ();
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 if ac_fn_c_try_link "$LINENO"; then :
16262   ac_cv_lib_c_r_pthread_kill=yes
16263 else
16264   ac_cv_lib_c_r_pthread_kill=no
16265 fi
16266 rm -f core conftest.err conftest.$ac_objext \
16267     conftest$ac_exeext conftest.$ac_ext
16268 LIBS=$ac_check_lib_save_LIBS
16269 fi
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16271 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16272 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16273   gl_have_pthread=yes
16274                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16275                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16276 fi
16277
16278           fi
16279         fi
16280         if test -n "$gl_have_pthread"; then
16281           gl_threads_api=posix
16282
16283 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16284
16285           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16286             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16287
16288 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16289
16290               LIBTHREAD=
16291               LTLIBTHREAD=
16292             fi
16293           fi
16294         fi
16295       fi
16296     fi
16297     if test -z "$gl_have_pthread"; then
16298       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16299         gl_have_solaristhread=
16300         gl_save_LIBS="$LIBS"
16301         LIBS="$LIBS -lthread"
16302         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h.  */
16304
16305 #include <thread.h>
16306 #include <synch.h>
16307
16308 int
16309 main ()
16310 {
16311 thr_self();
16312   ;
16313   return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_c_try_link "$LINENO"; then :
16317   gl_have_solaristhread=yes
16318 fi
16319 rm -f core conftest.err conftest.$ac_objext \
16320     conftest$ac_exeext conftest.$ac_ext
16321         LIBS="$gl_save_LIBS"
16322         if test -n "$gl_have_solaristhread"; then
16323           gl_threads_api=solaris
16324           LIBTHREAD=-lthread
16325           LTLIBTHREAD=-lthread
16326           LIBMULTITHREAD="$LIBTHREAD"
16327           LTLIBMULTITHREAD="$LTLIBTHREAD"
16328
16329 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16330
16331           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16332
16333 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16334
16335             LIBTHREAD=
16336             LTLIBTHREAD=
16337           fi
16338         fi
16339       fi
16340     fi
16341     if test "$gl_use_threads" = pth; then
16342       gl_save_CPPFLAGS="$CPPFLAGS"
16343
16344
16345
16346
16347
16348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16349 $as_echo_n "checking how to link with libpth... " >&6; }
16350 if ${ac_cv_libpth_libs+:} false; then :
16351   $as_echo_n "(cached) " >&6
16352 else
16353
16354
16355
16356
16357
16358
16359
16360
16361     use_additional=yes
16362
16363   acl_save_prefix="$prefix"
16364   prefix="$acl_final_prefix"
16365   acl_save_exec_prefix="$exec_prefix"
16366   exec_prefix="$acl_final_exec_prefix"
16367
16368     eval additional_includedir=\"$includedir\"
16369     eval additional_libdir=\"$libdir\"
16370
16371   exec_prefix="$acl_save_exec_prefix"
16372   prefix="$acl_save_prefix"
16373
16374
16375 # Check whether --with-libpth-prefix was given.
16376 if test "${with_libpth_prefix+set}" = set; then :
16377   withval=$with_libpth_prefix;
16378     if test "X$withval" = "Xno"; then
16379       use_additional=no
16380     else
16381       if test "X$withval" = "X"; then
16382
16383   acl_save_prefix="$prefix"
16384   prefix="$acl_final_prefix"
16385   acl_save_exec_prefix="$exec_prefix"
16386   exec_prefix="$acl_final_exec_prefix"
16387
16388           eval additional_includedir=\"$includedir\"
16389           eval additional_libdir=\"$libdir\"
16390
16391   exec_prefix="$acl_save_exec_prefix"
16392   prefix="$acl_save_prefix"
16393
16394       else
16395         additional_includedir="$withval/include"
16396         additional_libdir="$withval/$acl_libdirstem"
16397         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16398            && ! test -d "$withval/$acl_libdirstem"; then
16399           additional_libdir="$withval/$acl_libdirstem2"
16400         fi
16401       fi
16402     fi
16403
16404 fi
16405
16406       LIBPTH=
16407   LTLIBPTH=
16408   INCPTH=
16409   LIBPTH_PREFIX=
16410       HAVE_LIBPTH=
16411   rpathdirs=
16412   ltrpathdirs=
16413   names_already_handled=
16414   names_next_round='pth '
16415   while test -n "$names_next_round"; do
16416     names_this_round="$names_next_round"
16417     names_next_round=
16418     for name in $names_this_round; do
16419       already_handled=
16420       for n in $names_already_handled; do
16421         if test "$n" = "$name"; then
16422           already_handled=yes
16423           break
16424         fi
16425       done
16426       if test -z "$already_handled"; then
16427         names_already_handled="$names_already_handled $name"
16428                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16429         eval value=\"\$HAVE_LIB$uppername\"
16430         if test -n "$value"; then
16431           if test "$value" = yes; then
16432             eval value=\"\$LIB$uppername\"
16433             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16434             eval value=\"\$LTLIB$uppername\"
16435             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16436           else
16437                                     :
16438           fi
16439         else
16440                               found_dir=
16441           found_la=
16442           found_so=
16443           found_a=
16444           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16445           if test -n "$acl_shlibext"; then
16446             shrext=".$acl_shlibext"             # typically: shrext=.so
16447           else
16448             shrext=
16449           fi
16450           if test $use_additional = yes; then
16451             dir="$additional_libdir"
16452                                     if test -n "$acl_shlibext"; then
16453               if test -f "$dir/$libname$shrext"; then
16454                 found_dir="$dir"
16455                 found_so="$dir/$libname$shrext"
16456               else
16457                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16458                   ver=`(cd "$dir" && \
16459                         for f in "$libname$shrext".*; do echo "$f"; done \
16460                         | sed -e "s,^$libname$shrext\\\\.,," \
16461                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16462                         | sed 1q ) 2>/dev/null`
16463                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16464                     found_dir="$dir"
16465                     found_so="$dir/$libname$shrext.$ver"
16466                   fi
16467                 else
16468                   eval library_names=\"$acl_library_names_spec\"
16469                   for f in $library_names; do
16470                     if test -f "$dir/$f"; then
16471                       found_dir="$dir"
16472                       found_so="$dir/$f"
16473                       break
16474                     fi
16475                   done
16476                 fi
16477               fi
16478             fi
16479                         if test "X$found_dir" = "X"; then
16480               if test -f "$dir/$libname.$acl_libext"; then
16481                 found_dir="$dir"
16482                 found_a="$dir/$libname.$acl_libext"
16483               fi
16484             fi
16485             if test "X$found_dir" != "X"; then
16486               if test -f "$dir/$libname.la"; then
16487                 found_la="$dir/$libname.la"
16488               fi
16489             fi
16490           fi
16491           if test "X$found_dir" = "X"; then
16492             for x in $LDFLAGS $LTLIBPTH; do
16493
16494   acl_save_prefix="$prefix"
16495   prefix="$acl_final_prefix"
16496   acl_save_exec_prefix="$exec_prefix"
16497   exec_prefix="$acl_final_exec_prefix"
16498   eval x=\"$x\"
16499   exec_prefix="$acl_save_exec_prefix"
16500   prefix="$acl_save_prefix"
16501
16502               case "$x" in
16503                 -L*)
16504                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16505                                     if test -n "$acl_shlibext"; then
16506                     if test -f "$dir/$libname$shrext"; then
16507                       found_dir="$dir"
16508                       found_so="$dir/$libname$shrext"
16509                     else
16510                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16511                         ver=`(cd "$dir" && \
16512                               for f in "$libname$shrext".*; do echo "$f"; done \
16513                               | sed -e "s,^$libname$shrext\\\\.,," \
16514                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16515                               | sed 1q ) 2>/dev/null`
16516                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16517                           found_dir="$dir"
16518                           found_so="$dir/$libname$shrext.$ver"
16519                         fi
16520                       else
16521                         eval library_names=\"$acl_library_names_spec\"
16522                         for f in $library_names; do
16523                           if test -f "$dir/$f"; then
16524                             found_dir="$dir"
16525                             found_so="$dir/$f"
16526                             break
16527                           fi
16528                         done
16529                       fi
16530                     fi
16531                   fi
16532                                     if test "X$found_dir" = "X"; then
16533                     if test -f "$dir/$libname.$acl_libext"; then
16534                       found_dir="$dir"
16535                       found_a="$dir/$libname.$acl_libext"
16536                     fi
16537                   fi
16538                   if test "X$found_dir" != "X"; then
16539                     if test -f "$dir/$libname.la"; then
16540                       found_la="$dir/$libname.la"
16541                     fi
16542                   fi
16543                   ;;
16544               esac
16545               if test "X$found_dir" != "X"; then
16546                 break
16547               fi
16548             done
16549           fi
16550           if test "X$found_dir" != "X"; then
16551                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16552             if test "X$found_so" != "X"; then
16553                                                         if test "$enable_rpath" = no \
16554                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16555                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16556                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16557               else
16558                                                                                 haveit=
16559                 for x in $ltrpathdirs; do
16560                   if test "X$x" = "X$found_dir"; then
16561                     haveit=yes
16562                     break
16563                   fi
16564                 done
16565                 if test -z "$haveit"; then
16566                   ltrpathdirs="$ltrpathdirs $found_dir"
16567                 fi
16568                                 if test "$acl_hardcode_direct" = yes; then
16569                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16570                 else
16571                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16572                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16573                                                             haveit=
16574                     for x in $rpathdirs; do
16575                       if test "X$x" = "X$found_dir"; then
16576                         haveit=yes
16577                         break
16578                       fi
16579                     done
16580                     if test -z "$haveit"; then
16581                       rpathdirs="$rpathdirs $found_dir"
16582                     fi
16583                   else
16584                                                                                 haveit=
16585                     for x in $LDFLAGS $LIBPTH; do
16586
16587   acl_save_prefix="$prefix"
16588   prefix="$acl_final_prefix"
16589   acl_save_exec_prefix="$exec_prefix"
16590   exec_prefix="$acl_final_exec_prefix"
16591   eval x=\"$x\"
16592   exec_prefix="$acl_save_exec_prefix"
16593   prefix="$acl_save_prefix"
16594
16595                       if test "X$x" = "X-L$found_dir"; then
16596                         haveit=yes
16597                         break
16598                       fi
16599                     done
16600                     if test -z "$haveit"; then
16601                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
16602                     fi
16603                     if test "$acl_hardcode_minus_L" != no; then
16604                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16605                     else
16606                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16607                     fi
16608                   fi
16609                 fi
16610               fi
16611             else
16612               if test "X$found_a" != "X"; then
16613                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
16614               else
16615                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
16616               fi
16617             fi
16618                         additional_includedir=
16619             case "$found_dir" in
16620               */$acl_libdirstem | */$acl_libdirstem/)
16621                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16622                 if test "$name" = 'pth'; then
16623                   LIBPTH_PREFIX="$basedir"
16624                 fi
16625                 additional_includedir="$basedir/include"
16626                 ;;
16627               */$acl_libdirstem2 | */$acl_libdirstem2/)
16628                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16629                 if test "$name" = 'pth'; then
16630                   LIBPTH_PREFIX="$basedir"
16631                 fi
16632                 additional_includedir="$basedir/include"
16633                 ;;
16634             esac
16635             if test "X$additional_includedir" != "X"; then
16636                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16637                 haveit=
16638                 if test "X$additional_includedir" = "X/usr/local/include"; then
16639                   if test -n "$GCC"; then
16640                     case $host_os in
16641                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16642                     esac
16643                   fi
16644                 fi
16645                 if test -z "$haveit"; then
16646                   for x in $CPPFLAGS $INCPTH; do
16647
16648   acl_save_prefix="$prefix"
16649   prefix="$acl_final_prefix"
16650   acl_save_exec_prefix="$exec_prefix"
16651   exec_prefix="$acl_final_exec_prefix"
16652   eval x=\"$x\"
16653   exec_prefix="$acl_save_exec_prefix"
16654   prefix="$acl_save_prefix"
16655
16656                     if test "X$x" = "X-I$additional_includedir"; then
16657                       haveit=yes
16658                       break
16659                     fi
16660                   done
16661                   if test -z "$haveit"; then
16662                     if test -d "$additional_includedir"; then
16663                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
16664                     fi
16665                   fi
16666                 fi
16667               fi
16668             fi
16669                         if test -n "$found_la"; then
16670                                                         save_libdir="$libdir"
16671               case "$found_la" in
16672                 */* | *\\*) . "$found_la" ;;
16673                 *) . "./$found_la" ;;
16674               esac
16675               libdir="$save_libdir"
16676                             for dep in $dependency_libs; do
16677                 case "$dep" in
16678                   -L*)
16679                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16680                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16681                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16682                       haveit=
16683                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16684                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16685                         if test -n "$GCC"; then
16686                           case $host_os in
16687                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16688                           esac
16689                         fi
16690                       fi
16691                       if test -z "$haveit"; then
16692                         haveit=
16693                         for x in $LDFLAGS $LIBPTH; do
16694
16695   acl_save_prefix="$prefix"
16696   prefix="$acl_final_prefix"
16697   acl_save_exec_prefix="$exec_prefix"
16698   exec_prefix="$acl_final_exec_prefix"
16699   eval x=\"$x\"
16700   exec_prefix="$acl_save_exec_prefix"
16701   prefix="$acl_save_prefix"
16702
16703                           if test "X$x" = "X-L$additional_libdir"; then
16704                             haveit=yes
16705                             break
16706                           fi
16707                         done
16708                         if test -z "$haveit"; then
16709                           if test -d "$additional_libdir"; then
16710                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
16711                           fi
16712                         fi
16713                         haveit=
16714                         for x in $LDFLAGS $LTLIBPTH; do
16715
16716   acl_save_prefix="$prefix"
16717   prefix="$acl_final_prefix"
16718   acl_save_exec_prefix="$exec_prefix"
16719   exec_prefix="$acl_final_exec_prefix"
16720   eval x=\"$x\"
16721   exec_prefix="$acl_save_exec_prefix"
16722   prefix="$acl_save_prefix"
16723
16724                           if test "X$x" = "X-L$additional_libdir"; then
16725                             haveit=yes
16726                             break
16727                           fi
16728                         done
16729                         if test -z "$haveit"; then
16730                           if test -d "$additional_libdir"; then
16731                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
16732                           fi
16733                         fi
16734                       fi
16735                     fi
16736                     ;;
16737                   -R*)
16738                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16739                     if test "$enable_rpath" != no; then
16740                                                                   haveit=
16741                       for x in $rpathdirs; do
16742                         if test "X$x" = "X$dir"; then
16743                           haveit=yes
16744                           break
16745                         fi
16746                       done
16747                       if test -z "$haveit"; then
16748                         rpathdirs="$rpathdirs $dir"
16749                       fi
16750                                                                   haveit=
16751                       for x in $ltrpathdirs; do
16752                         if test "X$x" = "X$dir"; then
16753                           haveit=yes
16754                           break
16755                         fi
16756                       done
16757                       if test -z "$haveit"; then
16758                         ltrpathdirs="$ltrpathdirs $dir"
16759                       fi
16760                     fi
16761                     ;;
16762                   -l*)
16763                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16764                     ;;
16765                   *.la)
16766                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16767                     ;;
16768                   *)
16769                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
16770                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
16771                     ;;
16772                 esac
16773               done
16774             fi
16775           else
16776                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16777             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
16778           fi
16779         fi
16780       fi
16781     done
16782   done
16783   if test "X$rpathdirs" != "X"; then
16784     if test -n "$acl_hardcode_libdir_separator"; then
16785                         alldirs=
16786       for found_dir in $rpathdirs; do
16787         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16788       done
16789             acl_save_libdir="$libdir"
16790       libdir="$alldirs"
16791       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16792       libdir="$acl_save_libdir"
16793       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16794     else
16795             for found_dir in $rpathdirs; do
16796         acl_save_libdir="$libdir"
16797         libdir="$found_dir"
16798         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16799         libdir="$acl_save_libdir"
16800         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16801       done
16802     fi
16803   fi
16804   if test "X$ltrpathdirs" != "X"; then
16805             for found_dir in $ltrpathdirs; do
16806       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
16807     done
16808   fi
16809
16810
16811
16812
16813
16814
16815     ac_cv_libpth_libs="$LIBPTH"
16816     ac_cv_libpth_ltlibs="$LTLIBPTH"
16817     ac_cv_libpth_cppflags="$INCPTH"
16818     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
16819
16820 fi
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
16822 $as_echo "$ac_cv_libpth_libs" >&6; }
16823   LIBPTH="$ac_cv_libpth_libs"
16824   LTLIBPTH="$ac_cv_libpth_ltlibs"
16825   INCPTH="$ac_cv_libpth_cppflags"
16826   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
16827
16828   for element in $INCPTH; do
16829     haveit=
16830     for x in $CPPFLAGS; do
16831
16832   acl_save_prefix="$prefix"
16833   prefix="$acl_final_prefix"
16834   acl_save_exec_prefix="$exec_prefix"
16835   exec_prefix="$acl_final_exec_prefix"
16836   eval x=\"$x\"
16837   exec_prefix="$acl_save_exec_prefix"
16838   prefix="$acl_save_prefix"
16839
16840       if test "X$x" = "X$element"; then
16841         haveit=yes
16842         break
16843       fi
16844     done
16845     if test -z "$haveit"; then
16846       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16847     fi
16848   done
16849
16850
16851
16852
16853       HAVE_LIBPTH=yes
16854
16855
16856
16857       gl_have_pth=
16858       gl_save_LIBS="$LIBS"
16859       LIBS="$LIBS $LIBPTH"
16860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h.  */
16862 #include <pth.h>
16863 int
16864 main ()
16865 {
16866 pth_self();
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 if ac_fn_c_try_link "$LINENO"; then :
16872   gl_have_pth=yes
16873 fi
16874 rm -f core conftest.err conftest.$ac_objext \
16875     conftest$ac_exeext conftest.$ac_ext
16876       LIBS="$gl_save_LIBS"
16877       if test -n "$gl_have_pth"; then
16878         gl_threads_api=pth
16879         LIBTHREAD="$LIBPTH"
16880         LTLIBTHREAD="$LTLIBPTH"
16881         LIBMULTITHREAD="$LIBTHREAD"
16882         LTLIBMULTITHREAD="$LTLIBTHREAD"
16883
16884 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
16885
16886         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16887           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16888
16889 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
16890
16891             LIBTHREAD=
16892             LTLIBTHREAD=
16893           fi
16894         fi
16895       else
16896         CPPFLAGS="$gl_save_CPPFLAGS"
16897       fi
16898     fi
16899     if test -z "$gl_have_pthread"; then
16900       case "$gl_use_threads" in
16901         yes | windows | win32) # The 'win32' is for backward compatibility.
16902           if { case "$host_os" in
16903                  mingw*) true;;
16904                  *) false;;
16905                esac
16906              }; then
16907             gl_threads_api=windows
16908
16909 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
16910
16911           fi
16912           ;;
16913       esac
16914     fi
16915   fi
16916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
16917 $as_echo_n "checking for multithread API to use... " >&6; }
16918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
16919 $as_echo "$gl_threads_api" >&6; }
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930   GNULIB__EXIT=0;
16931   GNULIB_ATOLL=0;
16932   GNULIB_CALLOC_POSIX=0;
16933   GNULIB_CANONICALIZE_FILE_NAME=0;
16934   GNULIB_GETLOADAVG=0;
16935   GNULIB_GETSUBOPT=0;
16936   GNULIB_GRANTPT=0;
16937   GNULIB_MALLOC_POSIX=0;
16938   GNULIB_MBTOWC=0;
16939   GNULIB_MKDTEMP=0;
16940   GNULIB_MKOSTEMP=0;
16941   GNULIB_MKOSTEMPS=0;
16942   GNULIB_MKSTEMP=0;
16943   GNULIB_MKSTEMPS=0;
16944   GNULIB_POSIX_OPENPT=0;
16945   GNULIB_PTSNAME=0;
16946   GNULIB_PTSNAME_R=0;
16947   GNULIB_PUTENV=0;
16948   GNULIB_RANDOM=0;
16949   GNULIB_RANDOM_R=0;
16950   GNULIB_REALLOC_POSIX=0;
16951   GNULIB_REALPATH=0;
16952   GNULIB_RPMATCH=0;
16953   GNULIB_SETENV=0;
16954   GNULIB_STRTOD=0;
16955   GNULIB_STRTOLL=0;
16956   GNULIB_STRTOULL=0;
16957   GNULIB_SYSTEM_POSIX=0;
16958   GNULIB_UNLOCKPT=0;
16959   GNULIB_UNSETENV=0;
16960   GNULIB_WCTOMB=0;
16961     HAVE__EXIT=1;
16962   HAVE_ATOLL=1;
16963   HAVE_CANONICALIZE_FILE_NAME=1;
16964   HAVE_DECL_GETLOADAVG=1;
16965   HAVE_GETSUBOPT=1;
16966   HAVE_GRANTPT=1;
16967   HAVE_MKDTEMP=1;
16968   HAVE_MKOSTEMP=1;
16969   HAVE_MKOSTEMPS=1;
16970   HAVE_MKSTEMP=1;
16971   HAVE_MKSTEMPS=1;
16972   HAVE_POSIX_OPENPT=1;
16973   HAVE_PTSNAME=1;
16974   HAVE_PTSNAME_R=1;
16975   HAVE_RANDOM=1;
16976   HAVE_RANDOM_H=1;
16977   HAVE_RANDOM_R=1;
16978   HAVE_REALPATH=1;
16979   HAVE_RPMATCH=1;
16980   HAVE_SETENV=1;
16981   HAVE_DECL_SETENV=1;
16982   HAVE_STRTOD=1;
16983   HAVE_STRTOLL=1;
16984   HAVE_STRTOULL=1;
16985   HAVE_STRUCT_RANDOM_DATA=1;
16986   HAVE_SYS_LOADAVG_H=0;
16987   HAVE_UNLOCKPT=1;
16988   HAVE_DECL_UNSETENV=1;
16989   REPLACE_CALLOC=0;
16990   REPLACE_CANONICALIZE_FILE_NAME=0;
16991   REPLACE_MALLOC=0;
16992   REPLACE_MBTOWC=0;
16993   REPLACE_MKSTEMP=0;
16994   REPLACE_PTSNAME_R=0;
16995   REPLACE_PUTENV=0;
16996   REPLACE_RANDOM_R=0;
16997   REPLACE_REALLOC=0;
16998   REPLACE_REALPATH=0;
16999   REPLACE_SETENV=0;
17000   REPLACE_STRTOD=0;
17001   REPLACE_UNSETENV=0;
17002   REPLACE_WCTOMB=0;
17003
17004
17005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17006 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17007 if ${gl_cv_func_malloc_posix+:} false; then :
17008   $as_echo_n "(cached) " >&6
17009 else
17010
17011                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h.  */
17013
17014 int
17015 main ()
17016 {
17017 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17018              choke me
17019              #endif
17020
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026   gl_cv_func_malloc_posix=yes
17027 else
17028   gl_cv_func_malloc_posix=no
17029 fi
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031
17032 fi
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17034 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17035
17036
17037   for ac_header in stdlib.h
17038 do :
17039   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17040 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17041   cat >>confdefs.h <<_ACEOF
17042 #define HAVE_STDLIB_H 1
17043 _ACEOF
17044
17045 fi
17046
17047 done
17048
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17050 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17051 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17052   $as_echo_n "(cached) " >&6
17053 else
17054   if test "$cross_compiling" = yes; then :
17055   ac_cv_func_malloc_0_nonnull=no
17056 else
17057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h.  */
17059 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17060 # include <stdlib.h>
17061 #else
17062 char *malloc ();
17063 #endif
17064
17065 int
17066 main ()
17067 {
17068 return ! malloc (0);
17069   ;
17070   return 0;
17071 }
17072 _ACEOF
17073 if ac_fn_c_try_run "$LINENO"; then :
17074   ac_cv_func_malloc_0_nonnull=yes
17075 else
17076   ac_cv_func_malloc_0_nonnull=no
17077 fi
17078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17079   conftest.$ac_objext conftest.beam conftest.$ac_ext
17080 fi
17081
17082 fi
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17084 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17085 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17086   gl_cv_func_malloc_0_nonnull=1
17087 else
17088   gl_cv_func_malloc_0_nonnull=0
17089 fi
17090
17091
17092 cat >>confdefs.h <<_ACEOF
17093 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17094 _ACEOF
17095
17096
17097
17098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17099 $as_echo_n "checking for unsigned long long int... " >&6; }
17100 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17101   $as_echo_n "(cached) " >&6
17102 else
17103   ac_cv_type_unsigned_long_long_int=yes
17104      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17105        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h.  */
17107
17108   /* For now, do not test the preprocessor; as of 2007 there are too many
17109          implementations with broken preprocessors.  Perhaps this can
17110          be revisited in 2012.  In the meantime, code should not expect
17111          #if to work with literals wider than 32 bits.  */
17112       /* Test literals.  */
17113       long long int ll = 9223372036854775807ll;
17114       long long int nll = -9223372036854775807LL;
17115       unsigned long long int ull = 18446744073709551615ULL;
17116       /* Test constant expressions.   */
17117       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17118                      ? 1 : -1)];
17119       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17120                      ? 1 : -1)];
17121       int i = 63;
17122 int
17123 main ()
17124 {
17125 /* Test availability of runtime routines for shift and division.  */
17126       long long int llmax = 9223372036854775807ll;
17127       unsigned long long int ullmax = 18446744073709551615ull;
17128       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17129               | (llmax / ll) | (llmax % ll)
17130               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17131               | (ullmax / ull) | (ullmax % ull));
17132   ;
17133   return 0;
17134 }
17135
17136 _ACEOF
17137 if ac_fn_c_try_link "$LINENO"; then :
17138
17139 else
17140   ac_cv_type_unsigned_long_long_int=no
17141 fi
17142 rm -f core conftest.err conftest.$ac_objext \
17143     conftest$ac_exeext conftest.$ac_ext
17144      fi
17145 fi
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17147 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17148   if test $ac_cv_type_unsigned_long_long_int = yes; then
17149
17150 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17151
17152   fi
17153
17154
17155
17156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17157 $as_echo_n "checking for long long int... " >&6; }
17158 if ${ac_cv_type_long_long_int+:} false; then :
17159   $as_echo_n "(cached) " >&6
17160 else
17161   ac_cv_type_long_long_int=yes
17162       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17163         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17164         if test $ac_cv_type_long_long_int = yes; then
17165                                         if test "$cross_compiling" = yes; then :
17166   :
17167 else
17168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h.  */
17170 #include <limits.h>
17171                  #ifndef LLONG_MAX
17172                  # define HALF \
17173                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17174                  # define LLONG_MAX (HALF - 1 + HALF)
17175                  #endif
17176 int
17177 main ()
17178 {
17179 long long int n = 1;
17180                  int i;
17181                  for (i = 0; ; i++)
17182                    {
17183                      long long int m = n << i;
17184                      if (m >> i != n)
17185                        return 1;
17186                      if (LLONG_MAX / 2 < m)
17187                        break;
17188                    }
17189                  return 0;
17190   ;
17191   return 0;
17192 }
17193 _ACEOF
17194 if ac_fn_c_try_run "$LINENO"; then :
17195
17196 else
17197   ac_cv_type_long_long_int=no
17198 fi
17199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17200   conftest.$ac_objext conftest.beam conftest.$ac_ext
17201 fi
17202
17203         fi
17204       fi
17205 fi
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17207 $as_echo "$ac_cv_type_long_long_int" >&6; }
17208   if test $ac_cv_type_long_long_int = yes; then
17209
17210 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17211
17212   fi
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223   for ac_func in $gl_func_list
17224 do :
17225   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17228   cat >>confdefs.h <<_ACEOF
17229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17230 _ACEOF
17231
17232 fi
17233 done
17234
17235
17236
17237
17238
17239
17240   GNULIB_FFSL=0;
17241   GNULIB_FFSLL=0;
17242   GNULIB_MEMCHR=0;
17243   GNULIB_MEMMEM=0;
17244   GNULIB_MEMPCPY=0;
17245   GNULIB_MEMRCHR=0;
17246   GNULIB_RAWMEMCHR=0;
17247   GNULIB_STPCPY=0;
17248   GNULIB_STPNCPY=0;
17249   GNULIB_STRCHRNUL=0;
17250   GNULIB_STRDUP=0;
17251   GNULIB_STRNCAT=0;
17252   GNULIB_STRNDUP=0;
17253   GNULIB_STRNLEN=0;
17254   GNULIB_STRPBRK=0;
17255   GNULIB_STRSEP=0;
17256   GNULIB_STRSTR=0;
17257   GNULIB_STRCASESTR=0;
17258   GNULIB_STRTOK_R=0;
17259   GNULIB_MBSLEN=0;
17260   GNULIB_MBSNLEN=0;
17261   GNULIB_MBSCHR=0;
17262   GNULIB_MBSRCHR=0;
17263   GNULIB_MBSSTR=0;
17264   GNULIB_MBSCASECMP=0;
17265   GNULIB_MBSNCASECMP=0;
17266   GNULIB_MBSPCASECMP=0;
17267   GNULIB_MBSCASESTR=0;
17268   GNULIB_MBSCSPN=0;
17269   GNULIB_MBSPBRK=0;
17270   GNULIB_MBSSPN=0;
17271   GNULIB_MBSSEP=0;
17272   GNULIB_MBSTOK_R=0;
17273   GNULIB_STRERROR=0;
17274   GNULIB_STRERROR_R=0;
17275   GNULIB_STRSIGNAL=0;
17276   GNULIB_STRVERSCMP=0;
17277   HAVE_MBSLEN=0;
17278     HAVE_FFSL=1;
17279   HAVE_FFSLL=1;
17280   HAVE_MEMCHR=1;
17281   HAVE_DECL_MEMMEM=1;
17282   HAVE_MEMPCPY=1;
17283   HAVE_DECL_MEMRCHR=1;
17284   HAVE_RAWMEMCHR=1;
17285   HAVE_STPCPY=1;
17286   HAVE_STPNCPY=1;
17287   HAVE_STRCHRNUL=1;
17288   HAVE_DECL_STRDUP=1;
17289   HAVE_DECL_STRNDUP=1;
17290   HAVE_DECL_STRNLEN=1;
17291   HAVE_STRPBRK=1;
17292   HAVE_STRSEP=1;
17293   HAVE_STRCASESTR=1;
17294   HAVE_DECL_STRTOK_R=1;
17295   HAVE_DECL_STRERROR_R=1;
17296   HAVE_DECL_STRSIGNAL=1;
17297   HAVE_STRVERSCMP=1;
17298   REPLACE_MEMCHR=0;
17299   REPLACE_MEMMEM=0;
17300   REPLACE_STPNCPY=0;
17301   REPLACE_STRDUP=0;
17302   REPLACE_STRSTR=0;
17303   REPLACE_STRCASESTR=0;
17304   REPLACE_STRCHRNUL=0;
17305   REPLACE_STRERROR=0;
17306   REPLACE_STRERROR_R=0;
17307   REPLACE_STRNCAT=0;
17308   REPLACE_STRNDUP=0;
17309   REPLACE_STRNLEN=0;
17310   REPLACE_STRSIGNAL=0;
17311   REPLACE_STRTOK_R=0;
17312   UNDEFINE_STRTOK_R=0;
17313
17314
17315
17316
17317
17318   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17319   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17320   # irrelevant for anonymous mappings.
17321   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17322 if test "x$ac_cv_func_mmap" = xyes; then :
17323   gl_have_mmap=yes
17324 else
17325   gl_have_mmap=no
17326 fi
17327
17328
17329   # Try to allow MAP_ANONYMOUS.
17330   gl_have_mmap_anonymous=no
17331   if test $gl_have_mmap = yes; then
17332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17333 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 /* end confdefs.h.  */
17336
17337 #include <sys/mman.h>
17338 #ifdef MAP_ANONYMOUS
17339     I cant identify this map
17340 #endif
17341
17342 _ACEOF
17343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17344   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
17345   gl_have_mmap_anonymous=yes
17346 fi
17347 rm -f conftest*
17348
17349     if test $gl_have_mmap_anonymous != yes; then
17350       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h.  */
17352
17353 #include <sys/mman.h>
17354 #ifdef MAP_ANON
17355     I cant identify this map
17356 #endif
17357
17358 _ACEOF
17359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17360   $EGREP "I cant identify this map" >/dev/null 2>&1; then :
17361
17362 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17363
17364          gl_have_mmap_anonymous=yes
17365 fi
17366 rm -f conftest*
17367
17368     fi
17369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17370 $as_echo "$gl_have_mmap_anonymous" >&6; }
17371     if test $gl_have_mmap_anonymous = yes; then
17372
17373 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17374
17375     fi
17376   fi
17377
17378
17379   :
17380
17381
17382
17383
17384
17385
17386   :
17387
17388
17389
17390
17391
17392
17393
17394
17395   if test $HAVE_MEMCHR = 1; then
17396     # Detect platform-specific bugs in some versions of glibc:
17397     # memchr should not dereference anything with length 0
17398     #   http://bugzilla.redhat.com/499689
17399     # memchr should not dereference overestimated length after a match
17400     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17401     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17402     # Assume that memchr works on platforms that lack mprotect.
17403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17404 $as_echo_n "checking whether memchr works... " >&6; }
17405 if ${gl_cv_func_memchr_works+:} false; then :
17406   $as_echo_n "(cached) " >&6
17407 else
17408   if test "$cross_compiling" = yes; then :
17409          gl_cv_func_memchr_works="guessing no"
17410 else
17411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h.  */
17413
17414 #include <string.h>
17415 #if HAVE_SYS_MMAN_H
17416 # include <fcntl.h>
17417 # include <unistd.h>
17418 # include <sys/types.h>
17419 # include <sys/mman.h>
17420 # ifndef MAP_FILE
17421 #  define MAP_FILE 0
17422 # endif
17423 #endif
17424
17425 int
17426 main ()
17427 {
17428
17429   int result = 0;
17430   char *fence = NULL;
17431 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17432 # if HAVE_MAP_ANONYMOUS
17433   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17434   const int fd = -1;
17435 # else /* !HAVE_MAP_ANONYMOUS */
17436   const int flags = MAP_FILE | MAP_PRIVATE;
17437   int fd = open ("/dev/zero", O_RDONLY, 0666);
17438   if (fd >= 0)
17439 # endif
17440     {
17441       int pagesize = getpagesize ();
17442       char *two_pages =
17443         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17444                        flags, fd, 0);
17445       if (two_pages != (char *)(-1)
17446           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17447         fence = two_pages + pagesize;
17448     }
17449 #endif
17450   if (fence)
17451     {
17452       if (memchr (fence, 0, 0))
17453         result |= 1;
17454       strcpy (fence - 9, "12345678");
17455       if (memchr (fence - 9, 0, 79) != fence - 1)
17456         result |= 2;
17457       if (memchr (fence - 1, 0, 3) != fence - 1)
17458         result |= 4;
17459     }
17460   return result;
17461
17462   ;
17463   return 0;
17464 }
17465 _ACEOF
17466 if ac_fn_c_try_run "$LINENO"; then :
17467   gl_cv_func_memchr_works=yes
17468 else
17469   gl_cv_func_memchr_works=no
17470 fi
17471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17472   conftest.$ac_objext conftest.beam conftest.$ac_ext
17473 fi
17474
17475 fi
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17477 $as_echo "$gl_cv_func_memchr_works" >&6; }
17478     if test "$gl_cv_func_memchr_works" != yes; then
17479       REPLACE_MEMCHR=1
17480     fi
17481   fi
17482
17483
17484
17485
17486
17487
17488
17489     gl_cv_c_multiarch=no
17490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h.  */
17492 #ifndef __APPLE_CC__
17493          not a universal capable compiler
17494         #endif
17495         typedef int dummy;
17496
17497 _ACEOF
17498 if ac_fn_c_try_compile "$LINENO"; then :
17499
17500                arch=
17501      prev=
17502      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17503        if test -n "$prev"; then
17504          case $word in
17505            i?86 | x86_64 | ppc | ppc64)
17506              if test -z "$arch" || test "$arch" = "$word"; then
17507                arch="$word"
17508              else
17509                gl_cv_c_multiarch=yes
17510              fi
17511              ;;
17512          esac
17513          prev=
17514        else
17515          if test "x$word" = "x-arch"; then
17516            prev=arch
17517          fi
17518        fi
17519      done
17520
17521 fi
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523   if test $gl_cv_c_multiarch = yes; then
17524     APPLE_UNIVERSAL_BUILD=1
17525   else
17526     APPLE_UNIVERSAL_BUILD=0
17527   fi
17528
17529
17530
17531   GNULIB_PTHREAD_SIGMASK=0;
17532   GNULIB_RAISE=0;
17533   GNULIB_SIGNAL_H_SIGPIPE=0;
17534   GNULIB_SIGPROCMASK=0;
17535   GNULIB_SIGACTION=0;
17536     HAVE_POSIX_SIGNALBLOCKING=1;
17537   HAVE_PTHREAD_SIGMASK=1;
17538   HAVE_RAISE=1;
17539   HAVE_SIGSET_T=1;
17540   HAVE_SIGINFO_T=1;
17541   HAVE_SIGACTION=1;
17542   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17543
17544   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17545
17546   HAVE_SIGHANDLER_T=1;
17547   REPLACE_PTHREAD_SIGMASK=0;
17548   REPLACE_RAISE=0;
17549
17550
17551   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17552       #include <signal.h>
17553       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
17554       #include <sys/types.h>
17555
17556 "
17557 if test "x$ac_cv_type_sigset_t" = xyes; then :
17558
17559 cat >>confdefs.h <<_ACEOF
17560 #define HAVE_SIGSET_T 1
17561 _ACEOF
17562
17563 gl_cv_type_sigset_t=yes
17564 else
17565   gl_cv_type_sigset_t=no
17566 fi
17567
17568   if test $gl_cv_type_sigset_t != yes; then
17569     HAVE_SIGSET_T=0
17570   fi
17571
17572
17573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17574 $as_echo_n "checking for ssize_t... " >&6; }
17575 if ${gt_cv_ssize_t+:} false; then :
17576   $as_echo_n "(cached) " >&6
17577 else
17578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h.  */
17580 #include <sys/types.h>
17581 int
17582 main ()
17583 {
17584 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17585             return !x;
17586   ;
17587   return 0;
17588 }
17589 _ACEOF
17590 if ac_fn_c_try_compile "$LINENO"; then :
17591   gt_cv_ssize_t=yes
17592 else
17593   gt_cv_ssize_t=no
17594 fi
17595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17596 fi
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17598 $as_echo "$gt_cv_ssize_t" >&6; }
17599   if test $gt_cv_ssize_t = no; then
17600
17601 $as_echo "#define ssize_t int" >>confdefs.h
17602
17603   fi
17604
17605
17606       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17607 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17608   ac_have_decl=1
17609 else
17610   ac_have_decl=0
17611 fi
17612
17613 cat >>confdefs.h <<_ACEOF
17614 #define HAVE_DECL_SETENV $ac_have_decl
17615 _ACEOF
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626   :
17627
17628
17629
17630
17631
17632   if test $ac_cv_have_decl_setenv = no; then
17633     HAVE_DECL_SETENV=0
17634   fi
17635
17636   :
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646   :
17647
17648
17649
17650
17651
17652   for ac_header in search.h
17653 do :
17654   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
17655 if test "x$ac_cv_header_search_h" = xyes; then :
17656   cat >>confdefs.h <<_ACEOF
17657 #define HAVE_SEARCH_H 1
17658 _ACEOF
17659
17660 fi
17661
17662 done
17663
17664   for ac_func in tsearch
17665 do :
17666   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
17667 if test "x$ac_cv_func_tsearch" = xyes; then :
17668   cat >>confdefs.h <<_ACEOF
17669 #define HAVE_TSEARCH 1
17670 _ACEOF
17671
17672 fi
17673 done
17674
17675
17676
17677
17678
17679
17680
17681
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17683 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17684 if ${ac_cv_c_restrict+:} false; then :
17685   $as_echo_n "(cached) " >&6
17686 else
17687   ac_cv_c_restrict=no
17688    # The order here caters to the fact that C++ does not require restrict.
17689    for ac_kw in __restrict __restrict__ _Restrict restrict; do
17690      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h.  */
17692 typedef int * int_ptr;
17693         int foo (int_ptr $ac_kw ip) {
17694         return ip[0];
17695        }
17696 int
17697 main ()
17698 {
17699 int s[1];
17700         int * $ac_kw t = s;
17701         t[0] = 0;
17702         return foo(t)
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 if ac_fn_c_try_compile "$LINENO"; then :
17708   ac_cv_c_restrict=$ac_kw
17709 fi
17710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711      test "$ac_cv_c_restrict" != no && break
17712    done
17713
17714 fi
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17716 $as_echo "$ac_cv_c_restrict" >&6; }
17717
17718  case $ac_cv_c_restrict in
17719    restrict) ;;
17720    no) $as_echo "#define restrict /**/" >>confdefs.h
17721  ;;
17722    *)  cat >>confdefs.h <<_ACEOF
17723 #define restrict $ac_cv_c_restrict
17724 _ACEOF
17725  ;;
17726  esac
17727
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17729 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17730 if ${ac_cv_type_uid_t+:} false; then :
17731   $as_echo_n "(cached) " >&6
17732 else
17733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h.  */
17735 #include <sys/types.h>
17736
17737 _ACEOF
17738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17739   $EGREP "uid_t" >/dev/null 2>&1; then :
17740   ac_cv_type_uid_t=yes
17741 else
17742   ac_cv_type_uid_t=no
17743 fi
17744 rm -f conftest*
17745
17746 fi
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17748 $as_echo "$ac_cv_type_uid_t" >&6; }
17749 if test $ac_cv_type_uid_t = no; then
17750
17751 $as_echo "#define uid_t int" >>confdefs.h
17752
17753
17754 $as_echo "#define gid_t int" >>confdefs.h
17755
17756 fi
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17772 if test "x$ac_cv_type_pid_t" = xyes; then :
17773
17774 else
17775
17776 cat >>confdefs.h <<_ACEOF
17777 #define pid_t int
17778 _ACEOF
17779
17780 fi
17781
17782
17783   GNULIB_DPRINTF=0;
17784   GNULIB_FCLOSE=0;
17785   GNULIB_FDOPEN=0;
17786   GNULIB_FFLUSH=0;
17787   GNULIB_FGETC=0;
17788   GNULIB_FGETS=0;
17789   GNULIB_FOPEN=0;
17790   GNULIB_FPRINTF=0;
17791   GNULIB_FPRINTF_POSIX=0;
17792   GNULIB_FPURGE=0;
17793   GNULIB_FPUTC=0;
17794   GNULIB_FPUTS=0;
17795   GNULIB_FREAD=0;
17796   GNULIB_FREOPEN=0;
17797   GNULIB_FSCANF=0;
17798   GNULIB_FSEEK=0;
17799   GNULIB_FSEEKO=0;
17800   GNULIB_FTELL=0;
17801   GNULIB_FTELLO=0;
17802   GNULIB_FWRITE=0;
17803   GNULIB_GETC=0;
17804   GNULIB_GETCHAR=0;
17805   GNULIB_GETDELIM=0;
17806   GNULIB_GETLINE=0;
17807   GNULIB_OBSTACK_PRINTF=0;
17808   GNULIB_OBSTACK_PRINTF_POSIX=0;
17809   GNULIB_PCLOSE=0;
17810   GNULIB_PERROR=0;
17811   GNULIB_POPEN=0;
17812   GNULIB_PRINTF=0;
17813   GNULIB_PRINTF_POSIX=0;
17814   GNULIB_PUTC=0;
17815   GNULIB_PUTCHAR=0;
17816   GNULIB_PUTS=0;
17817   GNULIB_REMOVE=0;
17818   GNULIB_RENAME=0;
17819   GNULIB_RENAMEAT=0;
17820   GNULIB_SCANF=0;
17821   GNULIB_SNPRINTF=0;
17822   GNULIB_SPRINTF_POSIX=0;
17823   GNULIB_STDIO_H_NONBLOCKING=0;
17824   GNULIB_STDIO_H_SIGPIPE=0;
17825   GNULIB_TMPFILE=0;
17826   GNULIB_VASPRINTF=0;
17827   GNULIB_VFSCANF=0;
17828   GNULIB_VSCANF=0;
17829   GNULIB_VDPRINTF=0;
17830   GNULIB_VFPRINTF=0;
17831   GNULIB_VFPRINTF_POSIX=0;
17832   GNULIB_VPRINTF=0;
17833   GNULIB_VPRINTF_POSIX=0;
17834   GNULIB_VSNPRINTF=0;
17835   GNULIB_VSPRINTF_POSIX=0;
17836     HAVE_DECL_FPURGE=1;
17837   HAVE_DECL_FSEEKO=1;
17838   HAVE_DECL_FTELLO=1;
17839   HAVE_DECL_GETDELIM=1;
17840   HAVE_DECL_GETLINE=1;
17841   HAVE_DECL_OBSTACK_PRINTF=1;
17842   HAVE_DECL_SNPRINTF=1;
17843   HAVE_DECL_VSNPRINTF=1;
17844   HAVE_DPRINTF=1;
17845   HAVE_FSEEKO=1;
17846   HAVE_FTELLO=1;
17847   HAVE_PCLOSE=1;
17848   HAVE_POPEN=1;
17849   HAVE_RENAMEAT=1;
17850   HAVE_VASPRINTF=1;
17851   HAVE_VDPRINTF=1;
17852   REPLACE_DPRINTF=0;
17853   REPLACE_FCLOSE=0;
17854   REPLACE_FDOPEN=0;
17855   REPLACE_FFLUSH=0;
17856   REPLACE_FOPEN=0;
17857   REPLACE_FPRINTF=0;
17858   REPLACE_FPURGE=0;
17859   REPLACE_FREOPEN=0;
17860   REPLACE_FSEEK=0;
17861   REPLACE_FSEEKO=0;
17862   REPLACE_FTELL=0;
17863   REPLACE_FTELLO=0;
17864   REPLACE_GETDELIM=0;
17865   REPLACE_GETLINE=0;
17866   REPLACE_OBSTACK_PRINTF=0;
17867   REPLACE_PERROR=0;
17868   REPLACE_POPEN=0;
17869   REPLACE_PRINTF=0;
17870   REPLACE_REMOVE=0;
17871   REPLACE_RENAME=0;
17872   REPLACE_RENAMEAT=0;
17873   REPLACE_SNPRINTF=0;
17874   REPLACE_SPRINTF=0;
17875   REPLACE_STDIO_READ_FUNCS=0;
17876   REPLACE_STDIO_WRITE_FUNCS=0;
17877   REPLACE_TMPFILE=0;
17878   REPLACE_VASPRINTF=0;
17879   REPLACE_VDPRINTF=0;
17880   REPLACE_VFPRINTF=0;
17881   REPLACE_VPRINTF=0;
17882   REPLACE_VSNPRINTF=0;
17883   REPLACE_VSPRINTF=0;
17884
17885
17886
17887
17888
17889
17890
17891
17892   :
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
17903 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17904 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
17905   $as_echo_n "(cached) " >&6
17906 else
17907
17908       if test "$cross_compiling" = yes; then :
17909
17910          case "$host_os" in
17911                                  # Guess yes on glibc systems.
17912            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
17913                                  # Guess yes on FreeBSD >= 5.
17914            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17915            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17916                                  # Guess yes on MacOS X >= 10.3.
17917            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17918            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17919                                  # Guess yes on OpenBSD >= 3.9.
17920            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17921                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17922            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17923                                  # Guess yes on Solaris >= 2.10.
17924            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
17925            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
17926                                  # Guess yes on AIX >= 4.
17927            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
17928            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
17929                                  # Guess yes on NetBSD >= 3.
17930            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17931                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17932            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17933                                  # Guess yes on BeOS.
17934            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
17935                                  # If we don't know, assume the worst.
17936            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
17937          esac
17938
17939 else
17940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h.  */
17942
17943 #include <stdio.h>
17944 #include <string.h>
17945 #if HAVE_SNPRINTF
17946 # define my_snprintf snprintf
17947 #else
17948 # include <stdarg.h>
17949 static int my_snprintf (char *buf, int size, const char *format, ...)
17950 {
17951   va_list args;
17952   int ret;
17953   va_start (args, format);
17954   ret = vsnprintf (buf, size, format, args);
17955   va_end (args);
17956   return ret;
17957 }
17958 #endif
17959 static char buf[100];
17960 int main ()
17961 {
17962   strcpy (buf, "ABCDEF");
17963   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17964     return 1;
17965   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
17966     return 2;
17967   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
17968     return 3;
17969   return 0;
17970 }
17971 _ACEOF
17972 if ac_fn_c_try_run "$LINENO"; then :
17973   gl_cv_func_snprintf_retval_c99=yes
17974 else
17975   gl_cv_func_snprintf_retval_c99=no
17976 fi
17977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17978   conftest.$ac_objext conftest.beam conftest.$ac_ext
17979 fi
17980
17981
17982 fi
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
17984 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17985
17986
17987       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
17988 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
17989   ac_have_decl=1
17990 else
17991   ac_have_decl=0
17992 fi
17993
17994 cat >>confdefs.h <<_ACEOF
17995 #define HAVE_DECL_SNPRINTF $ac_have_decl
17996 _ACEOF
17997
17998
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18000 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18001 if ${ac_cv_header_stdbool_h+:} false; then :
18002   $as_echo_n "(cached) " >&6
18003 else
18004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h.  */
18006
18007              #include <stdbool.h>
18008              #ifndef bool
18009               "error: bool is not defined"
18010              #endif
18011              #ifndef false
18012               "error: false is not defined"
18013              #endif
18014              #if false
18015               "error: false is not 0"
18016              #endif
18017              #ifndef true
18018               "error: true is not defined"
18019              #endif
18020              #if true != 1
18021               "error: true is not 1"
18022              #endif
18023              #ifndef __bool_true_false_are_defined
18024               "error: __bool_true_false_are_defined is not defined"
18025              #endif
18026
18027              struct s { _Bool s: 1; _Bool t; } s;
18028
18029              char a[true == 1 ? 1 : -1];
18030              char b[false == 0 ? 1 : -1];
18031              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18032              char d[(bool) 0.5 == true ? 1 : -1];
18033              /* See body of main program for 'e'.  */
18034              char f[(_Bool) 0.0 == false ? 1 : -1];
18035              char g[true];
18036              char h[sizeof (_Bool)];
18037              char i[sizeof s.t];
18038              enum { j = false, k = true, l = false * true, m = true * 256 };
18039              /* The following fails for
18040                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18041              _Bool n[m];
18042              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18043              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18044              /* Catch a bug in an HP-UX C compiler.  See
18045                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18046                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18047               */
18048              _Bool q = true;
18049              _Bool *pq = &q;
18050
18051 int
18052 main ()
18053 {
18054
18055              bool e = &s;
18056              *pq |= q;
18057              *pq |= ! q;
18058              /* Refer to every declared value, to avoid compiler optimizations.  */
18059              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18060                      + !m + !n + !o + !p + !q + !pq);
18061
18062   ;
18063   return 0;
18064 }
18065 _ACEOF
18066 if ac_fn_c_try_compile "$LINENO"; then :
18067   ac_cv_header_stdbool_h=yes
18068 else
18069   ac_cv_header_stdbool_h=no
18070 fi
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072 fi
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18074 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18075    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18076 if test "x$ac_cv_type__Bool" = xyes; then :
18077
18078 cat >>confdefs.h <<_ACEOF
18079 #define HAVE__BOOL 1
18080 _ACEOF
18081
18082
18083 fi
18084
18085
18086
18087     REPLACE_NULL=0;
18088   HAVE_WCHAR_T=1;
18089
18090
18091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18092 $as_echo_n "checking for wchar_t... " >&6; }
18093 if ${gt_cv_c_wchar_t+:} false; then :
18094   $as_echo_n "(cached) " >&6
18095 else
18096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h.  */
18098 #include <stddef.h>
18099             wchar_t foo = (wchar_t)'\0';
18100 int
18101 main ()
18102 {
18103
18104   ;
18105   return 0;
18106 }
18107 _ACEOF
18108 if ac_fn_c_try_compile "$LINENO"; then :
18109   gt_cv_c_wchar_t=yes
18110 else
18111   gt_cv_c_wchar_t=no
18112 fi
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 fi
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18116 $as_echo "$gt_cv_c_wchar_t" >&6; }
18117   if test $gt_cv_c_wchar_t = yes; then
18118
18119 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18120
18121   fi
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136   if test $ac_cv_type_long_long_int = yes; then
18137     HAVE_LONG_LONG_INT=1
18138   else
18139     HAVE_LONG_LONG_INT=0
18140   fi
18141
18142
18143   if test $ac_cv_type_unsigned_long_long_int = yes; then
18144     HAVE_UNSIGNED_LONG_LONG_INT=1
18145   else
18146     HAVE_UNSIGNED_LONG_LONG_INT=0
18147   fi
18148
18149
18150
18151   :
18152
18153
18154
18155
18156
18157   if test $ac_cv_header_wchar_h = yes; then
18158     HAVE_WCHAR_H=1
18159   else
18160     HAVE_WCHAR_H=0
18161   fi
18162
18163
18164       if test $ac_cv_header_inttypes_h = yes; then
18165     HAVE_INTTYPES_H=1
18166   else
18167     HAVE_INTTYPES_H=0
18168   fi
18169
18170
18171       if test $ac_cv_header_sys_types_h = yes; then
18172     HAVE_SYS_TYPES_H=1
18173   else
18174     HAVE_SYS_TYPES_H=0
18175   fi
18176
18177
18178
18179
18180
18181
18182
18183
18184   :
18185
18186
18187
18188
18189
18190
18191
18192
18193      if test $gl_cv_have_include_next = yes; then
18194        gl_cv_next_stdint_h='<'stdint.h'>'
18195      else
18196        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18197 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18198 if ${gl_cv_next_stdint_h+:} false; then :
18199   $as_echo_n "(cached) " >&6
18200 else
18201
18202              if test $ac_cv_header_stdint_h = yes; then
18203
18204
18205                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h.  */
18207 #include <stdint.h>
18208
18209 _ACEOF
18210                                                                                                                         case "$host_os" in
18211                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
18212                  *)    gl_absname_cpp="$ac_cpp" ;;
18213                esac
18214
18215                case "$host_os" in
18216                  mingw*)
18217                                                                                                                                      gl_dirsep_regex='[/\\]'
18218                    ;;
18219                  *)
18220                    gl_dirsep_regex='\/'
18221                    ;;
18222                esac
18223                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18224
18225                gl_header_literal_regex=`echo 'stdint.h' \
18226                                         | sed -e "$gl_make_literal_regex_sed"`
18227                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18228                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18229                    s|^/[^/]|//&|
18230                    p
18231                    q
18232                  }'
18233                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18234                       sed -n "$gl_absolute_header_sed"`'"'
18235           else
18236                gl_cv_next_stdint_h='<'stdint.h'>'
18237              fi
18238
18239
18240 fi
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18242 $as_echo "$gl_cv_next_stdint_h" >&6; }
18243      fi
18244      NEXT_STDINT_H=$gl_cv_next_stdint_h
18245
18246      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18247        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18248        gl_next_as_first_directive='<'stdint.h'>'
18249      else
18250        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18251        gl_next_as_first_directive=$gl_cv_next_stdint_h
18252      fi
18253      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18254
18255
18256
18257
18258   if test $ac_cv_header_stdint_h = yes; then
18259     HAVE_STDINT_H=1
18260   else
18261     HAVE_STDINT_H=0
18262   fi
18263
18264
18265     if test $ac_cv_header_stdint_h = yes; then
18266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18267 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18268 if ${gl_cv_header_working_stdint_h+:} false; then :
18269   $as_echo_n "(cached) " >&6
18270 else
18271   gl_cv_header_working_stdint_h=no
18272        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h.  */
18274
18275
18276 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18277 #include <stdint.h>
18278 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
18279 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18280 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18281 #endif
18282
18283
18284   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18285      included before <wchar.h>.  */
18286   #include <stddef.h>
18287   #include <signal.h>
18288   #if HAVE_WCHAR_H
18289   # include <stdio.h>
18290   # include <time.h>
18291   # include <wchar.h>
18292   #endif
18293
18294
18295 #ifdef INT8_MAX
18296 int8_t a1 = INT8_MAX;
18297 int8_t a1min = INT8_MIN;
18298 #endif
18299 #ifdef INT16_MAX
18300 int16_t a2 = INT16_MAX;
18301 int16_t a2min = INT16_MIN;
18302 #endif
18303 #ifdef INT32_MAX
18304 int32_t a3 = INT32_MAX;
18305 int32_t a3min = INT32_MIN;
18306 #endif
18307 #ifdef INT64_MAX
18308 int64_t a4 = INT64_MAX;
18309 int64_t a4min = INT64_MIN;
18310 #endif
18311 #ifdef UINT8_MAX
18312 uint8_t b1 = UINT8_MAX;
18313 #else
18314 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18315 #endif
18316 #ifdef UINT16_MAX
18317 uint16_t b2 = UINT16_MAX;
18318 #endif
18319 #ifdef UINT32_MAX
18320 uint32_t b3 = UINT32_MAX;
18321 #endif
18322 #ifdef UINT64_MAX
18323 uint64_t b4 = UINT64_MAX;
18324 #endif
18325 int_least8_t c1 = INT8_C (0x7f);
18326 int_least8_t c1max = INT_LEAST8_MAX;
18327 int_least8_t c1min = INT_LEAST8_MIN;
18328 int_least16_t c2 = INT16_C (0x7fff);
18329 int_least16_t c2max = INT_LEAST16_MAX;
18330 int_least16_t c2min = INT_LEAST16_MIN;
18331 int_least32_t c3 = INT32_C (0x7fffffff);
18332 int_least32_t c3max = INT_LEAST32_MAX;
18333 int_least32_t c3min = INT_LEAST32_MIN;
18334 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18335 int_least64_t c4max = INT_LEAST64_MAX;
18336 int_least64_t c4min = INT_LEAST64_MIN;
18337 uint_least8_t d1 = UINT8_C (0xff);
18338 uint_least8_t d1max = UINT_LEAST8_MAX;
18339 uint_least16_t d2 = UINT16_C (0xffff);
18340 uint_least16_t d2max = UINT_LEAST16_MAX;
18341 uint_least32_t d3 = UINT32_C (0xffffffff);
18342 uint_least32_t d3max = UINT_LEAST32_MAX;
18343 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18344 uint_least64_t d4max = UINT_LEAST64_MAX;
18345 int_fast8_t e1 = INT_FAST8_MAX;
18346 int_fast8_t e1min = INT_FAST8_MIN;
18347 int_fast16_t e2 = INT_FAST16_MAX;
18348 int_fast16_t e2min = INT_FAST16_MIN;
18349 int_fast32_t e3 = INT_FAST32_MAX;
18350 int_fast32_t e3min = INT_FAST32_MIN;
18351 int_fast64_t e4 = INT_FAST64_MAX;
18352 int_fast64_t e4min = INT_FAST64_MIN;
18353 uint_fast8_t f1 = UINT_FAST8_MAX;
18354 uint_fast16_t f2 = UINT_FAST16_MAX;
18355 uint_fast32_t f3 = UINT_FAST32_MAX;
18356 uint_fast64_t f4 = UINT_FAST64_MAX;
18357 #ifdef INTPTR_MAX
18358 intptr_t g = INTPTR_MAX;
18359 intptr_t gmin = INTPTR_MIN;
18360 #endif
18361 #ifdef UINTPTR_MAX
18362 uintptr_t h = UINTPTR_MAX;
18363 #endif
18364 intmax_t i = INTMAX_MAX;
18365 uintmax_t j = UINTMAX_MAX;
18366
18367 #include <limits.h> /* for CHAR_BIT */
18368 #define TYPE_MINIMUM(t) \
18369   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18370 #define TYPE_MAXIMUM(t) \
18371   ((t) ((t) 0 < (t) -1 \
18372         ? (t) -1 \
18373         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18374 struct s {
18375   int check_PTRDIFF:
18376       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18377       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18378       ? 1 : -1;
18379   /* Detect bug in FreeBSD 6.0 / ia64.  */
18380   int check_SIG_ATOMIC:
18381       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18382       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18383       ? 1 : -1;
18384   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18385   int check_WCHAR:
18386       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18387       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18388       ? 1 : -1;
18389   /* Detect bug in mingw.  */
18390   int check_WINT:
18391       WINT_MIN == TYPE_MINIMUM (wint_t)
18392       && WINT_MAX == TYPE_MAXIMUM (wint_t)
18393       ? 1 : -1;
18394
18395   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
18396   int check_UINT8_C:
18397         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18398   int check_UINT16_C:
18399         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18400
18401   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
18402 #ifdef UINT8_MAX
18403   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18404 #endif
18405 #ifdef UINT16_MAX
18406   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18407 #endif
18408 #ifdef UINT32_MAX
18409   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18410 #endif
18411 #ifdef UINT64_MAX
18412   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18413 #endif
18414   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18415   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18416   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18417   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18418   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18419   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18420   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18421   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18422   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18423   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18424   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18425 };
18426
18427 int
18428 main ()
18429 {
18430
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 if ac_fn_c_try_compile "$LINENO"; then :
18436                                                     if test "$cross_compiling" = yes; then :
18437                  gl_cv_header_working_stdint_h=yes
18438
18439 else
18440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h.  */
18442
18443
18444 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18445 #include <stdint.h>
18446
18447
18448   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18449      included before <wchar.h>.  */
18450   #include <stddef.h>
18451   #include <signal.h>
18452   #if HAVE_WCHAR_H
18453   # include <stdio.h>
18454   # include <time.h>
18455   # include <wchar.h>
18456   #endif
18457
18458
18459 #include <stdio.h>
18460 #include <string.h>
18461 #define MVAL(macro) MVAL1(macro)
18462 #define MVAL1(expression) #expression
18463 static const char *macro_values[] =
18464   {
18465 #ifdef INT8_MAX
18466     MVAL (INT8_MAX),
18467 #endif
18468 #ifdef INT16_MAX
18469     MVAL (INT16_MAX),
18470 #endif
18471 #ifdef INT32_MAX
18472     MVAL (INT32_MAX),
18473 #endif
18474 #ifdef INT64_MAX
18475     MVAL (INT64_MAX),
18476 #endif
18477 #ifdef UINT8_MAX
18478     MVAL (UINT8_MAX),
18479 #endif
18480 #ifdef UINT16_MAX
18481     MVAL (UINT16_MAX),
18482 #endif
18483 #ifdef UINT32_MAX
18484     MVAL (UINT32_MAX),
18485 #endif
18486 #ifdef UINT64_MAX
18487     MVAL (UINT64_MAX),
18488 #endif
18489     NULL
18490   };
18491
18492 int
18493 main ()
18494 {
18495
18496   const char **mv;
18497   for (mv = macro_values; *mv != NULL; mv++)
18498     {
18499       const char *value = *mv;
18500       /* Test whether it looks like a cast expression.  */
18501       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18502           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18503           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18504           || strncmp (value, "((int)"/*)*/, 6) == 0
18505           || strncmp (value, "((signed short)"/*)*/, 15) == 0
18506           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18507         return mv - macro_values + 1;
18508     }
18509   return 0;
18510
18511   ;
18512   return 0;
18513 }
18514 _ACEOF
18515 if ac_fn_c_try_run "$LINENO"; then :
18516   gl_cv_header_working_stdint_h=yes
18517 fi
18518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18519   conftest.$ac_objext conftest.beam conftest.$ac_ext
18520 fi
18521
18522
18523 fi
18524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18525
18526 fi
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18528 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18529   fi
18530   if test "$gl_cv_header_working_stdint_h" = yes; then
18531     STDINT_H=
18532   else
18533             for ac_header in sys/inttypes.h sys/bitypes.h
18534 do :
18535   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18538   cat >>confdefs.h <<_ACEOF
18539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18540 _ACEOF
18541
18542 fi
18543
18544 done
18545
18546     if test $ac_cv_header_sys_inttypes_h = yes; then
18547       HAVE_SYS_INTTYPES_H=1
18548     else
18549       HAVE_SYS_INTTYPES_H=0
18550     fi
18551
18552     if test $ac_cv_header_sys_bitypes_h = yes; then
18553       HAVE_SYS_BITYPES_H=1
18554     else
18555       HAVE_SYS_BITYPES_H=0
18556     fi
18557
18558
18559
18560
18561   if test $APPLE_UNIVERSAL_BUILD = 0; then
18562
18563
18564   for gltype in ptrdiff_t size_t ; do
18565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18566 $as_echo_n "checking for bit size of $gltype... " >&6; }
18567 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18568   $as_echo_n "(cached) " >&6
18569 else
18570   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18571   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18572      included before <wchar.h>.  */
18573   #include <stddef.h>
18574   #include <signal.h>
18575   #if HAVE_WCHAR_H
18576   # include <stdio.h>
18577   # include <time.h>
18578   # include <wchar.h>
18579   #endif
18580
18581 #include <limits.h>"; then :
18582
18583 else
18584   result=unknown
18585 fi
18586
18587        eval gl_cv_bitsizeof_${gltype}=\$result
18588
18589 fi
18590 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18591                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18592 $as_echo "$ac_res" >&6; }
18593     eval result=\$gl_cv_bitsizeof_${gltype}
18594     if test $result = unknown; then
18595                                                 result=0
18596     fi
18597     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18598     cat >>confdefs.h <<_ACEOF
18599 #define BITSIZEOF_${GLTYPE} $result
18600 _ACEOF
18601
18602     eval BITSIZEOF_${GLTYPE}=\$result
18603   done
18604
18605
18606   fi
18607
18608
18609   for gltype in sig_atomic_t wchar_t wint_t ; do
18610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18611 $as_echo_n "checking for bit size of $gltype... " >&6; }
18612 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18613   $as_echo_n "(cached) " >&6
18614 else
18615   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
18616   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18617      included before <wchar.h>.  */
18618   #include <stddef.h>
18619   #include <signal.h>
18620   #if HAVE_WCHAR_H
18621   # include <stdio.h>
18622   # include <time.h>
18623   # include <wchar.h>
18624   #endif
18625
18626 #include <limits.h>"; then :
18627
18628 else
18629   result=unknown
18630 fi
18631
18632        eval gl_cv_bitsizeof_${gltype}=\$result
18633
18634 fi
18635 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18636                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18637 $as_echo "$ac_res" >&6; }
18638     eval result=\$gl_cv_bitsizeof_${gltype}
18639     if test $result = unknown; then
18640                                                 result=0
18641     fi
18642     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18643     cat >>confdefs.h <<_ACEOF
18644 #define BITSIZEOF_${GLTYPE} $result
18645 _ACEOF
18646
18647     eval BITSIZEOF_${GLTYPE}=\$result
18648   done
18649
18650
18651
18652
18653   for gltype in sig_atomic_t wchar_t wint_t ; do
18654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18655 $as_echo_n "checking whether $gltype is signed... " >&6; }
18656 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18657   $as_echo_n "(cached) " >&6
18658 else
18659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h.  */
18661
18662   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18663      included before <wchar.h>.  */
18664   #include <stddef.h>
18665   #include <signal.h>
18666   #if HAVE_WCHAR_H
18667   # include <stdio.h>
18668   # include <time.h>
18669   # include <wchar.h>
18670   #endif
18671
18672             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18673 int
18674 main ()
18675 {
18676
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_c_try_compile "$LINENO"; then :
18682   result=yes
18683 else
18684   result=no
18685 fi
18686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687        eval gl_cv_type_${gltype}_signed=\$result
18688
18689 fi
18690 eval ac_res=\$gl_cv_type_${gltype}_signed
18691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18692 $as_echo "$ac_res" >&6; }
18693     eval result=\$gl_cv_type_${gltype}_signed
18694     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18695     if test "$result" = yes; then
18696       cat >>confdefs.h <<_ACEOF
18697 #define HAVE_SIGNED_${GLTYPE} 1
18698 _ACEOF
18699
18700       eval HAVE_SIGNED_${GLTYPE}=1
18701     else
18702       eval HAVE_SIGNED_${GLTYPE}=0
18703     fi
18704   done
18705
18706
18707   gl_cv_type_ptrdiff_t_signed=yes
18708   gl_cv_type_size_t_signed=no
18709   if test $APPLE_UNIVERSAL_BUILD = 0; then
18710
18711
18712   for gltype in ptrdiff_t size_t ; do
18713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18714 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18715 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18716   $as_echo_n "(cached) " >&6
18717 else
18718   eval gl_cv_type_${gltype}_suffix=no
18719        eval result=\$gl_cv_type_${gltype}_signed
18720        if test "$result" = yes; then
18721          glsufu=
18722        else
18723          glsufu=u
18724        fi
18725        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18726          case $glsuf in
18727            '')  gltype1='int';;
18728            l)   gltype1='long int';;
18729            ll)  gltype1='long long int';;
18730            i64) gltype1='__int64';;
18731            u)   gltype1='unsigned int';;
18732            ul)  gltype1='unsigned long int';;
18733            ull) gltype1='unsigned long long int';;
18734            ui64)gltype1='unsigned __int64';;
18735          esac
18736          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737 /* end confdefs.h.  */
18738
18739   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18740      included before <wchar.h>.  */
18741   #include <stddef.h>
18742   #include <signal.h>
18743   #if HAVE_WCHAR_H
18744   # include <stdio.h>
18745   # include <time.h>
18746   # include <wchar.h>
18747   #endif
18748
18749               extern $gltype foo;
18750               extern $gltype1 foo;
18751 int
18752 main ()
18753 {
18754
18755   ;
18756   return 0;
18757 }
18758 _ACEOF
18759 if ac_fn_c_try_compile "$LINENO"; then :
18760   eval gl_cv_type_${gltype}_suffix=\$glsuf
18761 fi
18762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18763          eval result=\$gl_cv_type_${gltype}_suffix
18764          test "$result" != no && break
18765        done
18766 fi
18767 eval ac_res=\$gl_cv_type_${gltype}_suffix
18768                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18769 $as_echo "$ac_res" >&6; }
18770     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18771     eval result=\$gl_cv_type_${gltype}_suffix
18772     test "$result" = no && result=
18773     eval ${GLTYPE}_SUFFIX=\$result
18774     cat >>confdefs.h <<_ACEOF
18775 #define ${GLTYPE}_SUFFIX $result
18776 _ACEOF
18777
18778   done
18779
18780
18781   fi
18782
18783
18784   for gltype in sig_atomic_t wchar_t wint_t ; do
18785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18786 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18787 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18788   $as_echo_n "(cached) " >&6
18789 else
18790   eval gl_cv_type_${gltype}_suffix=no
18791        eval result=\$gl_cv_type_${gltype}_signed
18792        if test "$result" = yes; then
18793          glsufu=
18794        else
18795          glsufu=u
18796        fi
18797        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18798          case $glsuf in
18799            '')  gltype1='int';;
18800            l)   gltype1='long int';;
18801            ll)  gltype1='long long int';;
18802            i64) gltype1='__int64';;
18803            u)   gltype1='unsigned int';;
18804            ul)  gltype1='unsigned long int';;
18805            ull) gltype1='unsigned long long int';;
18806            ui64)gltype1='unsigned __int64';;
18807          esac
18808          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h.  */
18810
18811   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18812      included before <wchar.h>.  */
18813   #include <stddef.h>
18814   #include <signal.h>
18815   #if HAVE_WCHAR_H
18816   # include <stdio.h>
18817   # include <time.h>
18818   # include <wchar.h>
18819   #endif
18820
18821               extern $gltype foo;
18822               extern $gltype1 foo;
18823 int
18824 main ()
18825 {
18826
18827   ;
18828   return 0;
18829 }
18830 _ACEOF
18831 if ac_fn_c_try_compile "$LINENO"; then :
18832   eval gl_cv_type_${gltype}_suffix=\$glsuf
18833 fi
18834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835          eval result=\$gl_cv_type_${gltype}_suffix
18836          test "$result" != no && break
18837        done
18838 fi
18839 eval ac_res=\$gl_cv_type_${gltype}_suffix
18840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18841 $as_echo "$ac_res" >&6; }
18842     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18843     eval result=\$gl_cv_type_${gltype}_suffix
18844     test "$result" = no && result=
18845     eval ${GLTYPE}_SUFFIX=\$result
18846     cat >>confdefs.h <<_ACEOF
18847 #define ${GLTYPE}_SUFFIX $result
18848 _ACEOF
18849
18850   done
18851
18852
18853
18854           if test $BITSIZEOF_WINT_T -lt 32; then
18855     BITSIZEOF_WINT_T=32
18856   fi
18857
18858     STDINT_H=stdint.h
18859   fi
18860
18861    if test -n "$STDINT_H"; then
18862   GL_GENERATE_STDINT_H_TRUE=
18863   GL_GENERATE_STDINT_H_FALSE='#'
18864 else
18865   GL_GENERATE_STDINT_H_TRUE='#'
18866   GL_GENERATE_STDINT_H_FALSE=
18867 fi
18868
18869
18870
18871   REPLACE_STRERROR_0=0
18872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
18873 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
18874 if ${gl_cv_func_strerror_0_works+:} false; then :
18875   $as_echo_n "(cached) " >&6
18876 else
18877   if test "$cross_compiling" = yes; then :
18878          gl_cv_func_strerror_0_works="guessing no"
18879 else
18880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h.  */
18882 #include <string.h>
18883            #include <errno.h>
18884
18885 int
18886 main ()
18887 {
18888 int result = 0;
18889            char *str;
18890            errno = 0;
18891            str = strerror (0);
18892            if (!*str) result |= 1;
18893            if (errno) result |= 2;
18894            if (strstr (str, "nknown") || strstr (str, "ndefined"))
18895              result |= 4;
18896            return result;
18897   ;
18898   return 0;
18899 }
18900 _ACEOF
18901 if ac_fn_c_try_run "$LINENO"; then :
18902   gl_cv_func_strerror_0_works=yes
18903 else
18904   gl_cv_func_strerror_0_works=no
18905 fi
18906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18907   conftest.$ac_objext conftest.beam conftest.$ac_ext
18908 fi
18909
18910
18911 fi
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
18913 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
18914   if test "$gl_cv_func_strerror_0_works" != yes; then
18915     REPLACE_STRERROR_0=1
18916
18917 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
18918
18919   fi
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937      if test $gl_cv_have_include_next = yes; then
18938        gl_cv_next_string_h='<'string.h'>'
18939      else
18940        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
18941 $as_echo_n "checking absolute name of <string.h>... " >&6; }
18942 if ${gl_cv_next_string_h+:} false; then :
18943   $as_echo_n "(cached) " >&6
18944 else
18945
18946                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h.  */
18948 #include <string.h>
18949
18950 _ACEOF
18951                                                                                                                         case "$host_os" in
18952                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
18953                  *)    gl_absname_cpp="$ac_cpp" ;;
18954                esac
18955
18956                case "$host_os" in
18957                  mingw*)
18958                                                                                                                                      gl_dirsep_regex='[/\\]'
18959                    ;;
18960                  *)
18961                    gl_dirsep_regex='\/'
18962                    ;;
18963                esac
18964                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18965
18966                gl_header_literal_regex=`echo 'string.h' \
18967                                         | sed -e "$gl_make_literal_regex_sed"`
18968                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18969                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18970                    s|^/[^/]|//&|
18971                    p
18972                    q
18973                  }'
18974                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18975                       sed -n "$gl_absolute_header_sed"`'"'
18976
18977
18978 fi
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
18980 $as_echo "$gl_cv_next_string_h" >&6; }
18981      fi
18982      NEXT_STRING_H=$gl_cv_next_string_h
18983
18984      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18985        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18986        gl_next_as_first_directive='<'string.h'>'
18987      else
18988        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18989        gl_next_as_first_directive=$gl_cv_next_string_h
18990      fi
18991      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18992
18993
18994
18995
18996
18997
18998     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
18999     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19001 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19002 if eval \${$as_gl_Symbol+:} false; then :
19003   $as_echo_n "(cached) " >&6
19004 else
19005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19006 /* end confdefs.h.  */
19007 #include <string.h>
19008
19009 int
19010 main ()
19011 {
19012 #undef $gl_func
19013   (void) $gl_func;
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 if ac_fn_c_try_compile "$LINENO"; then :
19019   eval "$as_gl_Symbol=yes"
19020 else
19021   eval "$as_gl_Symbol=no"
19022 fi
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 fi
19025 eval ac_res=\$$as_gl_Symbol
19026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19027 $as_echo "$ac_res" >&6; }
19028     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19029   cat >>confdefs.h <<_ACEOF
19030 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19031 _ACEOF
19032
19033                      eval ac_cv_have_decl_$gl_func=yes
19034 fi
19035       done
19036
19037
19038
19039       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19040 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19041   ac_have_decl=1
19042 else
19043   ac_have_decl=0
19044 fi
19045
19046 cat >>confdefs.h <<_ACEOF
19047 #define HAVE_DECL_STRNDUP $ac_have_decl
19048 _ACEOF
19049
19050
19051
19052
19053
19054
19055
19056
19057       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19058 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19059   ac_have_decl=1
19060 else
19061   ac_have_decl=0
19062 fi
19063
19064 cat >>confdefs.h <<_ACEOF
19065 #define HAVE_DECL_STRNLEN $ac_have_decl
19066 _ACEOF
19067
19068
19069
19070       ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
19071 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
19072   ac_have_decl=1
19073 else
19074   ac_have_decl=0
19075 fi
19076
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_DECL_STRSIGNAL $ac_have_decl
19079 _ACEOF
19080
19081
19082 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
19083 /* NetBSD declares sys_siglist in unistd.h.  */
19084 #ifdef HAVE_UNISTD_H
19085 # include <unistd.h>
19086 #endif
19087
19088 "
19089 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
19090   ac_have_decl=1
19091 else
19092   ac_have_decl=0
19093 fi
19094
19095 cat >>confdefs.h <<_ACEOF
19096 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
19097 _ACEOF
19098
19099
19100
19101   GNULIB_PSELECT=0;
19102   GNULIB_SELECT=0;
19103     HAVE_PSELECT=1;
19104   REPLACE_PSELECT=0;
19105   REPLACE_SELECT=0;
19106
19107
19108
19109
19110
19111
19112
19113      GNULIB_FCHMODAT=0;
19114   GNULIB_FSTAT=0;
19115   GNULIB_FSTATAT=0;
19116   GNULIB_FUTIMENS=0;
19117   GNULIB_LCHMOD=0;
19118   GNULIB_LSTAT=0;
19119   GNULIB_MKDIRAT=0;
19120   GNULIB_MKFIFO=0;
19121   GNULIB_MKFIFOAT=0;
19122   GNULIB_MKNOD=0;
19123   GNULIB_MKNODAT=0;
19124   GNULIB_STAT=0;
19125   GNULIB_UTIMENSAT=0;
19126     HAVE_FCHMODAT=1;
19127   HAVE_FSTATAT=1;
19128   HAVE_FUTIMENS=1;
19129   HAVE_LCHMOD=1;
19130   HAVE_LSTAT=1;
19131   HAVE_MKDIRAT=1;
19132   HAVE_MKFIFO=1;
19133   HAVE_MKFIFOAT=1;
19134   HAVE_MKNOD=1;
19135   HAVE_MKNODAT=1;
19136   HAVE_UTIMENSAT=1;
19137   REPLACE_FSTAT=0;
19138   REPLACE_FSTATAT=0;
19139   REPLACE_FUTIMENS=0;
19140   REPLACE_LSTAT=0;
19141   REPLACE_MKDIR=0;
19142   REPLACE_MKFIFO=0;
19143   REPLACE_MKNOD=0;
19144   REPLACE_STAT=0;
19145   REPLACE_UTIMENSAT=0;
19146
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19148 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19149 if ${ac_cv_header_stat_broken+:} false; then :
19150   $as_echo_n "(cached) " >&6
19151 else
19152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19153 /* end confdefs.h.  */
19154 #include <sys/types.h>
19155 #include <sys/stat.h>
19156
19157 #if defined S_ISBLK && defined S_IFDIR
19158 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19159 #endif
19160
19161 #if defined S_ISBLK && defined S_IFCHR
19162 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19163 #endif
19164
19165 #if defined S_ISLNK && defined S_IFREG
19166 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19167 #endif
19168
19169 #if defined S_ISSOCK && defined S_IFREG
19170 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19171 #endif
19172
19173 _ACEOF
19174 if ac_fn_c_try_compile "$LINENO"; then :
19175   ac_cv_header_stat_broken=no
19176 else
19177   ac_cv_header_stat_broken=yes
19178 fi
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 fi
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19182 $as_echo "$ac_cv_header_stat_broken" >&6; }
19183 if test $ac_cv_header_stat_broken = yes; then
19184
19185 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19186
19187 fi
19188
19189
19190
19191
19192
19193
19194 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19195 if test "x$ac_cv_type_mode_t" = xyes; then :
19196
19197 else
19198
19199 cat >>confdefs.h <<_ACEOF
19200 #define mode_t int
19201 _ACEOF
19202
19203 fi
19204
19205
19206   GNULIB_GETTIMEOFDAY=0;
19207     HAVE_GETTIMEOFDAY=1;
19208   HAVE_STRUCT_TIMEVAL=1;
19209   HAVE_SYS_TIME_H=1;
19210   REPLACE_GETTIMEOFDAY=0;
19211   REPLACE_STRUCT_TIMEVAL=0;
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222   :
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234   :
19235
19236
19237
19238
19239
19240
19241
19242
19243      if test $gl_cv_have_include_next = yes; then
19244        gl_cv_next_sys_time_h='<'sys/time.h'>'
19245      else
19246        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19247 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19248 if ${gl_cv_next_sys_time_h+:} false; then :
19249   $as_echo_n "(cached) " >&6
19250 else
19251
19252              if test $ac_cv_header_sys_time_h = yes; then
19253
19254
19255                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h.  */
19257 #include <sys/time.h>
19258
19259 _ACEOF
19260                                                                                                                         case "$host_os" in
19261                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19262                  *)    gl_absname_cpp="$ac_cpp" ;;
19263                esac
19264
19265                case "$host_os" in
19266                  mingw*)
19267                                                                                                                                      gl_dirsep_regex='[/\\]'
19268                    ;;
19269                  *)
19270                    gl_dirsep_regex='\/'
19271                    ;;
19272                esac
19273                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19274
19275                gl_header_literal_regex=`echo 'sys/time.h' \
19276                                         | sed -e "$gl_make_literal_regex_sed"`
19277                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19278                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19279                    s|^/[^/]|//&|
19280                    p
19281                    q
19282                  }'
19283                                                             gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19284                       sed -n "$gl_absolute_header_sed"`'"'
19285           else
19286                gl_cv_next_sys_time_h='<'sys/time.h'>'
19287              fi
19288
19289
19290 fi
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19292 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19293      fi
19294      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19295
19296      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19297        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19298        gl_next_as_first_directive='<'sys/time.h'>'
19299      else
19300        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19301        gl_next_as_first_directive=$gl_cv_next_sys_time_h
19302      fi
19303      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19304
19305
19306
19307
19308
19309   if test $ac_cv_header_sys_time_h != yes; then
19310     HAVE_SYS_TIME_H=0
19311   fi
19312
19313
19314
19315
19316
19317   :
19318
19319
19320
19321
19322
19323   if test $ac_cv_header_sys_socket_h != yes; then
19324                     for ac_header in winsock2.h
19325 do :
19326   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19327 if test "x$ac_cv_header_winsock2_h" = xyes; then :
19328   cat >>confdefs.h <<_ACEOF
19329 #define HAVE_WINSOCK2_H 1
19330 _ACEOF
19331
19332 fi
19333
19334 done
19335
19336   fi
19337   if test "$ac_cv_header_winsock2_h" = yes; then
19338     HAVE_WINSOCK2_H=1
19339     UNISTD_H_HAVE_WINSOCK2_H=1
19340     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19341   else
19342     HAVE_WINSOCK2_H=0
19343   fi
19344
19345
19346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19347 $as_echo_n "checking for struct timeval... " >&6; }
19348 if ${gl_cv_sys_struct_timeval+:} false; then :
19349   $as_echo_n "(cached) " >&6
19350 else
19351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h.  */
19353 #if HAVE_SYS_TIME_H
19354              #include <sys/time.h>
19355             #endif
19356             #include <time.h>
19357             #if HAVE_WINSOCK2_H
19358             # include <winsock2.h>
19359             #endif
19360
19361 int
19362 main ()
19363 {
19364 static struct timeval x; x.tv_sec = x.tv_usec;
19365   ;
19366   return 0;
19367 }
19368 _ACEOF
19369 if ac_fn_c_try_compile "$LINENO"; then :
19370   gl_cv_sys_struct_timeval=yes
19371 else
19372   gl_cv_sys_struct_timeval=no
19373 fi
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375
19376 fi
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19378 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19379   if test $gl_cv_sys_struct_timeval != yes; then
19380     HAVE_STRUCT_TIMEVAL=0
19381   else
19382                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
19383 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
19384 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
19385   $as_echo_n "(cached) " >&6
19386 else
19387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h.  */
19389 #if HAVE_SYS_TIME_H
19390                #include <sys/time.h>
19391               #endif
19392               #include <time.h>
19393               #if HAVE_WINSOCK2_H
19394               # include <winsock2.h>
19395               #endif
19396
19397 int
19398 main ()
19399 {
19400 static struct timeval x;
19401               typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
19402
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 if ac_fn_c_try_compile "$LINENO"; then :
19408   gl_cv_sys_struct_timeval_tv_sec=yes
19409 else
19410   gl_cv_sys_struct_timeval_tv_sec=no
19411 fi
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413
19414 fi
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19416 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19417     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19418       REPLACE_STRUCT_TIMEVAL=1
19419     fi
19420   fi
19421
19422
19423     for gl_func in gettimeofday; do
19424     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19426 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19427 if eval \${$as_gl_Symbol+:} false; then :
19428   $as_echo_n "(cached) " >&6
19429 else
19430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h.  */
19432
19433 #if HAVE_SYS_TIME_H
19434 # include <sys/time.h>
19435 #endif
19436 #include <time.h>
19437
19438 int
19439 main ()
19440 {
19441 #undef $gl_func
19442   (void) $gl_func;
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 if ac_fn_c_try_compile "$LINENO"; then :
19448   eval "$as_gl_Symbol=yes"
19449 else
19450   eval "$as_gl_Symbol=no"
19451 fi
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 fi
19454 eval ac_res=\$$as_gl_Symbol
19455                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19456 $as_echo "$ac_res" >&6; }
19457     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19458   cat >>confdefs.h <<_ACEOF
19459 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19460 _ACEOF
19461
19462                      eval ac_cv_have_decl_$gl_func=yes
19463 fi
19464       done
19465
19466
19467
19468   GNULIB_WAITPID=0;
19469
19470
19471
19472
19473
19474
19475
19476   GNULIB_MKTIME=0;
19477   GNULIB_NANOSLEEP=0;
19478   GNULIB_STRPTIME=0;
19479   GNULIB_TIMEGM=0;
19480   GNULIB_TIME_R=0;
19481     HAVE_DECL_LOCALTIME_R=1;
19482   HAVE_NANOSLEEP=1;
19483   HAVE_STRPTIME=1;
19484   HAVE_TIMEGM=1;
19485         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19486   REPLACE_MKTIME=GNULIB_PORTCHECK;
19487   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19488   REPLACE_TIMEGM=GNULIB_PORTCHECK;
19489
19490
19491
19492   :
19493
19494
19495
19496
19497
19498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19499 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19500 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
19501   $as_echo_n "(cached) " >&6
19502 else
19503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h.  */
19505 #include <time.h>
19506
19507 int
19508 main ()
19509 {
19510 static struct timespec x; x.tv_sec = x.tv_nsec;
19511   ;
19512   return 0;
19513 }
19514 _ACEOF
19515 if ac_fn_c_try_compile "$LINENO"; then :
19516   gl_cv_sys_struct_timespec_in_time_h=yes
19517 else
19518   gl_cv_sys_struct_timespec_in_time_h=no
19519 fi
19520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521 fi
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19523 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19524
19525   TIME_H_DEFINES_STRUCT_TIMESPEC=0
19526   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19527   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19528   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19529     TIME_H_DEFINES_STRUCT_TIMESPEC=1
19530   else
19531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19532 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19533 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
19534   $as_echo_n "(cached) " >&6
19535 else
19536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h.  */
19538 #include <sys/time.h>
19539
19540 int
19541 main ()
19542 {
19543 static struct timespec x; x.tv_sec = x.tv_nsec;
19544   ;
19545   return 0;
19546 }
19547 _ACEOF
19548 if ac_fn_c_try_compile "$LINENO"; then :
19549   gl_cv_sys_struct_timespec_in_sys_time_h=yes
19550 else
19551   gl_cv_sys_struct_timespec_in_sys_time_h=no
19552 fi
19553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 fi
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19556 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19557     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19558       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19559     else
19560       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19561 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19562 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
19563   $as_echo_n "(cached) " >&6
19564 else
19565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h.  */
19567 #include <pthread.h>
19568
19569 int
19570 main ()
19571 {
19572 static struct timespec x; x.tv_sec = x.tv_nsec;
19573   ;
19574   return 0;
19575 }
19576 _ACEOF
19577 if ac_fn_c_try_compile "$LINENO"; then :
19578   gl_cv_sys_struct_timespec_in_pthread_h=yes
19579 else
19580   gl_cv_sys_struct_timespec_in_pthread_h=no
19581 fi
19582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19583 fi
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19585 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19586       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19587         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19588       fi
19589     fi
19590   fi
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606      if test $gl_cv_have_include_next = yes; then
19607        gl_cv_next_time_h='<'time.h'>'
19608      else
19609        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19610 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19611 if ${gl_cv_next_time_h+:} false; then :
19612   $as_echo_n "(cached) " >&6
19613 else
19614
19615                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h.  */
19617 #include <time.h>
19618
19619 _ACEOF
19620                                                                                                                         case "$host_os" in
19621                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19622                  *)    gl_absname_cpp="$ac_cpp" ;;
19623                esac
19624
19625                case "$host_os" in
19626                  mingw*)
19627                                                                                                                                      gl_dirsep_regex='[/\\]'
19628                    ;;
19629                  *)
19630                    gl_dirsep_regex='\/'
19631                    ;;
19632                esac
19633                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19634
19635                gl_header_literal_regex=`echo 'time.h' \
19636                                         | sed -e "$gl_make_literal_regex_sed"`
19637                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19638                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19639                    s|^/[^/]|//&|
19640                    p
19641                    q
19642                  }'
19643                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19644                       sed -n "$gl_absolute_header_sed"`'"'
19645
19646
19647 fi
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19649 $as_echo "$gl_cv_next_time_h" >&6; }
19650      fi
19651      NEXT_TIME_H=$gl_cv_next_time_h
19652
19653      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19654        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19655        gl_next_as_first_directive='<'time.h'>'
19656      else
19657        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19658        gl_next_as_first_directive=$gl_cv_next_time_h
19659      fi
19660      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19661
19662
19663
19664
19665
19666
19667
19668       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
19669 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
19670   ac_have_decl=1
19671 else
19672   ac_have_decl=0
19673 fi
19674
19675 cat >>confdefs.h <<_ACEOF
19676 #define HAVE_DECL_UNSETENV $ac_have_decl
19677 _ACEOF
19678
19679
19680
19681
19682
19683
19684
19685
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19687 $as_echo_n "checking for wint_t... " >&6; }
19688 if ${gt_cv_c_wint_t+:} false; then :
19689   $as_echo_n "(cached) " >&6
19690 else
19691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h.  */
19693
19694 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19695    <wchar.h>.
19696    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19697    before <wchar.h>.  */
19698 #include <stddef.h>
19699 #include <stdio.h>
19700 #include <time.h>
19701 #include <wchar.h>
19702             wint_t foo = (wchar_t)'\0';
19703 int
19704 main ()
19705 {
19706
19707   ;
19708   return 0;
19709 }
19710 _ACEOF
19711 if ac_fn_c_try_compile "$LINENO"; then :
19712   gt_cv_c_wint_t=yes
19713 else
19714   gt_cv_c_wint_t=no
19715 fi
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 fi
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19719 $as_echo "$gt_cv_c_wint_t" >&6; }
19720   if test $gt_cv_c_wint_t = yes; then
19721
19722 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19723
19724   fi
19725
19726
19727
19728
19729
19730
19731
19732
19733   :
19734
19735
19736
19737
19738
19739   if test $ac_cv_header_features_h = yes; then
19740     HAVE_FEATURES_H=1
19741   else
19742     HAVE_FEATURES_H=0
19743   fi
19744
19745
19746
19747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19748 $as_echo_n "checking for inttypes.h... " >&6; }
19749 if ${gl_cv_header_inttypes_h+:} false; then :
19750   $as_echo_n "(cached) " >&6
19751 else
19752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h.  */
19754
19755 #include <sys/types.h>
19756 #include <inttypes.h>
19757
19758 int
19759 main ()
19760 {
19761 uintmax_t i = (uintmax_t) -1; return !i;
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 if ac_fn_c_try_compile "$LINENO"; then :
19767   gl_cv_header_inttypes_h=yes
19768 else
19769   gl_cv_header_inttypes_h=no
19770 fi
19771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19772 fi
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19774 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19775   if test $gl_cv_header_inttypes_h = yes; then
19776
19777 cat >>confdefs.h <<_ACEOF
19778 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19779 _ACEOF
19780
19781   fi
19782
19783
19784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19785 $as_echo_n "checking for stdint.h... " >&6; }
19786 if ${gl_cv_header_stdint_h+:} false; then :
19787   $as_echo_n "(cached) " >&6
19788 else
19789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h.  */
19791 #include <sys/types.h>
19792             #include <stdint.h>
19793 int
19794 main ()
19795 {
19796 uintmax_t i = (uintmax_t) -1; return !i;
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 if ac_fn_c_try_compile "$LINENO"; then :
19802   gl_cv_header_stdint_h=yes
19803 else
19804   gl_cv_header_stdint_h=no
19805 fi
19806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19807 fi
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19809 $as_echo "$gl_cv_header_stdint_h" >&6; }
19810   if test $gl_cv_header_stdint_h = yes; then
19811
19812 cat >>confdefs.h <<_ACEOF
19813 #define HAVE_STDINT_H_WITH_UINTMAX 1
19814 _ACEOF
19815
19816   fi
19817
19818
19819
19820
19821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19822 $as_echo_n "checking for intmax_t... " >&6; }
19823 if ${gt_cv_c_intmax_t+:} false; then :
19824   $as_echo_n "(cached) " >&6
19825 else
19826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h.  */
19828
19829 #include <stddef.h>
19830 #include <stdlib.h>
19831 #if HAVE_STDINT_H_WITH_UINTMAX
19832 #include <stdint.h>
19833 #endif
19834 #if HAVE_INTTYPES_H_WITH_UINTMAX
19835 #include <inttypes.h>
19836 #endif
19837
19838 int
19839 main ()
19840 {
19841 intmax_t x = -1; return !x;
19842   ;
19843   return 0;
19844 }
19845 _ACEOF
19846 if ac_fn_c_try_compile "$LINENO"; then :
19847   gt_cv_c_intmax_t=yes
19848 else
19849   gt_cv_c_intmax_t=no
19850 fi
19851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19852 fi
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19854 $as_echo "$gt_cv_c_intmax_t" >&6; }
19855   if test $gt_cv_c_intmax_t = yes; then
19856
19857 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19858
19859   else
19860
19861     test $ac_cv_type_long_long_int = yes \
19862       && ac_type='long long' \
19863       || ac_type='long'
19864
19865 cat >>confdefs.h <<_ACEOF
19866 #define intmax_t $ac_type
19867 _ACEOF
19868
19869   fi
19870
19871
19872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
19873 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
19874 if ${gl_cv_cc_double_expbit0+:} false; then :
19875   $as_echo_n "(cached) " >&6
19876 else
19877
19878       if test "$cross_compiling" = yes; then :
19879
19880                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h.  */
19882
19883 #if defined arm || defined __arm || defined __arm__
19884   mixed_endianness
19885 #endif
19886
19887 _ACEOF
19888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19889   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
19890   gl_cv_cc_double_expbit0="unknown"
19891 else
19892
19893                                                          :
19894 if ${ac_cv_c_bigendian+:} false; then :
19895   $as_echo_n "(cached) " >&6
19896 else
19897   ac_cv_c_bigendian=unknown
19898     # See if we're dealing with a universal compiler.
19899     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900 /* end confdefs.h.  */
19901 #ifndef __APPLE_CC__
19902                not a universal capable compiler
19903              #endif
19904              typedef int dummy;
19905
19906 _ACEOF
19907 if ac_fn_c_try_compile "$LINENO"; then :
19908
19909         # Check for potential -arch flags.  It is not universal unless
19910         # there are at least two -arch flags with different values.
19911         ac_arch=
19912         ac_prev=
19913         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19914          if test -n "$ac_prev"; then
19915            case $ac_word in
19916              i?86 | x86_64 | ppc | ppc64)
19917                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19918                  ac_arch=$ac_word
19919                else
19920                  ac_cv_c_bigendian=universal
19921                  break
19922                fi
19923                ;;
19924            esac
19925            ac_prev=
19926          elif test "x$ac_word" = "x-arch"; then
19927            ac_prev=arch
19928          fi
19929        done
19930 fi
19931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932     if test $ac_cv_c_bigendian = unknown; then
19933       # See if sys/param.h defines the BYTE_ORDER macro.
19934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h.  */
19936 #include <sys/types.h>
19937              #include <sys/param.h>
19938
19939 int
19940 main ()
19941 {
19942 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19943                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19944                      && LITTLE_ENDIAN)
19945               bogus endian macros
19946              #endif
19947
19948   ;
19949   return 0;
19950 }
19951 _ACEOF
19952 if ac_fn_c_try_compile "$LINENO"; then :
19953   # It does; now see whether it defined to BIG_ENDIAN or not.
19954          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h.  */
19956 #include <sys/types.h>
19957                 #include <sys/param.h>
19958
19959 int
19960 main ()
19961 {
19962 #if BYTE_ORDER != BIG_ENDIAN
19963                  not big endian
19964                 #endif
19965
19966   ;
19967   return 0;
19968 }
19969 _ACEOF
19970 if ac_fn_c_try_compile "$LINENO"; then :
19971   ac_cv_c_bigendian=yes
19972 else
19973   ac_cv_c_bigendian=no
19974 fi
19975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19976 fi
19977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19978     fi
19979     if test $ac_cv_c_bigendian = unknown; then
19980       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19981       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19982 /* end confdefs.h.  */
19983 #include <limits.h>
19984
19985 int
19986 main ()
19987 {
19988 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19989               bogus endian macros
19990              #endif
19991
19992   ;
19993   return 0;
19994 }
19995 _ACEOF
19996 if ac_fn_c_try_compile "$LINENO"; then :
19997   # It does; now see whether it defined to _BIG_ENDIAN or not.
19998          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h.  */
20000 #include <limits.h>
20001
20002 int
20003 main ()
20004 {
20005 #ifndef _BIG_ENDIAN
20006                  not big endian
20007                 #endif
20008
20009   ;
20010   return 0;
20011 }
20012 _ACEOF
20013 if ac_fn_c_try_compile "$LINENO"; then :
20014   ac_cv_c_bigendian=yes
20015 else
20016   ac_cv_c_bigendian=no
20017 fi
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 fi
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021     fi
20022     if test $ac_cv_c_bigendian = unknown; then
20023       # Compile a test program.
20024       if test "$cross_compiling" = yes; then :
20025   # Try to guess by grepping values from an object file.
20026          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h.  */
20028 short int ascii_mm[] =
20029                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20030                 short int ascii_ii[] =
20031                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20032                 int use_ascii (int i) {
20033                   return ascii_mm[i] + ascii_ii[i];
20034                 }
20035                 short int ebcdic_ii[] =
20036                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20037                 short int ebcdic_mm[] =
20038                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20039                 int use_ebcdic (int i) {
20040                   return ebcdic_mm[i] + ebcdic_ii[i];
20041                 }
20042                 extern int foo;
20043
20044 int
20045 main ()
20046 {
20047 return use_ascii (foo) == use_ebcdic (foo);
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 if ac_fn_c_try_compile "$LINENO"; then :
20053   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20054               ac_cv_c_bigendian=yes
20055             fi
20056             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20057               if test "$ac_cv_c_bigendian" = unknown; then
20058                 ac_cv_c_bigendian=no
20059               else
20060                 # finding both strings is unlikely to happen, but who knows?
20061                 ac_cv_c_bigendian=unknown
20062               fi
20063             fi
20064 fi
20065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20066 else
20067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h.  */
20069 $ac_includes_default
20070 int
20071 main ()
20072 {
20073
20074              /* Are we little or big endian?  From Harbison&Steele.  */
20075              union
20076              {
20077                long int l;
20078                char c[sizeof (long int)];
20079              } u;
20080              u.l = 1;
20081              return u.c[sizeof (long int) - 1] == 1;
20082
20083   ;
20084   return 0;
20085 }
20086 _ACEOF
20087 if ac_fn_c_try_run "$LINENO"; then :
20088   ac_cv_c_bigendian=no
20089 else
20090   ac_cv_c_bigendian=yes
20091 fi
20092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20093   conftest.$ac_objext conftest.beam conftest.$ac_ext
20094 fi
20095
20096     fi
20097 fi
20098 :
20099  case $ac_cv_c_bigendian in #(
20100    yes)
20101      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20102    no)
20103      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20104    universal)
20105
20106 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20107
20108      ;; #(
20109    *)
20110      gl_cv_cc_double_expbit0="unknown" ;;
20111  esac
20112
20113
20114 fi
20115 rm -f conftest*
20116
20117
20118 else
20119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h.  */
20121
20122 #include <float.h>
20123 #include <stddef.h>
20124 #include <stdio.h>
20125 #include <string.h>
20126 #define NWORDS \
20127   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20128 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20129 static unsigned int ored_words[NWORDS];
20130 static unsigned int anded_words[NWORDS];
20131 static void add_to_ored_words (double x)
20132 {
20133   memory_double m;
20134   size_t i;
20135   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
20136   memset (&m, 0, sizeof (memory_double));
20137   m.value = x;
20138   for (i = 0; i < NWORDS; i++)
20139     {
20140       ored_words[i] |= m.word[i];
20141       anded_words[i] &= m.word[i];
20142     }
20143 }
20144 int main ()
20145 {
20146   size_t j;
20147   FILE *fp = fopen ("conftest.out", "w");
20148   if (fp == NULL)
20149     return 1;
20150   for (j = 0; j < NWORDS; j++)
20151     anded_words[j] = ~ (unsigned int) 0;
20152   add_to_ored_words (0.25);
20153   add_to_ored_words (0.5);
20154   add_to_ored_words (1.0);
20155   add_to_ored_words (2.0);
20156   add_to_ored_words (4.0);
20157   /* Remove bits that are common (e.g. if representation of the first mantissa
20158      bit is explicit).  */
20159   for (j = 0; j < NWORDS; j++)
20160     ored_words[j] &= ~anded_words[j];
20161   /* Now find the nonzero word.  */
20162   for (j = 0; j < NWORDS; j++)
20163     if (ored_words[j] != 0)
20164       break;
20165   if (j < NWORDS)
20166     {
20167       size_t i;
20168       for (i = j + 1; i < NWORDS; i++)
20169         if (ored_words[i] != 0)
20170           {
20171             fprintf (fp, "unknown");
20172             return (fclose (fp) != 0);
20173           }
20174       for (i = 0; ; i++)
20175         if ((ored_words[j] >> i) & 1)
20176           {
20177             fprintf (fp, "word %d bit %d", (int) j, (int) i);
20178             return (fclose (fp) != 0);
20179           }
20180     }
20181   fprintf (fp, "unknown");
20182   return (fclose (fp) != 0);
20183 }
20184
20185 _ACEOF
20186 if ac_fn_c_try_run "$LINENO"; then :
20187   gl_cv_cc_double_expbit0=`cat conftest.out`
20188 else
20189   gl_cv_cc_double_expbit0="unknown"
20190 fi
20191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20192   conftest.$ac_objext conftest.beam conftest.$ac_ext
20193 fi
20194
20195       rm -f conftest.out
20196
20197 fi
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20199 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20200   case "$gl_cv_cc_double_expbit0" in
20201     word*bit*)
20202       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20203       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20204
20205 cat >>confdefs.h <<_ACEOF
20206 #define DBL_EXPBIT0_WORD $word
20207 _ACEOF
20208
20209
20210 cat >>confdefs.h <<_ACEOF
20211 #define DBL_EXPBIT0_BIT $bit
20212 _ACEOF
20213
20214       ;;
20215   esac
20216
20217
20218
20219
20220
20221
20222
20223   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20224 do :
20225   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20228   cat >>confdefs.h <<_ACEOF
20229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20230 _ACEOF
20231
20232 fi
20233 done
20234
20235       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20236 "
20237 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20238   ac_have_decl=1
20239 else
20240   ac_have_decl=0
20241 fi
20242
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_DECL__SNPRINTF $ac_have_decl
20245 _ACEOF
20246
20247
20248
20249   case "$gl_cv_func_snprintf_retval_c99" in
20250     *yes)
20251
20252 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20253
20254       ;;
20255   esac
20256
20257
20258   GNULIB_BTOWC=0;
20259   GNULIB_WCTOB=0;
20260   GNULIB_MBSINIT=0;
20261   GNULIB_MBRTOWC=0;
20262   GNULIB_MBRLEN=0;
20263   GNULIB_MBSRTOWCS=0;
20264   GNULIB_MBSNRTOWCS=0;
20265   GNULIB_WCRTOMB=0;
20266   GNULIB_WCSRTOMBS=0;
20267   GNULIB_WCSNRTOMBS=0;
20268   GNULIB_WCWIDTH=0;
20269   GNULIB_WMEMCHR=0;
20270   GNULIB_WMEMCMP=0;
20271   GNULIB_WMEMCPY=0;
20272   GNULIB_WMEMMOVE=0;
20273   GNULIB_WMEMSET=0;
20274   GNULIB_WCSLEN=0;
20275   GNULIB_WCSNLEN=0;
20276   GNULIB_WCSCPY=0;
20277   GNULIB_WCPCPY=0;
20278   GNULIB_WCSNCPY=0;
20279   GNULIB_WCPNCPY=0;
20280   GNULIB_WCSCAT=0;
20281   GNULIB_WCSNCAT=0;
20282   GNULIB_WCSCMP=0;
20283   GNULIB_WCSNCMP=0;
20284   GNULIB_WCSCASECMP=0;
20285   GNULIB_WCSNCASECMP=0;
20286   GNULIB_WCSCOLL=0;
20287   GNULIB_WCSXFRM=0;
20288   GNULIB_WCSDUP=0;
20289   GNULIB_WCSCHR=0;
20290   GNULIB_WCSRCHR=0;
20291   GNULIB_WCSCSPN=0;
20292   GNULIB_WCSSPN=0;
20293   GNULIB_WCSPBRK=0;
20294   GNULIB_WCSSTR=0;
20295   GNULIB_WCSTOK=0;
20296   GNULIB_WCSWIDTH=0;
20297     HAVE_BTOWC=1;
20298   HAVE_MBSINIT=1;
20299   HAVE_MBRTOWC=1;
20300   HAVE_MBRLEN=1;
20301   HAVE_MBSRTOWCS=1;
20302   HAVE_MBSNRTOWCS=1;
20303   HAVE_WCRTOMB=1;
20304   HAVE_WCSRTOMBS=1;
20305   HAVE_WCSNRTOMBS=1;
20306   HAVE_WMEMCHR=1;
20307   HAVE_WMEMCMP=1;
20308   HAVE_WMEMCPY=1;
20309   HAVE_WMEMMOVE=1;
20310   HAVE_WMEMSET=1;
20311   HAVE_WCSLEN=1;
20312   HAVE_WCSNLEN=1;
20313   HAVE_WCSCPY=1;
20314   HAVE_WCPCPY=1;
20315   HAVE_WCSNCPY=1;
20316   HAVE_WCPNCPY=1;
20317   HAVE_WCSCAT=1;
20318   HAVE_WCSNCAT=1;
20319   HAVE_WCSCMP=1;
20320   HAVE_WCSNCMP=1;
20321   HAVE_WCSCASECMP=1;
20322   HAVE_WCSNCASECMP=1;
20323   HAVE_WCSCOLL=1;
20324   HAVE_WCSXFRM=1;
20325   HAVE_WCSDUP=1;
20326   HAVE_WCSCHR=1;
20327   HAVE_WCSRCHR=1;
20328   HAVE_WCSCSPN=1;
20329   HAVE_WCSSPN=1;
20330   HAVE_WCSPBRK=1;
20331   HAVE_WCSSTR=1;
20332   HAVE_WCSTOK=1;
20333   HAVE_WCSWIDTH=1;
20334   HAVE_DECL_WCTOB=1;
20335   HAVE_DECL_WCWIDTH=1;
20336   REPLACE_MBSTATE_T=0;
20337   REPLACE_BTOWC=0;
20338   REPLACE_WCTOB=0;
20339   REPLACE_MBSINIT=0;
20340   REPLACE_MBRTOWC=0;
20341   REPLACE_MBRLEN=0;
20342   REPLACE_MBSRTOWCS=0;
20343   REPLACE_MBSNRTOWCS=0;
20344   REPLACE_WCRTOMB=0;
20345   REPLACE_WCSRTOMBS=0;
20346   REPLACE_WCSNRTOMBS=0;
20347   REPLACE_WCWIDTH=0;
20348   REPLACE_WCSWIDTH=0;
20349
20350
20351             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
20352 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
20353 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
20354   $as_echo_n "(cached) " >&6
20355 else
20356   gl_cv_header_wchar_h_correct_inline=yes
20357      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h.  */
20359
20360        #define wcstod renamed_wcstod
20361 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20362    <wchar.h>.
20363    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20364    included before <wchar.h>.  */
20365 #include <stddef.h>
20366 #include <stdio.h>
20367 #include <time.h>
20368 #include <wchar.h>
20369 extern int zero (void);
20370 int main () { return zero(); }
20371
20372 _ACEOF
20373      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20374   (eval $ac_compile) 2>&5
20375   ac_status=$?
20376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20377   test $ac_status = 0; }; then
20378        mv conftest.$ac_objext conftest1.$ac_objext
20379        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20380 /* end confdefs.h.  */
20381
20382          #define wcstod renamed_wcstod
20383 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20384    <wchar.h>.
20385    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20386    included before <wchar.h>.  */
20387 #include <stddef.h>
20388 #include <stdio.h>
20389 #include <time.h>
20390 #include <wchar.h>
20391 int zero (void) { return 0; }
20392
20393 _ACEOF
20394        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20395   (eval $ac_compile) 2>&5
20396   ac_status=$?
20397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20398   test $ac_status = 0; }; then
20399          mv conftest.$ac_objext conftest2.$ac_objext
20400          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
20401            :
20402          else
20403            gl_cv_header_wchar_h_correct_inline=no
20404          fi
20405        fi
20406      fi
20407      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
20408
20409 fi
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
20411 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
20412   if test $gl_cv_header_wchar_h_correct_inline = no; then
20413     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
20414 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
20415 C99 mode. You have four options:
20416   - Add the flag -fgnu89-inline to CC and reconfigure, or
20417   - Fix your include files, using parts of
20418     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
20419   - Use a gcc version older than 4.3, or
20420   - Don't use the flags -std=c99 or -std=gnu99.
20421 Configuration aborted." "$LINENO" 5
20422   fi
20423
20424
20425    if true; then
20426   GL_COND_LIBTOOL_TRUE=
20427   GL_COND_LIBTOOL_FALSE='#'
20428 else
20429   GL_COND_LIBTOOL_TRUE='#'
20430   GL_COND_LIBTOOL_FALSE=
20431 fi
20432
20433   gl_cond_libtool=true
20434   gl_m4_base='gnulib/m4'
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444   gl_source_base='gnulib/lib'
20445
20446
20447   if test $ac_cv_func_alloca_works = no; then
20448     :
20449   fi
20450
20451   # Define an additional variable used in the Makefile substitution.
20452   if test $ac_cv_working_alloca_h = yes; then
20453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20454 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20455 if ${gl_cv_rpl_alloca+:} false; then :
20456   $as_echo_n "(cached) " >&6
20457 else
20458
20459       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h.  */
20461
20462 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20463         Need own alloca
20464 #endif
20465
20466 _ACEOF
20467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20468   $EGREP "Need own alloca" >/dev/null 2>&1; then :
20469   gl_cv_rpl_alloca=yes
20470 else
20471   gl_cv_rpl_alloca=no
20472 fi
20473 rm -f conftest*
20474
20475
20476 fi
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20478 $as_echo "$gl_cv_rpl_alloca" >&6; }
20479     if test $gl_cv_rpl_alloca = yes; then
20480
20481 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20482
20483       ALLOCA_H=alloca.h
20484     else
20485                   ALLOCA_H=
20486     fi
20487   else
20488     ALLOCA_H=alloca.h
20489   fi
20490
20491    if test -n "$ALLOCA_H"; then
20492   GL_GENERATE_ALLOCA_H_TRUE=
20493   GL_GENERATE_ALLOCA_H_FALSE='#'
20494 else
20495   GL_GENERATE_ALLOCA_H_TRUE='#'
20496   GL_GENERATE_ALLOCA_H_FALSE=
20497 fi
20498
20499
20500
20501
20502
20503
20504
20505 cat >>confdefs.h <<_ACEOF
20506 #define GNULIB_DIRNAME 1
20507 _ACEOF
20508
20509
20510
20511
20512
20513
20514
20515
20516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20517 $as_echo_n "checking whether // is distinct from /... " >&6; }
20518 if ${gl_cv_double_slash_root+:} false; then :
20519   $as_echo_n "(cached) " >&6
20520 else
20521    if test x"$cross_compiling" = xyes ; then
20522         # When cross-compiling, there is no way to tell whether // is special
20523         # short of a list of hosts.  However, the only known hosts to date
20524         # that have a distinct // are Apollo DomainOS (too old to port to),
20525         # Cygwin, and z/OS.  If anyone knows of another system for which // has
20526         # special semantics and is distinct from /, please report it to
20527         # <bug-gnulib@gnu.org>.
20528         case $host in
20529           *-cygwin | i370-ibm-openedition)
20530             gl_cv_double_slash_root=yes ;;
20531           *)
20532             # Be optimistic and assume that / and // are the same when we
20533             # don't know.
20534             gl_cv_double_slash_root='unknown, assuming no' ;;
20535         esac
20536       else
20537         set x `ls -di / // 2>/dev/null`
20538         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20539           gl_cv_double_slash_root=no
20540         else
20541           gl_cv_double_slash_root=yes
20542         fi
20543       fi
20544 fi
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20546 $as_echo "$gl_cv_double_slash_root" >&6; }
20547   if test "$gl_cv_double_slash_root" = yes; then
20548
20549 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20550
20551   fi
20552
20553
20554
20555
20556
20557
20558
20559           GNULIB_ENVIRON=1
20560
20561
20562
20563
20564
20565 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
20566
20567
20568
20569
20570
20571       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
20572 $as_echo_n "checking for error_at_line... " >&6; }
20573 if ${ac_cv_lib_error_at_line+:} false; then :
20574   $as_echo_n "(cached) " >&6
20575 else
20576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h.  */
20578 #include <error.h>
20579 int
20580 main ()
20581 {
20582 error_at_line (0, 0, "", 0, "an error occurred");
20583   ;
20584   return 0;
20585 }
20586 _ACEOF
20587 if ac_fn_c_try_link "$LINENO"; then :
20588   ac_cv_lib_error_at_line=yes
20589 else
20590   ac_cv_lib_error_at_line=no
20591 fi
20592 rm -f core conftest.err conftest.$ac_objext \
20593     conftest$ac_exeext conftest.$ac_ext
20594 fi
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
20596 $as_echo "$ac_cv_lib_error_at_line" >&6; }
20597
20598 if test $ac_cv_lib_error_at_line = no; then
20599
20600
20601
20602
20603
20604
20605
20606
20607   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
20608
20609
20610
20611
20612   :
20613
20614 fi
20615
20616
20617   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
20618
20619
20620
20621   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
20622
20623
20624
20625
20626   FLOAT_H=
20627   REPLACE_FLOAT_LDBL=0
20628   case "$host_os" in
20629     aix* | beos* | openbsd* | mirbsd* | irix*)
20630       FLOAT_H=float.h
20631       ;;
20632     freebsd*)
20633       case "$host_cpu" in
20634         i[34567]86 )
20635           FLOAT_H=float.h
20636           ;;
20637         x86_64 )
20638           # On x86_64 systems, the C compiler may still be generating
20639           # 32-bit code.
20640           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h.  */
20642 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
20643              yes
20644              #endif
20645 _ACEOF
20646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20647   $EGREP "yes" >/dev/null 2>&1; then :
20648
20649 else
20650   FLOAT_H=float.h
20651 fi
20652 rm -f conftest*
20653
20654           ;;
20655       esac
20656       ;;
20657     linux*)
20658       case "$host_cpu" in
20659         powerpc*)
20660           FLOAT_H=float.h
20661           ;;
20662       esac
20663       ;;
20664   esac
20665   case "$host_os" in
20666     aix* | freebsd* | linux*)
20667       if test -n "$FLOAT_H"; then
20668         REPLACE_FLOAT_LDBL=1
20669       fi
20670       ;;
20671   esac
20672
20673     REPLACE_ITOLD=0
20674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
20675 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
20676 if ${gl_cv_func_itold_works+:} false; then :
20677   $as_echo_n "(cached) " >&6
20678 else
20679
20680       if test "$cross_compiling" = yes; then :
20681   case "$host" in
20682            sparc*-*-linux*)
20683              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20684 /* end confdefs.h.  */
20685 #if defined __LP64__ || defined __arch64__
20686                 yes
20687                 #endif
20688 _ACEOF
20689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20690   $EGREP "yes" >/dev/null 2>&1; then :
20691   gl_cv_func_itold_works="guessing no"
20692 else
20693   gl_cv_func_itold_works="guessing yes"
20694 fi
20695 rm -f conftest*
20696
20697              ;;
20698            *) gl_cv_func_itold_works="guessing yes" ;;
20699          esac
20700
20701 else
20702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h.  */
20704
20705 int i = -1;
20706 volatile long double ld;
20707 int main ()
20708 {
20709   ld += i * 1.0L;
20710   if (ld > 0)
20711     return 1;
20712   return 0;
20713 }
20714 _ACEOF
20715 if ac_fn_c_try_run "$LINENO"; then :
20716   gl_cv_func_itold_works=yes
20717 else
20718   gl_cv_func_itold_works=no
20719 fi
20720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20721   conftest.$ac_objext conftest.beam conftest.$ac_ext
20722 fi
20723
20724
20725 fi
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
20727 $as_echo "$gl_cv_func_itold_works" >&6; }
20728   case "$gl_cv_func_itold_works" in
20729     *no)
20730       REPLACE_ITOLD=1
20731                   FLOAT_H=float.h
20732       ;;
20733   esac
20734
20735   if test -n "$FLOAT_H"; then
20736
20737
20738
20739
20740
20741
20742
20743
20744      if test $gl_cv_have_include_next = yes; then
20745        gl_cv_next_float_h='<'float.h'>'
20746      else
20747        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
20748 $as_echo_n "checking absolute name of <float.h>... " >&6; }
20749 if ${gl_cv_next_float_h+:} false; then :
20750   $as_echo_n "(cached) " >&6
20751 else
20752
20753                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h.  */
20755 #include <float.h>
20756
20757 _ACEOF
20758                                                                                                                         case "$host_os" in
20759                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
20760                  *)    gl_absname_cpp="$ac_cpp" ;;
20761                esac
20762
20763                case "$host_os" in
20764                  mingw*)
20765                                                                                                                                      gl_dirsep_regex='[/\\]'
20766                    ;;
20767                  *)
20768                    gl_dirsep_regex='\/'
20769                    ;;
20770                esac
20771                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20772
20773                gl_header_literal_regex=`echo 'float.h' \
20774                                         | sed -e "$gl_make_literal_regex_sed"`
20775                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20776                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20777                    s|^/[^/]|//&|
20778                    p
20779                    q
20780                  }'
20781                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20782                       sed -n "$gl_absolute_header_sed"`'"'
20783
20784
20785 fi
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
20787 $as_echo "$gl_cv_next_float_h" >&6; }
20788      fi
20789      NEXT_FLOAT_H=$gl_cv_next_float_h
20790
20791      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20792        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20793        gl_next_as_first_directive='<'float.h'>'
20794      else
20795        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20796        gl_next_as_first_directive=$gl_cv_next_float_h
20797      fi
20798      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
20799
20800
20801
20802
20803   fi
20804
20805    if test -n "$FLOAT_H"; then
20806   GL_GENERATE_FLOAT_H_TRUE=
20807   GL_GENERATE_FLOAT_H_FALSE='#'
20808 else
20809   GL_GENERATE_FLOAT_H_TRUE='#'
20810   GL_GENERATE_FLOAT_H_FALSE=
20811 fi
20812
20813
20814
20815 if test $REPLACE_FLOAT_LDBL = 1; then
20816
20817
20818
20819
20820
20821
20822
20823
20824   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
20825
20826 fi
20827 if test $REPLACE_ITOLD = 1; then
20828
20829
20830
20831
20832
20833
20834
20835
20836   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
20837
20838 fi
20839
20840
20841
20842
20843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
20844 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
20845 if ${gl_cv_c_inline_effective+:} false; then :
20846   $as_echo_n "(cached) " >&6
20847 else
20848   if test $ac_cv_c_inline = no; then
20849        gl_cv_c_inline_effective=no
20850      else
20851                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20852 /* end confdefs.h.  */
20853
20854 int
20855 main ()
20856 {
20857 #ifdef __NO_INLINE__
20858                #error "inline is not effective"
20859              #endif
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 if ac_fn_c_try_compile "$LINENO"; then :
20865   gl_cv_c_inline_effective=yes
20866 else
20867   gl_cv_c_inline_effective=no
20868 fi
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870      fi
20871
20872 fi
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
20874 $as_echo "$gl_cv_c_inline_effective" >&6; }
20875   if test $gl_cv_c_inline_effective = yes; then
20876
20877 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
20878
20879   fi
20880
20881
20882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
20883 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
20884 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
20885   $as_echo_n "(cached) " >&6
20886 else
20887   gl_cv_prog_c_ignore_unused_libraries=none
20888      gl_saved_ldflags=$LDFLAGS
20889      gl_saved_libs=$LIBS
20890      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
20891      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
20892      LIBS="$LIBS -lm"
20893      # Use long option sequences like '-z ignore' to test for the feature,
20894      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
20895      # GCC + binutils likes '-Wl,--as-needed'.
20896      # GCC + Solaris ld likes '-Wl,-z,ignore'.
20897      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
20898      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
20899      # native cc issues annoying warnings and then ignores it,
20900      # which would cause us to incorrectly conclude that it worked.
20901      for gl_flags in  '-Wl,--as-needed' \
20902   '-Wl,-z,ignore' \
20903   '-z ignore'
20904
20905      do
20906        LDFLAGS="$gl_flags $LDFLAGS"
20907        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h.  */
20909
20910 int
20911 main ()
20912 {
20913
20914   ;
20915   return 0;
20916 }
20917 _ACEOF
20918 if ac_fn_c_try_link "$LINENO"; then :
20919   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
20920 fi
20921 rm -f core conftest.err conftest.$ac_objext \
20922     conftest$ac_exeext conftest.$ac_ext
20923        LDFLAGS=$gl_saved_ldflags
20924        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
20925          break
20926      done
20927      LIBS=$gl_saved_libs
20928
20929 fi
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
20931 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
20932   IGNORE_UNUSED_LIBRARIES_CFLAGS=
20933   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
20934     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
20935   fi
20936
20937
20938
20939
20940   if test "$gl_threads_api" = posix; then
20941     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
20942     # pthread_rwlock_* functions.
20943     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
20944 "
20945 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
20946
20947 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
20948
20949 fi
20950
20951     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
20952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953 /* end confdefs.h.  */
20954
20955       #include <pthread.h>
20956 int
20957 main ()
20958 {
20959
20960 #if __FreeBSD__ == 4
20961 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
20962 #else
20963 int x = (int)PTHREAD_MUTEX_RECURSIVE;
20964 return !x;
20965 #endif
20966
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 if ac_fn_c_try_compile "$LINENO"; then :
20972
20973 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
20974
20975 fi
20976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977   fi
20978
20979
20980
20981
20982
20983
20984
20985   if test $gl_cv_func_malloc_posix = yes; then
20986
20987 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
20988
20989   else
20990     REPLACE_MALLOC=1
20991   fi
20992
20993 if test $REPLACE_MALLOC = 1; then
20994
20995
20996
20997
20998
20999
21000
21001
21002   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21003
21004 fi
21005
21006
21007
21008
21009
21010           GNULIB_MALLOC_POSIX=1
21011
21012
21013
21014
21015
21016 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21017
21018
21019
21020
21021
21022
21023
21024
21025 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21026
21027
21028
21029
21030
21031
21032
21033
21034   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21035
21036
21037   for ac_header in bp-sym.h
21038 do :
21039   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21040 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21041   cat >>confdefs.h <<_ACEOF
21042 #define HAVE_BP_SYM_H 1
21043 _ACEOF
21044
21045 fi
21046
21047 done
21048
21049
21050 fi
21051
21052
21053
21054
21055
21056           GNULIB_MEMCHR=1
21057
21058
21059
21060
21061
21062 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21063
21064
21065
21066
21067
21068   :
21069
21070
21071
21072
21073
21074   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21075     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21076
21077 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21078
21079   else
21080     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21081   fi
21082
21083
21084 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21085
21086
21087
21088
21089
21090
21091
21092
21093   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21094
21095 fi
21096
21097
21098
21099 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21100
21101
21102
21103
21104
21105
21106
21107
21108   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21109
21110 fi
21111
21112
21113
21114
21115
21116   for ac_func in raise
21117 do :
21118   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21119 if test "x$ac_cv_func_raise" = xyes; then :
21120   cat >>confdefs.h <<_ACEOF
21121 #define HAVE_RAISE 1
21122 _ACEOF
21123
21124 fi
21125 done
21126
21127   if test $ac_cv_func_raise = no; then
21128     HAVE_RAISE=0
21129   else
21130     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21131       REPLACE_RAISE=1
21132     fi
21133
21134
21135
21136
21137   if test $gl_cv_type_sigset_t = yes; then
21138     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21139 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21140   gl_cv_func_sigprocmask=1
21141 fi
21142
21143   fi
21144   if test -z "$gl_cv_func_sigprocmask"; then
21145     HAVE_POSIX_SIGNALBLOCKING=0
21146   fi
21147
21148       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21149         :
21150       fi
21151
21152   fi
21153
21154 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21155
21156
21157
21158
21159
21160
21161
21162
21163   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
21164
21165
21166
21167
21168 fi
21169
21170
21171
21172
21173
21174           GNULIB_RAISE=1
21175
21176
21177
21178
21179
21180 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
21181
21182
21183
21184
21185
21186
21187   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21188     REPLACE_READ=1
21189   fi
21190
21191
21192 if test $REPLACE_READ = 1; then
21193
21194
21195
21196
21197
21198
21199
21200
21201   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
21202
21203
21204
21205
21206 fi
21207
21208
21209
21210
21211
21212           GNULIB_READ=1
21213
21214
21215
21216
21217
21218 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232   if test $ac_cv_func_setenv = no; then
21233     HAVE_SETENV=0
21234   else
21235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
21236 $as_echo_n "checking whether setenv validates arguments... " >&6; }
21237 if ${gl_cv_func_setenv_works+:} false; then :
21238   $as_echo_n "(cached) " >&6
21239 else
21240   if test "$cross_compiling" = yes; then :
21241   gl_cv_func_setenv_works="guessing no"
21242 else
21243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21244 /* end confdefs.h.  */
21245
21246        #include <stdlib.h>
21247        #include <errno.h>
21248        #include <string.h>
21249
21250 int
21251 main ()
21252 {
21253
21254        int result = 0;
21255        {
21256          if (setenv ("", "", 0) != -1)
21257            result |= 1;
21258          else if (errno != EINVAL)
21259            result |= 2;
21260        }
21261        {
21262          if (setenv ("a", "=", 1) != 0)
21263            result |= 4;
21264          else if (strcmp (getenv ("a"), "=") != 0)
21265            result |= 8;
21266        }
21267        return result;
21268
21269   ;
21270   return 0;
21271 }
21272 _ACEOF
21273 if ac_fn_c_try_run "$LINENO"; then :
21274   gl_cv_func_setenv_works=yes
21275 else
21276   gl_cv_func_setenv_works=no
21277 fi
21278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21279   conftest.$ac_objext conftest.beam conftest.$ac_ext
21280 fi
21281
21282 fi
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
21284 $as_echo "$gl_cv_func_setenv_works" >&6; }
21285     if test "$gl_cv_func_setenv_works" != yes; then
21286       REPLACE_SETENV=1
21287     fi
21288   fi
21289
21290 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
21291
21292
21293
21294
21295
21296
21297
21298
21299   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
21300
21301 fi
21302
21303
21304
21305
21306
21307           GNULIB_SETENV=1
21308
21309
21310
21311
21312
21313 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
21314
21315
21316
21317
21318
21319
21320   :
21321
21322
21323
21324
21325
21326   if test $ac_cv_func_sigaction = yes; then
21327     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
21328 "
21329 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
21330
21331 cat >>confdefs.h <<_ACEOF
21332 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
21333 _ACEOF
21334
21335
21336 fi
21337
21338     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
21339       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
21340     fi
21341   else
21342     HAVE_SIGACTION=0
21343   fi
21344
21345 if test $HAVE_SIGACTION = 0; then
21346
21347
21348
21349
21350
21351
21352
21353
21354   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
21355
21356
21357
21358
21359
21360
21361
21362   :
21363
21364
21365
21366
21367
21368
21369
21370
21371   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
21372 #include <signal.h>
21373
21374 "
21375 if test "x$ac_cv_type_siginfo_t" = xyes; then :
21376
21377 cat >>confdefs.h <<_ACEOF
21378 #define HAVE_SIGINFO_T 1
21379 _ACEOF
21380
21381
21382 fi
21383
21384   if test $ac_cv_type_siginfo_t = no; then
21385     HAVE_SIGINFO_T=0
21386   fi
21387
21388 fi
21389
21390
21391
21392
21393
21394           GNULIB_SIGACTION=1
21395
21396
21397
21398
21399
21400 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415      if test $gl_cv_have_include_next = yes; then
21416        gl_cv_next_signal_h='<'signal.h'>'
21417      else
21418        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21419 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21420 if ${gl_cv_next_signal_h+:} false; then :
21421   $as_echo_n "(cached) " >&6
21422 else
21423
21424                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h.  */
21426 #include <signal.h>
21427
21428 _ACEOF
21429                                                                                                                         case "$host_os" in
21430                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21431                  *)    gl_absname_cpp="$ac_cpp" ;;
21432                esac
21433
21434                case "$host_os" in
21435                  mingw*)
21436                                                                                                                                      gl_dirsep_regex='[/\\]'
21437                    ;;
21438                  *)
21439                    gl_dirsep_regex='\/'
21440                    ;;
21441                esac
21442                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21443
21444                gl_header_literal_regex=`echo 'signal.h' \
21445                                         | sed -e "$gl_make_literal_regex_sed"`
21446                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21447                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21448                    s|^/[^/]|//&|
21449                    p
21450                    q
21451                  }'
21452                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21453                       sed -n "$gl_absolute_header_sed"`'"'
21454
21455
21456 fi
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21458 $as_echo "$gl_cv_next_signal_h" >&6; }
21459      fi
21460      NEXT_SIGNAL_H=$gl_cv_next_signal_h
21461
21462      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21463        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21464        gl_next_as_first_directive='<'signal.h'>'
21465      else
21466        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21467        gl_next_as_first_directive=$gl_cv_next_signal_h
21468      fi
21469      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
21470
21471
21472
21473
21474
21475 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21476 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
21477   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21478 #include <signal.h>
21479
21480 "
21481 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
21482
21483 else
21484   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
21485 fi
21486
21487
21488
21489
21490
21491
21492
21493   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21494 #include <signal.h>
21495
21496 "
21497 if test "x$ac_cv_type_sighandler_t" = xyes; then :
21498
21499 else
21500   HAVE_SIGHANDLER_T=0
21501 fi
21502
21503
21504
21505     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
21506     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21508 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21509 if eval \${$as_gl_Symbol+:} false; then :
21510   $as_echo_n "(cached) " >&6
21511 else
21512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21513 /* end confdefs.h.  */
21514 #include <signal.h>
21515
21516 int
21517 main ()
21518 {
21519 #undef $gl_func
21520   (void) $gl_func;
21521   ;
21522   return 0;
21523 }
21524 _ACEOF
21525 if ac_fn_c_try_compile "$LINENO"; then :
21526   eval "$as_gl_Symbol=yes"
21527 else
21528   eval "$as_gl_Symbol=no"
21529 fi
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531 fi
21532 eval ac_res=\$$as_gl_Symbol
21533                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21534 $as_echo "$ac_res" >&6; }
21535     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21536   cat >>confdefs.h <<_ACEOF
21537 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21538 _ACEOF
21539
21540                      eval ac_cv_have_decl_$gl_func=yes
21541 fi
21542       done
21543
21544
21545
21546
21547
21548   if test $gl_cv_type_sigset_t = yes; then
21549     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21550 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21551   gl_cv_func_sigprocmask=1
21552 fi
21553
21554   fi
21555   if test -z "$gl_cv_func_sigprocmask"; then
21556     HAVE_POSIX_SIGNALBLOCKING=0
21557   fi
21558
21559 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21560
21561
21562
21563
21564
21565
21566
21567
21568   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21569
21570
21571
21572
21573 fi
21574
21575
21576
21577
21578
21579           GNULIB_SIGPROCMASK=1
21580
21581
21582
21583
21584
21585 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
21586
21587
21588
21589
21590   for ac_header in stdint.h
21591 do :
21592   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21593 if test "x$ac_cv_header_stdint_h" = xyes; then :
21594   cat >>confdefs.h <<_ACEOF
21595 #define HAVE_STDINT_H 1
21596 _ACEOF
21597
21598 fi
21599
21600 done
21601
21602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
21603 $as_echo_n "checking for SIZE_MAX... " >&6; }
21604 if ${gl_cv_size_max+:} false; then :
21605   $as_echo_n "(cached) " >&6
21606 else
21607
21608     gl_cv_size_max=
21609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h.  */
21611
21612 #include <limits.h>
21613 #if HAVE_STDINT_H
21614 #include <stdint.h>
21615 #endif
21616 #ifdef SIZE_MAX
21617 Found it
21618 #endif
21619
21620 _ACEOF
21621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21622   $EGREP "Found it" >/dev/null 2>&1; then :
21623   gl_cv_size_max=yes
21624 fi
21625 rm -f conftest*
21626
21627     if test -z "$gl_cv_size_max"; then
21628                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
21629 #include <limits.h>"; then :
21630
21631 else
21632   size_t_bits_minus_1=
21633 fi
21634
21635       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
21636
21637 else
21638   fits_in_uint=
21639 fi
21640
21641       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
21642         if test $fits_in_uint = 1; then
21643                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h.  */
21645 #include <stddef.h>
21646                  extern size_t foo;
21647                  extern unsigned long foo;
21648
21649 int
21650 main ()
21651 {
21652
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 if ac_fn_c_try_compile "$LINENO"; then :
21658   fits_in_uint=0
21659 fi
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661         fi
21662                                 if test $fits_in_uint = 1; then
21663           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
21664         else
21665           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
21666         fi
21667       else
21668                 gl_cv_size_max='((size_t)~(size_t)0)'
21669       fi
21670     fi
21671
21672 fi
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
21674 $as_echo "$gl_cv_size_max" >&6; }
21675   if test "$gl_cv_size_max" != yes; then
21676
21677 cat >>confdefs.h <<_ACEOF
21678 #define SIZE_MAX $gl_cv_size_max
21679 _ACEOF
21680
21681   fi
21682
21683
21684
21685
21686   gl_cv_func_snprintf_usable=no
21687   for ac_func in snprintf
21688 do :
21689   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
21690 if test "x$ac_cv_func_snprintf" = xyes; then :
21691   cat >>confdefs.h <<_ACEOF
21692 #define HAVE_SNPRINTF 1
21693 _ACEOF
21694
21695 fi
21696 done
21697
21698   if test $ac_cv_func_snprintf = yes; then
21699
21700
21701
21702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
21703 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
21704 if ${gl_cv_func_snprintf_size1+:} false; then :
21705   $as_echo_n "(cached) " >&6
21706 else
21707
21708       if test "$cross_compiling" = yes; then :
21709   gl_cv_func_snprintf_size1="guessing yes"
21710 else
21711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h.  */
21713
21714 #include <stdio.h>
21715 #if HAVE_SNPRINTF
21716 # define my_snprintf snprintf
21717 #else
21718 # include <stdarg.h>
21719 static int my_snprintf (char *buf, int size, const char *format, ...)
21720 {
21721   va_list args;
21722   int ret;
21723   va_start (args, format);
21724   ret = vsnprintf (buf, size, format, args);
21725   va_end (args);
21726   return ret;
21727 }
21728 #endif
21729 int main()
21730 {
21731   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
21732   my_snprintf (buf, 1, "%d", 12345);
21733   return buf[1] != 'E';
21734 }
21735 _ACEOF
21736 if ac_fn_c_try_run "$LINENO"; then :
21737   gl_cv_func_snprintf_size1=yes
21738 else
21739   gl_cv_func_snprintf_size1=no
21740 fi
21741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21742   conftest.$ac_objext conftest.beam conftest.$ac_ext
21743 fi
21744
21745
21746 fi
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
21748 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
21749
21750     case "$gl_cv_func_snprintf_size1" in
21751       *yes)
21752
21753         case "$gl_cv_func_snprintf_retval_c99" in
21754           *yes)
21755
21756
21757      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
21758 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
21759 if ${gl_cv_func_printf_positions+:} false; then :
21760   $as_echo_n "(cached) " >&6
21761 else
21762
21763       if test "$cross_compiling" = yes; then :
21764
21765          case "$host_os" in
21766            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
21767                          gl_cv_func_printf_positions="guessing no";;
21768            beos*)        gl_cv_func_printf_positions="guessing no";;
21769            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
21770            *)            gl_cv_func_printf_positions="guessing yes";;
21771          esac
21772
21773 else
21774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21775 /* end confdefs.h.  */
21776
21777 #include <stdio.h>
21778 #include <string.h>
21779 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21780    dollar expansion (possibly an autoconf bug).  */
21781 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21782 static char buf[100];
21783 int main ()
21784 {
21785   sprintf (buf, format, 33, 55);
21786   return (strcmp (buf, "55 33") != 0);
21787 }
21788 _ACEOF
21789 if ac_fn_c_try_run "$LINENO"; then :
21790   gl_cv_func_printf_positions=yes
21791 else
21792   gl_cv_func_printf_positions=no
21793 fi
21794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21795   conftest.$ac_objext conftest.beam conftest.$ac_ext
21796 fi
21797
21798
21799 fi
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
21801 $as_echo "$gl_cv_func_printf_positions" >&6; }
21802
21803             case "$gl_cv_func_printf_positions" in
21804               *yes)
21805                 gl_cv_func_snprintf_usable=yes
21806                 ;;
21807             esac
21808             ;;
21809         esac
21810         ;;
21811     esac
21812   fi
21813   if test $gl_cv_func_snprintf_usable = no; then
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
21825
21826   if test $ac_cv_func_snprintf = yes; then
21827     REPLACE_SNPRINTF=1
21828   fi
21829   :
21830
21831   fi
21832
21833   :
21834
21835
21836
21837
21838
21839   if test $ac_cv_have_decl_snprintf = no; then
21840     HAVE_DECL_SNPRINTF=0
21841   fi
21842
21843
21844
21845
21846
21847
21848           GNULIB_SNPRINTF=1
21849
21850
21851
21852
21853
21854 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
21855
21856
21857
21858
21859
21860 cat >>confdefs.h <<_ACEOF
21861 #define GNULIB_SNPRINTF 1
21862 _ACEOF
21863
21864
21865
21866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21867 $as_echo_n "checking for ssize_t... " >&6; }
21868 if ${gt_cv_ssize_t+:} false; then :
21869   $as_echo_n "(cached) " >&6
21870 else
21871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h.  */
21873 #include <sys/types.h>
21874 int
21875 main ()
21876 {
21877 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21878             return !x;
21879   ;
21880   return 0;
21881 }
21882 _ACEOF
21883 if ac_fn_c_try_compile "$LINENO"; then :
21884   gt_cv_ssize_t=yes
21885 else
21886   gt_cv_ssize_t=no
21887 fi
21888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889 fi
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21891 $as_echo "$gt_cv_ssize_t" >&6; }
21892   if test $gt_cv_ssize_t = no; then
21893
21894 $as_echo "#define ssize_t int" >>confdefs.h
21895
21896   fi
21897
21898
21899   STDARG_H=''
21900   NEXT_STDARG_H='<stdarg.h>'
21901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21902 $as_echo_n "checking for va_copy... " >&6; }
21903   if ${gl_cv_func_va_copy+:} false; then :
21904   $as_echo_n "(cached) " >&6
21905 else
21906
21907     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h.  */
21909 #include <stdarg.h>
21910 int
21911 main ()
21912 {
21913
21914 #ifndef va_copy
21915 void (*func) (va_list, va_list) = va_copy;
21916 #endif
21917
21918   ;
21919   return 0;
21920 }
21921 _ACEOF
21922 if ac_fn_c_try_compile "$LINENO"; then :
21923   gl_cv_func_va_copy=yes
21924 else
21925   gl_cv_func_va_copy=no
21926 fi
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 fi
21929
21930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21931 $as_echo "$gl_cv_func_va_copy" >&6; }
21932   if test $gl_cv_func_va_copy = no; then
21933                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934 /* end confdefs.h.  */
21935 #if defined _AIX && !defined __GNUC__
21936         AIX vaccine
21937        #endif
21938
21939 _ACEOF
21940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21941   $EGREP "vaccine" >/dev/null 2>&1; then :
21942   gl_aixcc=yes
21943 else
21944   gl_aixcc=no
21945 fi
21946 rm -f conftest*
21947
21948     if test $gl_aixcc = yes; then
21949             STDARG_H=stdarg.h
21950
21951
21952
21953
21954
21955
21956
21957
21958      if test $gl_cv_have_include_next = yes; then
21959        gl_cv_next_stdarg_h='<'stdarg.h'>'
21960      else
21961        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21962 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21963 if ${gl_cv_next_stdarg_h+:} false; then :
21964   $as_echo_n "(cached) " >&6
21965 else
21966
21967                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h.  */
21969 #include <stdarg.h>
21970
21971 _ACEOF
21972                                                                                                                         case "$host_os" in
21973                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21974                  *)    gl_absname_cpp="$ac_cpp" ;;
21975                esac
21976
21977                case "$host_os" in
21978                  mingw*)
21979                                                                                                                                      gl_dirsep_regex='[/\\]'
21980                    ;;
21981                  *)
21982                    gl_dirsep_regex='\/'
21983                    ;;
21984                esac
21985                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21986
21987                gl_header_literal_regex=`echo 'stdarg.h' \
21988                                         | sed -e "$gl_make_literal_regex_sed"`
21989                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21990                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21991                    s|^/[^/]|//&|
21992                    p
21993                    q
21994                  }'
21995                                                             gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21996                       sed -n "$gl_absolute_header_sed"`'"'
21997
21998
21999 fi
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22001 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22002      fi
22003      NEXT_STDARG_H=$gl_cv_next_stdarg_h
22004
22005      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22006        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22007        gl_next_as_first_directive='<'stdarg.h'>'
22008      else
22009        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22010        gl_next_as_first_directive=$gl_cv_next_stdarg_h
22011      fi
22012      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22013
22014
22015
22016
22017             if test "$gl_cv_next_stdarg_h" = '""'; then
22018         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22019         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22020       fi
22021     else
22022
22023   saved_as_echo_n="$as_echo_n"
22024   as_echo_n=':'
22025   if ${gl_cv_func___va_copy+:} false; then :
22026   $as_echo_n "(cached) " >&6
22027 else
22028
22029         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22030 /* end confdefs.h.  */
22031 #include <stdarg.h>
22032 int
22033 main ()
22034 {
22035
22036 #ifndef __va_copy
22037 error, bail out
22038 #endif
22039
22040   ;
22041   return 0;
22042 }
22043 _ACEOF
22044 if ac_fn_c_try_compile "$LINENO"; then :
22045   gl_cv_func___va_copy=yes
22046 else
22047   gl_cv_func___va_copy=no
22048 fi
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050 fi
22051
22052   as_echo_n="$saved_as_echo_n"
22053
22054       if test $gl_cv_func___va_copy = yes; then
22055
22056 $as_echo "#define va_copy __va_copy" >>confdefs.h
22057
22058       else
22059
22060
22061 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22062
22063       fi
22064     fi
22065   fi
22066
22067    if test -n "$STDARG_H"; then
22068   GL_GENERATE_STDARG_H_TRUE=
22069   GL_GENERATE_STDARG_H_FALSE='#'
22070 else
22071   GL_GENERATE_STDARG_H_TRUE='#'
22072   GL_GENERATE_STDARG_H_FALSE=
22073 fi
22074
22075
22076
22077
22078
22079
22080   # Define two additional variables used in the Makefile substitution.
22081
22082   if test "$ac_cv_header_stdbool_h" = yes; then
22083     STDBOOL_H=''
22084   else
22085     STDBOOL_H='stdbool.h'
22086   fi
22087
22088    if test -n "$STDBOOL_H"; then
22089   GL_GENERATE_STDBOOL_H_TRUE=
22090   GL_GENERATE_STDBOOL_H_FALSE='#'
22091 else
22092   GL_GENERATE_STDBOOL_H_TRUE='#'
22093   GL_GENERATE_STDBOOL_H_FALSE=
22094 fi
22095
22096
22097   if test "$ac_cv_type__Bool" = yes; then
22098     HAVE__BOOL=1
22099   else
22100     HAVE__BOOL=0
22101   fi
22102
22103
22104
22105
22106
22107   STDDEF_H=
22108   if test $gt_cv_c_wchar_t = no; then
22109     HAVE_WCHAR_T=0
22110     STDDEF_H=stddef.h
22111   fi
22112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22113 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22114 if ${gl_cv_decl_null_works+:} false; then :
22115   $as_echo_n "(cached) " >&6
22116 else
22117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h.  */
22119 #include <stddef.h>
22120       int test[2 * (sizeof NULL == sizeof (void *)) -1];
22121
22122 int
22123 main ()
22124 {
22125
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 if ac_fn_c_try_compile "$LINENO"; then :
22131   gl_cv_decl_null_works=yes
22132 else
22133   gl_cv_decl_null_works=no
22134 fi
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22136 fi
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22138 $as_echo "$gl_cv_decl_null_works" >&6; }
22139   if test $gl_cv_decl_null_works = no; then
22140     REPLACE_NULL=1
22141     STDDEF_H=stddef.h
22142   fi
22143
22144    if test -n "$STDDEF_H"; then
22145   GL_GENERATE_STDDEF_H_TRUE=
22146   GL_GENERATE_STDDEF_H_FALSE='#'
22147 else
22148   GL_GENERATE_STDDEF_H_TRUE='#'
22149   GL_GENERATE_STDDEF_H_FALSE=
22150 fi
22151
22152   if test -n "$STDDEF_H"; then
22153
22154
22155
22156
22157
22158
22159
22160
22161      if test $gl_cv_have_include_next = yes; then
22162        gl_cv_next_stddef_h='<'stddef.h'>'
22163      else
22164        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22165 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22166 if ${gl_cv_next_stddef_h+:} false; then :
22167   $as_echo_n "(cached) " >&6
22168 else
22169
22170                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h.  */
22172 #include <stddef.h>
22173
22174 _ACEOF
22175                                                                                                                         case "$host_os" in
22176                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22177                  *)    gl_absname_cpp="$ac_cpp" ;;
22178                esac
22179
22180                case "$host_os" in
22181                  mingw*)
22182                                                                                                                                      gl_dirsep_regex='[/\\]'
22183                    ;;
22184                  *)
22185                    gl_dirsep_regex='\/'
22186                    ;;
22187                esac
22188                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22189
22190                gl_header_literal_regex=`echo 'stddef.h' \
22191                                         | sed -e "$gl_make_literal_regex_sed"`
22192                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22193                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22194                    s|^/[^/]|//&|
22195                    p
22196                    q
22197                  }'
22198                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22199                       sed -n "$gl_absolute_header_sed"`'"'
22200
22201
22202 fi
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22204 $as_echo "$gl_cv_next_stddef_h" >&6; }
22205      fi
22206      NEXT_STDDEF_H=$gl_cv_next_stddef_h
22207
22208      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22209        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22210        gl_next_as_first_directive='<'stddef.h'>'
22211      else
22212        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22213        gl_next_as_first_directive=$gl_cv_next_stddef_h
22214      fi
22215      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22216
22217
22218
22219
22220   fi
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234      if test $gl_cv_have_include_next = yes; then
22235        gl_cv_next_stdio_h='<'stdio.h'>'
22236      else
22237        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22238 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22239 if ${gl_cv_next_stdio_h+:} false; then :
22240   $as_echo_n "(cached) " >&6
22241 else
22242
22243                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22244 /* end confdefs.h.  */
22245 #include <stdio.h>
22246
22247 _ACEOF
22248                                                                                                                         case "$host_os" in
22249                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22250                  *)    gl_absname_cpp="$ac_cpp" ;;
22251                esac
22252
22253                case "$host_os" in
22254                  mingw*)
22255                                                                                                                                      gl_dirsep_regex='[/\\]'
22256                    ;;
22257                  *)
22258                    gl_dirsep_regex='\/'
22259                    ;;
22260                esac
22261                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22262
22263                gl_header_literal_regex=`echo 'stdio.h' \
22264                                         | sed -e "$gl_make_literal_regex_sed"`
22265                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22266                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22267                    s|^/[^/]|//&|
22268                    p
22269                    q
22270                  }'
22271                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22272                       sed -n "$gl_absolute_header_sed"`'"'
22273
22274
22275 fi
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22277 $as_echo "$gl_cv_next_stdio_h" >&6; }
22278      fi
22279      NEXT_STDIO_H=$gl_cv_next_stdio_h
22280
22281      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22282        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22283        gl_next_as_first_directive='<'stdio.h'>'
22284      else
22285        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22286        gl_next_as_first_directive=$gl_cv_next_stdio_h
22287      fi
22288      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22289
22290
22291
22292
22293
22294       GNULIB_FSCANF=1
22295   GNULIB_SCANF=1
22296   GNULIB_FGETC=1
22297   GNULIB_GETC=1
22298   GNULIB_GETCHAR=1
22299   GNULIB_FGETS=1
22300   GNULIB_FREAD=1
22301
22302
22303       GNULIB_FPRINTF=1
22304   GNULIB_PRINTF=1
22305   GNULIB_VFPRINTF=1
22306   GNULIB_VPRINTF=1
22307   GNULIB_FPUTC=1
22308   GNULIB_PUTC=1
22309   GNULIB_PUTCHAR=1
22310   GNULIB_FPUTS=1
22311   GNULIB_PUTS=1
22312   GNULIB_FWRITE=1
22313
22314
22315
22316
22317     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
22318     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22320 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22321 if eval \${$as_gl_Symbol+:} false; then :
22322   $as_echo_n "(cached) " >&6
22323 else
22324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h.  */
22326 #include <stdio.h>
22327
22328 int
22329 main ()
22330 {
22331 #undef $gl_func
22332   (void) $gl_func;
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 if ac_fn_c_try_compile "$LINENO"; then :
22338   eval "$as_gl_Symbol=yes"
22339 else
22340   eval "$as_gl_Symbol=no"
22341 fi
22342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 fi
22344 eval ac_res=\$$as_gl_Symbol
22345                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22346 $as_echo "$ac_res" >&6; }
22347     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22348   cat >>confdefs.h <<_ACEOF
22349 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22350 _ACEOF
22351
22352                      eval ac_cv_have_decl_$gl_func=yes
22353 fi
22354       done
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367      if test $gl_cv_have_include_next = yes; then
22368        gl_cv_next_stdlib_h='<'stdlib.h'>'
22369      else
22370        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22371 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22372 if ${gl_cv_next_stdlib_h+:} false; then :
22373   $as_echo_n "(cached) " >&6
22374 else
22375
22376                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h.  */
22378 #include <stdlib.h>
22379
22380 _ACEOF
22381                                                                                                                         case "$host_os" in
22382                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22383                  *)    gl_absname_cpp="$ac_cpp" ;;
22384                esac
22385
22386                case "$host_os" in
22387                  mingw*)
22388                                                                                                                                      gl_dirsep_regex='[/\\]'
22389                    ;;
22390                  *)
22391                    gl_dirsep_regex='\/'
22392                    ;;
22393                esac
22394                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22395
22396                gl_header_literal_regex=`echo 'stdlib.h' \
22397                                         | sed -e "$gl_make_literal_regex_sed"`
22398                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22399                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22400                    s|^/[^/]|//&|
22401                    p
22402                    q
22403                  }'
22404                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22405                       sed -n "$gl_absolute_header_sed"`'"'
22406
22407
22408 fi
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22410 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22411      fi
22412      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22413
22414      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22415        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22416        gl_next_as_first_directive='<'stdlib.h'>'
22417      else
22418        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22419        gl_next_as_first_directive=$gl_cv_next_stdlib_h
22420      fi
22421      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22422
22423
22424
22425
22426
22427
22428     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
22429     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22431 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22432 if eval \${$as_gl_Symbol+:} false; then :
22433   $as_echo_n "(cached) " >&6
22434 else
22435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22436 /* end confdefs.h.  */
22437 #include <stdlib.h>
22438 #if HAVE_SYS_LOADAVG_H
22439 # include <sys/loadavg.h>
22440 #endif
22441 #if HAVE_RANDOM_H
22442 # include <random.h>
22443 #endif
22444
22445 int
22446 main ()
22447 {
22448 #undef $gl_func
22449   (void) $gl_func;
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 if ac_fn_c_try_compile "$LINENO"; then :
22455   eval "$as_gl_Symbol=yes"
22456 else
22457   eval "$as_gl_Symbol=no"
22458 fi
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 fi
22461 eval ac_res=\$$as_gl_Symbol
22462                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22463 $as_echo "$ac_res" >&6; }
22464     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22465   cat >>confdefs.h <<_ACEOF
22466 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22467 _ACEOF
22468
22469                      eval ac_cv_have_decl_$gl_func=yes
22470 fi
22471       done
22472
22473
22474
22475
22476
22477
22478
22479   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
22480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
22481 $as_echo_n "checking for working strerror function... " >&6; }
22482 if ${gl_cv_func_working_strerror+:} false; then :
22483   $as_echo_n "(cached) " >&6
22484 else
22485   if test "$cross_compiling" = yes; then :
22486            gl_cv_func_working_strerror="guessing no"
22487 else
22488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h.  */
22490 #include <string.h>
22491
22492 int
22493 main ()
22494 {
22495 if (!*strerror (-2)) return 1;
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 if ac_fn_c_try_run "$LINENO"; then :
22501   gl_cv_func_working_strerror=yes
22502 else
22503   gl_cv_func_working_strerror=no
22504 fi
22505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22506   conftest.$ac_objext conftest.beam conftest.$ac_ext
22507 fi
22508
22509
22510 fi
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
22512 $as_echo "$gl_cv_func_working_strerror" >&6; }
22513     if test "$gl_cv_func_working_strerror" != yes; then
22514                   REPLACE_STRERROR=1
22515     fi
22516
22517   else
22518             REPLACE_STRERROR=1
22519   fi
22520
22521 if test $REPLACE_STRERROR = 1; then
22522
22523
22524
22525
22526
22527
22528
22529
22530   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
22531
22532 fi
22533
22534
22535 cat >>confdefs.h <<_ACEOF
22536 #define GNULIB_STRERROR 1
22537 _ACEOF
22538
22539
22540
22541
22542
22543
22544
22545           GNULIB_STRERROR=1
22546
22547
22548
22549
22550
22551 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
22552
22553
22554
22555
22556
22557 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
22558
22559
22560
22561
22562
22563
22564
22565
22566   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
22567
22568
22569
22570
22571
22572   :
22573
22574
22575
22576
22577
22578   if test $ac_cv_header_sys_socket_h != yes; then
22579                     for ac_header in winsock2.h
22580 do :
22581   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22582 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22583   cat >>confdefs.h <<_ACEOF
22584 #define HAVE_WINSOCK2_H 1
22585 _ACEOF
22586
22587 fi
22588
22589 done
22590
22591   fi
22592   if test "$ac_cv_header_winsock2_h" = yes; then
22593     HAVE_WINSOCK2_H=1
22594     UNISTD_H_HAVE_WINSOCK2_H=1
22595     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22596   else
22597     HAVE_WINSOCK2_H=0
22598   fi
22599
22600
22601 fi
22602
22603
22604
22605
22606
22607
22608
22609
22610   :
22611
22612
22613
22614
22615
22616
22617   :
22618
22619
22620
22621
22622
22623   if test $ac_cv_have_decl_strndup = no; then
22624     HAVE_DECL_STRNDUP=0
22625   fi
22626
22627   if test $ac_cv_func_strndup = yes; then
22628     HAVE_STRNDUP=1
22629     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
22630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
22631 $as_echo_n "checking for working strndup... " >&6; }
22632 if ${gl_cv_func_strndup_works+:} false; then :
22633   $as_echo_n "(cached) " >&6
22634 else
22635   if test "$cross_compiling" = yes; then :
22636
22637           case $host_os in
22638             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
22639             *)               gl_cv_func_strndup_works="guessing yes";;
22640           esac
22641
22642 else
22643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h.  */
22645
22646          #include <string.h>
22647                            #include <stdlib.h>
22648 int
22649 main ()
22650 {
22651
22652 #ifndef HAVE_DECL_STRNDUP
22653   extern
22654   #ifdef __cplusplus
22655   "C"
22656   #endif
22657   char *strndup (const char *, size_t);
22658 #endif
22659   char *s;
22660   s = strndup ("some longer string", 15);
22661   free (s);
22662   s = strndup ("shorter string", 13);
22663   return s[13] != '\0';
22664   ;
22665   return 0;
22666 }
22667 _ACEOF
22668 if ac_fn_c_try_run "$LINENO"; then :
22669   gl_cv_func_strndup_works=yes
22670 else
22671   gl_cv_func_strndup_works=no
22672 fi
22673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22674   conftest.$ac_objext conftest.beam conftest.$ac_ext
22675 fi
22676
22677 fi
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
22679 $as_echo "$gl_cv_func_strndup_works" >&6; }
22680     case $gl_cv_func_strndup_works in
22681       *no) REPLACE_STRNDUP=1 ;;
22682     esac
22683   else
22684     HAVE_STRNDUP=0
22685   fi
22686
22687 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
22688
22689
22690
22691
22692
22693
22694
22695
22696   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
22697
22698 fi
22699
22700
22701
22702
22703
22704           GNULIB_STRNDUP=1
22705
22706
22707
22708
22709
22710 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720   :
22721
22722
22723
22724
22725
22726   if test $ac_cv_have_decl_strnlen = no; then
22727     HAVE_DECL_STRNLEN=0
22728   else
22729
22730          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
22731 $as_echo_n "checking for working strnlen... " >&6; }
22732 if ${ac_cv_func_strnlen_working+:} false; then :
22733   $as_echo_n "(cached) " >&6
22734 else
22735   if test "$cross_compiling" = yes; then :
22736   # Guess no on AIX systems, yes otherwise.
22737                 case "$host_os" in
22738                   aix*) ac_cv_func_strnlen_working=no;;
22739                   *)    ac_cv_func_strnlen_working=yes;;
22740                 esac
22741 else
22742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h.  */
22744 $ac_includes_default
22745 int
22746 main ()
22747 {
22748
22749 #define S "foobar"
22750 #define S_LEN (sizeof S - 1)
22751
22752   /* At least one implementation is buggy: that of AIX 4.3 would
22753      give strnlen (S, 1) == 3.  */
22754
22755   int i;
22756   for (i = 0; i < S_LEN + 1; ++i)
22757     {
22758       int expected = i <= S_LEN ? i : S_LEN;
22759       if (strnlen (S, i) != expected)
22760         return 1;
22761     }
22762   return 0;
22763
22764   ;
22765   return 0;
22766 }
22767 _ACEOF
22768 if ac_fn_c_try_run "$LINENO"; then :
22769   ac_cv_func_strnlen_working=yes
22770 else
22771   ac_cv_func_strnlen_working=no
22772 fi
22773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22774   conftest.$ac_objext conftest.beam conftest.$ac_ext
22775 fi
22776
22777 fi
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
22779 $as_echo "$ac_cv_func_strnlen_working" >&6; }
22780 test $ac_cv_func_strnlen_working = no && :
22781
22782
22783     if test $ac_cv_func_strnlen_working = no; then
22784       REPLACE_STRNLEN=1
22785     fi
22786   fi
22787
22788 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
22789
22790
22791
22792
22793
22794
22795
22796
22797   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
22798
22799   :
22800 fi
22801
22802
22803
22804
22805
22806           GNULIB_STRNLEN=1
22807
22808
22809
22810
22811
22812 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822   :
22823
22824
22825
22826
22827
22828   if test $ac_cv_have_decl_strsignal = no; then
22829     HAVE_DECL_STRSIGNAL=0
22830   fi
22831
22832   for ac_func in strsignal
22833 do :
22834   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
22835 if test "x$ac_cv_func_strsignal" = xyes; then :
22836   cat >>confdefs.h <<_ACEOF
22837 #define HAVE_STRSIGNAL 1
22838 _ACEOF
22839
22840 fi
22841 done
22842
22843   if test $ac_cv_func_strsignal = yes; then
22844     HAVE_STRSIGNAL=1
22845             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
22846 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
22847 if ${gl_cv_func_working_strsignal+:} false; then :
22848   $as_echo_n "(cached) " >&6
22849 else
22850   if test "$cross_compiling" = yes; then :
22851   case "$host_os" in
22852             solaris* | aix*) gl_cv_func_working_strsignal=no;;
22853             *)               gl_cv_func_working_strsignal="guessing yes";;
22854           esac
22855 else
22856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h.  */
22858 #include <string.h>
22859 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
22860
22861 int
22862 main ()
22863 {
22864 int result = 0;
22865               char *s = strsignal (-1);
22866               if (s == (char *) 0)
22867                 result |= 1;
22868               if (s == (char *) -1)
22869                 result |= 2;
22870               return result;
22871
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 if ac_fn_c_try_run "$LINENO"; then :
22877   gl_cv_func_working_strsignal=yes
22878 else
22879   gl_cv_func_working_strsignal=no
22880 fi
22881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22882   conftest.$ac_objext conftest.beam conftest.$ac_ext
22883 fi
22884
22885 fi
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
22887 $as_echo "$gl_cv_func_working_strsignal" >&6; }
22888     if test "$gl_cv_func_working_strsignal" = no; then
22889       REPLACE_STRSIGNAL=1
22890     fi
22891   else
22892     HAVE_STRSIGNAL=0
22893   fi
22894
22895 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
22896
22897
22898
22899
22900
22901
22902
22903
22904   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
22905
22906
22907
22908   :
22909
22910
22911
22912
22913
22914
22915   ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
22916 "
22917 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
22918   ac_have_decl=1
22919 else
22920   ac_have_decl=0
22921 fi
22922
22923 cat >>confdefs.h <<_ACEOF
22924 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
22925 _ACEOF
22926
22927
22928 fi
22929
22930
22931
22932
22933
22934           GNULIB_STRSIGNAL=1
22935
22936
22937
22938
22939
22940 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
22941
22942
22943
22944
22945
22946
22947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
22948 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
22949 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
22950   $as_echo_n "(cached) " >&6
22951 else
22952
22953                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h.  */
22955 #include <sys/select.h>
22956 int
22957 main ()
22958 {
22959 struct timeval b;
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 if ac_fn_c_try_compile "$LINENO"; then :
22965   gl_cv_header_sys_select_h_selfcontained=yes
22966 else
22967   gl_cv_header_sys_select_h_selfcontained=no
22968 fi
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
22971         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22972 /* end confdefs.h.  */
22973 #include <sys/select.h>
22974 int
22975 main ()
22976 {
22977 int memset; int bzero;
22978   ;
22979   return 0;
22980 }
22981
22982 _ACEOF
22983 if ac_fn_c_try_compile "$LINENO"; then :
22984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22985 /* end confdefs.h.  */
22986 #include <sys/select.h>
22987 int
22988 main ()
22989 {
22990
22991                   #undef memset
22992                   #define memset nonexistent_memset
22993                   extern
22994                   #ifdef __cplusplus
22995                   "C"
22996                   #endif
22997                   void *memset (void *, int, unsigned long);
22998                   #undef bzero
22999                   #define bzero nonexistent_bzero
23000                   extern
23001                   #ifdef __cplusplus
23002                   "C"
23003                   #endif
23004                   void bzero (void *, unsigned long);
23005                   fd_set fds;
23006                   FD_ZERO (&fds);
23007
23008   ;
23009   return 0;
23010 }
23011
23012 _ACEOF
23013 if ac_fn_c_try_link "$LINENO"; then :
23014
23015 else
23016   gl_cv_header_sys_select_h_selfcontained=no
23017 fi
23018 rm -f core conftest.err conftest.$ac_objext \
23019     conftest$ac_exeext conftest.$ac_ext
23020
23021 fi
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023       fi
23024
23025 fi
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23027 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23028
23029
23030
23031
23032
23033
23034   :
23035
23036
23037
23038
23039
23040
23041
23042
23043      if test $gl_cv_have_include_next = yes; then
23044        gl_cv_next_sys_select_h='<'sys/select.h'>'
23045      else
23046        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23047 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23048 if ${gl_cv_next_sys_select_h+:} false; then :
23049   $as_echo_n "(cached) " >&6
23050 else
23051
23052              if test $ac_cv_header_sys_select_h = yes; then
23053
23054
23055                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h.  */
23057 #include <sys/select.h>
23058
23059 _ACEOF
23060                                                                                                                         case "$host_os" in
23061                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23062                  *)    gl_absname_cpp="$ac_cpp" ;;
23063                esac
23064
23065                case "$host_os" in
23066                  mingw*)
23067                                                                                                                                      gl_dirsep_regex='[/\\]'
23068                    ;;
23069                  *)
23070                    gl_dirsep_regex='\/'
23071                    ;;
23072                esac
23073                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23074
23075                gl_header_literal_regex=`echo 'sys/select.h' \
23076                                         | sed -e "$gl_make_literal_regex_sed"`
23077                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23078                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23079                    s|^/[^/]|//&|
23080                    p
23081                    q
23082                  }'
23083                                                             gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23084                       sed -n "$gl_absolute_header_sed"`'"'
23085           else
23086                gl_cv_next_sys_select_h='<'sys/select.h'>'
23087              fi
23088
23089
23090 fi
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23092 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23093      fi
23094      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23095
23096      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23097        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23098        gl_next_as_first_directive='<'sys/select.h'>'
23099      else
23100        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23101        gl_next_as_first_directive=$gl_cv_next_sys_select_h
23102      fi
23103      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23104
23105
23106
23107
23108   if test $ac_cv_header_sys_select_h = yes; then
23109     HAVE_SYS_SELECT_H=1
23110   else
23111     HAVE_SYS_SELECT_H=0
23112   fi
23113
23114
23115
23116
23117
23118   :
23119
23120
23121
23122
23123
23124   if test $ac_cv_header_sys_socket_h != yes; then
23125                     for ac_header in winsock2.h
23126 do :
23127   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23128 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23129   cat >>confdefs.h <<_ACEOF
23130 #define HAVE_WINSOCK2_H 1
23131 _ACEOF
23132
23133 fi
23134
23135 done
23136
23137   fi
23138   if test "$ac_cv_header_winsock2_h" = yes; then
23139     HAVE_WINSOCK2_H=1
23140     UNISTD_H_HAVE_WINSOCK2_H=1
23141     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23142   else
23143     HAVE_WINSOCK2_H=0
23144   fi
23145
23146
23147
23148
23149     for gl_func in pselect select; do
23150     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23152 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23153 if eval \${$as_gl_Symbol+:} false; then :
23154   $as_echo_n "(cached) " >&6
23155 else
23156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23157 /* end confdefs.h.  */
23158
23159 /* Some systems require prerequisite headers.  */
23160 #include <sys/types.h>
23161 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
23162 # include <sys/time.h>
23163 #endif
23164 #include <sys/select.h>
23165
23166 int
23167 main ()
23168 {
23169 #undef $gl_func
23170   (void) $gl_func;
23171   ;
23172   return 0;
23173 }
23174 _ACEOF
23175 if ac_fn_c_try_compile "$LINENO"; then :
23176   eval "$as_gl_Symbol=yes"
23177 else
23178   eval "$as_gl_Symbol=no"
23179 fi
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181 fi
23182 eval ac_res=\$$as_gl_Symbol
23183                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23184 $as_echo "$ac_res" >&6; }
23185     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23186   cat >>confdefs.h <<_ACEOF
23187 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23188 _ACEOF
23189
23190                      eval ac_cv_have_decl_$gl_func=yes
23191 fi
23192       done
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209   :
23210
23211
23212
23213
23214
23215
23216
23217
23218      if test $gl_cv_have_include_next = yes; then
23219        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23220      else
23221        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23222 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23223 if ${gl_cv_next_sys_stat_h+:} false; then :
23224   $as_echo_n "(cached) " >&6
23225 else
23226
23227              if test $ac_cv_header_sys_stat_h = yes; then
23228
23229
23230                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23231 /* end confdefs.h.  */
23232 #include <sys/stat.h>
23233
23234 _ACEOF
23235                                                                                                                         case "$host_os" in
23236                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23237                  *)    gl_absname_cpp="$ac_cpp" ;;
23238                esac
23239
23240                case "$host_os" in
23241                  mingw*)
23242                                                                                                                                      gl_dirsep_regex='[/\\]'
23243                    ;;
23244                  *)
23245                    gl_dirsep_regex='\/'
23246                    ;;
23247                esac
23248                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23249
23250                gl_header_literal_regex=`echo 'sys/stat.h' \
23251                                         | sed -e "$gl_make_literal_regex_sed"`
23252                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23253                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23254                    s|^/[^/]|//&|
23255                    p
23256                    q
23257                  }'
23258                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23259                       sed -n "$gl_absolute_header_sed"`'"'
23260           else
23261                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23262              fi
23263
23264
23265 fi
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23267 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23268      fi
23269      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23270
23271      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23272        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23273        gl_next_as_first_directive='<'sys/stat.h'>'
23274      else
23275        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23276        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23277      fi
23278      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23279
23280
23281
23282
23283
23284
23285
23286       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23287      #include <sys/stat.h>
23288 "
23289 if test "x$ac_cv_type_nlink_t" = xyes; then :
23290
23291 else
23292
23293 $as_echo "#define nlink_t int" >>confdefs.h
23294
23295 fi
23296
23297
23298
23299     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
23300     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23302 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23303 if eval \${$as_gl_Symbol+:} false; then :
23304   $as_echo_n "(cached) " >&6
23305 else
23306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h.  */
23308 #include <sys/stat.h>
23309
23310 int
23311 main ()
23312 {
23313 #undef $gl_func
23314   (void) $gl_func;
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 if ac_fn_c_try_compile "$LINENO"; then :
23320   eval "$as_gl_Symbol=yes"
23321 else
23322   eval "$as_gl_Symbol=no"
23323 fi
23324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23325 fi
23326 eval ac_res=\$$as_gl_Symbol
23327                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23328 $as_echo "$ac_res" >&6; }
23329     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23330   cat >>confdefs.h <<_ACEOF
23331 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23332 _ACEOF
23333
23334                      eval ac_cv_have_decl_$gl_func=yes
23335 fi
23336       done
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353   :
23354
23355
23356
23357
23358
23359
23360
23361
23362      if test $gl_cv_have_include_next = yes; then
23363        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23364      else
23365        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
23366 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
23367 if ${gl_cv_next_sys_wait_h+:} false; then :
23368   $as_echo_n "(cached) " >&6
23369 else
23370
23371              if test $ac_cv_header_sys_wait_h = yes; then
23372
23373
23374                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23375 /* end confdefs.h.  */
23376 #include <sys/wait.h>
23377
23378 _ACEOF
23379                                                                                                                         case "$host_os" in
23380                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23381                  *)    gl_absname_cpp="$ac_cpp" ;;
23382                esac
23383
23384                case "$host_os" in
23385                  mingw*)
23386                                                                                                                                      gl_dirsep_regex='[/\\]'
23387                    ;;
23388                  *)
23389                    gl_dirsep_regex='\/'
23390                    ;;
23391                esac
23392                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23393
23394                gl_header_literal_regex=`echo 'sys/wait.h' \
23395                                         | sed -e "$gl_make_literal_regex_sed"`
23396                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23397                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23398                    s|^/[^/]|//&|
23399                    p
23400                    q
23401                  }'
23402                                                             gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23403                       sed -n "$gl_absolute_header_sed"`'"'
23404           else
23405                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23406              fi
23407
23408
23409 fi
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
23411 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
23412      fi
23413      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
23414
23415      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23416        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23417        gl_next_as_first_directive='<'sys/wait.h'>'
23418      else
23419        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23420        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
23421      fi
23422      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
23423
23424
23425
23426
23427
23428
23429
23430
23431     for gl_func in waitpid; do
23432     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23434 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23435 if eval \${$as_gl_Symbol+:} false; then :
23436   $as_echo_n "(cached) " >&6
23437 else
23438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23439 /* end confdefs.h.  */
23440 #include <sys/wait.h>
23441 int
23442 main ()
23443 {
23444 #undef $gl_func
23445   (void) $gl_func;
23446   ;
23447   return 0;
23448 }
23449 _ACEOF
23450 if ac_fn_c_try_compile "$LINENO"; then :
23451   eval "$as_gl_Symbol=yes"
23452 else
23453   eval "$as_gl_Symbol=no"
23454 fi
23455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456 fi
23457 eval ac_res=\$$as_gl_Symbol
23458                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23459 $as_echo "$ac_res" >&6; }
23460     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23461   cat >>confdefs.h <<_ACEOF
23462 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23463 _ACEOF
23464
23465                      eval ac_cv_have_decl_$gl_func=yes
23466 fi
23467       done
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491   :
23492
23493
23494
23495
23496
23497
23498
23499
23500      if test $gl_cv_have_include_next = yes; then
23501        gl_cv_next_unistd_h='<'unistd.h'>'
23502      else
23503        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23504 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23505 if ${gl_cv_next_unistd_h+:} false; then :
23506   $as_echo_n "(cached) " >&6
23507 else
23508
23509              if test $ac_cv_header_unistd_h = yes; then
23510
23511
23512                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h.  */
23514 #include <unistd.h>
23515
23516 _ACEOF
23517                                                                                                                         case "$host_os" in
23518                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23519                  *)    gl_absname_cpp="$ac_cpp" ;;
23520                esac
23521
23522                case "$host_os" in
23523                  mingw*)
23524                                                                                                                                      gl_dirsep_regex='[/\\]'
23525                    ;;
23526                  *)
23527                    gl_dirsep_regex='\/'
23528                    ;;
23529                esac
23530                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23531
23532                gl_header_literal_regex=`echo 'unistd.h' \
23533                                         | sed -e "$gl_make_literal_regex_sed"`
23534                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23535                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23536                    s|^/[^/]|//&|
23537                    p
23538                    q
23539                  }'
23540                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23541                       sed -n "$gl_absolute_header_sed"`'"'
23542           else
23543                gl_cv_next_unistd_h='<'unistd.h'>'
23544              fi
23545
23546
23547 fi
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23549 $as_echo "$gl_cv_next_unistd_h" >&6; }
23550      fi
23551      NEXT_UNISTD_H=$gl_cv_next_unistd_h
23552
23553      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23554        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23555        gl_next_as_first_directive='<'unistd.h'>'
23556      else
23557        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23558        gl_next_as_first_directive=$gl_cv_next_unistd_h
23559      fi
23560      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23561
23562
23563
23564
23565   if test $ac_cv_header_unistd_h = yes; then
23566     HAVE_UNISTD_H=1
23567   else
23568     HAVE_UNISTD_H=0
23569   fi
23570
23571
23572
23573
23574
23575     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
23576     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23578 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23579 if eval \${$as_gl_Symbol+:} false; then :
23580   $as_echo_n "(cached) " >&6
23581 else
23582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23583 /* end confdefs.h.  */
23584
23585 #if HAVE_UNISTD_H
23586 # include <unistd.h>
23587 #endif
23588 /* Some systems declare various items in the wrong headers.  */
23589 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23590 # include <fcntl.h>
23591 # include <stdio.h>
23592 # include <stdlib.h>
23593 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23594 #  include <io.h>
23595 # endif
23596 #endif
23597
23598 int
23599 main ()
23600 {
23601 #undef $gl_func
23602   (void) $gl_func;
23603   ;
23604   return 0;
23605 }
23606 _ACEOF
23607 if ac_fn_c_try_compile "$LINENO"; then :
23608   eval "$as_gl_Symbol=yes"
23609 else
23610   eval "$as_gl_Symbol=no"
23611 fi
23612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23613 fi
23614 eval ac_res=\$$as_gl_Symbol
23615                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23616 $as_echo "$ac_res" >&6; }
23617     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23618   cat >>confdefs.h <<_ACEOF
23619 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23620 _ACEOF
23621
23622                      eval ac_cv_have_decl_$gl_func=yes
23623 fi
23624       done
23625
23626
23627
23628
23629
23630   :
23631
23632
23633
23634
23635
23636   if test $ac_cv_have_decl_unsetenv = no; then
23637     HAVE_DECL_UNSETENV=0
23638   fi
23639   for ac_func in unsetenv
23640 do :
23641   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
23642 if test "x$ac_cv_func_unsetenv" = xyes; then :
23643   cat >>confdefs.h <<_ACEOF
23644 #define HAVE_UNSETENV 1
23645 _ACEOF
23646
23647 fi
23648 done
23649
23650   if test $ac_cv_func_unsetenv = no; then
23651     HAVE_UNSETENV=0
23652   else
23653     HAVE_UNSETENV=1
23654         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
23655 $as_echo_n "checking for unsetenv() return type... " >&6; }
23656 if ${gt_cv_func_unsetenv_ret+:} false; then :
23657   $as_echo_n "(cached) " >&6
23658 else
23659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23660 /* end confdefs.h.  */
23661
23662 #undef _BSD
23663 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
23664 #include <stdlib.h>
23665 extern
23666 #ifdef __cplusplus
23667 "C"
23668 #endif
23669 int unsetenv (const char *name);
23670
23671 int
23672 main ()
23673 {
23674
23675   ;
23676   return 0;
23677 }
23678 _ACEOF
23679 if ac_fn_c_try_compile "$LINENO"; then :
23680   gt_cv_func_unsetenv_ret='int'
23681 else
23682   gt_cv_func_unsetenv_ret='void'
23683 fi
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685 fi
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
23687 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
23688     if test $gt_cv_func_unsetenv_ret = 'void'; then
23689
23690 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
23691
23692       REPLACE_UNSETENV=1
23693     fi
23694
23695                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
23696 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
23697 if ${gl_cv_func_unsetenv_works+:} false; then :
23698   $as_echo_n "(cached) " >&6
23699 else
23700   if test "$cross_compiling" = yes; then :
23701   gl_cv_func_unsetenv_works="guessing no"
23702 else
23703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23704 /* end confdefs.h.  */
23705
23706        #include <stdlib.h>
23707        #include <errno.h>
23708        extern char **environ;
23709
23710 int
23711 main ()
23712 {
23713
23714        char entry1[] = "a=1";
23715        char entry2[] = "b=2";
23716        char *env[] = { entry1, entry2, NULL };
23717        if (putenv ((char *) "a=1")) return 1;
23718        if (putenv (entry2)) return 2;
23719        entry2[0] = 'a';
23720        unsetenv ("a");
23721        if (getenv ("a")) return 3;
23722        if (!unsetenv ("") || errno != EINVAL) return 4;
23723        entry2[0] = 'b';
23724        environ = env;
23725        if (!getenv ("a")) return 5;
23726        entry2[0] = 'a';
23727        unsetenv ("a");
23728        if (getenv ("a")) return 6;
23729
23730   ;
23731   return 0;
23732 }
23733 _ACEOF
23734 if ac_fn_c_try_run "$LINENO"; then :
23735   gl_cv_func_unsetenv_works=yes
23736 else
23737   gl_cv_func_unsetenv_works=no
23738 fi
23739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23740   conftest.$ac_objext conftest.beam conftest.$ac_ext
23741 fi
23742
23743 fi
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
23745 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
23746     if test "$gl_cv_func_unsetenv_works" != yes; then
23747       REPLACE_UNSETENV=1
23748     fi
23749   fi
23750
23751 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
23752
23753
23754
23755
23756
23757
23758
23759
23760   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
23761
23762
23763
23764
23765   :
23766
23767
23768
23769
23770
23771
23772 fi
23773
23774
23775
23776
23777
23778           GNULIB_UNSETENV=1
23779
23780
23781
23782
23783
23784 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
23785
23786
23787
23788
23789
23790   :
23791
23792
23793
23794
23795
23796   if test $ac_cv_func_vasnprintf = no; then
23797
23798
23799   :
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
23844
23845   if test $ac_cv_func_vasnprintf = yes; then
23846
23847 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
23848
23849   fi
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23862 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23863
23864 else
23865
23866 $as_echo "#define ptrdiff_t long" >>confdefs.h
23867
23868
23869 fi
23870
23871
23872
23873
23874
23875
23876
23877   fi
23878
23879
23880   for ac_func in vasprintf
23881 do :
23882   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
23883 if test "x$ac_cv_func_vasprintf" = xyes; then :
23884   cat >>confdefs.h <<_ACEOF
23885 #define HAVE_VASPRINTF 1
23886 _ACEOF
23887
23888 fi
23889 done
23890
23891   if test $ac_cv_func_vasprintf = no; then
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
23912
23913
23914   if test $ac_cv_func_vasprintf = yes; then
23915     REPLACE_VASPRINTF=1
23916   else
23917     HAVE_VASPRINTF=0
23918   fi
23919
23920
23921
23922
23923
23924
23925
23926
23927   fi
23928
23929
23930
23931
23932
23933
23934           GNULIB_VASPRINTF=1
23935
23936
23937
23938
23939
23940 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
23941
23942
23943
23944
23945
23946   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
23947
23948
23949
23950   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
23951
23952
23953
23954   HAVE_WAITPID=1
23955   case $host_os in
23956     mingw*) HAVE_WAITPID=0 ;;
23957   esac
23958
23959 if test $HAVE_WAITPID = 0; then
23960
23961
23962
23963
23964
23965
23966
23967
23968   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
23969
23970 fi
23971
23972
23973
23974
23975
23976           GNULIB_WAITPID=1
23977
23978
23979
23980
23981
23982 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995   :
23996
23997
23998
23999
24000
24001
24002
24003
24004      if test $gl_cv_have_include_next = yes; then
24005        gl_cv_next_wchar_h='<'wchar.h'>'
24006      else
24007        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24008 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24009 if ${gl_cv_next_wchar_h+:} false; then :
24010   $as_echo_n "(cached) " >&6
24011 else
24012
24013              if test $ac_cv_header_wchar_h = yes; then
24014
24015
24016                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24017 /* end confdefs.h.  */
24018 #include <wchar.h>
24019
24020 _ACEOF
24021                                                                                                                         case "$host_os" in
24022                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24023                  *)    gl_absname_cpp="$ac_cpp" ;;
24024                esac
24025
24026                case "$host_os" in
24027                  mingw*)
24028                                                                                                                                      gl_dirsep_regex='[/\\]'
24029                    ;;
24030                  *)
24031                    gl_dirsep_regex='\/'
24032                    ;;
24033                esac
24034                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24035
24036                gl_header_literal_regex=`echo 'wchar.h' \
24037                                         | sed -e "$gl_make_literal_regex_sed"`
24038                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24039                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24040                    s|^/[^/]|//&|
24041                    p
24042                    q
24043                  }'
24044                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24045                       sed -n "$gl_absolute_header_sed"`'"'
24046           else
24047                gl_cv_next_wchar_h='<'wchar.h'>'
24048              fi
24049
24050
24051 fi
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24053 $as_echo "$gl_cv_next_wchar_h" >&6; }
24054      fi
24055      NEXT_WCHAR_H=$gl_cv_next_wchar_h
24056
24057      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24058        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24059        gl_next_as_first_directive='<'wchar.h'>'
24060      else
24061        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24062        gl_next_as_first_directive=$gl_cv_next_wchar_h
24063      fi
24064      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24065
24066
24067
24068
24069   if test $ac_cv_header_wchar_h = yes; then
24070     HAVE_WCHAR_H=1
24071   else
24072     HAVE_WCHAR_H=0
24073   fi
24074
24075
24076
24077
24078
24079   if test $gt_cv_c_wint_t = yes; then
24080     HAVE_WINT_T=1
24081   else
24082     HAVE_WINT_T=0
24083   fi
24084
24085
24086
24087     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
24088     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24090 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24091 if eval \${$as_gl_Symbol+:} false; then :
24092   $as_echo_n "(cached) " >&6
24093 else
24094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24095 /* end confdefs.h.  */
24096
24097 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24098    <wchar.h>.
24099    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24100    included before <wchar.h>.  */
24101 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24102 # include <stddef.h>
24103 # include <stdio.h>
24104 # include <time.h>
24105 #endif
24106 #include <wchar.h>
24107
24108 int
24109 main ()
24110 {
24111 #undef $gl_func
24112   (void) $gl_func;
24113   ;
24114   return 0;
24115 }
24116 _ACEOF
24117 if ac_fn_c_try_compile "$LINENO"; then :
24118   eval "$as_gl_Symbol=yes"
24119 else
24120   eval "$as_gl_Symbol=no"
24121 fi
24122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123 fi
24124 eval ac_res=\$$as_gl_Symbol
24125                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24126 $as_echo "$ac_res" >&6; }
24127     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24128   cat >>confdefs.h <<_ACEOF
24129 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24130 _ACEOF
24131
24132                      eval ac_cv_have_decl_$gl_func=yes
24133 fi
24134       done
24135
24136
24137
24138
24139
24140   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24141     REPLACE_WRITE=1
24142   fi
24143
24144
24145
24146 if test $REPLACE_WRITE = 1; then
24147
24148
24149
24150
24151
24152
24153
24154
24155   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
24156
24157
24158
24159
24160 fi
24161
24162
24163
24164
24165
24166           GNULIB_WRITE=1
24167
24168
24169
24170
24171
24172 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
24173
24174
24175
24176
24177
24178
24179   :
24180
24181
24182   :
24183
24184
24185
24186
24187
24188   for ac_header in stdint.h
24189 do :
24190   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24191 if test "x$ac_cv_header_stdint_h" = xyes; then :
24192   cat >>confdefs.h <<_ACEOF
24193 #define HAVE_STDINT_H 1
24194 _ACEOF
24195
24196 fi
24197
24198 done
24199
24200
24201
24202
24203   :
24204
24205
24206
24207
24208
24209
24210
24211   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
24212
24213   # End of code from modules
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223   gltests_libdeps=
24224   gltests_ltlibdeps=
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234   gl_source_base='tests'
24235   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
24236
24237   gl_module_indicator_condition=$gltests_WITNESS
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248 for ac_header in fcntl.h
24249 do :
24250   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24251 if test "x$ac_cv_header_fcntl_h" = xyes; then :
24252   cat >>confdefs.h <<_ACEOF
24253 #define HAVE_FCNTL_H 1
24254 _ACEOF
24255
24256 fi
24257
24258 done
24259
24260
24261 # Checks for structures and compiler characteristics.
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24263 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24264 if ${ac_cv_c_const+:} false; then :
24265   $as_echo_n "(cached) " >&6
24266 else
24267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h.  */
24269
24270 int
24271 main ()
24272 {
24273
24274 #ifndef __cplusplus
24275   /* Ultrix mips cc rejects this sort of thing.  */
24276   typedef int charset[2];
24277   const charset cs = { 0, 0 };
24278   /* SunOS 4.1.1 cc rejects this.  */
24279   char const *const *pcpcc;
24280   char **ppc;
24281   /* NEC SVR4.0.2 mips cc rejects this.  */
24282   struct point {int x, y;};
24283   static struct point const zero = {0,0};
24284   /* AIX XL C 1.02.0.0 rejects this.
24285      It does not let you subtract one const X* pointer from another in
24286      an arm of an if-expression whose if-part is not a constant
24287      expression */
24288   const char *g = "string";
24289   pcpcc = &g + (g ? g-g : 0);
24290   /* HPUX 7.0 cc rejects these. */
24291   ++pcpcc;
24292   ppc = (char**) pcpcc;
24293   pcpcc = (char const *const *) ppc;
24294   { /* SCO 3.2v4 cc rejects this sort of thing.  */
24295     char tx;
24296     char *t = &tx;
24297     char const *s = 0 ? (char *) 0 : (char const *) 0;
24298
24299     *t++ = 0;
24300     if (s) return 0;
24301   }
24302   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24303     int x[] = {25, 17};
24304     const int *foo = &x[0];
24305     ++foo;
24306   }
24307   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24308     typedef const int *iptr;
24309     iptr p = 0;
24310     ++p;
24311   }
24312   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24313        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24314     struct s { int j; const int *ap[3]; } bx;
24315     struct s *b = &bx; b->j = 5;
24316   }
24317   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24318     const int foo = 10;
24319     if (!foo) return 0;
24320   }
24321   return !cs[0] && !zero.x;
24322 #endif
24323
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 if ac_fn_c_try_compile "$LINENO"; then :
24329   ac_cv_c_const=yes
24330 else
24331   ac_cv_c_const=no
24332 fi
24333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24334 fi
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24336 $as_echo "$ac_cv_c_const" >&6; }
24337 if test $ac_cv_c_const = no; then
24338
24339 $as_echo "#define const /**/" >>confdefs.h
24340
24341 fi
24342
24343 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24344 if test "x$ac_cv_type_pid_t" = xyes; then :
24345
24346 else
24347
24348 cat >>confdefs.h <<_ACEOF
24349 #define pid_t int
24350 _ACEOF
24351
24352 fi
24353
24354 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24355 if test "x$ac_cv_type_size_t" = xyes; then :
24356
24357 else
24358
24359 cat >>confdefs.h <<_ACEOF
24360 #define size_t unsigned int
24361 _ACEOF
24362
24363 fi
24364
24365
24366 # We must have fork(2) support.
24367 for ac_header in vfork.h
24368 do :
24369   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24370 if test "x$ac_cv_header_vfork_h" = xyes; then :
24371   cat >>confdefs.h <<_ACEOF
24372 #define HAVE_VFORK_H 1
24373 _ACEOF
24374
24375 fi
24376
24377 done
24378
24379 for ac_func in fork vfork
24380 do :
24381   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24383 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24384   cat >>confdefs.h <<_ACEOF
24385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24386 _ACEOF
24387
24388 fi
24389 done
24390
24391 if test "x$ac_cv_func_fork" = xyes; then
24392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24393 $as_echo_n "checking for working fork... " >&6; }
24394 if ${ac_cv_func_fork_works+:} false; then :
24395   $as_echo_n "(cached) " >&6
24396 else
24397   if test "$cross_compiling" = yes; then :
24398   ac_cv_func_fork_works=cross
24399 else
24400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h.  */
24402 $ac_includes_default
24403 int
24404 main ()
24405 {
24406
24407           /* By Ruediger Kuhlmann. */
24408           return fork () < 0;
24409
24410   ;
24411   return 0;
24412 }
24413 _ACEOF
24414 if ac_fn_c_try_run "$LINENO"; then :
24415   ac_cv_func_fork_works=yes
24416 else
24417   ac_cv_func_fork_works=no
24418 fi
24419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24420   conftest.$ac_objext conftest.beam conftest.$ac_ext
24421 fi
24422
24423 fi
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24425 $as_echo "$ac_cv_func_fork_works" >&6; }
24426
24427 else
24428   ac_cv_func_fork_works=$ac_cv_func_fork
24429 fi
24430 if test "x$ac_cv_func_fork_works" = xcross; then
24431   case $host in
24432     *-*-amigaos* | *-*-msdosdjgpp*)
24433       # Override, as these systems have only a dummy fork() stub
24434       ac_cv_func_fork_works=no
24435       ;;
24436     *)
24437       ac_cv_func_fork_works=yes
24438       ;;
24439   esac
24440   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24441 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24442 fi
24443 ac_cv_func_vfork_works=$ac_cv_func_vfork
24444 if test "x$ac_cv_func_vfork" = xyes; then
24445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24446 $as_echo_n "checking for working vfork... " >&6; }
24447 if ${ac_cv_func_vfork_works+:} false; then :
24448   $as_echo_n "(cached) " >&6
24449 else
24450   if test "$cross_compiling" = yes; then :
24451   ac_cv_func_vfork_works=cross
24452 else
24453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24454 /* end confdefs.h.  */
24455 /* Thanks to Paul Eggert for this test.  */
24456 $ac_includes_default
24457 #include <sys/wait.h>
24458 #ifdef HAVE_VFORK_H
24459 # include <vfork.h>
24460 #endif
24461 /* On some sparc systems, changes by the child to local and incoming
24462    argument registers are propagated back to the parent.  The compiler
24463    is told about this with #include <vfork.h>, but some compilers
24464    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24465    static variable whose address is put into a register that is
24466    clobbered by the vfork.  */
24467 static void
24468 #ifdef __cplusplus
24469 sparc_address_test (int arg)
24470 # else
24471 sparc_address_test (arg) int arg;
24472 #endif
24473 {
24474   static pid_t child;
24475   if (!child) {
24476     child = vfork ();
24477     if (child < 0) {
24478       perror ("vfork");
24479       _exit(2);
24480     }
24481     if (!child) {
24482       arg = getpid();
24483       write(-1, "", 0);
24484       _exit (arg);
24485     }
24486   }
24487 }
24488
24489 int
24490 main ()
24491 {
24492   pid_t parent = getpid ();
24493   pid_t child;
24494
24495   sparc_address_test (0);
24496
24497   child = vfork ();
24498
24499   if (child == 0) {
24500     /* Here is another test for sparc vfork register problems.  This
24501        test uses lots of local variables, at least as many local
24502        variables as main has allocated so far including compiler
24503        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24504        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24505        reuse the register of parent for one of the local variables,
24506        since it will think that parent can't possibly be used any more
24507        in this routine.  Assigning to the local variable will thus
24508        munge parent in the parent process.  */
24509     pid_t
24510       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24511       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24512     /* Convince the compiler that p..p7 are live; otherwise, it might
24513        use the same hardware register for all 8 local variables.  */
24514     if (p != p1 || p != p2 || p != p3 || p != p4
24515         || p != p5 || p != p6 || p != p7)
24516       _exit(1);
24517
24518     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24519        from child file descriptors.  If the child closes a descriptor
24520        before it execs or exits, this munges the parent's descriptor
24521        as well.  Test for this by closing stdout in the child.  */
24522     _exit(close(fileno(stdout)) != 0);
24523   } else {
24524     int status;
24525     struct stat st;
24526
24527     while (wait(&status) != child)
24528       ;
24529     return (
24530          /* Was there some problem with vforking?  */
24531          child < 0
24532
24533          /* Did the child fail?  (This shouldn't happen.)  */
24534          || status
24535
24536          /* Did the vfork/compiler bug occur?  */
24537          || parent != getpid()
24538
24539          /* Did the file descriptor bug occur?  */
24540          || fstat(fileno(stdout), &st) != 0
24541          );
24542   }
24543 }
24544 _ACEOF
24545 if ac_fn_c_try_run "$LINENO"; then :
24546   ac_cv_func_vfork_works=yes
24547 else
24548   ac_cv_func_vfork_works=no
24549 fi
24550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24551   conftest.$ac_objext conftest.beam conftest.$ac_ext
24552 fi
24553
24554 fi
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24556 $as_echo "$ac_cv_func_vfork_works" >&6; }
24557
24558 fi;
24559 if test "x$ac_cv_func_fork_works" = xcross; then
24560   ac_cv_func_vfork_works=$ac_cv_func_vfork
24561   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24562 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24563 fi
24564
24565 if test "x$ac_cv_func_vfork_works" = xyes; then
24566
24567 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24568
24569 else
24570
24571 $as_echo "#define vfork fork" >>confdefs.h
24572
24573 fi
24574 if test "x$ac_cv_func_fork_works" = xyes; then
24575
24576 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24577
24578 fi
24579
24580 if test "x$ac_cv_func_fork_works" != xyes; then
24581   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24583 as_fn_error $? "cannot use libpipeline on systems without fork
24584 See \`config.log' for more details" "$LINENO" 5; }
24585 fi
24586
24587 # Check for socketpair(2) as fast replacement for pipe(2).
24588 # Check whether --enable-socketpair-pipe was given.
24589 if test "${enable_socketpair_pipe+set}" = set; then :
24590   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
24591     then
24592        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
24593 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
24594   if ${pipeline_cv_socketpair_pipe+:} false; then :
24595   $as_echo_n "(cached) " >&6
24596 else
24597
24598     if test "$cross_compiling" = yes; then :
24599   pipeline_cv_socketpair_pipe=no
24600 else
24601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24602 /* end confdefs.h.  */
24603
24604 #include <netdb.h>
24605 #include <netinet/in.h>
24606 #include <signal.h>
24607 #include <sys/socket.h>
24608 #include <sys/types.h>
24609 #include <sys/wait.h>
24610 #include <unistd.h>
24611 #ifndef SHUT_RD
24612 #       define SHUT_RD  0
24613 #endif
24614 #ifndef SHUT_WR
24615 #       define SHUT_WR  1
24616 #endif
24617
24618 static void sigpipe(int sig)
24619 {
24620         _exit(0);
24621 }
24622
24623 int main()
24624 {
24625         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
24626         char buf[256];
24627         int sfd[2], s;
24628         pid_t pid;
24629         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24630                 return 1;
24631         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24632                 return 1;
24633         if ((pid = fork()) < 0)
24634                 return 1;
24635         if (pid) {
24636                 close(sfd[1]);
24637                 waitpid(-1,&s,0);
24638                 if (read(sfd[0],buf,sizeof(buf)) < 0)
24639                         return 1;
24640         } else {
24641                 close(sfd[0]);
24642                 write(sfd[1],test,sizeof(test) - 1);
24643                 return 0;
24644         }
24645         close(sfd[0]);
24646         signal(SIGPIPE, sigpipe);
24647         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24648                 return 1;
24649         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24650                 return 1;
24651         close(sfd[0]);
24652         write(sfd[1],test,sizeof(test) - 1);
24653         return 1;
24654 }
24655 _ACEOF
24656 if ac_fn_c_try_run "$LINENO"; then :
24657   pipeline_cv_socketpair_pipe=yes
24658 else
24659   pipeline_cv_socketpair_pipe=no
24660 fi
24661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24662   conftest.$ac_objext conftest.beam conftest.$ac_ext
24663 fi
24664
24665
24666 fi
24667
24668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
24669 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
24670   if test "$pipeline_cv_socketpair_pipe" = yes; then
24671
24672 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
24673
24674   fi
24675
24676       if test "$pipeline_cv_socketpair_pipe" = yes; then
24677          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
24678 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
24679   if ${pipeline_cv_socketpair_mode+:} false; then :
24680   $as_echo_n "(cached) " >&6
24681 else
24682
24683     if test "$cross_compiling" = yes; then :
24684   pipeline_cv_socketpair_mode=no
24685 else
24686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24687 /* end confdefs.h.  */
24688
24689 #include <netdb.h>
24690 #include <netinet/in.h>
24691 #include <sys/stat.h>
24692 #include <sys/socket.h>
24693 #include <sys/types.h>
24694 #include <unistd.h>
24695 #ifndef SHUT_RD
24696 #       define SHUT_RD  0
24697 #endif
24698 #ifndef SHUT_WR
24699 #       define SHUT_WR  1
24700 #endif
24701
24702 int main()
24703 {
24704         int sfd[2];
24705         struct stat st[2];
24706         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
24707                 return 1;
24708         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
24709                 return 1;
24710         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
24711                 return 1;
24712         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
24713                 return 1;
24714         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
24715                 return 1;
24716         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
24717                 return 1;
24718         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
24719                 return 1;
24720         return 0;
24721 }
24722 _ACEOF
24723 if ac_fn_c_try_run "$LINENO"; then :
24724   pipeline_cv_socketpair_mode=yes
24725 else
24726   pipeline_cv_socketpair_mode=no
24727 fi
24728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24729   conftest.$ac_objext conftest.beam conftest.$ac_ext
24730 fi
24731
24732
24733 fi
24734
24735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
24736 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
24737   if test "$pipeline_cv_socketpair_mode" = yes; then
24738
24739 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
24740
24741   fi
24742
24743       fi
24744     fi
24745
24746 fi
24747
24748
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
24750 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
24752 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
24754 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
24756 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
24758 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
24760 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
24761
24762 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
24763
24764 cat >confcache <<\_ACEOF
24765 # This file is a shell script that caches the results of configure
24766 # tests run on this system so they can be shared between configure
24767 # scripts and configure runs, see configure's option --config-cache.
24768 # It is not useful on other systems.  If it contains results you don't
24769 # want to keep, you may remove or edit it.
24770 #
24771 # config.status only pays attention to the cache file if you give it
24772 # the --recheck option to rerun configure.
24773 #
24774 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24775 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24776 # following values.
24777
24778 _ACEOF
24779
24780 # The following way of writing the cache mishandles newlines in values,
24781 # but we know of no workaround that is simple, portable, and efficient.
24782 # So, we kill variables containing newlines.
24783 # Ultrix sh set writes to stderr and can't be redirected directly,
24784 # and sets the high bit in the cache file unless we assign to the vars.
24785 (
24786   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24787     eval ac_val=\$$ac_var
24788     case $ac_val in #(
24789     *${as_nl}*)
24790       case $ac_var in #(
24791       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24793       esac
24794       case $ac_var in #(
24795       _ | IFS | as_nl) ;; #(
24796       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24797       *) { eval $ac_var=; unset $ac_var;} ;;
24798       esac ;;
24799     esac
24800   done
24801
24802   (set) 2>&1 |
24803     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24804     *${as_nl}ac_space=\ *)
24805       # `set' does not quote correctly, so add quotes: double-quote
24806       # substitution turns \\\\ into \\, and sed turns \\ into \.
24807       sed -n \
24808         "s/'/'\\\\''/g;
24809           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24810       ;; #(
24811     *)
24812       # `set' quotes correctly as required by POSIX, so do not add quotes.
24813       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24814       ;;
24815     esac |
24816     sort
24817 ) |
24818   sed '
24819      /^ac_cv_env_/b end
24820      t clear
24821      :clear
24822      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24823      t end
24824      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24825      :end' >>confcache
24826 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24827   if test -w "$cache_file"; then
24828     if test "x$cache_file" != "x/dev/null"; then
24829       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24830 $as_echo "$as_me: updating cache $cache_file" >&6;}
24831       if test ! -f "$cache_file" || test -h "$cache_file"; then
24832         cat confcache >"$cache_file"
24833       else
24834         case $cache_file in #(
24835         */* | ?:*)
24836           mv -f confcache "$cache_file"$$ &&
24837           mv -f "$cache_file"$$ "$cache_file" ;; #(
24838         *)
24839           mv -f confcache "$cache_file" ;;
24840         esac
24841       fi
24842     fi
24843   else
24844     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24845 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24846   fi
24847 fi
24848 rm -f confcache
24849
24850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24851 # Let make expand exec_prefix.
24852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24853
24854 DEFS=-DHAVE_CONFIG_H
24855
24856 ac_libobjs=
24857 ac_ltlibobjs=
24858 U=
24859 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24860   # 1. Remove the extension, and $U if already installed.
24861   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24862   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24863   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24864   #    will be set to the directory where LIBOBJS objects are built.
24865   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24866   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24867 done
24868 LIBOBJS=$ac_libobjs
24869
24870 LTLIBOBJS=$ac_ltlibobjs
24871
24872
24873  if test -n "$EXEEXT"; then
24874   am__EXEEXT_TRUE=
24875   am__EXEEXT_FALSE='#'
24876 else
24877   am__EXEEXT_TRUE='#'
24878   am__EXEEXT_FALSE=
24879 fi
24880
24881 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24882   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24884 fi
24885 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24886   as_fn_error $? "conditional \"AMDEP\" was never defined.
24887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24888 fi
24889 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24890   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24892 fi
24893 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24894   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24896 fi
24897 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
24898   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
24899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24900 fi
24901 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24902   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
24903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24904 fi
24905 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24906   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24908 fi
24909 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
24910   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
24911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24912 fi
24913 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
24914   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
24915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24916 fi
24917 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24918   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24920 fi
24921 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24922   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24924 fi
24925 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24926   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24928 fi
24929 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24930   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24932 fi
24933
24934
24935     gl_libobjs=
24936     gl_ltlibobjs=
24937     if test -n "$gl_LIBOBJS"; then
24938       # Remove the extension.
24939       sed_drop_objext='s/\.o$//;s/\.obj$//'
24940       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24941         gl_libobjs="$gl_libobjs $i.$ac_objext"
24942         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24943       done
24944     fi
24945     gl_LIBOBJS=$gl_libobjs
24946
24947     gl_LTLIBOBJS=$gl_ltlibobjs
24948
24949
24950
24951     gltests_libobjs=
24952     gltests_ltlibobjs=
24953     if test -n "$gltests_LIBOBJS"; then
24954       # Remove the extension.
24955       sed_drop_objext='s/\.o$//;s/\.obj$//'
24956       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24957         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24958         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24959       done
24960     fi
24961     gltests_LIBOBJS=$gltests_libobjs
24962
24963     gltests_LTLIBOBJS=$gltests_ltlibobjs
24964
24965
24966
24967 : "${CONFIG_STATUS=./config.status}"
24968 ac_write_fail=0
24969 ac_clean_files_save=$ac_clean_files
24970 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24972 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24973 as_write_fail=0
24974 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24975 #! $SHELL
24976 # Generated by $as_me.
24977 # Run this file to recreate the current configuration.
24978 # Compiler output produced by configure, useful for debugging
24979 # configure, is in config.log if it exists.
24980
24981 debug=false
24982 ac_cs_recheck=false
24983 ac_cs_silent=false
24984
24985 SHELL=\${CONFIG_SHELL-$SHELL}
24986 export SHELL
24987 _ASEOF
24988 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24989 ## -------------------- ##
24990 ## M4sh Initialization. ##
24991 ## -------------------- ##
24992
24993 # Be more Bourne compatible
24994 DUALCASE=1; export DUALCASE # for MKS sh
24995 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24996   emulate sh
24997   NULLCMD=:
24998   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24999   # is contrary to our usage.  Disable this feature.
25000   alias -g '${1+"$@"}'='"$@"'
25001   setopt NO_GLOB_SUBST
25002 else
25003   case `(set -o) 2>/dev/null` in #(
25004   *posix*) :
25005     set -o posix ;; #(
25006   *) :
25007      ;;
25008 esac
25009 fi
25010
25011
25012 as_nl='
25013 '
25014 export as_nl
25015 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25016 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25017 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25019 # Prefer a ksh shell builtin over an external printf program on Solaris,
25020 # but without wasting forks for bash or zsh.
25021 if test -z "$BASH_VERSION$ZSH_VERSION" \
25022     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25023   as_echo='print -r --'
25024   as_echo_n='print -rn --'
25025 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25026   as_echo='printf %s\n'
25027   as_echo_n='printf %s'
25028 else
25029   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25030     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25031     as_echo_n='/usr/ucb/echo -n'
25032   else
25033     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25034     as_echo_n_body='eval
25035       arg=$1;
25036       case $arg in #(
25037       *"$as_nl"*)
25038         expr "X$arg" : "X\\(.*\\)$as_nl";
25039         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25040       esac;
25041       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25042     '
25043     export as_echo_n_body
25044     as_echo_n='sh -c $as_echo_n_body as_echo'
25045   fi
25046   export as_echo_body
25047   as_echo='sh -c $as_echo_body as_echo'
25048 fi
25049
25050 # The user is always right.
25051 if test "${PATH_SEPARATOR+set}" != set; then
25052   PATH_SEPARATOR=:
25053   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25054     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25055       PATH_SEPARATOR=';'
25056   }
25057 fi
25058
25059
25060 # IFS
25061 # We need space, tab and new line, in precisely that order.  Quoting is
25062 # there to prevent editors from complaining about space-tab.
25063 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25064 # splitting by setting IFS to empty value.)
25065 IFS=" ""        $as_nl"
25066
25067 # Find who we are.  Look in the path if we contain no directory separator.
25068 as_myself=
25069 case $0 in #((
25070   *[\\/]* ) as_myself=$0 ;;
25071   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25072 for as_dir in $PATH
25073 do
25074   IFS=$as_save_IFS
25075   test -z "$as_dir" && as_dir=.
25076     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25077   done
25078 IFS=$as_save_IFS
25079
25080      ;;
25081 esac
25082 # We did not find ourselves, most probably we were run as `sh COMMAND'
25083 # in which case we are not to be found in the path.
25084 if test "x$as_myself" = x; then
25085   as_myself=$0
25086 fi
25087 if test ! -f "$as_myself"; then
25088   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25089   exit 1
25090 fi
25091
25092 # Unset variables that we do not need and which cause bugs (e.g. in
25093 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25094 # suppresses any "Segmentation fault" message there.  '((' could
25095 # trigger a bug in pdksh 5.2.14.
25096 for as_var in BASH_ENV ENV MAIL MAILPATH
25097 do eval test x\${$as_var+set} = xset \
25098   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25099 done
25100 PS1='$ '
25101 PS2='> '
25102 PS4='+ '
25103
25104 # NLS nuisances.
25105 LC_ALL=C
25106 export LC_ALL
25107 LANGUAGE=C
25108 export LANGUAGE
25109
25110 # CDPATH.
25111 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25112
25113
25114 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25115 # ----------------------------------------
25116 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25117 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25118 # script with STATUS, using 1 if that was 0.
25119 as_fn_error ()
25120 {
25121   as_status=$1; test $as_status -eq 0 && as_status=1
25122   if test "$4"; then
25123     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25124     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25125   fi
25126   $as_echo "$as_me: error: $2" >&2
25127   as_fn_exit $as_status
25128 } # as_fn_error
25129
25130
25131 # as_fn_set_status STATUS
25132 # -----------------------
25133 # Set $? to STATUS, without forking.
25134 as_fn_set_status ()
25135 {
25136   return $1
25137 } # as_fn_set_status
25138
25139 # as_fn_exit STATUS
25140 # -----------------
25141 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25142 as_fn_exit ()
25143 {
25144   set +e
25145   as_fn_set_status $1
25146   exit $1
25147 } # as_fn_exit
25148
25149 # as_fn_unset VAR
25150 # ---------------
25151 # Portably unset VAR.
25152 as_fn_unset ()
25153 {
25154   { eval $1=; unset $1;}
25155 }
25156 as_unset=as_fn_unset
25157 # as_fn_append VAR VALUE
25158 # ----------------------
25159 # Append the text in VALUE to the end of the definition contained in VAR. Take
25160 # advantage of any shell optimizations that allow amortized linear growth over
25161 # repeated appends, instead of the typical quadratic growth present in naive
25162 # implementations.
25163 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25164   eval 'as_fn_append ()
25165   {
25166     eval $1+=\$2
25167   }'
25168 else
25169   as_fn_append ()
25170   {
25171     eval $1=\$$1\$2
25172   }
25173 fi # as_fn_append
25174
25175 # as_fn_arith ARG...
25176 # ------------------
25177 # Perform arithmetic evaluation on the ARGs, and store the result in the
25178 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25179 # must be portable across $(()) and expr.
25180 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25181   eval 'as_fn_arith ()
25182   {
25183     as_val=$(( $* ))
25184   }'
25185 else
25186   as_fn_arith ()
25187   {
25188     as_val=`expr "$@" || test $? -eq 1`
25189   }
25190 fi # as_fn_arith
25191
25192
25193 if expr a : '\(a\)' >/dev/null 2>&1 &&
25194    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25195   as_expr=expr
25196 else
25197   as_expr=false
25198 fi
25199
25200 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25201   as_basename=basename
25202 else
25203   as_basename=false
25204 fi
25205
25206 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25207   as_dirname=dirname
25208 else
25209   as_dirname=false
25210 fi
25211
25212 as_me=`$as_basename -- "$0" ||
25213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25214          X"$0" : 'X\(//\)$' \| \
25215          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25216 $as_echo X/"$0" |
25217     sed '/^.*\/\([^/][^/]*\)\/*$/{
25218             s//\1/
25219             q
25220           }
25221           /^X\/\(\/\/\)$/{
25222             s//\1/
25223             q
25224           }
25225           /^X\/\(\/\).*/{
25226             s//\1/
25227             q
25228           }
25229           s/.*/./; q'`
25230
25231 # Avoid depending upon Character Ranges.
25232 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25233 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25234 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25235 as_cr_digits='0123456789'
25236 as_cr_alnum=$as_cr_Letters$as_cr_digits
25237
25238 ECHO_C= ECHO_N= ECHO_T=
25239 case `echo -n x` in #(((((
25240 -n*)
25241   case `echo 'xy\c'` in
25242   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25243   xy)  ECHO_C='\c';;
25244   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25245        ECHO_T=' ';;
25246   esac;;
25247 *)
25248   ECHO_N='-n';;
25249 esac
25250
25251 rm -f conf$$ conf$$.exe conf$$.file
25252 if test -d conf$$.dir; then
25253   rm -f conf$$.dir/conf$$.file
25254 else
25255   rm -f conf$$.dir
25256   mkdir conf$$.dir 2>/dev/null
25257 fi
25258 if (echo >conf$$.file) 2>/dev/null; then
25259   if ln -s conf$$.file conf$$ 2>/dev/null; then
25260     as_ln_s='ln -s'
25261     # ... but there are two gotchas:
25262     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25263     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25264     # In both cases, we have to default to `cp -pR'.
25265     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25266       as_ln_s='cp -pR'
25267   elif ln conf$$.file conf$$ 2>/dev/null; then
25268     as_ln_s=ln
25269   else
25270     as_ln_s='cp -pR'
25271   fi
25272 else
25273   as_ln_s='cp -pR'
25274 fi
25275 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25276 rmdir conf$$.dir 2>/dev/null
25277
25278
25279 # as_fn_mkdir_p
25280 # -------------
25281 # Create "$as_dir" as a directory, including parents if necessary.
25282 as_fn_mkdir_p ()
25283 {
25284
25285   case $as_dir in #(
25286   -*) as_dir=./$as_dir;;
25287   esac
25288   test -d "$as_dir" || eval $as_mkdir_p || {
25289     as_dirs=
25290     while :; do
25291       case $as_dir in #(
25292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25293       *) as_qdir=$as_dir;;
25294       esac
25295       as_dirs="'$as_qdir' $as_dirs"
25296       as_dir=`$as_dirname -- "$as_dir" ||
25297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25298          X"$as_dir" : 'X\(//\)[^/]' \| \
25299          X"$as_dir" : 'X\(//\)$' \| \
25300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25301 $as_echo X"$as_dir" |
25302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25303             s//\1/
25304             q
25305           }
25306           /^X\(\/\/\)[^/].*/{
25307             s//\1/
25308             q
25309           }
25310           /^X\(\/\/\)$/{
25311             s//\1/
25312             q
25313           }
25314           /^X\(\/\).*/{
25315             s//\1/
25316             q
25317           }
25318           s/.*/./; q'`
25319       test -d "$as_dir" && break
25320     done
25321     test -z "$as_dirs" || eval "mkdir $as_dirs"
25322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25323
25324
25325 } # as_fn_mkdir_p
25326 if mkdir -p . 2>/dev/null; then
25327   as_mkdir_p='mkdir -p "$as_dir"'
25328 else
25329   test -d ./-p && rmdir ./-p
25330   as_mkdir_p=false
25331 fi
25332
25333
25334 # as_fn_executable_p FILE
25335 # -----------------------
25336 # Test if FILE is an executable regular file.
25337 as_fn_executable_p ()
25338 {
25339   test -f "$1" && test -x "$1"
25340 } # as_fn_executable_p
25341 as_test_x='test -x'
25342 as_executable_p=as_fn_executable_p
25343
25344 # Sed expression to map a string onto a valid CPP name.
25345 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25346
25347 # Sed expression to map a string onto a valid variable name.
25348 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25349
25350
25351 exec 6>&1
25352 ## ----------------------------------- ##
25353 ## Main body of $CONFIG_STATUS script. ##
25354 ## ----------------------------------- ##
25355 _ASEOF
25356 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25357
25358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25359 # Save the log message, to keep $0 and so on meaningful, and to
25360 # report actual input values of CONFIG_FILES etc. instead of their
25361 # values after options handling.
25362 ac_log="
25363 This file was extended by libpipeline $as_me 1.2.3, which was
25364 generated by GNU Autoconf 2.69.  Invocation command line was
25365
25366   CONFIG_FILES    = $CONFIG_FILES
25367   CONFIG_HEADERS  = $CONFIG_HEADERS
25368   CONFIG_LINKS    = $CONFIG_LINKS
25369   CONFIG_COMMANDS = $CONFIG_COMMANDS
25370   $ $0 $@
25371
25372 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25373 "
25374
25375 _ACEOF
25376
25377 case $ac_config_files in *"
25378 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25379 esac
25380
25381 case $ac_config_headers in *"
25382 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25383 esac
25384
25385
25386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25387 # Files that config.status was made for.
25388 config_files="$ac_config_files"
25389 config_headers="$ac_config_headers"
25390 config_commands="$ac_config_commands"
25391
25392 _ACEOF
25393
25394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25395 ac_cs_usage="\
25396 \`$as_me' instantiates files and other configuration actions
25397 from templates according to the current configuration.  Unless the files
25398 and actions are specified as TAGs, all are instantiated by default.
25399
25400 Usage: $0 [OPTION]... [TAG]...
25401
25402   -h, --help       print this help, then exit
25403   -V, --version    print version number and configuration settings, then exit
25404       --config     print configuration, then exit
25405   -q, --quiet, --silent
25406                    do not print progress messages
25407   -d, --debug      don't remove temporary files
25408       --recheck    update $as_me by reconfiguring in the same conditions
25409       --file=FILE[:TEMPLATE]
25410                    instantiate the configuration file FILE
25411       --header=FILE[:TEMPLATE]
25412                    instantiate the configuration header FILE
25413
25414 Configuration files:
25415 $config_files
25416
25417 Configuration headers:
25418 $config_headers
25419
25420 Configuration commands:
25421 $config_commands
25422
25423 Report bugs to <cjwatson@debian.org>."
25424
25425 _ACEOF
25426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25427 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25428 ac_cs_version="\\
25429 libpipeline config.status 1.2.3
25430 configured by $0, generated by GNU Autoconf 2.69,
25431   with options \\"\$ac_cs_config\\"
25432
25433 Copyright (C) 2012 Free Software Foundation, Inc.
25434 This config.status script is free software; the Free Software Foundation
25435 gives unlimited permission to copy, distribute and modify it."
25436
25437 ac_pwd='$ac_pwd'
25438 srcdir='$srcdir'
25439 INSTALL='$INSTALL'
25440 MKDIR_P='$MKDIR_P'
25441 AWK='$AWK'
25442 test -n "\$AWK" || AWK=awk
25443 _ACEOF
25444
25445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25446 # The default lists apply if the user does not specify any file.
25447 ac_need_defaults=:
25448 while test $# != 0
25449 do
25450   case $1 in
25451   --*=?*)
25452     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25453     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25454     ac_shift=:
25455     ;;
25456   --*=)
25457     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25458     ac_optarg=
25459     ac_shift=:
25460     ;;
25461   *)
25462     ac_option=$1
25463     ac_optarg=$2
25464     ac_shift=shift
25465     ;;
25466   esac
25467
25468   case $ac_option in
25469   # Handling of the options.
25470   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25471     ac_cs_recheck=: ;;
25472   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25473     $as_echo "$ac_cs_version"; exit ;;
25474   --config | --confi | --conf | --con | --co | --c )
25475     $as_echo "$ac_cs_config"; exit ;;
25476   --debug | --debu | --deb | --de | --d | -d )
25477     debug=: ;;
25478   --file | --fil | --fi | --f )
25479     $ac_shift
25480     case $ac_optarg in
25481     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25482     '') as_fn_error $? "missing file argument" ;;
25483     esac
25484     as_fn_append CONFIG_FILES " '$ac_optarg'"
25485     ac_need_defaults=false;;
25486   --header | --heade | --head | --hea )
25487     $ac_shift
25488     case $ac_optarg in
25489     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25490     esac
25491     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25492     ac_need_defaults=false;;
25493   --he | --h)
25494     # Conflict between --help and --header
25495     as_fn_error $? "ambiguous option: \`$1'
25496 Try \`$0 --help' for more information.";;
25497   --help | --hel | -h )
25498     $as_echo "$ac_cs_usage"; exit ;;
25499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25500   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25501     ac_cs_silent=: ;;
25502
25503   # This is an error.
25504   -*) as_fn_error $? "unrecognized option: \`$1'
25505 Try \`$0 --help' for more information." ;;
25506
25507   *) as_fn_append ac_config_targets " $1"
25508      ac_need_defaults=false ;;
25509
25510   esac
25511   shift
25512 done
25513
25514 ac_configure_extra_args=
25515
25516 if $ac_cs_silent; then
25517   exec 6>/dev/null
25518   ac_configure_extra_args="$ac_configure_extra_args --silent"
25519 fi
25520
25521 _ACEOF
25522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25523 if \$ac_cs_recheck; then
25524   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25525   shift
25526   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25527   CONFIG_SHELL='$SHELL'
25528   export CONFIG_SHELL
25529   exec "\$@"
25530 fi
25531
25532 _ACEOF
25533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25534 exec 5>>config.log
25535 {
25536   echo
25537   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25538 ## Running $as_me. ##
25539 _ASBOX
25540   $as_echo "$ac_log"
25541 } >&5
25542
25543 _ACEOF
25544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25545 #
25546 # INIT-COMMANDS
25547 #
25548 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25549
25550
25551 # The HP-UX ksh and POSIX shell print the target directory to stdout
25552 # if CDPATH is set.
25553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25554
25555 sed_quote_subst='$sed_quote_subst'
25556 double_quote_subst='$double_quote_subst'
25557 delay_variable_subst='$delay_variable_subst'
25558 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25559 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25560 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25561 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25562 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25563 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25564 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25565 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25566 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25567 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25568 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25569 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25570 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25571 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25572 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25573 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25574 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25575 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25576 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25577 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25578 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25579 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25580 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25581 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25582 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25583 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25584 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25585 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25586 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25587 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25588 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25589 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25590 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25591 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25592 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25593 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25594 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25595 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25596 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25597 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25598 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25599 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25600 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25601 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25602 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25603 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25604 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25605 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25606 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25607 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25608 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25609 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25610 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25611 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25612 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25613 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25614 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"`'
25615 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25616 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25617 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25618 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25619 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25620 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25621 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25622 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25623 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25624 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25625 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25626 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25627 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25628 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25629 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25630 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25631 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25632 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25633 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25634 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25635 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25636 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25637 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25638 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25639 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25640 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25641 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25642 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25643 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25644 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25645 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25646 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25647 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25648 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25649 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25650 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25651 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25652 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25653 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25654 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25655 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25656 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25657 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25658 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25659 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25660 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25661 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25662 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25663 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25664 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25665 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25666 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25667 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25668 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25669 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25670 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25671 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25672 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25673 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25674 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25675 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25676 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25677 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25678 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25679 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25680 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25681 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25682 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25683 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25684 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25685 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25686 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25687 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25688
25689 LTCC='$LTCC'
25690 LTCFLAGS='$LTCFLAGS'
25691 compiler='$compiler_DEFAULT'
25692
25693 # A function that is used when there is no print builtin or printf.
25694 func_fallback_echo ()
25695 {
25696   eval 'cat <<_LTECHO_EOF
25697 \$1
25698 _LTECHO_EOF'
25699 }
25700
25701 # Quote evaled strings.
25702 for var in SHELL \
25703 ECHO \
25704 PATH_SEPARATOR \
25705 SED \
25706 GREP \
25707 EGREP \
25708 FGREP \
25709 LD \
25710 NM \
25711 LN_S \
25712 lt_SP2NL \
25713 lt_NL2SP \
25714 reload_flag \
25715 OBJDUMP \
25716 deplibs_check_method \
25717 file_magic_cmd \
25718 file_magic_glob \
25719 want_nocaseglob \
25720 DLLTOOL \
25721 sharedlib_from_linklib_cmd \
25722 AR \
25723 AR_FLAGS \
25724 archiver_list_spec \
25725 STRIP \
25726 RANLIB \
25727 CC \
25728 CFLAGS \
25729 compiler \
25730 lt_cv_sys_global_symbol_pipe \
25731 lt_cv_sys_global_symbol_to_cdecl \
25732 lt_cv_sys_global_symbol_to_c_name_address \
25733 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25734 nm_file_list_spec \
25735 lt_prog_compiler_no_builtin_flag \
25736 lt_prog_compiler_pic \
25737 lt_prog_compiler_wl \
25738 lt_prog_compiler_static \
25739 lt_cv_prog_compiler_c_o \
25740 need_locks \
25741 MANIFEST_TOOL \
25742 DSYMUTIL \
25743 NMEDIT \
25744 LIPO \
25745 OTOOL \
25746 OTOOL64 \
25747 shrext_cmds \
25748 export_dynamic_flag_spec \
25749 whole_archive_flag_spec \
25750 compiler_needs_object \
25751 with_gnu_ld \
25752 allow_undefined_flag \
25753 no_undefined_flag \
25754 hardcode_libdir_flag_spec \
25755 hardcode_libdir_separator \
25756 exclude_expsyms \
25757 include_expsyms \
25758 file_list_spec \
25759 variables_saved_for_relink \
25760 libname_spec \
25761 library_names_spec \
25762 soname_spec \
25763 install_override_mode \
25764 finish_eval \
25765 old_striplib \
25766 striplib; do
25767     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25768     *[\\\\\\\`\\"\\\$]*)
25769       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25770       ;;
25771     *)
25772       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25773       ;;
25774     esac
25775 done
25776
25777 # Double-quote double-evaled strings.
25778 for var in reload_cmds \
25779 old_postinstall_cmds \
25780 old_postuninstall_cmds \
25781 old_archive_cmds \
25782 extract_expsyms_cmds \
25783 old_archive_from_new_cmds \
25784 old_archive_from_expsyms_cmds \
25785 archive_cmds \
25786 archive_expsym_cmds \
25787 module_cmds \
25788 module_expsym_cmds \
25789 export_symbols_cmds \
25790 prelink_cmds \
25791 postlink_cmds \
25792 postinstall_cmds \
25793 postuninstall_cmds \
25794 finish_cmds \
25795 sys_lib_search_path_spec \
25796 sys_lib_dlsearch_path_spec; do
25797     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25798     *[\\\\\\\`\\"\\\$]*)
25799       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25800       ;;
25801     *)
25802       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25803       ;;
25804     esac
25805 done
25806
25807 ac_aux_dir='$ac_aux_dir'
25808 xsi_shell='$xsi_shell'
25809 lt_shell_append='$lt_shell_append'
25810
25811 # See if we are running on zsh, and set the options which allow our
25812 # commands through without removal of \ escapes INIT.
25813 if test -n "\${ZSH_VERSION+set}" ; then
25814    setopt NO_GLOB_SUBST
25815 fi
25816
25817
25818     PACKAGE='$PACKAGE'
25819     VERSION='$VERSION'
25820     TIMESTAMP='$TIMESTAMP'
25821     RM='$RM'
25822     ofile='$ofile'
25823
25824
25825
25826
25827 _ACEOF
25828
25829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25830
25831 # Handling of arguments.
25832 for ac_config_target in $ac_config_targets
25833 do
25834   case $ac_config_target in
25835     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25836     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25837     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25838     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25839     "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
25840     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25841     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
25842     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
25843     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25844
25845   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25846   esac
25847 done
25848
25849
25850 # If the user did not use the arguments to specify the items to instantiate,
25851 # then the envvar interface is used.  Set only those that are not.
25852 # We use the long form for the default assignment because of an extremely
25853 # bizarre bug on SunOS 4.1.3.
25854 if $ac_need_defaults; then
25855   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25856   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25857   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25858 fi
25859
25860 # Have a temporary directory for convenience.  Make it in the build tree
25861 # simply because there is no reason against having it here, and in addition,
25862 # creating and moving files from /tmp can sometimes cause problems.
25863 # Hook for its removal unless debugging.
25864 # Note that there is a small window in which the directory will not be cleaned:
25865 # after its creation but before its name has been assigned to `$tmp'.
25866 $debug ||
25867 {
25868   tmp= ac_tmp=
25869   trap 'exit_status=$?
25870   : "${ac_tmp:=$tmp}"
25871   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25872 ' 0
25873   trap 'as_fn_exit 1' 1 2 13 15
25874 }
25875 # Create a (secure) tmp directory for tmp files.
25876
25877 {
25878   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25879   test -d "$tmp"
25880 }  ||
25881 {
25882   tmp=./conf$$-$RANDOM
25883   (umask 077 && mkdir "$tmp")
25884 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25885 ac_tmp=$tmp
25886
25887 # Set up the scripts for CONFIG_FILES section.
25888 # No need to generate them if there are no CONFIG_FILES.
25889 # This happens for instance with `./config.status config.h'.
25890 if test -n "$CONFIG_FILES"; then
25891
25892
25893 ac_cr=`echo X | tr X '\015'`
25894 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25895 # But we know of no other shell where ac_cr would be empty at this
25896 # point, so we can use a bashism as a fallback.
25897 if test "x$ac_cr" = x; then
25898   eval ac_cr=\$\'\\r\'
25899 fi
25900 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25901 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25902   ac_cs_awk_cr='\\r'
25903 else
25904   ac_cs_awk_cr=$ac_cr
25905 fi
25906
25907 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25908 _ACEOF
25909
25910
25911 {
25912   echo "cat >conf$$subs.awk <<_ACEOF" &&
25913   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25914   echo "_ACEOF"
25915 } >conf$$subs.sh ||
25916   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25917 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25918 ac_delim='%!_!# '
25919 for ac_last_try in false false false false false :; do
25920   . ./conf$$subs.sh ||
25921     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25922
25923   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25924   if test $ac_delim_n = $ac_delim_num; then
25925     break
25926   elif $ac_last_try; then
25927     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25928   else
25929     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25930   fi
25931 done
25932 rm -f conf$$subs.sh
25933
25934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25935 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25936 _ACEOF
25937 sed -n '
25938 h
25939 s/^/S["/; s/!.*/"]=/
25940 p
25941 g
25942 s/^[^!]*!//
25943 :repl
25944 t repl
25945 s/'"$ac_delim"'$//
25946 t delim
25947 :nl
25948 h
25949 s/\(.\{148\}\)..*/\1/
25950 t more1
25951 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25952 p
25953 n
25954 b repl
25955 :more1
25956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25957 p
25958 g
25959 s/.\{148\}//
25960 t nl
25961 :delim
25962 h
25963 s/\(.\{148\}\)..*/\1/
25964 t more2
25965 s/["\\]/\\&/g; s/^/"/; s/$/"/
25966 p
25967 b
25968 :more2
25969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25970 p
25971 g
25972 s/.\{148\}//
25973 t delim
25974 ' <conf$$subs.awk | sed '
25975 /^[^""]/{
25976   N
25977   s/\n//
25978 }
25979 ' >>$CONFIG_STATUS || ac_write_fail=1
25980 rm -f conf$$subs.awk
25981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25982 _ACAWK
25983 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25984   for (key in S) S_is_set[key] = 1
25985   FS = "\a"
25986
25987 }
25988 {
25989   line = $ 0
25990   nfields = split(line, field, "@")
25991   substed = 0
25992   len = length(field[1])
25993   for (i = 2; i < nfields; i++) {
25994     key = field[i]
25995     keylen = length(key)
25996     if (S_is_set[key]) {
25997       value = S[key]
25998       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25999       len += length(value) + length(field[++i])
26000       substed = 1
26001     } else
26002       len += 1 + keylen
26003   }
26004
26005   print line
26006 }
26007
26008 _ACAWK
26009 _ACEOF
26010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26011 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26012   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26013 else
26014   cat
26015 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26016   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26017 _ACEOF
26018
26019 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26020 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26021 # trailing colons and then remove the whole line if VPATH becomes empty
26022 # (actually we leave an empty line to preserve line numbers).
26023 if test "x$srcdir" = x.; then
26024   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26025 h
26026 s///
26027 s/^/:/
26028 s/[      ]*$/:/
26029 s/:\$(srcdir):/:/g
26030 s/:\${srcdir}:/:/g
26031 s/:@srcdir@:/:/g
26032 s/^:*//
26033 s/:*$//
26034 x
26035 s/\(=[   ]*\).*/\1/
26036 G
26037 s/\n//
26038 s/^[^=]*=[       ]*$//
26039 }'
26040 fi
26041
26042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26043 fi # test -n "$CONFIG_FILES"
26044
26045 # Set up the scripts for CONFIG_HEADERS section.
26046 # No need to generate them if there are no CONFIG_HEADERS.
26047 # This happens for instance with `./config.status Makefile'.
26048 if test -n "$CONFIG_HEADERS"; then
26049 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26050 BEGIN {
26051 _ACEOF
26052
26053 # Transform confdefs.h into an awk script `defines.awk', embedded as
26054 # here-document in config.status, that substitutes the proper values into
26055 # config.h.in to produce config.h.
26056
26057 # Create a delimiter string that does not exist in confdefs.h, to ease
26058 # handling of long lines.
26059 ac_delim='%!_!# '
26060 for ac_last_try in false false :; do
26061   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26062   if test -z "$ac_tt"; then
26063     break
26064   elif $ac_last_try; then
26065     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26066   else
26067     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26068   fi
26069 done
26070
26071 # For the awk script, D is an array of macro values keyed by name,
26072 # likewise P contains macro parameters if any.  Preserve backslash
26073 # newline sequences.
26074
26075 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26076 sed -n '
26077 s/.\{148\}/&'"$ac_delim"'/g
26078 t rset
26079 :rset
26080 s/^[     ]*#[    ]*define[       ][      ]*/ /
26081 t def
26082 d
26083 :def
26084 s/\\$//
26085 t bsnl
26086 s/["\\]/\\&/g
26087 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26088 D["\1"]=" \3"/p
26089 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26090 d
26091 :bsnl
26092 s/["\\]/\\&/g
26093 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26094 D["\1"]=" \3\\\\\\n"\\/p
26095 t cont
26096 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26097 t cont
26098 d
26099 :cont
26100 n
26101 s/.\{148\}/&'"$ac_delim"'/g
26102 t clear
26103 :clear
26104 s/\\$//
26105 t bsnlc
26106 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26107 d
26108 :bsnlc
26109 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26110 b cont
26111 ' <confdefs.h | sed '
26112 s/'"$ac_delim"'/"\\\
26113 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26114
26115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26116   for (key in D) D_is_set[key] = 1
26117   FS = "\a"
26118 }
26119 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26120   line = \$ 0
26121   split(line, arg, " ")
26122   if (arg[1] == "#") {
26123     defundef = arg[2]
26124     mac1 = arg[3]
26125   } else {
26126     defundef = substr(arg[1], 2)
26127     mac1 = arg[2]
26128   }
26129   split(mac1, mac2, "(") #)
26130   macro = mac2[1]
26131   prefix = substr(line, 1, index(line, defundef) - 1)
26132   if (D_is_set[macro]) {
26133     # Preserve the white space surrounding the "#".
26134     print prefix "define", macro P[macro] D[macro]
26135     next
26136   } else {
26137     # Replace #undef with comments.  This is necessary, for example,
26138     # in the case of _POSIX_SOURCE, which is predefined and required
26139     # on some systems where configure will not decide to define it.
26140     if (defundef == "undef") {
26141       print "/*", prefix defundef, macro, "*/"
26142       next
26143     }
26144   }
26145 }
26146 { print }
26147 _ACAWK
26148 _ACEOF
26149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26150   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26151 fi # test -n "$CONFIG_HEADERS"
26152
26153
26154 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26155 shift
26156 for ac_tag
26157 do
26158   case $ac_tag in
26159   :[FHLC]) ac_mode=$ac_tag; continue;;
26160   esac
26161   case $ac_mode$ac_tag in
26162   :[FHL]*:*);;
26163   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26164   :[FH]-) ac_tag=-:-;;
26165   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26166   esac
26167   ac_save_IFS=$IFS
26168   IFS=:
26169   set x $ac_tag
26170   IFS=$ac_save_IFS
26171   shift
26172   ac_file=$1
26173   shift
26174
26175   case $ac_mode in
26176   :L) ac_source=$1;;
26177   :[FH])
26178     ac_file_inputs=
26179     for ac_f
26180     do
26181       case $ac_f in
26182       -) ac_f="$ac_tmp/stdin";;
26183       *) # Look for the file first in the build tree, then in the source tree
26184          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26185          # because $ac_f cannot contain `:'.
26186          test -f "$ac_f" ||
26187            case $ac_f in
26188            [\\/$]*) false;;
26189            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26190            esac ||
26191            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26192       esac
26193       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26194       as_fn_append ac_file_inputs " '$ac_f'"
26195     done
26196
26197     # Let's still pretend it is `configure' which instantiates (i.e., don't
26198     # use $as_me), people would be surprised to read:
26199     #    /* config.h.  Generated by config.status.  */
26200     configure_input='Generated from '`
26201           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26202         `' by configure.'
26203     if test x"$ac_file" != x-; then
26204       configure_input="$ac_file.  $configure_input"
26205       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26206 $as_echo "$as_me: creating $ac_file" >&6;}
26207     fi
26208     # Neutralize special characters interpreted by sed in replacement strings.
26209     case $configure_input in #(
26210     *\&* | *\|* | *\\* )
26211        ac_sed_conf_input=`$as_echo "$configure_input" |
26212        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26213     *) ac_sed_conf_input=$configure_input;;
26214     esac
26215
26216     case $ac_tag in
26217     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26218       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26219     esac
26220     ;;
26221   esac
26222
26223   ac_dir=`$as_dirname -- "$ac_file" ||
26224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26225          X"$ac_file" : 'X\(//\)[^/]' \| \
26226          X"$ac_file" : 'X\(//\)$' \| \
26227          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26228 $as_echo X"$ac_file" |
26229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26230             s//\1/
26231             q
26232           }
26233           /^X\(\/\/\)[^/].*/{
26234             s//\1/
26235             q
26236           }
26237           /^X\(\/\/\)$/{
26238             s//\1/
26239             q
26240           }
26241           /^X\(\/\).*/{
26242             s//\1/
26243             q
26244           }
26245           s/.*/./; q'`
26246   as_dir="$ac_dir"; as_fn_mkdir_p
26247   ac_builddir=.
26248
26249 case "$ac_dir" in
26250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26251 *)
26252   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26253   # A ".." for each directory in $ac_dir_suffix.
26254   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26255   case $ac_top_builddir_sub in
26256   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26257   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26258   esac ;;
26259 esac
26260 ac_abs_top_builddir=$ac_pwd
26261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26262 # for backward compatibility:
26263 ac_top_builddir=$ac_top_build_prefix
26264
26265 case $srcdir in
26266   .)  # We are building in place.
26267     ac_srcdir=.
26268     ac_top_srcdir=$ac_top_builddir_sub
26269     ac_abs_top_srcdir=$ac_pwd ;;
26270   [\\/]* | ?:[\\/]* )  # Absolute name.
26271     ac_srcdir=$srcdir$ac_dir_suffix;
26272     ac_top_srcdir=$srcdir
26273     ac_abs_top_srcdir=$srcdir ;;
26274   *) # Relative name.
26275     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26276     ac_top_srcdir=$ac_top_build_prefix$srcdir
26277     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26278 esac
26279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26280
26281
26282   case $ac_mode in
26283   :F)
26284   #
26285   # CONFIG_FILE
26286   #
26287
26288   case $INSTALL in
26289   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26290   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26291   esac
26292   ac_MKDIR_P=$MKDIR_P
26293   case $MKDIR_P in
26294   [\\/$]* | ?:[\\/]* ) ;;
26295   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26296   esac
26297 _ACEOF
26298
26299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26300 # If the template does not know about datarootdir, expand it.
26301 # FIXME: This hack should be removed a few years after 2.60.
26302 ac_datarootdir_hack=; ac_datarootdir_seen=
26303 ac_sed_dataroot='
26304 /datarootdir/ {
26305   p
26306   q
26307 }
26308 /@datadir@/p
26309 /@docdir@/p
26310 /@infodir@/p
26311 /@localedir@/p
26312 /@mandir@/p'
26313 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26314 *datarootdir*) ac_datarootdir_seen=yes;;
26315 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26316   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26317 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26318 _ACEOF
26319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26320   ac_datarootdir_hack='
26321   s&@datadir@&$datadir&g
26322   s&@docdir@&$docdir&g
26323   s&@infodir@&$infodir&g
26324   s&@localedir@&$localedir&g
26325   s&@mandir@&$mandir&g
26326   s&\\\${datarootdir}&$datarootdir&g' ;;
26327 esac
26328 _ACEOF
26329
26330 # Neutralize VPATH when `$srcdir' = `.'.
26331 # Shell code in configure.ac might set extrasub.
26332 # FIXME: do we really want to maintain this feature?
26333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26334 ac_sed_extra="$ac_vpsub
26335 $extrasub
26336 _ACEOF
26337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26338 :t
26339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26340 s|@configure_input@|$ac_sed_conf_input|;t t
26341 s&@top_builddir@&$ac_top_builddir_sub&;t t
26342 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26343 s&@srcdir@&$ac_srcdir&;t t
26344 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26345 s&@top_srcdir@&$ac_top_srcdir&;t t
26346 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26347 s&@builddir@&$ac_builddir&;t t
26348 s&@abs_builddir@&$ac_abs_builddir&;t t
26349 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26350 s&@INSTALL@&$ac_INSTALL&;t t
26351 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26352 $ac_datarootdir_hack
26353 "
26354 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26355   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26356
26357 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26358   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26359   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26360       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26361   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26362 which seems to be undefined.  Please make sure it is defined" >&5
26363 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26364 which seems to be undefined.  Please make sure it is defined" >&2;}
26365
26366   rm -f "$ac_tmp/stdin"
26367   case $ac_file in
26368   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26369   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26370   esac \
26371   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26372  ;;
26373   :H)
26374   #
26375   # CONFIG_HEADER
26376   #
26377   if test x"$ac_file" != x-; then
26378     {
26379       $as_echo "/* $configure_input  */" \
26380       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26381     } >"$ac_tmp/config.h" \
26382       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26383     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26384       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26385 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26386     else
26387       rm -f "$ac_file"
26388       mv "$ac_tmp/config.h" "$ac_file" \
26389         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26390     fi
26391   else
26392     $as_echo "/* $configure_input  */" \
26393       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26394       || as_fn_error $? "could not create -" "$LINENO" 5
26395   fi
26396 # Compute "$ac_file"'s index in $config_headers.
26397 _am_arg="$ac_file"
26398 _am_stamp_count=1
26399 for _am_header in $config_headers :; do
26400   case $_am_header in
26401     $_am_arg | $_am_arg:* )
26402       break ;;
26403     * )
26404       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26405   esac
26406 done
26407 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26408 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26409          X"$_am_arg" : 'X\(//\)[^/]' \| \
26410          X"$_am_arg" : 'X\(//\)$' \| \
26411          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26412 $as_echo X"$_am_arg" |
26413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26414             s//\1/
26415             q
26416           }
26417           /^X\(\/\/\)[^/].*/{
26418             s//\1/
26419             q
26420           }
26421           /^X\(\/\/\)$/{
26422             s//\1/
26423             q
26424           }
26425           /^X\(\/\).*/{
26426             s//\1/
26427             q
26428           }
26429           s/.*/./; q'`/stamp-h$_am_stamp_count
26430  ;;
26431
26432   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26433 $as_echo "$as_me: executing $ac_file commands" >&6;}
26434  ;;
26435   esac
26436
26437
26438   case $ac_file$ac_mode in
26439     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26440   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26441   # are listed without --file.  Let's play safe and only enable the eval
26442   # if we detect the quoting.
26443   case $CONFIG_FILES in
26444   *\'*) eval set x "$CONFIG_FILES" ;;
26445   *)   set x $CONFIG_FILES ;;
26446   esac
26447   shift
26448   for mf
26449   do
26450     # Strip MF so we end up with the name of the file.
26451     mf=`echo "$mf" | sed -e 's/:.*$//'`
26452     # Check whether this is an Automake generated Makefile or not.
26453     # We used to match only the files named `Makefile.in', but
26454     # some people rename them; so instead we look at the file content.
26455     # Grep'ing the first line is not enough: some people post-process
26456     # each Makefile.in and add a new line on top of each file to say so.
26457     # Grep'ing the whole file is not good either: AIX grep has a line
26458     # limit of 2048, but all sed's we know have understand at least 4000.
26459     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26460       dirpart=`$as_dirname -- "$mf" ||
26461 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26462          X"$mf" : 'X\(//\)[^/]' \| \
26463          X"$mf" : 'X\(//\)$' \| \
26464          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26465 $as_echo X"$mf" |
26466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26467             s//\1/
26468             q
26469           }
26470           /^X\(\/\/\)[^/].*/{
26471             s//\1/
26472             q
26473           }
26474           /^X\(\/\/\)$/{
26475             s//\1/
26476             q
26477           }
26478           /^X\(\/\).*/{
26479             s//\1/
26480             q
26481           }
26482           s/.*/./; q'`
26483     else
26484       continue
26485     fi
26486     # Extract the definition of DEPDIR, am__include, and am__quote
26487     # from the Makefile without running `make'.
26488     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26489     test -z "$DEPDIR" && continue
26490     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26491     test -z "am__include" && continue
26492     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26493     # When using ansi2knr, U may be empty or an underscore; expand it
26494     U=`sed -n 's/^U = //p' < "$mf"`
26495     # Find all dependency output files, they are included files with
26496     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26497     # simplest approach to changing $(DEPDIR) to its actual value in the
26498     # expansion.
26499     for file in `sed -n "
26500       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26501          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26502       # Make sure the directory exists.
26503       test -f "$dirpart/$file" && continue
26504       fdir=`$as_dirname -- "$file" ||
26505 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26506          X"$file" : 'X\(//\)[^/]' \| \
26507          X"$file" : 'X\(//\)$' \| \
26508          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26509 $as_echo X"$file" |
26510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26511             s//\1/
26512             q
26513           }
26514           /^X\(\/\/\)[^/].*/{
26515             s//\1/
26516             q
26517           }
26518           /^X\(\/\/\)$/{
26519             s//\1/
26520             q
26521           }
26522           /^X\(\/\).*/{
26523             s//\1/
26524             q
26525           }
26526           s/.*/./; q'`
26527       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26528       # echo "creating $dirpart/$file"
26529       echo '# dummy' > "$dirpart/$file"
26530     done
26531   done
26532 }
26533  ;;
26534     "libtool":C)
26535
26536     # See if we are running on zsh, and set the options which allow our
26537     # commands through without removal of \ escapes.
26538     if test -n "${ZSH_VERSION+set}" ; then
26539       setopt NO_GLOB_SUBST
26540     fi
26541
26542     cfgfile="${ofile}T"
26543     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26544     $RM "$cfgfile"
26545
26546     cat <<_LT_EOF >> "$cfgfile"
26547 #! $SHELL
26548
26549 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26550 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26551 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26552 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26553 #
26554 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26555 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26556 #                 Foundation, Inc.
26557 #   Written by Gordon Matzigkeit, 1996
26558 #
26559 #   This file is part of GNU Libtool.
26560 #
26561 # GNU Libtool is free software; you can redistribute it and/or
26562 # modify it under the terms of the GNU General Public License as
26563 # published by the Free Software Foundation; either version 2 of
26564 # the License, or (at your option) any later version.
26565 #
26566 # As a special exception to the GNU General Public License,
26567 # if you distribute this file as part of a program or library that
26568 # is built using GNU Libtool, you may include this file under the
26569 # same distribution terms that you use for the rest of that program.
26570 #
26571 # GNU Libtool is distributed in the hope that it will be useful,
26572 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26574 # GNU General Public License for more details.
26575 #
26576 # You should have received a copy of the GNU General Public License
26577 # along with GNU Libtool; see the file COPYING.  If not, a copy
26578 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26579 # obtained by writing to the Free Software Foundation, Inc.,
26580 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26581
26582
26583 # The names of the tagged configurations supported by this script.
26584 available_tags=""
26585
26586 # ### BEGIN LIBTOOL CONFIG
26587
26588 # Which release of libtool.m4 was used?
26589 macro_version=$macro_version
26590 macro_revision=$macro_revision
26591
26592 # Whether or not to build static libraries.
26593 build_old_libs=$enable_static
26594
26595 # Whether or not to build shared libraries.
26596 build_libtool_libs=$enable_shared
26597
26598 # What type of objects to build.
26599 pic_mode=$pic_mode
26600
26601 # Whether or not to optimize for fast installation.
26602 fast_install=$enable_fast_install
26603
26604 # Shell to use when invoking shell scripts.
26605 SHELL=$lt_SHELL
26606
26607 # An echo program that protects backslashes.
26608 ECHO=$lt_ECHO
26609
26610 # The PATH separator for the build system.
26611 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26612
26613 # The host system.
26614 host_alias=$host_alias
26615 host=$host
26616 host_os=$host_os
26617
26618 # The build system.
26619 build_alias=$build_alias
26620 build=$build
26621 build_os=$build_os
26622
26623 # A sed program that does not truncate output.
26624 SED=$lt_SED
26625
26626 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26627 Xsed="\$SED -e 1s/^X//"
26628
26629 # A grep program that handles long lines.
26630 GREP=$lt_GREP
26631
26632 # An ERE matcher.
26633 EGREP=$lt_EGREP
26634
26635 # A literal string matcher.
26636 FGREP=$lt_FGREP
26637
26638 # A BSD- or MS-compatible name lister.
26639 NM=$lt_NM
26640
26641 # Whether we need soft or hard links.
26642 LN_S=$lt_LN_S
26643
26644 # What is the maximum length of a command?
26645 max_cmd_len=$max_cmd_len
26646
26647 # Object file suffix (normally "o").
26648 objext=$ac_objext
26649
26650 # Executable file suffix (normally "").
26651 exeext=$exeext
26652
26653 # whether the shell understands "unset".
26654 lt_unset=$lt_unset
26655
26656 # turn spaces into newlines.
26657 SP2NL=$lt_lt_SP2NL
26658
26659 # turn newlines into spaces.
26660 NL2SP=$lt_lt_NL2SP
26661
26662 # convert \$build file names to \$host format.
26663 to_host_file_cmd=$lt_cv_to_host_file_cmd
26664
26665 # convert \$build files to toolchain format.
26666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26667
26668 # An object symbol dumper.
26669 OBJDUMP=$lt_OBJDUMP
26670
26671 # Method to check whether dependent libraries are shared objects.
26672 deplibs_check_method=$lt_deplibs_check_method
26673
26674 # Command to use when deplibs_check_method = "file_magic".
26675 file_magic_cmd=$lt_file_magic_cmd
26676
26677 # How to find potential files when deplibs_check_method = "file_magic".
26678 file_magic_glob=$lt_file_magic_glob
26679
26680 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26681 want_nocaseglob=$lt_want_nocaseglob
26682
26683 # DLL creation program.
26684 DLLTOOL=$lt_DLLTOOL
26685
26686 # Command to associate shared and link libraries.
26687 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26688
26689 # The archiver.
26690 AR=$lt_AR
26691
26692 # Flags to create an archive.
26693 AR_FLAGS=$lt_AR_FLAGS
26694
26695 # How to feed a file listing to the archiver.
26696 archiver_list_spec=$lt_archiver_list_spec
26697
26698 # A symbol stripping program.
26699 STRIP=$lt_STRIP
26700
26701 # Commands used to install an old-style archive.
26702 RANLIB=$lt_RANLIB
26703 old_postinstall_cmds=$lt_old_postinstall_cmds
26704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26705
26706 # Whether to use a lock for old archive extraction.
26707 lock_old_archive_extraction=$lock_old_archive_extraction
26708
26709 # A C compiler.
26710 LTCC=$lt_CC
26711
26712 # LTCC compiler flags.
26713 LTCFLAGS=$lt_CFLAGS
26714
26715 # Take the output of nm and produce a listing of raw symbols and C names.
26716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26717
26718 # Transform the output of nm in a proper C declaration.
26719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26720
26721 # Transform the output of nm in a C name address pair.
26722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26723
26724 # Transform the output of nm in a C name address pair when lib prefix is needed.
26725 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26726
26727 # Specify filename containing input files for \$NM.
26728 nm_file_list_spec=$lt_nm_file_list_spec
26729
26730 # The root where to search for dependent libraries,and in which our libraries should be installed.
26731 lt_sysroot=$lt_sysroot
26732
26733 # The name of the directory that contains temporary libtool files.
26734 objdir=$objdir
26735
26736 # Used to examine libraries when file_magic_cmd begins with "file".
26737 MAGIC_CMD=$MAGIC_CMD
26738
26739 # Must we lock files when doing compilation?
26740 need_locks=$lt_need_locks
26741
26742 # Manifest tool.
26743 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26744
26745 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26746 DSYMUTIL=$lt_DSYMUTIL
26747
26748 # Tool to change global to local symbols on Mac OS X.
26749 NMEDIT=$lt_NMEDIT
26750
26751 # Tool to manipulate fat objects and archives on Mac OS X.
26752 LIPO=$lt_LIPO
26753
26754 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26755 OTOOL=$lt_OTOOL
26756
26757 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26758 OTOOL64=$lt_OTOOL64
26759
26760 # Old archive suffix (normally "a").
26761 libext=$libext
26762
26763 # Shared library suffix (normally ".so").
26764 shrext_cmds=$lt_shrext_cmds
26765
26766 # The commands to extract the exported symbol list from a shared archive.
26767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26768
26769 # Variables whose values should be saved in libtool wrapper scripts and
26770 # restored at link time.
26771 variables_saved_for_relink=$lt_variables_saved_for_relink
26772
26773 # Do we need the "lib" prefix for modules?
26774 need_lib_prefix=$need_lib_prefix
26775
26776 # Do we need a version for libraries?
26777 need_version=$need_version
26778
26779 # Library versioning type.
26780 version_type=$version_type
26781
26782 # Shared library runtime path variable.
26783 runpath_var=$runpath_var
26784
26785 # Shared library path variable.
26786 shlibpath_var=$shlibpath_var
26787
26788 # Is shlibpath searched before the hard-coded library search path?
26789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26790
26791 # Format of library name prefix.
26792 libname_spec=$lt_libname_spec
26793
26794 # List of archive names.  First name is the real one, the rest are links.
26795 # The last name is the one that the linker finds with -lNAME
26796 library_names_spec=$lt_library_names_spec
26797
26798 # The coded name of the library, if different from the real name.
26799 soname_spec=$lt_soname_spec
26800
26801 # Permission mode override for installation of shared libraries.
26802 install_override_mode=$lt_install_override_mode
26803
26804 # Command to use after installation of a shared archive.
26805 postinstall_cmds=$lt_postinstall_cmds
26806
26807 # Command to use after uninstallation of a shared archive.
26808 postuninstall_cmds=$lt_postuninstall_cmds
26809
26810 # Commands used to finish a libtool library installation in a directory.
26811 finish_cmds=$lt_finish_cmds
26812
26813 # As "finish_cmds", except a single script fragment to be evaled but
26814 # not shown.
26815 finish_eval=$lt_finish_eval
26816
26817 # Whether we should hardcode library paths into libraries.
26818 hardcode_into_libs=$hardcode_into_libs
26819
26820 # Compile-time system search path for libraries.
26821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26822
26823 # Run-time system search path for libraries.
26824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26825
26826 # Whether dlopen is supported.
26827 dlopen_support=$enable_dlopen
26828
26829 # Whether dlopen of programs is supported.
26830 dlopen_self=$enable_dlopen_self
26831
26832 # Whether dlopen of statically linked programs is supported.
26833 dlopen_self_static=$enable_dlopen_self_static
26834
26835 # Commands to strip libraries.
26836 old_striplib=$lt_old_striplib
26837 striplib=$lt_striplib
26838
26839
26840 # The linker used to build libraries.
26841 LD=$lt_LD
26842
26843 # How to create reloadable object files.
26844 reload_flag=$lt_reload_flag
26845 reload_cmds=$lt_reload_cmds
26846
26847 # Commands used to build an old-style archive.
26848 old_archive_cmds=$lt_old_archive_cmds
26849
26850 # A language specific compiler.
26851 CC=$lt_compiler
26852
26853 # Is the compiler the GNU compiler?
26854 with_gcc=$GCC
26855
26856 # Compiler flag to turn off builtin functions.
26857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26858
26859 # Additional compiler flags for building library objects.
26860 pic_flag=$lt_lt_prog_compiler_pic
26861
26862 # How to pass a linker flag through the compiler.
26863 wl=$lt_lt_prog_compiler_wl
26864
26865 # Compiler flag to prevent dynamic linking.
26866 link_static_flag=$lt_lt_prog_compiler_static
26867
26868 # Does compiler simultaneously support -c and -o options?
26869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26870
26871 # Whether or not to add -lc for building shared libraries.
26872 build_libtool_need_lc=$archive_cmds_need_lc
26873
26874 # Whether or not to disallow shared libs when runtime libs are static.
26875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26876
26877 # Compiler flag to allow reflexive dlopens.
26878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26879
26880 # Compiler flag to generate shared objects directly from archives.
26881 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26882
26883 # Whether the compiler copes with passing no objects directly.
26884 compiler_needs_object=$lt_compiler_needs_object
26885
26886 # Create an old-style archive from a shared archive.
26887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26888
26889 # Create a temporary old-style archive to link instead of a shared archive.
26890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26891
26892 # Commands used to build a shared archive.
26893 archive_cmds=$lt_archive_cmds
26894 archive_expsym_cmds=$lt_archive_expsym_cmds
26895
26896 # Commands used to build a loadable module if different from building
26897 # a shared archive.
26898 module_cmds=$lt_module_cmds
26899 module_expsym_cmds=$lt_module_expsym_cmds
26900
26901 # Whether we are building with GNU ld or not.
26902 with_gnu_ld=$lt_with_gnu_ld
26903
26904 # Flag that allows shared libraries with undefined symbols to be built.
26905 allow_undefined_flag=$lt_allow_undefined_flag
26906
26907 # Flag that enforces no undefined symbols.
26908 no_undefined_flag=$lt_no_undefined_flag
26909
26910 # Flag to hardcode \$libdir into a binary during linking.
26911 # This must work even if \$libdir does not exist
26912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26913
26914 # Whether we need a single "-rpath" flag with a separated argument.
26915 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26916
26917 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26918 # DIR into the resulting binary.
26919 hardcode_direct=$hardcode_direct
26920
26921 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26922 # DIR into the resulting binary and the resulting library dependency is
26923 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26924 # library is relocated.
26925 hardcode_direct_absolute=$hardcode_direct_absolute
26926
26927 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26928 # into the resulting binary.
26929 hardcode_minus_L=$hardcode_minus_L
26930
26931 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26932 # into the resulting binary.
26933 hardcode_shlibpath_var=$hardcode_shlibpath_var
26934
26935 # Set to "yes" if building a shared library automatically hardcodes DIR
26936 # into the library and all subsequent libraries and executables linked
26937 # against it.
26938 hardcode_automatic=$hardcode_automatic
26939
26940 # Set to yes if linker adds runtime paths of dependent libraries
26941 # to runtime path list.
26942 inherit_rpath=$inherit_rpath
26943
26944 # Whether libtool must link a program against all its dependency libraries.
26945 link_all_deplibs=$link_all_deplibs
26946
26947 # Set to "yes" if exported symbols are required.
26948 always_export_symbols=$always_export_symbols
26949
26950 # The commands to list exported symbols.
26951 export_symbols_cmds=$lt_export_symbols_cmds
26952
26953 # Symbols that should not be listed in the preloaded symbols.
26954 exclude_expsyms=$lt_exclude_expsyms
26955
26956 # Symbols that must always be exported.
26957 include_expsyms=$lt_include_expsyms
26958
26959 # Commands necessary for linking programs (against libraries) with templates.
26960 prelink_cmds=$lt_prelink_cmds
26961
26962 # Commands necessary for finishing linking programs.
26963 postlink_cmds=$lt_postlink_cmds
26964
26965 # Specify filename containing input files.
26966 file_list_spec=$lt_file_list_spec
26967
26968 # How to hardcode a shared library path into an executable.
26969 hardcode_action=$hardcode_action
26970
26971 # ### END LIBTOOL CONFIG
26972
26973 _LT_EOF
26974
26975   case $host_os in
26976   aix3*)
26977     cat <<\_LT_EOF >> "$cfgfile"
26978 # AIX sometimes has problems with the GCC collect2 program.  For some
26979 # reason, if we set the COLLECT_NAMES environment variable, the problems
26980 # vanish in a puff of smoke.
26981 if test "X${COLLECT_NAMES+set}" != Xset; then
26982   COLLECT_NAMES=
26983   export COLLECT_NAMES
26984 fi
26985 _LT_EOF
26986     ;;
26987   esac
26988
26989
26990 ltmain="$ac_aux_dir/ltmain.sh"
26991
26992
26993   # We use sed instead of cat because bash on DJGPP gets confused if
26994   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26995   # text mode, it properly converts lines to CR/LF.  This bash problem
26996   # is reportedly fixed, but why not run on old versions too?
26997   sed '$q' "$ltmain" >> "$cfgfile" \
26998      || (rm -f "$cfgfile"; exit 1)
26999
27000   if test x"$xsi_shell" = xyes; then
27001   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27002 func_dirname ()\
27003 {\
27004 \    case ${1} in\
27005 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27006 \      *  ) func_dirname_result="${3}" ;;\
27007 \    esac\
27008 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27009   && mv -f "$cfgfile.tmp" "$cfgfile" \
27010     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27011 test 0 -eq $? || _lt_function_replace_fail=:
27012
27013
27014   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27015 func_basename ()\
27016 {\
27017 \    func_basename_result="${1##*/}"\
27018 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27019   && mv -f "$cfgfile.tmp" "$cfgfile" \
27020     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27021 test 0 -eq $? || _lt_function_replace_fail=:
27022
27023
27024   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27025 func_dirname_and_basename ()\
27026 {\
27027 \    case ${1} in\
27028 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27029 \      *  ) func_dirname_result="${3}" ;;\
27030 \    esac\
27031 \    func_basename_result="${1##*/}"\
27032 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27033   && mv -f "$cfgfile.tmp" "$cfgfile" \
27034     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27035 test 0 -eq $? || _lt_function_replace_fail=:
27036
27037
27038   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27039 func_stripname ()\
27040 {\
27041 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27042 \    # positional parameters, so assign one to ordinary parameter first.\
27043 \    func_stripname_result=${3}\
27044 \    func_stripname_result=${func_stripname_result#"${1}"}\
27045 \    func_stripname_result=${func_stripname_result%"${2}"}\
27046 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27047   && mv -f "$cfgfile.tmp" "$cfgfile" \
27048     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27049 test 0 -eq $? || _lt_function_replace_fail=:
27050
27051
27052   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27053 func_split_long_opt ()\
27054 {\
27055 \    func_split_long_opt_name=${1%%=*}\
27056 \    func_split_long_opt_arg=${1#*=}\
27057 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27058   && mv -f "$cfgfile.tmp" "$cfgfile" \
27059     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27060 test 0 -eq $? || _lt_function_replace_fail=:
27061
27062
27063   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27064 func_split_short_opt ()\
27065 {\
27066 \    func_split_short_opt_arg=${1#??}\
27067 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27068 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27069   && mv -f "$cfgfile.tmp" "$cfgfile" \
27070     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27071 test 0 -eq $? || _lt_function_replace_fail=:
27072
27073
27074   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27075 func_lo2o ()\
27076 {\
27077 \    case ${1} in\
27078 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27079 \      *)    func_lo2o_result=${1} ;;\
27080 \    esac\
27081 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27082   && mv -f "$cfgfile.tmp" "$cfgfile" \
27083     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27084 test 0 -eq $? || _lt_function_replace_fail=:
27085
27086
27087   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27088 func_xform ()\
27089 {\
27090     func_xform_result=${1%.*}.lo\
27091 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27092   && mv -f "$cfgfile.tmp" "$cfgfile" \
27093     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27094 test 0 -eq $? || _lt_function_replace_fail=:
27095
27096
27097   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27098 func_arith ()\
27099 {\
27100     func_arith_result=$(( $* ))\
27101 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27102   && mv -f "$cfgfile.tmp" "$cfgfile" \
27103     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27104 test 0 -eq $? || _lt_function_replace_fail=:
27105
27106
27107   sed -e '/^func_len ()$/,/^} # func_len /c\
27108 func_len ()\
27109 {\
27110     func_len_result=${#1}\
27111 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27112   && mv -f "$cfgfile.tmp" "$cfgfile" \
27113     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27114 test 0 -eq $? || _lt_function_replace_fail=:
27115
27116 fi
27117
27118 if test x"$lt_shell_append" = xyes; then
27119   sed -e '/^func_append ()$/,/^} # func_append /c\
27120 func_append ()\
27121 {\
27122     eval "${1}+=\\${2}"\
27123 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27124   && mv -f "$cfgfile.tmp" "$cfgfile" \
27125     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27126 test 0 -eq $? || _lt_function_replace_fail=:
27127
27128
27129   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27130 func_append_quoted ()\
27131 {\
27132 \    func_quote_for_eval "${2}"\
27133 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27134 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27135   && mv -f "$cfgfile.tmp" "$cfgfile" \
27136     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27137 test 0 -eq $? || _lt_function_replace_fail=:
27138
27139
27140   # Save a `func_append' function call where possible by direct use of '+='
27141   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27142     && mv -f "$cfgfile.tmp" "$cfgfile" \
27143       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27144   test 0 -eq $? || _lt_function_replace_fail=:
27145 else
27146   # Save a `func_append' function call even when '+=' is not available
27147   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27148     && mv -f "$cfgfile.tmp" "$cfgfile" \
27149       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27150   test 0 -eq $? || _lt_function_replace_fail=:
27151 fi
27152
27153 if test x"$_lt_function_replace_fail" = x":"; then
27154   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27155 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27156 fi
27157
27158
27159    mv -f "$cfgfile" "$ofile" ||
27160     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27161   chmod +x "$ofile"
27162
27163  ;;
27164
27165   esac
27166 done # for ac_tag
27167
27168
27169 as_fn_exit 0
27170 _ACEOF
27171 ac_clean_files=$ac_clean_files_save
27172
27173 test $ac_write_fail = 0 ||
27174   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27175
27176
27177 # configure is writing to config.log, and then calls config.status.
27178 # config.status does its own redirection, appending to config.log.
27179 # Unfortunately, on DOS this fails, as config.log is still kept open
27180 # by configure, so config.status won't be able to write to it; its
27181 # output is simply discarded.  So we exec the FD to /dev/null,
27182 # effectively closing config.log, so it can be properly (re)opened and
27183 # appended to by config.status.  When coming back to configure, we
27184 # need to make the FD available again.
27185 if test "$no_create" != yes; then
27186   ac_cs_success=:
27187   ac_config_status_args=
27188   test "$silent" = yes &&
27189     ac_config_status_args="$ac_config_status_args --quiet"
27190   exec 5>/dev/null
27191   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27192   exec 5>>config.log
27193   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27194   # would make configure fail if this is the last instruction.
27195   $ac_cs_success || as_fn_exit 1
27196 fi
27197 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27198   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27199 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27200 fi
27201