Imported Upstream version 1.4.0
[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.4.0.
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.4.0'
594 PACKAGE_STRING='libpipeline 1.4.0'
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_LOCALTIME
751 REPLACE_GMTIME
752 REPLACE_TIMEGM
753 REPLACE_NANOSLEEP
754 REPLACE_MKTIME
755 REPLACE_LOCALTIME_R
756 HAVE_TIMEGM
757 HAVE_STRPTIME
758 HAVE_NANOSLEEP
759 HAVE_DECL_LOCALTIME_R
760 GNULIB_TIME_R
761 GNULIB_TIMEGM
762 GNULIB_STRPTIME
763 GNULIB_NANOSLEEP
764 GNULIB_MKTIME
765 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
766 NEXT_SYS_WAIT_H
767 GNULIB_WAITPID
768 WINDOWS_64_BIT_OFF_T
769 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
770 NEXT_SYS_TYPES_H
771 WINDOWS_64_BIT_ST_SIZE
772 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
773 NEXT_SYS_STAT_H
774 HAVE_SYS_SELECT_H
775 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
776 NEXT_SYS_SELECT_H
777 REPLACE_SELECT
778 REPLACE_PSELECT
779 HAVE_PSELECT
780 GNULIB_SELECT
781 GNULIB_PSELECT
782 NEXT_AS_FIRST_DIRECTIVE_STRING_H
783 NEXT_STRING_H
784 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
785 NEXT_STDLIB_H
786 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
787 NEXT_STDIO_H
788 GL_GENERATE_STDINT_H_FALSE
789 GL_GENERATE_STDINT_H_TRUE
790 STDINT_H
791 WINT_T_SUFFIX
792 WCHAR_T_SUFFIX
793 SIG_ATOMIC_T_SUFFIX
794 SIZE_T_SUFFIX
795 PTRDIFF_T_SUFFIX
796 HAVE_SIGNED_WINT_T
797 HAVE_SIGNED_WCHAR_T
798 HAVE_SIGNED_SIG_ATOMIC_T
799 BITSIZEOF_WINT_T
800 BITSIZEOF_WCHAR_T
801 BITSIZEOF_SIG_ATOMIC_T
802 BITSIZEOF_SIZE_T
803 BITSIZEOF_PTRDIFF_T
804 HAVE_SYS_BITYPES_H
805 HAVE_SYS_INTTYPES_H
806 HAVE_STDINT_H
807 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
808 NEXT_STDINT_H
809 HAVE_SYS_TYPES_H
810 HAVE_INTTYPES_H
811 HAVE_WCHAR_H
812 HAVE_UNSIGNED_LONG_LONG_INT
813 HAVE_LONG_LONG_INT
814 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
815 NEXT_STDDEF_H
816 GL_GENERATE_STDDEF_H_FALSE
817 GL_GENERATE_STDDEF_H_TRUE
818 STDDEF_H
819 HAVE_WCHAR_T
820 REPLACE_NULL
821 HAVE__BOOL
822 GL_GENERATE_STDBOOL_H_FALSE
823 GL_GENERATE_STDBOOL_H_TRUE
824 STDBOOL_H
825 GL_GENERATE_STDARG_H_FALSE
826 GL_GENERATE_STDARG_H_TRUE
827 STDARG_H
828 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
829 NEXT_STDARG_H
830 REPLACE_VSPRINTF
831 REPLACE_VSNPRINTF
832 REPLACE_VPRINTF
833 REPLACE_VFPRINTF
834 REPLACE_VDPRINTF
835 REPLACE_VASPRINTF
836 REPLACE_TMPFILE
837 REPLACE_STDIO_WRITE_FUNCS
838 REPLACE_STDIO_READ_FUNCS
839 REPLACE_SPRINTF
840 REPLACE_SNPRINTF
841 REPLACE_RENAMEAT
842 REPLACE_RENAME
843 REPLACE_REMOVE
844 REPLACE_PRINTF
845 REPLACE_POPEN
846 REPLACE_PERROR
847 REPLACE_OBSTACK_PRINTF
848 REPLACE_GETLINE
849 REPLACE_GETDELIM
850 REPLACE_FTELLO
851 REPLACE_FTELL
852 REPLACE_FSEEKO
853 REPLACE_FSEEK
854 REPLACE_FREOPEN
855 REPLACE_FPURGE
856 REPLACE_FPRINTF
857 REPLACE_FOPEN
858 REPLACE_FFLUSH
859 REPLACE_FDOPEN
860 REPLACE_FCLOSE
861 REPLACE_DPRINTF
862 HAVE_VDPRINTF
863 HAVE_VASPRINTF
864 HAVE_RENAMEAT
865 HAVE_POPEN
866 HAVE_PCLOSE
867 HAVE_FTELLO
868 HAVE_FSEEKO
869 HAVE_DPRINTF
870 HAVE_DECL_VSNPRINTF
871 HAVE_DECL_SNPRINTF
872 HAVE_DECL_OBSTACK_PRINTF
873 HAVE_DECL_GETLINE
874 HAVE_DECL_GETDELIM
875 HAVE_DECL_FTELLO
876 HAVE_DECL_FSEEKO
877 HAVE_DECL_FPURGE
878 GNULIB_VSPRINTF_POSIX
879 GNULIB_VSNPRINTF
880 GNULIB_VPRINTF_POSIX
881 GNULIB_VPRINTF
882 GNULIB_VFPRINTF_POSIX
883 GNULIB_VFPRINTF
884 GNULIB_VDPRINTF
885 GNULIB_VSCANF
886 GNULIB_VFSCANF
887 GNULIB_VASPRINTF
888 GNULIB_TMPFILE
889 GNULIB_STDIO_H_SIGPIPE
890 GNULIB_STDIO_H_NONBLOCKING
891 GNULIB_SPRINTF_POSIX
892 GNULIB_SNPRINTF
893 GNULIB_SCANF
894 GNULIB_RENAMEAT
895 GNULIB_RENAME
896 GNULIB_REMOVE
897 GNULIB_PUTS
898 GNULIB_PUTCHAR
899 GNULIB_PUTC
900 GNULIB_PRINTF_POSIX
901 GNULIB_PRINTF
902 GNULIB_POPEN
903 GNULIB_PERROR
904 GNULIB_PCLOSE
905 GNULIB_OBSTACK_PRINTF_POSIX
906 GNULIB_OBSTACK_PRINTF
907 GNULIB_GETLINE
908 GNULIB_GETDELIM
909 GNULIB_GETCHAR
910 GNULIB_GETC
911 GNULIB_FWRITE
912 GNULIB_FTELLO
913 GNULIB_FTELL
914 GNULIB_FSEEKO
915 GNULIB_FSEEK
916 GNULIB_FSCANF
917 GNULIB_FREOPEN
918 GNULIB_FREAD
919 GNULIB_FPUTS
920 GNULIB_FPUTC
921 GNULIB_FPURGE
922 GNULIB_FPRINTF_POSIX
923 GNULIB_FPRINTF
924 GNULIB_FOPEN
925 GNULIB_FGETS
926 GNULIB_FGETC
927 GNULIB_FFLUSH
928 GNULIB_FDOPEN
929 GNULIB_FCLOSE
930 GNULIB_DPRINTF
931 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
932 NEXT_SIGNAL_H
933 REPLACE_RAISE
934 REPLACE_PTHREAD_SIGMASK
935 HAVE_SIGHANDLER_T
936 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
937 HAVE_STRUCT_SIGACTION_SA_SIGACTION
938 HAVE_SIGACTION
939 HAVE_SIGINFO_T
940 HAVE_SIGSET_T
941 HAVE_RAISE
942 HAVE_PTHREAD_SIGMASK
943 HAVE_POSIX_SIGNALBLOCKING
944 GNULIB_SIGACTION
945 GNULIB_SIGPROCMASK
946 GNULIB_SIGNAL_H_SIGPIPE
947 GNULIB_RAISE
948 GNULIB_PTHREAD_SIGMASK
949 APPLE_UNIVERSAL_BUILD
950 HAVE_MSVC_INVALID_PARAMETER_HANDLER
951 UNDEFINE_STRTOK_R
952 REPLACE_STRTOK_R
953 REPLACE_STRSIGNAL
954 REPLACE_STRNLEN
955 REPLACE_STRNDUP
956 REPLACE_STRNCAT
957 REPLACE_STRERROR_R
958 REPLACE_STRERROR
959 REPLACE_STRCHRNUL
960 REPLACE_STRCASESTR
961 REPLACE_STRSTR
962 REPLACE_STRDUP
963 REPLACE_STPNCPY
964 REPLACE_MEMMEM
965 REPLACE_MEMCHR
966 HAVE_STRVERSCMP
967 HAVE_DECL_STRSIGNAL
968 HAVE_DECL_STRERROR_R
969 HAVE_DECL_STRTOK_R
970 HAVE_STRCASESTR
971 HAVE_STRSEP
972 HAVE_STRPBRK
973 HAVE_DECL_STRNLEN
974 HAVE_DECL_STRNDUP
975 HAVE_DECL_STRDUP
976 HAVE_STRCHRNUL
977 HAVE_STPNCPY
978 HAVE_STPCPY
979 HAVE_RAWMEMCHR
980 HAVE_DECL_MEMRCHR
981 HAVE_MEMPCPY
982 HAVE_DECL_MEMMEM
983 HAVE_MEMCHR
984 HAVE_FFSLL
985 HAVE_FFSL
986 HAVE_MBSLEN
987 GNULIB_STRVERSCMP
988 GNULIB_STRSIGNAL
989 GNULIB_STRERROR_R
990 GNULIB_STRERROR
991 GNULIB_MBSTOK_R
992 GNULIB_MBSSEP
993 GNULIB_MBSSPN
994 GNULIB_MBSPBRK
995 GNULIB_MBSCSPN
996 GNULIB_MBSCASESTR
997 GNULIB_MBSPCASECMP
998 GNULIB_MBSNCASECMP
999 GNULIB_MBSCASECMP
1000 GNULIB_MBSSTR
1001 GNULIB_MBSRCHR
1002 GNULIB_MBSCHR
1003 GNULIB_MBSNLEN
1004 GNULIB_MBSLEN
1005 GNULIB_STRTOK_R
1006 GNULIB_STRCASESTR
1007 GNULIB_STRSTR
1008 GNULIB_STRSEP
1009 GNULIB_STRPBRK
1010 GNULIB_STRNLEN
1011 GNULIB_STRNDUP
1012 GNULIB_STRNCAT
1013 GNULIB_STRDUP
1014 GNULIB_STRCHRNUL
1015 GNULIB_STPNCPY
1016 GNULIB_STPCPY
1017 GNULIB_RAWMEMCHR
1018 GNULIB_MEMRCHR
1019 GNULIB_MEMPCPY
1020 GNULIB_MEMMEM
1021 GNULIB_MEMCHR
1022 GNULIB_FFSLL
1023 GNULIB_FFSL
1024 REPLACE_WCTOMB
1025 REPLACE_UNSETENV
1026 REPLACE_STRTOD
1027 REPLACE_SETENV
1028 REPLACE_REALPATH
1029 REPLACE_REALLOC
1030 REPLACE_RANDOM_R
1031 REPLACE_PUTENV
1032 REPLACE_PTSNAME_R
1033 REPLACE_PTSNAME
1034 REPLACE_MKSTEMP
1035 REPLACE_MBTOWC
1036 REPLACE_MALLOC
1037 REPLACE_CANONICALIZE_FILE_NAME
1038 REPLACE_CALLOC
1039 HAVE_DECL_UNSETENV
1040 HAVE_UNLOCKPT
1041 HAVE_SYS_LOADAVG_H
1042 HAVE_STRUCT_RANDOM_DATA
1043 HAVE_STRTOULL
1044 HAVE_STRTOLL
1045 HAVE_STRTOD
1046 HAVE_DECL_SETENV
1047 HAVE_SETENV
1048 HAVE_SECURE_GETENV
1049 HAVE_RPMATCH
1050 HAVE_REALPATH
1051 HAVE_RANDOM_R
1052 HAVE_RANDOM_H
1053 HAVE_RANDOM
1054 HAVE_PTSNAME_R
1055 HAVE_PTSNAME
1056 HAVE_POSIX_OPENPT
1057 HAVE_MKSTEMPS
1058 HAVE_MKSTEMP
1059 HAVE_MKOSTEMPS
1060 HAVE_MKOSTEMP
1061 HAVE_MKDTEMP
1062 HAVE_GRANTPT
1063 HAVE_GETSUBOPT
1064 HAVE_DECL_GETLOADAVG
1065 HAVE_CANONICALIZE_FILE_NAME
1066 HAVE_ATOLL
1067 HAVE__EXIT
1068 GNULIB_WCTOMB
1069 GNULIB_UNSETENV
1070 GNULIB_UNLOCKPT
1071 GNULIB_SYSTEM_POSIX
1072 GNULIB_STRTOULL
1073 GNULIB_STRTOLL
1074 GNULIB_STRTOD
1075 GNULIB_SETENV
1076 GNULIB_SECURE_GETENV
1077 GNULIB_RPMATCH
1078 GNULIB_REALPATH
1079 GNULIB_REALLOC_POSIX
1080 GNULIB_RANDOM_R
1081 GNULIB_RANDOM
1082 GNULIB_PUTENV
1083 GNULIB_PTSNAME_R
1084 GNULIB_PTSNAME
1085 GNULIB_POSIX_OPENPT
1086 GNULIB_MKSTEMPS
1087 GNULIB_MKSTEMP
1088 GNULIB_MKOSTEMPS
1089 GNULIB_MKOSTEMP
1090 GNULIB_MKDTEMP
1091 GNULIB_MBTOWC
1092 GNULIB_MALLOC_POSIX
1093 GNULIB_GRANTPT
1094 GNULIB_GETSUBOPT
1095 GNULIB_GETLOADAVG
1096 GNULIB_CANONICALIZE_FILE_NAME
1097 GNULIB_CALLOC_POSIX
1098 GNULIB_ATOLL
1099 GNULIB__EXIT
1100 REPLACE_UTIMENSAT
1101 REPLACE_STAT
1102 REPLACE_MKNOD
1103 REPLACE_MKFIFO
1104 REPLACE_MKDIR
1105 REPLACE_LSTAT
1106 REPLACE_FUTIMENS
1107 REPLACE_FSTATAT
1108 REPLACE_FSTAT
1109 HAVE_UTIMENSAT
1110 HAVE_MKNODAT
1111 HAVE_MKNOD
1112 HAVE_MKFIFOAT
1113 HAVE_MKFIFO
1114 HAVE_MKDIRAT
1115 HAVE_LSTAT
1116 HAVE_LCHMOD
1117 HAVE_FUTIMENS
1118 HAVE_FSTATAT
1119 HAVE_FCHMODAT
1120 GNULIB_UTIMENSAT
1121 GNULIB_STAT
1122 GNULIB_MKNODAT
1123 GNULIB_MKNOD
1124 GNULIB_MKFIFOAT
1125 GNULIB_MKFIFO
1126 GNULIB_MKDIRAT
1127 GNULIB_LSTAT
1128 GNULIB_LCHMOD
1129 GNULIB_FUTIMENS
1130 GNULIB_FSTATAT
1131 GNULIB_FSTAT
1132 GNULIB_FCHMODAT
1133 LTLIBMULTITHREAD
1134 LIBMULTITHREAD
1135 LTLIBTHREAD
1136 LIBTHREAD
1137 LIBPTH_PREFIX
1138 LTLIBPTH
1139 LIBPTH
1140 IGNORE_UNUSED_LIBRARIES_CFLAGS
1141 HAVE_WINSOCK2_H
1142 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1143 NEXT_SYS_TIME_H
1144 REPLACE_STRUCT_TIMEVAL
1145 REPLACE_GETTIMEOFDAY
1146 HAVE_SYS_TIME_H
1147 HAVE_STRUCT_TIMEVAL
1148 HAVE_GETTIMEOFDAY
1149 GNULIB_GETTIMEOFDAY
1150 LTLIBINTL
1151 LIBINTL
1152 REPLACE_ITOLD
1153 GL_GENERATE_FLOAT_H_FALSE
1154 GL_GENERATE_FLOAT_H_TRUE
1155 FLOAT_H
1156 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1157 NEXT_FLOAT_H
1158 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1159 NEXT_FCNTL_H
1160 REPLACE_OPENAT
1161 REPLACE_OPEN
1162 REPLACE_FCNTL
1163 HAVE_OPENAT
1164 HAVE_FCNTL
1165 GNULIB_OPENAT
1166 GNULIB_OPEN
1167 GNULIB_NONBLOCKING
1168 GNULIB_FCNTL
1169 EOVERFLOW_VALUE
1170 EOVERFLOW_HIDDEN
1171 ENOLINK_VALUE
1172 ENOLINK_HIDDEN
1173 EMULTIHOP_VALUE
1174 EMULTIHOP_HIDDEN
1175 GL_GENERATE_ERRNO_H_FALSE
1176 GL_GENERATE_ERRNO_H_TRUE
1177 ERRNO_H
1178 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1179 NEXT_ERRNO_H
1180 PRAGMA_COLUMNS
1181 PRAGMA_SYSTEM_HEADER
1182 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1183 INCLUDE_NEXT
1184 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1185 UNISTD_H_HAVE_WINSOCK2_H
1186 REPLACE_WRITE
1187 REPLACE_USLEEP
1188 REPLACE_UNLINKAT
1189 REPLACE_UNLINK
1190 REPLACE_TTYNAME_R
1191 REPLACE_SYMLINK
1192 REPLACE_SLEEP
1193 REPLACE_RMDIR
1194 REPLACE_READLINK
1195 REPLACE_READ
1196 REPLACE_PWRITE
1197 REPLACE_PREAD
1198 REPLACE_LSEEK
1199 REPLACE_LINKAT
1200 REPLACE_LINK
1201 REPLACE_LCHOWN
1202 REPLACE_ISATTY
1203 REPLACE_GETPAGESIZE
1204 REPLACE_GETGROUPS
1205 REPLACE_GETLOGIN_R
1206 REPLACE_GETDTABLESIZE
1207 REPLACE_GETDOMAINNAME
1208 REPLACE_GETCWD
1209 REPLACE_FTRUNCATE
1210 REPLACE_FCHOWNAT
1211 REPLACE_DUP2
1212 REPLACE_DUP
1213 REPLACE_CLOSE
1214 REPLACE_CHOWN
1215 HAVE_SYS_PARAM_H
1216 HAVE_OS_H
1217 HAVE_DECL_TTYNAME_R
1218 HAVE_DECL_SETHOSTNAME
1219 HAVE_DECL_GETUSERSHELL
1220 HAVE_DECL_GETPAGESIZE
1221 HAVE_DECL_GETLOGIN_R
1222 HAVE_DECL_GETDOMAINNAME
1223 HAVE_DECL_FDATASYNC
1224 HAVE_DECL_FCHDIR
1225 HAVE_DECL_ENVIRON
1226 HAVE_USLEEP
1227 HAVE_UNLINKAT
1228 HAVE_SYMLINKAT
1229 HAVE_SYMLINK
1230 HAVE_SLEEP
1231 HAVE_SETHOSTNAME
1232 HAVE_READLINKAT
1233 HAVE_READLINK
1234 HAVE_PWRITE
1235 HAVE_PREAD
1236 HAVE_PIPE2
1237 HAVE_PIPE
1238 HAVE_LINKAT
1239 HAVE_LINK
1240 HAVE_LCHOWN
1241 HAVE_GROUP_MEMBER
1242 HAVE_GETPAGESIZE
1243 HAVE_GETLOGIN
1244 HAVE_GETHOSTNAME
1245 HAVE_GETGROUPS
1246 HAVE_GETDTABLESIZE
1247 HAVE_FTRUNCATE
1248 HAVE_FSYNC
1249 HAVE_FDATASYNC
1250 HAVE_FCHOWNAT
1251 HAVE_FCHDIR
1252 HAVE_FACCESSAT
1253 HAVE_EUIDACCESS
1254 HAVE_DUP3
1255 HAVE_DUP2
1256 HAVE_CHOWN
1257 GNULIB_WRITE
1258 GNULIB_USLEEP
1259 GNULIB_UNLINKAT
1260 GNULIB_UNLINK
1261 GNULIB_UNISTD_H_SIGPIPE
1262 GNULIB_UNISTD_H_NONBLOCKING
1263 GNULIB_TTYNAME_R
1264 GNULIB_SYMLINKAT
1265 GNULIB_SYMLINK
1266 GNULIB_SLEEP
1267 GNULIB_SETHOSTNAME
1268 GNULIB_RMDIR
1269 GNULIB_READLINKAT
1270 GNULIB_READLINK
1271 GNULIB_READ
1272 GNULIB_PWRITE
1273 GNULIB_PREAD
1274 GNULIB_PIPE2
1275 GNULIB_PIPE
1276 GNULIB_LSEEK
1277 GNULIB_LINKAT
1278 GNULIB_LINK
1279 GNULIB_LCHOWN
1280 GNULIB_ISATTY
1281 GNULIB_GROUP_MEMBER
1282 GNULIB_GETUSERSHELL
1283 GNULIB_GETPAGESIZE
1284 GNULIB_GETLOGIN_R
1285 GNULIB_GETLOGIN
1286 GNULIB_GETHOSTNAME
1287 GNULIB_GETGROUPS
1288 GNULIB_GETDTABLESIZE
1289 GNULIB_GETDOMAINNAME
1290 GNULIB_GETCWD
1291 GNULIB_FTRUNCATE
1292 GNULIB_FSYNC
1293 GNULIB_FDATASYNC
1294 GNULIB_FCHOWNAT
1295 GNULIB_FCHDIR
1296 GNULIB_FACCESSAT
1297 GNULIB_EUIDACCESS
1298 GNULIB_ENVIRON
1299 GNULIB_DUP3
1300 GNULIB_DUP2
1301 GNULIB_DUP
1302 GNULIB_CLOSE
1303 GNULIB_CHOWN
1304 GNULIB_CHDIR
1305 GL_GENERATE_ALLOCA_H_FALSE
1306 GL_GENERATE_ALLOCA_H_TRUE
1307 ALLOCA_H
1308 ALLOCA
1309 GL_COND_LIBTOOL_FALSE
1310 GL_COND_LIBTOOL_TRUE
1311 RUN_TESTS_FALSE
1312 RUN_TESTS_TRUE
1313 CHECK_LIBS
1314 CHECK_CFLAGS
1315 PKG_CONFIG_LIBDIR
1316 PKG_CONFIG_PATH
1317 PKG_CONFIG
1318 WARN_CFLAGS
1319 ARFLAGS
1320 OTOOL64
1321 OTOOL
1322 LIPO
1323 NMEDIT
1324 DSYMUTIL
1325 MANIFEST_TOOL
1326 RANLIB
1327 DLLTOOL
1328 OBJDUMP
1329 LN_S
1330 NM
1331 ac_ct_DUMPBIN
1332 DUMPBIN
1333 LD
1334 FGREP
1335 SED
1336 host_os
1337 host_vendor
1338 host_cpu
1339 host
1340 build_os
1341 build_vendor
1342 build_cpu
1343 build
1344 LIBTOOL
1345 ac_ct_AR
1346 AR
1347 EGREP
1348 GREP
1349 CPP
1350 am__fastdepCC_FALSE
1351 am__fastdepCC_TRUE
1352 CCDEPMODE
1353 am__nodep
1354 AMDEPBACKSLASH
1355 AMDEP_FALSE
1356 AMDEP_TRUE
1357 am__quote
1358 am__include
1359 DEPDIR
1360 OBJEXT
1361 EXEEXT
1362 ac_ct_CC
1363 CPPFLAGS
1364 LDFLAGS
1365 CFLAGS
1366 CC
1367 MAINT
1368 MAINTAINER_MODE_FALSE
1369 MAINTAINER_MODE_TRUE
1370 AM_BACKSLASH
1371 AM_DEFAULT_VERBOSITY
1372 AM_DEFAULT_V
1373 AM_V
1374 am__untar
1375 am__tar
1376 AMTAR
1377 am__leading_dot
1378 SET_MAKE
1379 AWK
1380 mkdir_p
1381 MKDIR_P
1382 INSTALL_STRIP_PROGRAM
1383 STRIP
1384 install_sh
1385 MAKEINFO
1386 AUTOHEADER
1387 AUTOMAKE
1388 AUTOCONF
1389 ACLOCAL
1390 VERSION
1391 PACKAGE
1392 CYGPATH_W
1393 am__isrc
1394 INSTALL_DATA
1395 INSTALL_SCRIPT
1396 INSTALL_PROGRAM
1397 target_alias
1398 host_alias
1399 build_alias
1400 LIBS
1401 ECHO_T
1402 ECHO_N
1403 ECHO_C
1404 DEFS
1405 mandir
1406 localedir
1407 libdir
1408 psdir
1409 pdfdir
1410 dvidir
1411 htmldir
1412 infodir
1413 docdir
1414 oldincludedir
1415 includedir
1416 localstatedir
1417 sharedstatedir
1418 sysconfdir
1419 datadir
1420 datarootdir
1421 libexecdir
1422 sbindir
1423 bindir
1424 program_transform_name
1425 prefix
1426 exec_prefix
1427 PACKAGE_URL
1428 PACKAGE_BUGREPORT
1429 PACKAGE_STRING
1430 PACKAGE_VERSION
1431 PACKAGE_TARNAME
1432 PACKAGE_NAME
1433 PATH_SEPARATOR
1434 SHELL'
1435 ac_subst_files=''
1436 ac_user_opts='
1437 enable_option_checking
1438 enable_silent_rules
1439 enable_maintainer_mode
1440 enable_dependency_tracking
1441 enable_static
1442 enable_shared
1443 with_pic
1444 enable_fast_install
1445 with_gnu_ld
1446 with_sysroot
1447 enable_libtool_lock
1448 enable_largefile
1449 enable_threads
1450 enable_rpath
1451 with_libpth_prefix
1452 enable_socketpair_pipe
1453 '
1454       ac_precious_vars='build_alias
1455 host_alias
1456 target_alias
1457 CC
1458 CFLAGS
1459 LDFLAGS
1460 LIBS
1461 CPPFLAGS
1462 CPP
1463 PKG_CONFIG
1464 PKG_CONFIG_PATH
1465 PKG_CONFIG_LIBDIR
1466 CHECK_CFLAGS
1467 CHECK_LIBS'
1468
1469
1470 # Initialize some variables set by options.
1471 ac_init_help=
1472 ac_init_version=false
1473 ac_unrecognized_opts=
1474 ac_unrecognized_sep=
1475 # The variables have the same names as the options, with
1476 # dashes changed to underlines.
1477 cache_file=/dev/null
1478 exec_prefix=NONE
1479 no_create=
1480 no_recursion=
1481 prefix=NONE
1482 program_prefix=NONE
1483 program_suffix=NONE
1484 program_transform_name=s,x,x,
1485 silent=
1486 site=
1487 srcdir=
1488 verbose=
1489 x_includes=NONE
1490 x_libraries=NONE
1491
1492 # Installation directory options.
1493 # These are left unexpanded so users can "make install exec_prefix=/foo"
1494 # and all the variables that are supposed to be based on exec_prefix
1495 # by default will actually change.
1496 # Use braces instead of parens because sh, perl, etc. also accept them.
1497 # (The list follows the same order as the GNU Coding Standards.)
1498 bindir='${exec_prefix}/bin'
1499 sbindir='${exec_prefix}/sbin'
1500 libexecdir='${exec_prefix}/libexec'
1501 datarootdir='${prefix}/share'
1502 datadir='${datarootdir}'
1503 sysconfdir='${prefix}/etc'
1504 sharedstatedir='${prefix}/com'
1505 localstatedir='${prefix}/var'
1506 includedir='${prefix}/include'
1507 oldincludedir='/usr/include'
1508 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1509 infodir='${datarootdir}/info'
1510 htmldir='${docdir}'
1511 dvidir='${docdir}'
1512 pdfdir='${docdir}'
1513 psdir='${docdir}'
1514 libdir='${exec_prefix}/lib'
1515 localedir='${datarootdir}/locale'
1516 mandir='${datarootdir}/man'
1517
1518 ac_prev=
1519 ac_dashdash=
1520 for ac_option
1521 do
1522   # If the previous option needs an argument, assign it.
1523   if test -n "$ac_prev"; then
1524     eval $ac_prev=\$ac_option
1525     ac_prev=
1526     continue
1527   fi
1528
1529   case $ac_option in
1530   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1531   *=)   ac_optarg= ;;
1532   *)    ac_optarg=yes ;;
1533   esac
1534
1535   # Accept the important Cygnus configure options, so we can diagnose typos.
1536
1537   case $ac_dashdash$ac_option in
1538   --)
1539     ac_dashdash=yes ;;
1540
1541   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1542     ac_prev=bindir ;;
1543   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1544     bindir=$ac_optarg ;;
1545
1546   -build | --build | --buil | --bui | --bu)
1547     ac_prev=build_alias ;;
1548   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1549     build_alias=$ac_optarg ;;
1550
1551   -cache-file | --cache-file | --cache-fil | --cache-fi \
1552   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1553     ac_prev=cache_file ;;
1554   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1555   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1556     cache_file=$ac_optarg ;;
1557
1558   --config-cache | -C)
1559     cache_file=config.cache ;;
1560
1561   -datadir | --datadir | --datadi | --datad)
1562     ac_prev=datadir ;;
1563   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1564     datadir=$ac_optarg ;;
1565
1566   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1567   | --dataroo | --dataro | --datar)
1568     ac_prev=datarootdir ;;
1569   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1570   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1571     datarootdir=$ac_optarg ;;
1572
1573   -disable-* | --disable-*)
1574     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1575     # Reject names that are not valid shell variable names.
1576     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1577       as_fn_error $? "invalid feature name: $ac_useropt"
1578     ac_useropt_orig=$ac_useropt
1579     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1580     case $ac_user_opts in
1581       *"
1582 "enable_$ac_useropt"
1583 "*) ;;
1584       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1585          ac_unrecognized_sep=', ';;
1586     esac
1587     eval enable_$ac_useropt=no ;;
1588
1589   -docdir | --docdir | --docdi | --doc | --do)
1590     ac_prev=docdir ;;
1591   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1592     docdir=$ac_optarg ;;
1593
1594   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1595     ac_prev=dvidir ;;
1596   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1597     dvidir=$ac_optarg ;;
1598
1599   -enable-* | --enable-*)
1600     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1601     # Reject names that are not valid shell variable names.
1602     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1603       as_fn_error $? "invalid feature name: $ac_useropt"
1604     ac_useropt_orig=$ac_useropt
1605     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1606     case $ac_user_opts in
1607       *"
1608 "enable_$ac_useropt"
1609 "*) ;;
1610       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1611          ac_unrecognized_sep=', ';;
1612     esac
1613     eval enable_$ac_useropt=\$ac_optarg ;;
1614
1615   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1616   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1617   | --exec | --exe | --ex)
1618     ac_prev=exec_prefix ;;
1619   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1620   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1621   | --exec=* | --exe=* | --ex=*)
1622     exec_prefix=$ac_optarg ;;
1623
1624   -gas | --gas | --ga | --g)
1625     # Obsolete; use --with-gas.
1626     with_gas=yes ;;
1627
1628   -help | --help | --hel | --he | -h)
1629     ac_init_help=long ;;
1630   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1631     ac_init_help=recursive ;;
1632   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1633     ac_init_help=short ;;
1634
1635   -host | --host | --hos | --ho)
1636     ac_prev=host_alias ;;
1637   -host=* | --host=* | --hos=* | --ho=*)
1638     host_alias=$ac_optarg ;;
1639
1640   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1641     ac_prev=htmldir ;;
1642   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1643   | --ht=*)
1644     htmldir=$ac_optarg ;;
1645
1646   -includedir | --includedir | --includedi | --included | --include \
1647   | --includ | --inclu | --incl | --inc)
1648     ac_prev=includedir ;;
1649   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1650   | --includ=* | --inclu=* | --incl=* | --inc=*)
1651     includedir=$ac_optarg ;;
1652
1653   -infodir | --infodir | --infodi | --infod | --info | --inf)
1654     ac_prev=infodir ;;
1655   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1656     infodir=$ac_optarg ;;
1657
1658   -libdir | --libdir | --libdi | --libd)
1659     ac_prev=libdir ;;
1660   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1661     libdir=$ac_optarg ;;
1662
1663   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1664   | --libexe | --libex | --libe)
1665     ac_prev=libexecdir ;;
1666   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1667   | --libexe=* | --libex=* | --libe=*)
1668     libexecdir=$ac_optarg ;;
1669
1670   -localedir | --localedir | --localedi | --localed | --locale)
1671     ac_prev=localedir ;;
1672   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1673     localedir=$ac_optarg ;;
1674
1675   -localstatedir | --localstatedir | --localstatedi | --localstated \
1676   | --localstate | --localstat | --localsta | --localst | --locals)
1677     ac_prev=localstatedir ;;
1678   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1679   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1680     localstatedir=$ac_optarg ;;
1681
1682   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1683     ac_prev=mandir ;;
1684   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1685     mandir=$ac_optarg ;;
1686
1687   -nfp | --nfp | --nf)
1688     # Obsolete; use --without-fp.
1689     with_fp=no ;;
1690
1691   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1692   | --no-cr | --no-c | -n)
1693     no_create=yes ;;
1694
1695   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1696   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1697     no_recursion=yes ;;
1698
1699   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1700   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1701   | --oldin | --oldi | --old | --ol | --o)
1702     ac_prev=oldincludedir ;;
1703   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1704   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1705   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1706     oldincludedir=$ac_optarg ;;
1707
1708   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1709     ac_prev=prefix ;;
1710   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1711     prefix=$ac_optarg ;;
1712
1713   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1714   | --program-pre | --program-pr | --program-p)
1715     ac_prev=program_prefix ;;
1716   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1717   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1718     program_prefix=$ac_optarg ;;
1719
1720   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1721   | --program-suf | --program-su | --program-s)
1722     ac_prev=program_suffix ;;
1723   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1724   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1725     program_suffix=$ac_optarg ;;
1726
1727   -program-transform-name | --program-transform-name \
1728   | --program-transform-nam | --program-transform-na \
1729   | --program-transform-n | --program-transform- \
1730   | --program-transform | --program-transfor \
1731   | --program-transfo | --program-transf \
1732   | --program-trans | --program-tran \
1733   | --progr-tra | --program-tr | --program-t)
1734     ac_prev=program_transform_name ;;
1735   -program-transform-name=* | --program-transform-name=* \
1736   | --program-transform-nam=* | --program-transform-na=* \
1737   | --program-transform-n=* | --program-transform-=* \
1738   | --program-transform=* | --program-transfor=* \
1739   | --program-transfo=* | --program-transf=* \
1740   | --program-trans=* | --program-tran=* \
1741   | --progr-tra=* | --program-tr=* | --program-t=*)
1742     program_transform_name=$ac_optarg ;;
1743
1744   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1745     ac_prev=pdfdir ;;
1746   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1747     pdfdir=$ac_optarg ;;
1748
1749   -psdir | --psdir | --psdi | --psd | --ps)
1750     ac_prev=psdir ;;
1751   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1752     psdir=$ac_optarg ;;
1753
1754   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755   | -silent | --silent | --silen | --sile | --sil)
1756     silent=yes ;;
1757
1758   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1759     ac_prev=sbindir ;;
1760   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1761   | --sbi=* | --sb=*)
1762     sbindir=$ac_optarg ;;
1763
1764   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1765   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1766   | --sharedst | --shareds | --shared | --share | --shar \
1767   | --sha | --sh)
1768     ac_prev=sharedstatedir ;;
1769   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1770   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1771   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1772   | --sha=* | --sh=*)
1773     sharedstatedir=$ac_optarg ;;
1774
1775   -site | --site | --sit)
1776     ac_prev=site ;;
1777   -site=* | --site=* | --sit=*)
1778     site=$ac_optarg ;;
1779
1780   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1781     ac_prev=srcdir ;;
1782   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1783     srcdir=$ac_optarg ;;
1784
1785   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1786   | --syscon | --sysco | --sysc | --sys | --sy)
1787     ac_prev=sysconfdir ;;
1788   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1789   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1790     sysconfdir=$ac_optarg ;;
1791
1792   -target | --target | --targe | --targ | --tar | --ta | --t)
1793     ac_prev=target_alias ;;
1794   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1795     target_alias=$ac_optarg ;;
1796
1797   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1798     verbose=yes ;;
1799
1800   -version | --version | --versio | --versi | --vers | -V)
1801     ac_init_version=: ;;
1802
1803   -with-* | --with-*)
1804     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1805     # Reject names that are not valid shell variable names.
1806     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1807       as_fn_error $? "invalid package name: $ac_useropt"
1808     ac_useropt_orig=$ac_useropt
1809     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1810     case $ac_user_opts in
1811       *"
1812 "with_$ac_useropt"
1813 "*) ;;
1814       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1815          ac_unrecognized_sep=', ';;
1816     esac
1817     eval with_$ac_useropt=\$ac_optarg ;;
1818
1819   -without-* | --without-*)
1820     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1821     # Reject names that are not valid shell variable names.
1822     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1823       as_fn_error $? "invalid package name: $ac_useropt"
1824     ac_useropt_orig=$ac_useropt
1825     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1826     case $ac_user_opts in
1827       *"
1828 "with_$ac_useropt"
1829 "*) ;;
1830       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1831          ac_unrecognized_sep=', ';;
1832     esac
1833     eval with_$ac_useropt=no ;;
1834
1835   --x)
1836     # Obsolete; use --with-x.
1837     with_x=yes ;;
1838
1839   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1840   | --x-incl | --x-inc | --x-in | --x-i)
1841     ac_prev=x_includes ;;
1842   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1843   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1844     x_includes=$ac_optarg ;;
1845
1846   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1847   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1848     ac_prev=x_libraries ;;
1849   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1850   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1851     x_libraries=$ac_optarg ;;
1852
1853   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1854 Try \`$0 --help' for more information"
1855     ;;
1856
1857   *=*)
1858     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1859     # Reject names that are not valid shell variable names.
1860     case $ac_envvar in #(
1861       '' | [0-9]* | *[!_$as_cr_alnum]* )
1862       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1863     esac
1864     eval $ac_envvar=\$ac_optarg
1865     export $ac_envvar ;;
1866
1867   *)
1868     # FIXME: should be removed in autoconf 3.0.
1869     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1870     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1871       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1872     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1873     ;;
1874
1875   esac
1876 done
1877
1878 if test -n "$ac_prev"; then
1879   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1880   as_fn_error $? "missing argument to $ac_option"
1881 fi
1882
1883 if test -n "$ac_unrecognized_opts"; then
1884   case $enable_option_checking in
1885     no) ;;
1886     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1887     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1888   esac
1889 fi
1890
1891 # Check all directory arguments for consistency.
1892 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1893                 datadir sysconfdir sharedstatedir localstatedir includedir \
1894                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1895                 libdir localedir mandir
1896 do
1897   eval ac_val=\$$ac_var
1898   # Remove trailing slashes.
1899   case $ac_val in
1900     */ )
1901       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1902       eval $ac_var=\$ac_val;;
1903   esac
1904   # Be sure to have absolute directory names.
1905   case $ac_val in
1906     [\\/$]* | ?:[\\/]* )  continue;;
1907     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1908   esac
1909   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1910 done
1911
1912 # There might be people who depend on the old broken behavior: `$host'
1913 # used to hold the argument of --host etc.
1914 # FIXME: To remove some day.
1915 build=$build_alias
1916 host=$host_alias
1917 target=$target_alias
1918
1919 # FIXME: To remove some day.
1920 if test "x$host_alias" != x; then
1921   if test "x$build_alias" = x; then
1922     cross_compiling=maybe
1923   elif test "x$build_alias" != "x$host_alias"; then
1924     cross_compiling=yes
1925   fi
1926 fi
1927
1928 ac_tool_prefix=
1929 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1930
1931 test "$silent" = yes && exec 6>/dev/null
1932
1933
1934 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1935 ac_ls_di=`ls -di .` &&
1936 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1937   as_fn_error $? "working directory cannot be determined"
1938 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1939   as_fn_error $? "pwd does not report name of working directory"
1940
1941
1942 # Find the source files, if location was not specified.
1943 if test -z "$srcdir"; then
1944   ac_srcdir_defaulted=yes
1945   # Try the directory containing this script, then the parent directory.
1946   ac_confdir=`$as_dirname -- "$as_myself" ||
1947 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1948          X"$as_myself" : 'X\(//\)[^/]' \| \
1949          X"$as_myself" : 'X\(//\)$' \| \
1950          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1951 $as_echo X"$as_myself" |
1952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1953             s//\1/
1954             q
1955           }
1956           /^X\(\/\/\)[^/].*/{
1957             s//\1/
1958             q
1959           }
1960           /^X\(\/\/\)$/{
1961             s//\1/
1962             q
1963           }
1964           /^X\(\/\).*/{
1965             s//\1/
1966             q
1967           }
1968           s/.*/./; q'`
1969   srcdir=$ac_confdir
1970   if test ! -r "$srcdir/$ac_unique_file"; then
1971     srcdir=..
1972   fi
1973 else
1974   ac_srcdir_defaulted=no
1975 fi
1976 if test ! -r "$srcdir/$ac_unique_file"; then
1977   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1978   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1979 fi
1980 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1981 ac_abs_confdir=`(
1982         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1983         pwd)`
1984 # When building in place, set srcdir=.
1985 if test "$ac_abs_confdir" = "$ac_pwd"; then
1986   srcdir=.
1987 fi
1988 # Remove unnecessary trailing slashes from srcdir.
1989 # Double slashes in file names in object file debugging info
1990 # mess up M-x gdb in Emacs.
1991 case $srcdir in
1992 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1993 esac
1994 for ac_var in $ac_precious_vars; do
1995   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1996   eval ac_env_${ac_var}_value=\$${ac_var}
1997   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1998   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1999 done
2000
2001 #
2002 # Report the --help message.
2003 #
2004 if test "$ac_init_help" = "long"; then
2005   # Omit some internal or obsolete options to make the list less imposing.
2006   # This message is too long to be a string in the A/UX 3.1 sh.
2007   cat <<_ACEOF
2008 \`configure' configures libpipeline 1.4.0 to adapt to many kinds of systems.
2009
2010 Usage: $0 [OPTION]... [VAR=VALUE]...
2011
2012 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2013 VAR=VALUE.  See below for descriptions of some of the useful variables.
2014
2015 Defaults for the options are specified in brackets.
2016
2017 Configuration:
2018   -h, --help              display this help and exit
2019       --help=short        display options specific to this package
2020       --help=recursive    display the short help of all the included packages
2021   -V, --version           display version information and exit
2022   -q, --quiet, --silent   do not print \`checking ...' messages
2023       --cache-file=FILE   cache test results in FILE [disabled]
2024   -C, --config-cache      alias for \`--cache-file=config.cache'
2025   -n, --no-create         do not create output files
2026       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2027
2028 Installation directories:
2029   --prefix=PREFIX         install architecture-independent files in PREFIX
2030                           [$ac_default_prefix]
2031   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2032                           [PREFIX]
2033
2034 By default, \`make install' will install all the files in
2035 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2036 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2037 for instance \`--prefix=\$HOME'.
2038
2039 For better control, use the options below.
2040
2041 Fine tuning of the installation directories:
2042   --bindir=DIR            user executables [EPREFIX/bin]
2043   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2044   --libexecdir=DIR        program executables [EPREFIX/libexec]
2045   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2046   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2047   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2048   --libdir=DIR            object code libraries [EPREFIX/lib]
2049   --includedir=DIR        C header files [PREFIX/include]
2050   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2051   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2052   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2053   --infodir=DIR           info documentation [DATAROOTDIR/info]
2054   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2055   --mandir=DIR            man documentation [DATAROOTDIR/man]
2056   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2057   --htmldir=DIR           html documentation [DOCDIR]
2058   --dvidir=DIR            dvi documentation [DOCDIR]
2059   --pdfdir=DIR            pdf documentation [DOCDIR]
2060   --psdir=DIR             ps documentation [DOCDIR]
2061 _ACEOF
2062
2063   cat <<\_ACEOF
2064
2065 Program names:
2066   --program-prefix=PREFIX            prepend PREFIX to installed program names
2067   --program-suffix=SUFFIX            append SUFFIX to installed program names
2068   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2069
2070 System types:
2071   --build=BUILD     configure for building on BUILD [guessed]
2072   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2073 _ACEOF
2074 fi
2075
2076 if test -n "$ac_init_help"; then
2077   case $ac_init_help in
2078      short | recursive ) echo "Configuration of libpipeline 1.4.0:";;
2079    esac
2080   cat <<\_ACEOF
2081
2082 Optional Features:
2083   --disable-option-checking  ignore unrecognized --enable/--with options
2084   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2085   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2086   --enable-silent-rules   less verbose build output (undo: "make V=1")
2087   --disable-silent-rules  verbose build output (undo: "make V=0")
2088   --enable-maintainer-mode
2089                           enable make rules and dependencies not useful (and
2090                           sometimes confusing) to the casual installer
2091   --enable-dependency-tracking
2092                           do not reject slow dependency extractors
2093   --disable-dependency-tracking
2094                           speeds up one-time build
2095   --enable-static[=PKGS]  build static libraries [default=no]
2096   --enable-shared[=PKGS]  build shared libraries [default=yes]
2097   --enable-fast-install[=PKGS]
2098                           optimize for fast installation [default=yes]
2099   --disable-libtool-lock  avoid locking (might break parallel builds)
2100   --disable-largefile     omit support for large files
2101   --enable-threads={posix|solaris|pth|windows}
2102                           specify multithreading API
2103   --disable-threads       build without multithread safety
2104   --disable-rpath         do not hardcode runtime library paths
2105   --enable-socketpair-pipe
2106                           Use socketpair(2) as fast replacement for pipe(2)
2107
2108 Optional Packages:
2109   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2110   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2111   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2112                           both]
2113   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2114   --with-sysroot=DIR Search for dependent libraries within DIR
2115                         (or the compiler's sysroot if not specified).
2116   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2117   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2118   --without-libpth-prefix     don't search for libpth in includedir and libdir
2119
2120 Some influential environment variables:
2121   CC          C compiler command
2122   CFLAGS      C compiler flags
2123   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2124               nonstandard directory <lib dir>
2125   LIBS        libraries to pass to the linker, e.g. -l<library>
2126   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2127               you have headers in a nonstandard directory <include dir>
2128   CPP         C preprocessor
2129   PKG_CONFIG  path to pkg-config utility
2130   PKG_CONFIG_PATH
2131               directories to add to pkg-config's search path
2132   PKG_CONFIG_LIBDIR
2133               path overriding pkg-config's built-in search path
2134   CHECK_CFLAGS
2135               C compiler flags for CHECK, overriding pkg-config
2136   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2137
2138 Use these variables to override the choices made by `configure' or to help
2139 it to find libraries and programs with nonstandard names/locations.
2140
2141 Report bugs to <cjwatson@debian.org>.
2142 _ACEOF
2143 ac_status=$?
2144 fi
2145
2146 if test "$ac_init_help" = "recursive"; then
2147   # If there are subdirs, report their specific --help.
2148   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2149     test -d "$ac_dir" ||
2150       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2151       continue
2152     ac_builddir=.
2153
2154 case "$ac_dir" in
2155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2156 *)
2157   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2158   # A ".." for each directory in $ac_dir_suffix.
2159   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2160   case $ac_top_builddir_sub in
2161   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2162   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2163   esac ;;
2164 esac
2165 ac_abs_top_builddir=$ac_pwd
2166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2167 # for backward compatibility:
2168 ac_top_builddir=$ac_top_build_prefix
2169
2170 case $srcdir in
2171   .)  # We are building in place.
2172     ac_srcdir=.
2173     ac_top_srcdir=$ac_top_builddir_sub
2174     ac_abs_top_srcdir=$ac_pwd ;;
2175   [\\/]* | ?:[\\/]* )  # Absolute name.
2176     ac_srcdir=$srcdir$ac_dir_suffix;
2177     ac_top_srcdir=$srcdir
2178     ac_abs_top_srcdir=$srcdir ;;
2179   *) # Relative name.
2180     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2181     ac_top_srcdir=$ac_top_build_prefix$srcdir
2182     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2183 esac
2184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2185
2186     cd "$ac_dir" || { ac_status=$?; continue; }
2187     # Check for guested configure.
2188     if test -f "$ac_srcdir/configure.gnu"; then
2189       echo &&
2190       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2191     elif test -f "$ac_srcdir/configure"; then
2192       echo &&
2193       $SHELL "$ac_srcdir/configure" --help=recursive
2194     else
2195       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2196     fi || ac_status=$?
2197     cd "$ac_pwd" || { ac_status=$?; break; }
2198   done
2199 fi
2200
2201 test -n "$ac_init_help" && exit $ac_status
2202 if $ac_init_version; then
2203   cat <<\_ACEOF
2204 libpipeline configure 1.4.0
2205 generated by GNU Autoconf 2.69
2206
2207 Copyright (C) 2012 Free Software Foundation, Inc.
2208 This configure script is free software; the Free Software Foundation
2209 gives unlimited permission to copy, distribute and modify it.
2210 _ACEOF
2211   exit
2212 fi
2213
2214 ## ------------------------ ##
2215 ## Autoconf initialization. ##
2216 ## ------------------------ ##
2217
2218 # ac_fn_c_try_compile LINENO
2219 # --------------------------
2220 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2221 ac_fn_c_try_compile ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   rm -f conftest.$ac_objext
2225   if { { ac_try="$ac_compile"
2226 case "(($ac_try" in
2227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228   *) ac_try_echo=$ac_try;;
2229 esac
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232   (eval "$ac_compile") 2>conftest.err
2233   ac_status=$?
2234   if test -s conftest.err; then
2235     grep -v '^ *+' conftest.err >conftest.er1
2236     cat conftest.er1 >&5
2237     mv -f conftest.er1 conftest.err
2238   fi
2239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240   test $ac_status = 0; } && {
2241          test -z "$ac_c_werror_flag" ||
2242          test ! -s conftest.err
2243        } && test -s conftest.$ac_objext; then :
2244   ac_retval=0
2245 else
2246   $as_echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2248
2249         ac_retval=1
2250 fi
2251   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252   as_fn_set_status $ac_retval
2253
2254 } # ac_fn_c_try_compile
2255
2256 # ac_fn_c_try_cpp LINENO
2257 # ----------------------
2258 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_c_try_cpp ()
2260 {
2261   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262   if { { ac_try="$ac_cpp conftest.$ac_ext"
2263 case "(($ac_try" in
2264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265   *) ac_try_echo=$ac_try;;
2266 esac
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2270   ac_status=$?
2271   if test -s conftest.err; then
2272     grep -v '^ *+' conftest.err >conftest.er1
2273     cat conftest.er1 >&5
2274     mv -f conftest.er1 conftest.err
2275   fi
2276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277   test $ac_status = 0; } > conftest.i && {
2278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2279          test ! -s conftest.err
2280        }; then :
2281   ac_retval=0
2282 else
2283   $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286     ac_retval=1
2287 fi
2288   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289   as_fn_set_status $ac_retval
2290
2291 } # ac_fn_c_try_cpp
2292
2293 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2294 # -------------------------------------------------------
2295 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2296 # the include files in INCLUDES and setting the cache variable VAR
2297 # accordingly.
2298 ac_fn_c_check_header_mongrel ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   if eval \${$3+:} false; then :
2302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if eval \${$3+:} false; then :
2305   $as_echo_n "(cached) " >&6
2306 fi
2307 eval ac_res=\$$3
2308                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 else
2311   # Is the header compilable?
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2313 $as_echo_n "checking $2 usability... " >&6; }
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h.  */
2316 $4
2317 #include <$2>
2318 _ACEOF
2319 if ac_fn_c_try_compile "$LINENO"; then :
2320   ac_header_compiler=yes
2321 else
2322   ac_header_compiler=no
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2326 $as_echo "$ac_header_compiler" >&6; }
2327
2328 # Is the header present?
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2330 $as_echo_n "checking $2 presence... " >&6; }
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h.  */
2333 #include <$2>
2334 _ACEOF
2335 if ac_fn_c_try_cpp "$LINENO"; then :
2336   ac_header_preproc=yes
2337 else
2338   ac_header_preproc=no
2339 fi
2340 rm -f conftest.err conftest.i conftest.$ac_ext
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2342 $as_echo "$ac_header_preproc" >&6; }
2343
2344 # So?  What about this header?
2345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2346   yes:no: )
2347     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2348 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2349     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2350 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2351     ;;
2352   no:yes:* )
2353     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2354 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2355     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2356 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2358 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2359     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2360 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2362 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2363 ( $as_echo "## ---------------------------------- ##
2364 ## Report this to cjwatson@debian.org ##
2365 ## ---------------------------------- ##"
2366      ) | sed "s/^/$as_me: WARNING:     /" >&2
2367     ;;
2368 esac
2369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370 $as_echo_n "checking for $2... " >&6; }
2371 if eval \${$3+:} false; then :
2372   $as_echo_n "(cached) " >&6
2373 else
2374   eval "$3=\$ac_header_compiler"
2375 fi
2376 eval ac_res=\$$3
2377                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2378 $as_echo "$ac_res" >&6; }
2379 fi
2380   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2381
2382 } # ac_fn_c_check_header_mongrel
2383
2384 # ac_fn_c_try_run LINENO
2385 # ----------------------
2386 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2387 # that executables *can* be run.
2388 ac_fn_c_try_run ()
2389 {
2390   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391   if { { ac_try="$ac_link"
2392 case "(($ac_try" in
2393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394   *) ac_try_echo=$ac_try;;
2395 esac
2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398   (eval "$ac_link") 2>&5
2399   ac_status=$?
2400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2402   { { case "(($ac_try" in
2403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404   *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408   (eval "$ac_try") 2>&5
2409   ac_status=$?
2410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411   test $ac_status = 0; }; }; then :
2412   ac_retval=0
2413 else
2414   $as_echo "$as_me: program exited with status $ac_status" >&5
2415        $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418        ac_retval=$ac_status
2419 fi
2420   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2421   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422   as_fn_set_status $ac_retval
2423
2424 } # ac_fn_c_try_run
2425
2426 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2427 # -------------------------------------------------------
2428 # Tests whether HEADER exists and can be compiled using the include files in
2429 # INCLUDES, setting the cache variable VAR accordingly.
2430 ac_fn_c_check_header_compile ()
2431 {
2432   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if eval \${$3+:} false; then :
2436   $as_echo_n "(cached) " >&6
2437 else
2438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h.  */
2440 $4
2441 #include <$2>
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444   eval "$3=yes"
2445 else
2446   eval "$3=no"
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 fi
2450 eval ac_res=\$$3
2451                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454
2455 } # ac_fn_c_check_header_compile
2456
2457 # ac_fn_c_try_link LINENO
2458 # -----------------------
2459 # Try to link conftest.$ac_ext, and return whether this succeeded.
2460 ac_fn_c_try_link ()
2461 {
2462   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463   rm -f conftest.$ac_objext conftest$ac_exeext
2464   if { { ac_try="$ac_link"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471   (eval "$ac_link") 2>conftest.err
2472   ac_status=$?
2473   if test -s conftest.err; then
2474     grep -v '^ *+' conftest.err >conftest.er1
2475     cat conftest.er1 >&5
2476     mv -f conftest.er1 conftest.err
2477   fi
2478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479   test $ac_status = 0; } && {
2480          test -z "$ac_c_werror_flag" ||
2481          test ! -s conftest.err
2482        } && test -s conftest$ac_exeext && {
2483          test "$cross_compiling" = yes ||
2484          test -x conftest$ac_exeext
2485        }; then :
2486   ac_retval=0
2487 else
2488   $as_echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491         ac_retval=1
2492 fi
2493   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2494   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2495   # interfere with the next link command; also delete a directory that is
2496   # left behind by Apple's compiler.  We do this before executing the actions.
2497   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2498   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499   as_fn_set_status $ac_retval
2500
2501 } # ac_fn_c_try_link
2502
2503 # ac_fn_c_check_func LINENO FUNC VAR
2504 # ----------------------------------
2505 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2506 ac_fn_c_check_func ()
2507 {
2508   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2510 $as_echo_n "checking for $2... " >&6; }
2511 if eval \${$3+:} false; then :
2512   $as_echo_n "(cached) " >&6
2513 else
2514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h.  */
2516 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2518 #define $2 innocuous_$2
2519
2520 /* System header to define __stub macros and hopefully few prototypes,
2521     which can conflict with char $2 (); below.
2522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2523     <limits.h> exists even on freestanding compilers.  */
2524
2525 #ifdef __STDC__
2526 # include <limits.h>
2527 #else
2528 # include <assert.h>
2529 #endif
2530
2531 #undef $2
2532
2533 /* Override any GCC internal prototype to avoid an error.
2534    Use char because int might match the return type of a GCC
2535    builtin and then its argument prototype would still apply.  */
2536 #ifdef __cplusplus
2537 extern "C"
2538 #endif
2539 char $2 ();
2540 /* The GNU C library defines this for functions which it implements
2541     to always fail with ENOSYS.  Some functions are actually named
2542     something starting with __ and the normal name is an alias.  */
2543 #if defined __stub_$2 || defined __stub___$2
2544 choke me
2545 #endif
2546
2547 int
2548 main ()
2549 {
2550 return $2 ();
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 if ac_fn_c_try_link "$LINENO"; then :
2556   eval "$3=yes"
2557 else
2558   eval "$3=no"
2559 fi
2560 rm -f core conftest.err conftest.$ac_objext \
2561     conftest$ac_exeext conftest.$ac_ext
2562 fi
2563 eval ac_res=\$$3
2564                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2567
2568 } # ac_fn_c_check_func
2569
2570 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2571 # -------------------------------------------
2572 # Tests whether TYPE exists after having included INCLUDES, setting cache
2573 # variable VAR accordingly.
2574 ac_fn_c_check_type ()
2575 {
2576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if eval \${$3+:} false; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582   eval "$3=no"
2583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h.  */
2585 $4
2586 int
2587 main ()
2588 {
2589 if (sizeof ($2))
2590          return 0;
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h.  */
2598 $4
2599 int
2600 main ()
2601 {
2602 if (sizeof (($2)))
2603             return 0;
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609
2610 else
2611   eval "$3=yes"
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 fi
2617 eval ac_res=\$$3
2618                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2621
2622 } # ac_fn_c_check_type
2623
2624 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2625 # --------------------------------------------
2626 # Tries to find the compile-time value of EXPR in a program that includes
2627 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2628 # computed
2629 ac_fn_c_compute_int ()
2630 {
2631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632   if test "$cross_compiling" = yes; then
2633     # Depending upon the size, compute the lo and hi bounds.
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h.  */
2636 $4
2637 int
2638 main ()
2639 {
2640 static int test_array [1 - 2 * !(($2) >= 0)];
2641 test_array [0] = 0;
2642 return test_array [0];
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 if ac_fn_c_try_compile "$LINENO"; then :
2649   ac_lo=0 ac_mid=0
2650   while :; do
2651     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h.  */
2653 $4
2654 int
2655 main ()
2656 {
2657 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2658 test_array [0] = 0;
2659 return test_array [0];
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_c_try_compile "$LINENO"; then :
2666   ac_hi=$ac_mid; break
2667 else
2668   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2669                         if test $ac_lo -le $ac_mid; then
2670                           ac_lo= ac_hi=
2671                           break
2672                         fi
2673                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2674 fi
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676   done
2677 else
2678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h.  */
2680 $4
2681 int
2682 main ()
2683 {
2684 static int test_array [1 - 2 * !(($2) < 0)];
2685 test_array [0] = 0;
2686 return test_array [0];
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 if ac_fn_c_try_compile "$LINENO"; then :
2693   ac_hi=-1 ac_mid=-1
2694   while :; do
2695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h.  */
2697 $4
2698 int
2699 main ()
2700 {
2701 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2702 test_array [0] = 0;
2703 return test_array [0];
2704
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 if ac_fn_c_try_compile "$LINENO"; then :
2710   ac_lo=$ac_mid; break
2711 else
2712   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2713                         if test $ac_mid -le $ac_hi; then
2714                           ac_lo= ac_hi=
2715                           break
2716                         fi
2717                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720   done
2721 else
2722   ac_lo= ac_hi=
2723 fi
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 fi
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 # Binary search between lo and hi bounds.
2728 while test "x$ac_lo" != "x$ac_hi"; do
2729   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h.  */
2732 $4
2733 int
2734 main ()
2735 {
2736 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2737 test_array [0] = 0;
2738 return test_array [0];
2739
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 if ac_fn_c_try_compile "$LINENO"; then :
2745   ac_hi=$ac_mid
2746 else
2747   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2748 fi
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 done
2751 case $ac_lo in #((
2752 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2753 '') ac_retval=1 ;;
2754 esac
2755   else
2756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h.  */
2758 $4
2759 static long int longval () { return $2; }
2760 static unsigned long int ulongval () { return $2; }
2761 #include <stdio.h>
2762 #include <stdlib.h>
2763 int
2764 main ()
2765 {
2766
2767   FILE *f = fopen ("conftest.val", "w");
2768   if (! f)
2769     return 1;
2770   if (($2) < 0)
2771     {
2772       long int i = longval ();
2773       if (i != ($2))
2774         return 1;
2775       fprintf (f, "%ld", i);
2776     }
2777   else
2778     {
2779       unsigned long int i = ulongval ();
2780       if (i != ($2))
2781         return 1;
2782       fprintf (f, "%lu", i);
2783     }
2784   /* Do not output a trailing newline, as this causes \r\n confusion
2785      on some platforms.  */
2786   return ferror (f) || fclose (f) != 0;
2787
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 if ac_fn_c_try_run "$LINENO"; then :
2793   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2794 else
2795   ac_retval=1
2796 fi
2797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2798   conftest.$ac_objext conftest.beam conftest.$ac_ext
2799 rm -f conftest.val
2800
2801   fi
2802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2803   as_fn_set_status $ac_retval
2804
2805 } # ac_fn_c_compute_int
2806
2807 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2808 # ---------------------------------------------
2809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2810 # accordingly.
2811 ac_fn_c_check_decl ()
2812 {
2813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814   as_decl_name=`echo $2|sed 's/ *(.*//'`
2815   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2818 if eval \${$3+:} false; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h.  */
2823 $4
2824 int
2825 main ()
2826 {
2827 #ifndef $as_decl_name
2828 #ifdef __cplusplus
2829   (void) $as_decl_use;
2830 #else
2831   (void) $as_decl_name;
2832 #endif
2833 #endif
2834
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_c_try_compile "$LINENO"; then :
2840   eval "$3=yes"
2841 else
2842   eval "$3=no"
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 fi
2846 eval ac_res=\$$3
2847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2850
2851 } # ac_fn_c_check_decl
2852
2853 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2854 # ----------------------------------------------------
2855 # Tries to find if the field MEMBER exists in type AGGR, after including
2856 # INCLUDES, setting cache variable VAR accordingly.
2857 ac_fn_c_check_member ()
2858 {
2859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2861 $as_echo_n "checking for $2.$3... " >&6; }
2862 if eval \${$4+:} false; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h.  */
2867 $5
2868 int
2869 main ()
2870 {
2871 static $2 ac_aggr;
2872 if (ac_aggr.$3)
2873 return 0;
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 if ac_fn_c_try_compile "$LINENO"; then :
2879   eval "$4=yes"
2880 else
2881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h.  */
2883 $5
2884 int
2885 main ()
2886 {
2887 static $2 ac_aggr;
2888 if (sizeof ac_aggr.$3)
2889 return 0;
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 if ac_fn_c_try_compile "$LINENO"; then :
2895   eval "$4=yes"
2896 else
2897   eval "$4=no"
2898 fi
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 fi
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 fi
2903 eval ac_res=\$$4
2904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2905 $as_echo "$ac_res" >&6; }
2906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2907
2908 } # ac_fn_c_check_member
2909 cat >config.log <<_ACEOF
2910 This file contains any messages produced by compilers while
2911 running configure, to aid debugging if configure makes a mistake.
2912
2913 It was created by libpipeline $as_me 1.4.0, which was
2914 generated by GNU Autoconf 2.69.  Invocation command line was
2915
2916   $ $0 $@
2917
2918 _ACEOF
2919 exec 5>>config.log
2920 {
2921 cat <<_ASUNAME
2922 ## --------- ##
2923 ## Platform. ##
2924 ## --------- ##
2925
2926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2931
2932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2933 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2934
2935 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2936 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2938 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2939 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2940 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2941 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2942
2943 _ASUNAME
2944
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950     $as_echo "PATH: $as_dir"
2951   done
2952 IFS=$as_save_IFS
2953
2954 } >&5
2955
2956 cat >&5 <<_ACEOF
2957
2958
2959 ## ----------- ##
2960 ## Core tests. ##
2961 ## ----------- ##
2962
2963 _ACEOF
2964
2965
2966 # Keep a trace of the command line.
2967 # Strip out --no-create and --no-recursion so they do not pile up.
2968 # Strip out --silent because we don't want to record it for future runs.
2969 # Also quote any args containing shell meta-characters.
2970 # Make two passes to allow for proper duplicate-argument suppression.
2971 ac_configure_args=
2972 ac_configure_args0=
2973 ac_configure_args1=
2974 ac_must_keep_next=false
2975 for ac_pass in 1 2
2976 do
2977   for ac_arg
2978   do
2979     case $ac_arg in
2980     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2981     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2982     | -silent | --silent | --silen | --sile | --sil)
2983       continue ;;
2984     *\'*)
2985       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2986     esac
2987     case $ac_pass in
2988     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2989     2)
2990       as_fn_append ac_configure_args1 " '$ac_arg'"
2991       if test $ac_must_keep_next = true; then
2992         ac_must_keep_next=false # Got value, back to normal.
2993       else
2994         case $ac_arg in
2995           *=* | --config-cache | -C | -disable-* | --disable-* \
2996           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2997           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2998           | -with-* | --with-* | -without-* | --without-* | --x)
2999             case "$ac_configure_args0 " in
3000               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3001             esac
3002             ;;
3003           -* ) ac_must_keep_next=true ;;
3004         esac
3005       fi
3006       as_fn_append ac_configure_args " '$ac_arg'"
3007       ;;
3008     esac
3009   done
3010 done
3011 { ac_configure_args0=; unset ac_configure_args0;}
3012 { ac_configure_args1=; unset ac_configure_args1;}
3013
3014 # When interrupted or exit'd, cleanup temporary files, and complete
3015 # config.log.  We remove comments because anyway the quotes in there
3016 # would cause problems or look ugly.
3017 # WARNING: Use '\'' to represent an apostrophe within the trap.
3018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3019 trap 'exit_status=$?
3020   # Save into config.log some information that might help in debugging.
3021   {
3022     echo
3023
3024     $as_echo "## ---------------- ##
3025 ## Cache variables. ##
3026 ## ---------------- ##"
3027     echo
3028     # The following way of writing the cache mishandles newlines in values,
3029 (
3030   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3031     eval ac_val=\$$ac_var
3032     case $ac_val in #(
3033     *${as_nl}*)
3034       case $ac_var in #(
3035       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3037       esac
3038       case $ac_var in #(
3039       _ | IFS | as_nl) ;; #(
3040       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3041       *) { eval $ac_var=; unset $ac_var;} ;;
3042       esac ;;
3043     esac
3044   done
3045   (set) 2>&1 |
3046     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3047     *${as_nl}ac_space=\ *)
3048       sed -n \
3049         "s/'\''/'\''\\\\'\'''\''/g;
3050           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3051       ;; #(
3052     *)
3053       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3054       ;;
3055     esac |
3056     sort
3057 )
3058     echo
3059
3060     $as_echo "## ----------------- ##
3061 ## Output variables. ##
3062 ## ----------------- ##"
3063     echo
3064     for ac_var in $ac_subst_vars
3065     do
3066       eval ac_val=\$$ac_var
3067       case $ac_val in
3068       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3069       esac
3070       $as_echo "$ac_var='\''$ac_val'\''"
3071     done | sort
3072     echo
3073
3074     if test -n "$ac_subst_files"; then
3075       $as_echo "## ------------------- ##
3076 ## File substitutions. ##
3077 ## ------------------- ##"
3078       echo
3079       for ac_var in $ac_subst_files
3080       do
3081         eval ac_val=\$$ac_var
3082         case $ac_val in
3083         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3084         esac
3085         $as_echo "$ac_var='\''$ac_val'\''"
3086       done | sort
3087       echo
3088     fi
3089
3090     if test -s confdefs.h; then
3091       $as_echo "## ----------- ##
3092 ## confdefs.h. ##
3093 ## ----------- ##"
3094       echo
3095       cat confdefs.h
3096       echo
3097     fi
3098     test "$ac_signal" != 0 &&
3099       $as_echo "$as_me: caught signal $ac_signal"
3100     $as_echo "$as_me: exit $exit_status"
3101   } >&5
3102   rm -f core *.core core.conftest.* &&
3103     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3104     exit $exit_status
3105 ' 0
3106 for ac_signal in 1 2 13 15; do
3107   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3108 done
3109 ac_signal=0
3110
3111 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3112 rm -f -r conftest* confdefs.h
3113
3114 $as_echo "/* confdefs.h */" > confdefs.h
3115
3116 # Predefined preprocessor variables.
3117
3118 cat >>confdefs.h <<_ACEOF
3119 #define PACKAGE_NAME "$PACKAGE_NAME"
3120 _ACEOF
3121
3122 cat >>confdefs.h <<_ACEOF
3123 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3124 _ACEOF
3125
3126 cat >>confdefs.h <<_ACEOF
3127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3128 _ACEOF
3129
3130 cat >>confdefs.h <<_ACEOF
3131 #define PACKAGE_STRING "$PACKAGE_STRING"
3132 _ACEOF
3133
3134 cat >>confdefs.h <<_ACEOF
3135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3136 _ACEOF
3137
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_URL "$PACKAGE_URL"
3140 _ACEOF
3141
3142
3143 # Let the site file select an alternate cache file if it wants to.
3144 # Prefer an explicitly selected file to automatically selected ones.
3145 ac_site_file1=NONE
3146 ac_site_file2=NONE
3147 if test -n "$CONFIG_SITE"; then
3148   # We do not want a PATH search for config.site.
3149   case $CONFIG_SITE in #((
3150     -*)  ac_site_file1=./$CONFIG_SITE;;
3151     */*) ac_site_file1=$CONFIG_SITE;;
3152     *)   ac_site_file1=./$CONFIG_SITE;;
3153   esac
3154 elif test "x$prefix" != xNONE; then
3155   ac_site_file1=$prefix/share/config.site
3156   ac_site_file2=$prefix/etc/config.site
3157 else
3158   ac_site_file1=$ac_default_prefix/share/config.site
3159   ac_site_file2=$ac_default_prefix/etc/config.site
3160 fi
3161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3162 do
3163   test "x$ac_site_file" = xNONE && continue
3164   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3165     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3167     sed 's/^/| /' "$ac_site_file" >&5
3168     . "$ac_site_file" \
3169       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171 as_fn_error $? "failed to load site script $ac_site_file
3172 See \`config.log' for more details" "$LINENO" 5; }
3173   fi
3174 done
3175
3176 if test -r "$cache_file"; then
3177   # Some versions of bash will fail to source /dev/null (special files
3178   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3179   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3180     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3181 $as_echo "$as_me: loading cache $cache_file" >&6;}
3182     case $cache_file in
3183       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3184       *)                      . "./$cache_file";;
3185     esac
3186   fi
3187 else
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3189 $as_echo "$as_me: creating cache $cache_file" >&6;}
3190   >$cache_file
3191 fi
3192
3193 gl_header_list="$gl_header_list unistd.h"
3194 gl_func_list="$gl_func_list symlink"
3195 gl_header_list="$gl_header_list sys/time.h"
3196 gl_header_list="$gl_header_list sys/socket.h"
3197 gl_func_list="$gl_func_list gettimeofday"
3198 gl_func_list="$gl_func_list lstat"
3199 gl_header_list="$gl_header_list sys/mman.h"
3200 gl_func_list="$gl_func_list mprotect"
3201 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3202 gl_header_list="$gl_header_list sys/param.h"
3203 gl_func_list="$gl_func_list secure_getenv"
3204 gl_func_list="$gl_func_list setenv"
3205 gl_func_list="$gl_func_list sigaction"
3206 gl_func_list="$gl_func_list sigaltstack"
3207 gl_func_list="$gl_func_list siginterrupt"
3208 gl_func_list="$gl_func_list snprintf"
3209 gl_header_list="$gl_header_list wchar.h"
3210 gl_header_list="$gl_header_list stdint.h"
3211 gl_func_list="$gl_func_list strndup"
3212 gl_header_list="$gl_header_list sys/select.h"
3213 gl_header_list="$gl_header_list sys/stat.h"
3214 gl_header_list="$gl_header_list sys/wait.h"
3215 gl_func_list="$gl_func_list vasnprintf"
3216 gl_header_list="$gl_header_list features.h"
3217 # Check that the precious variables saved in the cache have kept the same
3218 # value.
3219 ac_cache_corrupted=false
3220 for ac_var in $ac_precious_vars; do
3221   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3222   eval ac_new_set=\$ac_env_${ac_var}_set
3223   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3224   eval ac_new_val=\$ac_env_${ac_var}_value
3225   case $ac_old_set,$ac_new_set in
3226     set,)
3227       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3228 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3229       ac_cache_corrupted=: ;;
3230     ,set)
3231       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3232 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3233       ac_cache_corrupted=: ;;
3234     ,);;
3235     *)
3236       if test "x$ac_old_val" != "x$ac_new_val"; then
3237         # differences in whitespace do not lead to failure.
3238         ac_old_val_w=`echo x $ac_old_val`
3239         ac_new_val_w=`echo x $ac_new_val`
3240         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3241           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3242 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3243           ac_cache_corrupted=:
3244         else
3245           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3246 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3247           eval $ac_var=\$ac_old_val
3248         fi
3249         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3250 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3251         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3252 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3253       fi;;
3254   esac
3255   # Pass precious variables to config.status.
3256   if test "$ac_new_set" = set; then
3257     case $ac_new_val in
3258     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3259     *) ac_arg=$ac_var=$ac_new_val ;;
3260     esac
3261     case " $ac_configure_args " in
3262       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3263       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3264     esac
3265   fi
3266 done
3267 if $ac_cache_corrupted; then
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3272   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3273 fi
3274 ## -------------------- ##
3275 ## Main body of script. ##
3276 ## -------------------- ##
3277
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283
3284
3285 ac_aux_dir=
3286 for ac_dir in build-aux "$srcdir"/build-aux; do
3287   if test -f "$ac_dir/install-sh"; then
3288     ac_aux_dir=$ac_dir
3289     ac_install_sh="$ac_aux_dir/install-sh -c"
3290     break
3291   elif test -f "$ac_dir/install.sh"; then
3292     ac_aux_dir=$ac_dir
3293     ac_install_sh="$ac_aux_dir/install.sh -c"
3294     break
3295   elif test -f "$ac_dir/shtool"; then
3296     ac_aux_dir=$ac_dir
3297     ac_install_sh="$ac_aux_dir/shtool install -c"
3298     break
3299   fi
3300 done
3301 if test -z "$ac_aux_dir"; then
3302   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3303 fi
3304
3305 # These three variables are undocumented and unsupported,
3306 # and are intended to be withdrawn in a future Autoconf release.
3307 # They can cause serious problems if a builder's source tree is in a directory
3308 # whose full name contains unusual characters.
3309 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3310 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3311 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3312
3313
3314 am__api_version='1.14'
3315
3316 # Find a good install program.  We prefer a C program (faster),
3317 # so one script is as good as another.  But avoid the broken or
3318 # incompatible versions:
3319 # SysV /etc/install, /usr/sbin/install
3320 # SunOS /usr/etc/install
3321 # IRIX /sbin/install
3322 # AIX /bin/install
3323 # AmigaOS /C/install, which installs bootblocks on floppy discs
3324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3327 # OS/2's system install, which has a completely different semantic
3328 # ./install, which can be erroneously created by make from ./install.sh.
3329 # Reject install programs that cannot install multiple files.
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3332 if test -z "$INSTALL"; then
3333 if ${ac_cv_path_install+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341     # Account for people who put trailing slashes in PATH elements.
3342 case $as_dir/ in #((
3343   ./ | .// | /[cC]/* | \
3344   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3345   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3346   /usr/ucb/* ) ;;
3347   *)
3348     # OSF1 and SCO ODT 3.0 have their own names for install.
3349     # Don't use installbsd from OSF since it installs stuff as root
3350     # by default.
3351     for ac_prog in ginstall scoinst install; do
3352       for ac_exec_ext in '' $ac_executable_extensions; do
3353         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3354           if test $ac_prog = install &&
3355             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3356             # AIX install.  It has an incompatible calling convention.
3357             :
3358           elif test $ac_prog = install &&
3359             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3360             # program-specific install script used by HP pwplus--don't use.
3361             :
3362           else
3363             rm -rf conftest.one conftest.two conftest.dir
3364             echo one > conftest.one
3365             echo two > conftest.two
3366             mkdir conftest.dir
3367             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3368               test -s conftest.one && test -s conftest.two &&
3369               test -s conftest.dir/conftest.one &&
3370               test -s conftest.dir/conftest.two
3371             then
3372               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3373               break 3
3374             fi
3375           fi
3376         fi
3377       done
3378     done
3379     ;;
3380 esac
3381
3382   done
3383 IFS=$as_save_IFS
3384
3385 rm -rf conftest.one conftest.two conftest.dir
3386
3387 fi
3388   if test "${ac_cv_path_install+set}" = set; then
3389     INSTALL=$ac_cv_path_install
3390   else
3391     # As a last resort, use the slow shell script.  Don't cache a
3392     # value for INSTALL within a source directory, because that will
3393     # break other packages using the cache if that directory is
3394     # removed, or if the value is a relative name.
3395     INSTALL=$ac_install_sh
3396   fi
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3399 $as_echo "$INSTALL" >&6; }
3400
3401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3402 # It thinks the first close brace ends the variable substitution.
3403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3404
3405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3406
3407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3408
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3410 $as_echo_n "checking whether build environment is sane... " >&6; }
3411 # Reject unsafe characters in $srcdir or the absolute working directory
3412 # name.  Accept space and tab only in the latter.
3413 am_lf='
3414 '
3415 case `pwd` in
3416   *[\\\"\#\$\&\'\`$am_lf]*)
3417     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3418 esac
3419 case $srcdir in
3420   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3421     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3422 esac
3423
3424 # Do 'set' in a subshell so we don't clobber the current shell's
3425 # arguments.  Must try -L first in case configure is actually a
3426 # symlink; some systems play weird games with the mod time of symlinks
3427 # (eg FreeBSD returns the mod time of the symlink's containing
3428 # directory).
3429 if (
3430    am_has_slept=no
3431    for am_try in 1 2; do
3432      echo "timestamp, slept: $am_has_slept" > conftest.file
3433      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3434      if test "$*" = "X"; then
3435         # -L didn't work.
3436         set X `ls -t "$srcdir/configure" conftest.file`
3437      fi
3438      if test "$*" != "X $srcdir/configure conftest.file" \
3439         && test "$*" != "X conftest.file $srcdir/configure"; then
3440
3441         # If neither matched, then we have a broken ls.  This can happen
3442         # if, for instance, CONFIG_SHELL is bash and it inherits a
3443         # broken ls alias from the environment.  This has actually
3444         # happened.  Such a system could not be considered "sane".
3445         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3446   alias in your environment" "$LINENO" 5
3447      fi
3448      if test "$2" = conftest.file || test $am_try -eq 2; then
3449        break
3450      fi
3451      # Just in case.
3452      sleep 1
3453      am_has_slept=yes
3454    done
3455    test "$2" = conftest.file
3456    )
3457 then
3458    # Ok.
3459    :
3460 else
3461    as_fn_error $? "newly created file is older than distributed files!
3462 Check your system clock" "$LINENO" 5
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3465 $as_echo "yes" >&6; }
3466 # If we didn't sleep, we still need to ensure time stamps of config.status and
3467 # generated files are strictly newer.
3468 am_sleep_pid=
3469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3470   ( sleep 1 ) &
3471   am_sleep_pid=$!
3472 fi
3473
3474 rm -f conftest.file
3475
3476 test "$program_prefix" != NONE &&
3477   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3478 # Use a double $ so make ignores it.
3479 test "$program_suffix" != NONE &&
3480   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3481 # Double any \ or $.
3482 # By default was `s,x,x', remove it if useless.
3483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3485
3486 # expand $ac_aux_dir to an absolute path
3487 am_aux_dir=`cd $ac_aux_dir && pwd`
3488
3489 if test x"${MISSING+set}" != xset; then
3490   case $am_aux_dir in
3491   *\ * | *\     *)
3492     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3493   *)
3494     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3495   esac
3496 fi
3497 # Use eval to expand $SHELL
3498 if eval "$MISSING --is-lightweight"; then
3499   am_missing_run="$MISSING "
3500 else
3501   am_missing_run=
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3503 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3504 fi
3505
3506 if test x"${install_sh}" != xset; then
3507   case $am_aux_dir in
3508   *\ * | *\     *)
3509     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3510   *)
3511     install_sh="\${SHELL} $am_aux_dir/install-sh"
3512   esac
3513 fi
3514
3515 # Installed binaries are usually stripped using 'strip' when the user
3516 # run "make install-strip".  However 'strip' might not be the right
3517 # tool to use in cross-compilation environments, therefore Automake
3518 # will honor the 'STRIP' environment variable to overrule this program.
3519 if test "$cross_compiling" != no; then
3520   if test -n "$ac_tool_prefix"; then
3521   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3522 set dummy ${ac_tool_prefix}strip; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_STRIP+:} false; then :
3526   $as_echo_n "(cached) " >&6
3527 else
3528   if test -n "$STRIP"; then
3529   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534   IFS=$as_save_IFS
3535   test -z "$as_dir" && as_dir=.
3536     for ac_exec_ext in '' $ac_executable_extensions; do
3537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543   done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 STRIP=$ac_cv_prog_STRIP
3549 if test -n "$STRIP"; then
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3551 $as_echo "$STRIP" >&6; }
3552 else
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 fi
3556
3557
3558 fi
3559 if test -z "$ac_cv_prog_STRIP"; then
3560   ac_ct_STRIP=$STRIP
3561   # Extract the first word of "strip", so it can be a program name with args.
3562 set dummy strip; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3566   $as_echo_n "(cached) " >&6
3567 else
3568   if test -n "$ac_ct_STRIP"; then
3569   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
3575   test -z "$as_dir" && as_dir=.
3576     for ac_exec_ext in '' $ac_executable_extensions; do
3577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578     ac_cv_prog_ac_ct_STRIP="strip"
3579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580     break 2
3581   fi
3582 done
3583   done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3589 if test -n "$ac_ct_STRIP"; then
3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3591 $as_echo "$ac_ct_STRIP" >&6; }
3592 else
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597   if test "x$ac_ct_STRIP" = x; then
3598     STRIP=":"
3599   else
3600     case $cross_compiling:$ac_tool_warned in
3601 yes:)
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3604 ac_tool_warned=yes ;;
3605 esac
3606     STRIP=$ac_ct_STRIP
3607   fi
3608 else
3609   STRIP="$ac_cv_prog_STRIP"
3610 fi
3611
3612 fi
3613 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3614
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3617 if test -z "$MKDIR_P"; then
3618   if ${ac_cv_path_mkdir+:} false; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626     for ac_prog in mkdir gmkdir; do
3627          for ac_exec_ext in '' $ac_executable_extensions; do
3628            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3629            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3630              'mkdir (GNU coreutils) '* | \
3631              'mkdir (coreutils) '* | \
3632              'mkdir (fileutils) '4.1*)
3633                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3634                break 3;;
3635            esac
3636          done
3637        done
3638   done
3639 IFS=$as_save_IFS
3640
3641 fi
3642
3643   test -d ./--version && rmdir ./--version
3644   if test "${ac_cv_path_mkdir+set}" = set; then
3645     MKDIR_P="$ac_cv_path_mkdir -p"
3646   else
3647     # As a last resort, use the slow shell script.  Don't cache a
3648     # value for MKDIR_P within a source directory, because that will
3649     # break other packages using the cache if that directory is
3650     # removed, or if the value is a relative name.
3651     MKDIR_P="$ac_install_sh -d"
3652   fi
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3655 $as_echo "$MKDIR_P" >&6; }
3656
3657 for ac_prog in gawk mawk nawk awk
3658 do
3659   # Extract the first word of "$ac_prog", so it can be a program name with args.
3660 set dummy $ac_prog; ac_word=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if ${ac_cv_prog_AWK+:} false; then :
3664   $as_echo_n "(cached) " >&6
3665 else
3666   if test -n "$AWK"; then
3667   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3671 do
3672   IFS=$as_save_IFS
3673   test -z "$as_dir" && as_dir=.
3674     for ac_exec_ext in '' $ac_executable_extensions; do
3675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676     ac_cv_prog_AWK="$ac_prog"
3677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678     break 2
3679   fi
3680 done
3681   done
3682 IFS=$as_save_IFS
3683
3684 fi
3685 fi
3686 AWK=$ac_cv_prog_AWK
3687 if test -n "$AWK"; then
3688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3689 $as_echo "$AWK" >&6; }
3690 else
3691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3693 fi
3694
3695
3696   test -n "$AWK" && break
3697 done
3698
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3701 set x ${MAKE-make}
3702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3704   $as_echo_n "(cached) " >&6
3705 else
3706   cat >conftest.make <<\_ACEOF
3707 SHELL = /bin/sh
3708 all:
3709         @echo '@@@%%%=$(MAKE)=@@@%%%'
3710 _ACEOF
3711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3713   *@@@%%%=?*=@@@%%%*)
3714     eval ac_cv_prog_make_${ac_make}_set=yes;;
3715   *)
3716     eval ac_cv_prog_make_${ac_make}_set=no;;
3717 esac
3718 rm -f conftest.make
3719 fi
3720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3723   SET_MAKE=
3724 else
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727   SET_MAKE="MAKE=${MAKE-make}"
3728 fi
3729
3730 rm -rf .tst 2>/dev/null
3731 mkdir .tst 2>/dev/null
3732 if test -d .tst; then
3733   am__leading_dot=.
3734 else
3735   am__leading_dot=_
3736 fi
3737 rmdir .tst 2>/dev/null
3738
3739 # Check whether --enable-silent-rules was given.
3740 if test "${enable_silent_rules+set}" = set; then :
3741   enableval=$enable_silent_rules;
3742 fi
3743
3744 case $enable_silent_rules in # (((
3745   yes) AM_DEFAULT_VERBOSITY=0;;
3746    no) AM_DEFAULT_VERBOSITY=1;;
3747     *) AM_DEFAULT_VERBOSITY=1;;
3748 esac
3749 am_make=${MAKE-make}
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3751 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3752 if ${am_cv_make_support_nested_variables+:} false; then :
3753   $as_echo_n "(cached) " >&6
3754 else
3755   if $as_echo 'TRUE=$(BAR$(V))
3756 BAR0=false
3757 BAR1=true
3758 V=1
3759 am__doit:
3760         @$(TRUE)
3761 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3762   am_cv_make_support_nested_variables=yes
3763 else
3764   am_cv_make_support_nested_variables=no
3765 fi
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3768 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3769 if test $am_cv_make_support_nested_variables = yes; then
3770     AM_V='$(V)'
3771   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3772 else
3773   AM_V=$AM_DEFAULT_VERBOSITY
3774   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3775 fi
3776 AM_BACKSLASH='\'
3777
3778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3779   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3780   # is not polluted with repeated "-I."
3781   am__isrc=' -I$(srcdir)'
3782   # test to see if srcdir already configured
3783   if test -f $srcdir/config.status; then
3784     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3785   fi
3786 fi
3787
3788 # test whether we have cygpath
3789 if test -z "$CYGPATH_W"; then
3790   if (cygpath --version) >/dev/null 2>/dev/null; then
3791     CYGPATH_W='cygpath -w'
3792   else
3793     CYGPATH_W=echo
3794   fi
3795 fi
3796
3797
3798 # Define the identity of the package.
3799  PACKAGE='libpipeline'
3800  VERSION='1.4.0'
3801
3802
3803 cat >>confdefs.h <<_ACEOF
3804 #define PACKAGE "$PACKAGE"
3805 _ACEOF
3806
3807
3808 cat >>confdefs.h <<_ACEOF
3809 #define VERSION "$VERSION"
3810 _ACEOF
3811
3812 # Some tools Automake needs.
3813
3814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3815
3816
3817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3818
3819
3820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3821
3822
3823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3824
3825
3826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3827
3828 # For better backward compatibility.  To be removed once Automake 1.9.x
3829 # dies out for good.  For more background, see:
3830 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3831 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3832 mkdir_p='$(MKDIR_P)'
3833
3834 # We need awk for the "check" target.  The system "awk" is bad on
3835 # some platforms.
3836 # Always define AMTAR for backward compatibility.  Yes, it's still used
3837 # in the wild :-(  We should find a proper way to deprecate it ...
3838 AMTAR='$${TAR-tar}'
3839
3840
3841 # We'll loop over all known methods to create a tar archive until one works.
3842 _am_tools='gnutar  pax cpio none'
3843
3844 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3845
3846
3847
3848
3849
3850
3851 # POSIX will say in a future version that running "rm -f" with no argument
3852 # is OK; and we want to be able to make that assumption in our Makefile
3853 # recipes.  So use an aggressive probe to check that the usage we want is
3854 # actually supported "in the wild" to an acceptable degree.
3855 # See automake bug#10828.
3856 # To make any issue more visible, cause the running configure to be aborted
3857 # by default if the 'rm' program in use doesn't match our expectations; the
3858 # user can still override this though.
3859 if rm -f && rm -fr && rm -rf; then : OK; else
3860   cat >&2 <<'END'
3861 Oops!
3862
3863 Your 'rm' program seems unable to run without file operands specified
3864 on the command line, even when the '-f' option is present.  This is contrary
3865 to the behaviour of most rm programs out there, and not conforming with
3866 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3867
3868 Please tell bug-automake@gnu.org about your system, including the value
3869 of your $PATH and any error possibly output before this message.  This
3870 can help us improve future automake versions.
3871
3872 END
3873   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3874     echo 'Configuration will proceed anyway, since you have set the' >&2
3875     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3876     echo >&2
3877   else
3878     cat >&2 <<'END'
3879 Aborting the configuration process, to ensure you take notice of the issue.
3880
3881 You can download and install GNU coreutils to get an 'rm' implementation
3882 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3883
3884 If you want to complete the configuration process using your problematic
3885 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3886 to "yes", and re-run configure.
3887
3888 END
3889     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3890   fi
3891 fi
3892
3893
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3895 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3896     # Check whether --enable-maintainer-mode was given.
3897 if test "${enable_maintainer_mode+set}" = set; then :
3898   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3899 else
3900   USE_MAINTAINER_MODE=no
3901 fi
3902
3903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3904 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3905    if test $USE_MAINTAINER_MODE = yes; then
3906   MAINTAINER_MODE_TRUE=
3907   MAINTAINER_MODE_FALSE='#'
3908 else
3909   MAINTAINER_MODE_TRUE='#'
3910   MAINTAINER_MODE_FALSE=
3911 fi
3912
3913   MAINT=$MAINTAINER_MODE_TRUE
3914
3915
3916 # Check whether --enable-silent-rules was given.
3917 if test "${enable_silent_rules+set}" = set; then :
3918   enableval=$enable_silent_rules;
3919 fi
3920
3921 case $enable_silent_rules in # (((
3922   yes) AM_DEFAULT_VERBOSITY=0;;
3923    no) AM_DEFAULT_VERBOSITY=1;;
3924     *) AM_DEFAULT_VERBOSITY=0;;
3925 esac
3926 am_make=${MAKE-make}
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3928 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3929 if ${am_cv_make_support_nested_variables+:} false; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932   if $as_echo 'TRUE=$(BAR$(V))
3933 BAR0=false
3934 BAR1=true
3935 V=1
3936 am__doit:
3937         @$(TRUE)
3938 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3939   am_cv_make_support_nested_variables=yes
3940 else
3941   am_cv_make_support_nested_variables=no
3942 fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3945 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3946 if test $am_cv_make_support_nested_variables = yes; then
3947     AM_V='$(V)'
3948   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3949 else
3950   AM_V=$AM_DEFAULT_VERBOSITY
3951   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3952 fi
3953 AM_BACKSLASH='\'
3954
3955
3956
3957 DEPDIR="${am__leading_dot}deps"
3958
3959 ac_config_commands="$ac_config_commands depfiles"
3960
3961
3962 am_make=${MAKE-make}
3963 cat > confinc << 'END'
3964 am__doit:
3965         @echo this is the am__doit target
3966 .PHONY: am__doit
3967 END
3968 # If we don't find an include directive, just comment out the code.
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3970 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3971 am__include="#"
3972 am__quote=
3973 _am_result=none
3974 # First try GNU make style include.
3975 echo "include confinc" > confmf
3976 # Ignore all kinds of additional output from 'make'.
3977 case `$am_make -s -f confmf 2> /dev/null` in #(
3978 *the\ am__doit\ target*)
3979   am__include=include
3980   am__quote=
3981   _am_result=GNU
3982   ;;
3983 esac
3984 # Now try BSD make style include.
3985 if test "$am__include" = "#"; then
3986    echo '.include "confinc"' > confmf
3987    case `$am_make -s -f confmf 2> /dev/null` in #(
3988    *the\ am__doit\ target*)
3989      am__include=.include
3990      am__quote="\""
3991      _am_result=BSD
3992      ;;
3993    esac
3994 fi
3995
3996
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3998 $as_echo "$_am_result" >&6; }
3999 rm -f confinc confmf
4000
4001 # Check whether --enable-dependency-tracking was given.
4002 if test "${enable_dependency_tracking+set}" = set; then :
4003   enableval=$enable_dependency_tracking;
4004 fi
4005
4006 if test "x$enable_dependency_tracking" != xno; then
4007   am_depcomp="$ac_aux_dir/depcomp"
4008   AMDEPBACKSLASH='\'
4009   am__nodep='_no'
4010 fi
4011  if test "x$enable_dependency_tracking" != xno; then
4012   AMDEP_TRUE=
4013   AMDEP_FALSE='#'
4014 else
4015   AMDEP_TRUE='#'
4016   AMDEP_FALSE=
4017 fi
4018
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if ${ac_cv_prog_CC+:} false; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033   if test -n "$CC"; then
4034   ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041     for ac_exec_ext in '' $ac_executable_extensions; do
4042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045     break 2
4046   fi
4047 done
4048   done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 if test -z "$ac_cv_prog_CC"; then
4065   ac_ct_CC=$CC
4066   # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   if test -n "$ac_ct_CC"; then
4074   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081     for ac_exec_ext in '' $ac_executable_extensions; do
4082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083     ac_cv_prog_ac_ct_CC="gcc"
4084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085     break 2
4086   fi
4087 done
4088   done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4097 else
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102   if test "x$ac_ct_CC" = x; then
4103     CC=""
4104   else
4105     case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111     CC=$ac_ct_CC
4112   fi
4113 else
4114   CC="$ac_cv_prog_CC"
4115 fi
4116
4117 if test -z "$CC"; then
4118           if test -n "$ac_tool_prefix"; then
4119     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_CC+:} false; then :
4124   $as_echo_n "(cached) " >&6
4125 else
4126   if test -n "$CC"; then
4127   ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134     for ac_exec_ext in '' $ac_executable_extensions; do
4135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136     ac_cv_prog_CC="${ac_tool_prefix}cc"
4137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138     break 2
4139   fi
4140 done
4141   done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4150 else
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155
4156   fi
4157 fi
4158 if test -z "$CC"; then
4159   # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_CC+:} false; then :
4164   $as_echo_n "(cached) " >&6
4165 else
4166   if test -n "$CC"; then
4167   ac_cv_prog_CC="$CC" # Let the user override the test.
4168 else
4169   ac_prog_rejected=no
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_exec_ext in '' $ac_executable_extensions; do
4176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178        ac_prog_rejected=yes
4179        continue
4180      fi
4181     ac_cv_prog_CC="cc"
4182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186   done
4187 IFS=$as_save_IFS
4188
4189 if test $ac_prog_rejected = yes; then
4190   # We found a bogon in the path, so make sure we never use it.
4191   set dummy $ac_cv_prog_CC
4192   shift
4193   if test $# != 0; then
4194     # We chose a different compiler from the bogus one.
4195     # However, it has the same basename, so the bogon will be chosen
4196     # first if we set CC to just the basename; use the full file name.
4197     shift
4198     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199   fi
4200 fi
4201 fi
4202 fi
4203 CC=$ac_cv_prog_CC
4204 if test -n "$CC"; then
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4207 else
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210 fi
4211
4212
4213 fi
4214 if test -z "$CC"; then
4215   if test -n "$ac_tool_prefix"; then
4216   for ac_prog in cl.exe
4217   do
4218     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CC+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   if test -n "$CC"; then
4226   ac_cv_prog_CC="$CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233     for ac_exec_ext in '' $ac_executable_extensions; do
4234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240   done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 $as_echo "$CC" >&6; }
4249 else
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255     test -n "$CC" && break
4256   done
4257 fi
4258 if test -z "$CC"; then
4259   ac_ct_CC=$CC
4260   for ac_prog in cl.exe
4261 do
4262   # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   if test -n "$ac_ct_CC"; then
4270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277     for ac_exec_ext in '' $ac_executable_extensions; do
4278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279     ac_cv_prog_ac_ct_CC="$ac_prog"
4280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284   done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4293 else
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299   test -n "$ac_ct_CC" && break
4300 done
4301
4302   if test "x$ac_ct_CC" = x; then
4303     CC=""
4304   else
4305     case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311     CC=$ac_ct_CC
4312   fi
4313 fi
4314
4315 fi
4316
4317
4318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error $? "no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details" "$LINENO" 5; }
4322
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4325 set X $ac_compile
4326 ac_compiler=$2
4327 for ac_option in --version -v -V -qversion; do
4328   { { ac_try="$ac_compiler $ac_option >&5"
4329 case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4336   ac_status=$?
4337   if test -s conftest.err; then
4338     sed '10a\
4339 ... rest of stderr output deleted ...
4340          10q' conftest.err >conftest.er1
4341     cat conftest.er1 >&5
4342   fi
4343   rm -f conftest.er1 conftest.err
4344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345   test $ac_status = 0; }
4346 done
4347
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 ac_clean_files_save=$ac_clean_files
4360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4361 # Try to create an executable without -o first, disregard a.out.
4362 # It will help us diagnose broken compilers, and finding out an intuition
4363 # of exeext.
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4365 $as_echo_n "checking whether the C compiler works... " >&6; }
4366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4367
4368 # The possible output files:
4369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4370
4371 ac_rmfiles=
4372 for ac_file in $ac_files
4373 do
4374   case $ac_file in
4375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4377   esac
4378 done
4379 rm -f $ac_rmfiles
4380
4381 if { { ac_try="$ac_link_default"
4382 case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388   (eval "$ac_link_default") 2>&5
4389   ac_status=$?
4390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391   test $ac_status = 0; }; then :
4392   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4394 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4395 # so that the user can short-circuit this test for compilers unknown to
4396 # Autoconf.
4397 for ac_file in $ac_files ''
4398 do
4399   test -f "$ac_file" || continue
4400   case $ac_file in
4401     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4402         ;;
4403     [ab].out )
4404         # We found the default executable, but exeext='' is most
4405         # certainly right.
4406         break;;
4407     *.* )
4408         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4409         then :; else
4410            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4411         fi
4412         # We set ac_cv_exeext here because the later test for it is not
4413         # safe: cross compilers may not add the suffix if given an `-o'
4414         # argument, so we may need to know it at that point already.
4415         # Even if this section looks crufty: it has the advantage of
4416         # actually working.
4417         break;;
4418     * )
4419         break;;
4420   esac
4421 done
4422 test "$ac_cv_exeext" = no && ac_cv_exeext=
4423
4424 else
4425   ac_file=''
4426 fi
4427 if test -z "$ac_file"; then :
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error 77 "C compiler cannot create executables
4436 See \`config.log' for more details" "$LINENO" 5; }
4437 else
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439 $as_echo "yes" >&6; }
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4442 $as_echo_n "checking for C compiler default output file name... " >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4444 $as_echo "$ac_file" >&6; }
4445 ac_exeext=$ac_cv_exeext
4446
4447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4448 ac_clean_files=$ac_clean_files_save
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4450 $as_echo_n "checking for suffix of executables... " >&6; }
4451 if { { ac_try="$ac_link"
4452 case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458   (eval "$ac_link") 2>&5
4459   ac_status=$?
4460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461   test $ac_status = 0; }; then :
4462   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4463 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4464 # work properly (i.e., refer to `conftest.exe'), while it won't with
4465 # `rm'.
4466 for ac_file in conftest.exe conftest conftest.*; do
4467   test -f "$ac_file" || continue
4468   case $ac_file in
4469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4470     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4471           break;;
4472     * ) break;;
4473   esac
4474 done
4475 else
4476   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4479 See \`config.log' for more details" "$LINENO" 5; }
4480 fi
4481 rm -f conftest conftest$ac_cv_exeext
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4483 $as_echo "$ac_cv_exeext" >&6; }
4484
4485 rm -f conftest.$ac_ext
4486 EXEEXT=$ac_cv_exeext
4487 ac_exeext=$EXEEXT
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490 #include <stdio.h>
4491 int
4492 main ()
4493 {
4494 FILE *f = fopen ("conftest.out", "w");
4495  return ferror (f) || fclose (f) != 0;
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 ac_clean_files="$ac_clean_files conftest.out"
4502 # Check that the compiler produces executables we can run.  If not, either
4503 # the compiler is broken, or we cross compile.
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4505 $as_echo_n "checking whether we are cross compiling... " >&6; }
4506 if test "$cross_compiling" != yes; then
4507   { { ac_try="$ac_link"
4508 case "(($ac_try" in
4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510   *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514   (eval "$ac_link") 2>&5
4515   ac_status=$?
4516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517   test $ac_status = 0; }
4518   if { ac_try='./conftest$ac_cv_exeext'
4519   { { case "(($ac_try" in
4520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521   *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525   (eval "$ac_try") 2>&5
4526   ac_status=$?
4527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528   test $ac_status = 0; }; }; then
4529     cross_compiling=no
4530   else
4531     if test "$cross_compiling" = maybe; then
4532         cross_compiling=yes
4533     else
4534         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot run C compiled programs.
4537 If you meant to cross compile, use \`--host'.
4538 See \`config.log' for more details" "$LINENO" 5; }
4539     fi
4540   fi
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4543 $as_echo "$cross_compiling" >&6; }
4544
4545 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4546 ac_clean_files=$ac_clean_files_save
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4548 $as_echo_n "checking for suffix of object files... " >&6; }
4549 if ${ac_cv_objext+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h.  */
4554
4555 int
4556 main ()
4557 {
4558
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.o conftest.obj
4564 if { { ac_try="$ac_compile"
4565 case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571   (eval "$ac_compile") 2>&5
4572   ac_status=$?
4573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574   test $ac_status = 0; }; then :
4575   for ac_file in conftest.o conftest.obj conftest.*; do
4576   test -f "$ac_file" || continue;
4577   case $ac_file in
4578     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4579     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4580        break;;
4581   esac
4582 done
4583 else
4584   $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "cannot compute suffix of object files: cannot compile
4590 See \`config.log' for more details" "$LINENO" 5; }
4591 fi
4592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4595 $as_echo "$ac_cv_objext" >&6; }
4596 OBJEXT=$ac_cv_objext
4597 ac_objext=$OBJEXT
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4600 if ${ac_cv_c_compiler_gnu+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h.  */
4605
4606 int
4607 main ()
4608 {
4609 #ifndef __GNUC__
4610        choke me
4611 #endif
4612
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618   ac_compiler_gnu=yes
4619 else
4620   ac_compiler_gnu=no
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4628 if test $ac_compiler_gnu = yes; then
4629   GCC=yes
4630 else
4631   GCC=
4632 fi
4633 ac_test_CFLAGS=${CFLAGS+set}
4634 ac_save_CFLAGS=$CFLAGS
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4637 if ${ac_cv_prog_cc_g+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   ac_save_c_werror_flag=$ac_c_werror_flag
4641    ac_c_werror_flag=yes
4642    ac_cv_prog_cc_g=no
4643    CFLAGS="-g"
4644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h.  */
4646
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656   ac_cv_prog_cc_g=yes
4657 else
4658   CFLAGS=""
4659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661
4662 int
4663 main ()
4664 {
4665
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671
4672 else
4673   ac_c_werror_flag=$ac_save_c_werror_flag
4674          CFLAGS="-g"
4675          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677
4678 int
4679 main ()
4680 {
4681
4682   ;
4683   return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687   ac_cv_prog_cc_g=yes
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694    ac_c_werror_flag=$ac_save_c_werror_flag
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4697 $as_echo "$ac_cv_prog_cc_g" >&6; }
4698 if test "$ac_test_CFLAGS" = set; then
4699   CFLAGS=$ac_save_CFLAGS
4700 elif test $ac_cv_prog_cc_g = yes; then
4701   if test "$GCC" = yes; then
4702     CFLAGS="-g -O2"
4703   else
4704     CFLAGS="-g"
4705   fi
4706 else
4707   if test "$GCC" = yes; then
4708     CFLAGS="-O2"
4709   else
4710     CFLAGS=
4711   fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4715 if ${ac_cv_prog_cc_c89+:} false; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   ac_cv_prog_cc_c89=no
4719 ac_save_CC=$CC
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722 #include <stdarg.h>
4723 #include <stdio.h>
4724 struct stat;
4725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4726 struct buf { int x; };
4727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4728 static char *e (p, i)
4729      char **p;
4730      int i;
4731 {
4732   return p[i];
4733 }
4734 static char *f (char * (*g) (char **, int), char **p, ...)
4735 {
4736   char *s;
4737   va_list v;
4738   va_start (v,p);
4739   s = g (p, va_arg (v,int));
4740   va_end (v);
4741   return s;
4742 }
4743
4744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4745    function prototypes and stuff, but not '\xHH' hex character constants.
4746    These don't provoke an error unfortunately, instead are silently treated
4747    as 'x'.  The following induces an error, until -std is added to get
4748    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4749    array size at least.  It's necessary to write '\x00'==0 to get something
4750    that's true only with -std.  */
4751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4752
4753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4754    inside strings and character constants.  */
4755 #define FOO(x) 'x'
4756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4757
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4762 int argc;
4763 char **argv;
4764 int
4765 main ()
4766 {
4767 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4773         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4774 do
4775   CC="$ac_save_CC $ac_arg"
4776   if ac_fn_c_try_compile "$LINENO"; then :
4777   ac_cv_prog_cc_c89=$ac_arg
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext
4780   test "x$ac_cv_prog_cc_c89" != "xno" && break
4781 done
4782 rm -f conftest.$ac_ext
4783 CC=$ac_save_CC
4784
4785 fi
4786 # AC_CACHE_VAL
4787 case "x$ac_cv_prog_cc_c89" in
4788   x)
4789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4790 $as_echo "none needed" >&6; } ;;
4791   xno)
4792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4793 $as_echo "unsupported" >&6; } ;;
4794   *)
4795     CC="$CC $ac_cv_prog_cc_c89"
4796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4798 esac
4799 if test "x$ac_cv_prog_cc_c89" != xno; then :
4800
4801 fi
4802
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4815 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4816 if ${am_cv_prog_cc_c_o+:} false; then :
4817   $as_echo_n "(cached) " >&6
4818 else
4819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h.  */
4821
4822 int
4823 main ()
4824 {
4825
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830   # Make sure it works both with $CC and with simple cc.
4831   # Following AC_PROG_CC_C_O, we do the test twice because some
4832   # compilers refuse to overwrite an existing .o file with -o,
4833   # though they will create one.
4834   am_cv_prog_cc_c_o=yes
4835   for am_i in 1 2; do
4836     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4837    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4838    ac_status=$?
4839    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840    (exit $ac_status); } \
4841          && test -f conftest2.$ac_objext; then
4842       : OK
4843     else
4844       am_cv_prog_cc_c_o=no
4845       break
4846     fi
4847   done
4848   rm -f core conftest*
4849   unset am_i
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4852 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4853 if test "$am_cv_prog_cc_c_o" != yes; then
4854    # Losing compiler, so override with the script.
4855    # FIXME: It is wrong to rewrite CC.
4856    # But if we don't then we get into trouble of one sort or another.
4857    # A longer-term fix would be to have automake use am__CC in this case,
4858    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4859    CC="$am_aux_dir/compile $CC"
4860 fi
4861 ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866
4867
4868 depcc="$CC"   am_compiler_list=
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4871 $as_echo_n "checking dependency style of $depcc... " >&6; }
4872 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4876   # We make a subdir and do the tests there.  Otherwise we can end up
4877   # making bogus files that we don't know about and never remove.  For
4878   # instance it was reported that on HP-UX the gcc test will end up
4879   # making a dummy file named 'D' -- because '-MD' means "put the output
4880   # in D".
4881   rm -rf conftest.dir
4882   mkdir conftest.dir
4883   # Copy depcomp to subdir because otherwise we won't find it if we're
4884   # using a relative directory.
4885   cp "$am_depcomp" conftest.dir
4886   cd conftest.dir
4887   # We will build objects and dependencies in a subdirectory because
4888   # it helps to detect inapplicable dependency modes.  For instance
4889   # both Tru64's cc and ICC support -MD to output dependencies as a
4890   # side effect of compilation, but ICC will put the dependencies in
4891   # the current directory while Tru64 will put them in the object
4892   # directory.
4893   mkdir sub
4894
4895   am_cv_CC_dependencies_compiler_type=none
4896   if test "$am_compiler_list" = ""; then
4897      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898   fi
4899   am__universal=false
4900   case " $depcc " in #(
4901      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4902      esac
4903
4904   for depmode in $am_compiler_list; do
4905     # Setup a source with many dependencies, because some compilers
4906     # like to wrap large dependency lists on column 80 (with \), and
4907     # we should not choose a depcomp mode which is confused by this.
4908     #
4909     # We need to recreate these files for each test, as the compiler may
4910     # overwrite some of them when testing with obscure command lines.
4911     # This happens at least with the AIX C compiler.
4912     : > sub/conftest.c
4913     for i in 1 2 3 4 5 6; do
4914       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4916       # Solaris 10 /bin/sh.
4917       echo '/* dummy */' > sub/conftst$i.h
4918     done
4919     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4920
4921     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4922     # mode.  It turns out that the SunPro C++ compiler does not properly
4923     # handle '-M -o', and we need to detect this.  Also, some Intel
4924     # versions had trouble with output in subdirs.
4925     am__obj=sub/conftest.${OBJEXT-o}
4926     am__minus_obj="-o $am__obj"
4927     case $depmode in
4928     gcc)
4929       # This depmode causes a compiler race in universal mode.
4930       test "$am__universal" = false || continue
4931       ;;
4932     nosideeffect)
4933       # After this tag, mechanisms are not by side-effect, so they'll
4934       # only be used when explicitly requested.
4935       if test "x$enable_dependency_tracking" = xyes; then
4936         continue
4937       else
4938         break
4939       fi
4940       ;;
4941     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4942       # This compiler won't grok '-c -o', but also, the minuso test has
4943       # not run yet.  These depmodes are late enough in the game, and
4944       # so weak that their functioning should not be impacted.
4945       am__obj=conftest.${OBJEXT-o}
4946       am__minus_obj=
4947       ;;
4948     none) break ;;
4949     esac
4950     if depmode=$depmode \
4951        source=sub/conftest.c object=$am__obj \
4952        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4954          >/dev/null 2>conftest.err &&
4955        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4956        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4957        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4958        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4959       # icc doesn't choke on unknown options, it will just issue warnings
4960       # or remarks (even with -Werror).  So we grep stderr for any message
4961       # that says an option was ignored or not supported.
4962       # When given -MP, icc 7.0 and 7.1 complain thusly:
4963       #   icc: Command line warning: ignoring option '-M'; no argument required
4964       # The diagnosis changed in icc 8.0:
4965       #   icc: Command line remark: option '-MP' not supported
4966       if (grep 'ignoring option' conftest.err ||
4967           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4968         am_cv_CC_dependencies_compiler_type=$depmode
4969         break
4970       fi
4971     fi
4972   done
4973
4974   cd ..
4975   rm -rf conftest.dir
4976 else
4977   am_cv_CC_dependencies_compiler_type=none
4978 fi
4979
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4982 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4983 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4984
4985  if
4986   test "x$enable_dependency_tracking" != xno \
4987   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4988   am__fastdepCC_TRUE=
4989   am__fastdepCC_FALSE='#'
4990 else
4991   am__fastdepCC_TRUE='#'
4992   am__fastdepCC_FALSE=
4993 fi
4994
4995
4996
4997 ac_ext=c
4998 ac_cpp='$CPP $CPPFLAGS'
4999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5003 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5004 # On Suns, sometimes $CPP names a directory.
5005 if test -n "$CPP" && test -d "$CPP"; then
5006   CPP=
5007 fi
5008 if test -z "$CPP"; then
5009   if ${ac_cv_prog_CPP+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012       # Double quotes because CPP needs to be expanded
5013     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5014     do
5015       ac_preproc_ok=false
5016 for ac_c_preproc_warn_flag in '' yes
5017 do
5018   # Use a header file that comes with gcc, so configuring glibc
5019   # with a fresh cross-compiler works.
5020   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5021   # <limits.h> exists even on freestanding compilers.
5022   # On the NeXT, cc -E runs the code through the compiler's parser,
5023   # not just through cpp. "Syntax error" is here to catch this case.
5024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h.  */
5026 #ifdef __STDC__
5027 # include <limits.h>
5028 #else
5029 # include <assert.h>
5030 #endif
5031                      Syntax error
5032 _ACEOF
5033 if ac_fn_c_try_cpp "$LINENO"; then :
5034
5035 else
5036   # Broken: fails on valid input.
5037 continue
5038 fi
5039 rm -f conftest.err conftest.i conftest.$ac_ext
5040
5041   # OK, works on sane cases.  Now check whether nonexistent headers
5042   # can be detected and how.
5043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h.  */
5045 #include <ac_nonexistent.h>
5046 _ACEOF
5047 if ac_fn_c_try_cpp "$LINENO"; then :
5048   # Broken: success on invalid input.
5049 continue
5050 else
5051   # Passes both tests.
5052 ac_preproc_ok=:
5053 break
5054 fi
5055 rm -f conftest.err conftest.i conftest.$ac_ext
5056
5057 done
5058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059 rm -f conftest.i conftest.err conftest.$ac_ext
5060 if $ac_preproc_ok; then :
5061   break
5062 fi
5063
5064     done
5065     ac_cv_prog_CPP=$CPP
5066
5067 fi
5068   CPP=$ac_cv_prog_CPP
5069 else
5070   ac_cv_prog_CPP=$CPP
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5073 $as_echo "$CPP" >&6; }
5074 ac_preproc_ok=false
5075 for ac_c_preproc_warn_flag in '' yes
5076 do
5077   # Use a header file that comes with gcc, so configuring glibc
5078   # with a fresh cross-compiler works.
5079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080   # <limits.h> exists even on freestanding compilers.
5081   # On the NeXT, cc -E runs the code through the compiler's parser,
5082   # not just through cpp. "Syntax error" is here to catch this case.
5083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h.  */
5085 #ifdef __STDC__
5086 # include <limits.h>
5087 #else
5088 # include <assert.h>
5089 #endif
5090                      Syntax error
5091 _ACEOF
5092 if ac_fn_c_try_cpp "$LINENO"; then :
5093
5094 else
5095   # Broken: fails on valid input.
5096 continue
5097 fi
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5099
5100   # OK, works on sane cases.  Now check whether nonexistent headers
5101   # can be detected and how.
5102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h.  */
5104 #include <ac_nonexistent.h>
5105 _ACEOF
5106 if ac_fn_c_try_cpp "$LINENO"; then :
5107   # Broken: success on invalid input.
5108 continue
5109 else
5110   # Passes both tests.
5111 ac_preproc_ok=:
5112 break
5113 fi
5114 rm -f conftest.err conftest.i conftest.$ac_ext
5115
5116 done
5117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118 rm -f conftest.i conftest.err conftest.$ac_ext
5119 if $ac_preproc_ok; then :
5120
5121 else
5122   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5124 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5125 See \`config.log' for more details" "$LINENO" 5; }
5126 fi
5127
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5136 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5137 if ${ac_cv_path_GREP+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   if test -z "$GREP"; then
5141   ac_path_GREP_found=false
5142   # Loop through the user's path and test for each of PROGNAME-LIST
5143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148     for ac_prog in grep ggrep; do
5149     for ac_exec_ext in '' $ac_executable_extensions; do
5150       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5151       as_fn_executable_p "$ac_path_GREP" || continue
5152 # Check for GNU ac_path_GREP and select it if it is found.
5153   # Check for GNU $ac_path_GREP
5154 case `"$ac_path_GREP" --version 2>&1` in
5155 *GNU*)
5156   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5157 *)
5158   ac_count=0
5159   $as_echo_n 0123456789 >"conftest.in"
5160   while :
5161   do
5162     cat "conftest.in" "conftest.in" >"conftest.tmp"
5163     mv "conftest.tmp" "conftest.in"
5164     cp "conftest.in" "conftest.nl"
5165     $as_echo 'GREP' >> "conftest.nl"
5166     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168     as_fn_arith $ac_count + 1 && ac_count=$as_val
5169     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5170       # Best one so far, save it but keep looking for a better one
5171       ac_cv_path_GREP="$ac_path_GREP"
5172       ac_path_GREP_max=$ac_count
5173     fi
5174     # 10*(2^10) chars as input seems more than enough
5175     test $ac_count -gt 10 && break
5176   done
5177   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5178 esac
5179
5180       $ac_path_GREP_found && break 3
5181     done
5182   done
5183   done
5184 IFS=$as_save_IFS
5185   if test -z "$ac_cv_path_GREP"; then
5186     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5187   fi
5188 else
5189   ac_cv_path_GREP=$GREP
5190 fi
5191
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5194 $as_echo "$ac_cv_path_GREP" >&6; }
5195  GREP="$ac_cv_path_GREP"
5196
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5199 $as_echo_n "checking for egrep... " >&6; }
5200 if ${ac_cv_path_EGREP+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5204    then ac_cv_path_EGREP="$GREP -E"
5205    else
5206      if test -z "$EGREP"; then
5207   ac_path_EGREP_found=false
5208   # Loop through the user's path and test for each of PROGNAME-LIST
5209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214     for ac_prog in egrep; do
5215     for ac_exec_ext in '' $ac_executable_extensions; do
5216       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5217       as_fn_executable_p "$ac_path_EGREP" || continue
5218 # Check for GNU ac_path_EGREP and select it if it is found.
5219   # Check for GNU $ac_path_EGREP
5220 case `"$ac_path_EGREP" --version 2>&1` in
5221 *GNU*)
5222   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5223 *)
5224   ac_count=0
5225   $as_echo_n 0123456789 >"conftest.in"
5226   while :
5227   do
5228     cat "conftest.in" "conftest.in" >"conftest.tmp"
5229     mv "conftest.tmp" "conftest.in"
5230     cp "conftest.in" "conftest.nl"
5231     $as_echo 'EGREP' >> "conftest.nl"
5232     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234     as_fn_arith $ac_count + 1 && ac_count=$as_val
5235     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5236       # Best one so far, save it but keep looking for a better one
5237       ac_cv_path_EGREP="$ac_path_EGREP"
5238       ac_path_EGREP_max=$ac_count
5239     fi
5240     # 10*(2^10) chars as input seems more than enough
5241     test $ac_count -gt 10 && break
5242   done
5243   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244 esac
5245
5246       $ac_path_EGREP_found && break 3
5247     done
5248   done
5249   done
5250 IFS=$as_save_IFS
5251   if test -z "$ac_cv_path_EGREP"; then
5252     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5253   fi
5254 else
5255   ac_cv_path_EGREP=$EGREP
5256 fi
5257
5258    fi
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5261 $as_echo "$ac_cv_path_EGREP" >&6; }
5262  EGREP="$ac_cv_path_EGREP"
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5266 $as_echo_n "checking for ANSI C header files... " >&6; }
5267 if ${ac_cv_header_stdc+:} false; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h.  */
5272 #include <stdlib.h>
5273 #include <stdarg.h>
5274 #include <string.h>
5275 #include <float.h>
5276
5277 int
5278 main ()
5279 {
5280
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286   ac_cv_header_stdc=yes
5287 else
5288   ac_cv_header_stdc=no
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291
5292 if test $ac_cv_header_stdc = yes; then
5293   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h.  */
5296 #include <string.h>
5297
5298 _ACEOF
5299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300   $EGREP "memchr" >/dev/null 2>&1; then :
5301
5302 else
5303   ac_cv_header_stdc=no
5304 fi
5305 rm -f conftest*
5306
5307 fi
5308
5309 if test $ac_cv_header_stdc = yes; then
5310   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h.  */
5313 #include <stdlib.h>
5314
5315 _ACEOF
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317   $EGREP "free" >/dev/null 2>&1; then :
5318
5319 else
5320   ac_cv_header_stdc=no
5321 fi
5322 rm -f conftest*
5323
5324 fi
5325
5326 if test $ac_cv_header_stdc = yes; then
5327   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5328   if test "$cross_compiling" = yes; then :
5329   :
5330 else
5331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h.  */
5333 #include <ctype.h>
5334 #include <stdlib.h>
5335 #if ((' ' & 0x0FF) == 0x020)
5336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5338 #else
5339 # define ISLOWER(c) \
5340                    (('a' <= (c) && (c) <= 'i') \
5341                      || ('j' <= (c) && (c) <= 'r') \
5342                      || ('s' <= (c) && (c) <= 'z'))
5343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5344 #endif
5345
5346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5347 int
5348 main ()
5349 {
5350   int i;
5351   for (i = 0; i < 256; i++)
5352     if (XOR (islower (i), ISLOWER (i))
5353         || toupper (i) != TOUPPER (i))
5354       return 2;
5355   return 0;
5356 }
5357 _ACEOF
5358 if ac_fn_c_try_run "$LINENO"; then :
5359
5360 else
5361   ac_cv_header_stdc=no
5362 fi
5363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5364   conftest.$ac_objext conftest.beam conftest.$ac_ext
5365 fi
5366
5367 fi
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5370 $as_echo "$ac_cv_header_stdc" >&6; }
5371 if test $ac_cv_header_stdc = yes; then
5372
5373 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5374
5375 fi
5376
5377 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5379                   inttypes.h stdint.h unistd.h
5380 do :
5381   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5382 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5383 "
5384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5385   cat >>confdefs.h <<_ACEOF
5386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5387 _ACEOF
5388
5389 fi
5390
5391 done
5392
5393
5394
5395   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5396 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5397   MINIX=yes
5398 else
5399   MINIX=
5400 fi
5401
5402
5403   if test "$MINIX" = yes; then
5404
5405 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5406
5407
5408 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5409
5410
5411 $as_echo "#define _MINIX 1" >>confdefs.h
5412
5413
5414 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5415
5416   fi
5417
5418
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5420 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5421 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h.  */
5426
5427 #         define __EXTENSIONS__ 1
5428           $ac_includes_default
5429 int
5430 main ()
5431 {
5432
5433   ;
5434   return 0;
5435 }
5436 _ACEOF
5437 if ac_fn_c_try_compile "$LINENO"; then :
5438   ac_cv_safe_to_define___extensions__=yes
5439 else
5440   ac_cv_safe_to_define___extensions__=no
5441 fi
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5445 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5446   test $ac_cv_safe_to_define___extensions__ = yes &&
5447     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5448
5449   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5450
5451   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5452
5453   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5454
5455   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5456
5457   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5458
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5460 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5461 if ${ac_cv_should_define__xopen_source+:} false; then :
5462   $as_echo_n "(cached) " >&6
5463 else
5464   ac_cv_should_define__xopen_source=no
5465      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h.  */
5467
5468           #include <wchar.h>
5469           mbstate_t x;
5470 int
5471 main ()
5472 {
5473
5474   ;
5475   return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_compile "$LINENO"; then :
5479
5480 else
5481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h.  */
5483
5484              #define _XOPEN_SOURCE 500
5485              #include <wchar.h>
5486              mbstate_t x;
5487 int
5488 main ()
5489 {
5490
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"; then :
5496   ac_cv_should_define__xopen_source=yes
5497 fi
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 fi
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5503 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5504   test $ac_cv_should_define__xopen_source = yes &&
5505     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5506
5507
5508
5509 if test -n "$ac_tool_prefix"; then
5510   for ac_prog in ar lib "link -lib"
5511   do
5512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_AR+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   if test -n "$AR"; then
5520   ac_cv_prog_AR="$AR" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527     for ac_exec_ext in '' $ac_executable_extensions; do
5528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534   done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 AR=$ac_cv_prog_AR
5540 if test -n "$AR"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5542 $as_echo "$AR" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549     test -n "$AR" && break
5550   done
5551 fi
5552 if test -z "$AR"; then
5553   ac_ct_AR=$AR
5554   for ac_prog in ar lib "link -lib"
5555 do
5556   # Extract the first word of "$ac_prog", so it can be a program name with args.
5557 set dummy $ac_prog; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if test -n "$ac_ct_AR"; then
5564   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_prog_ac_ct_AR="$ac_prog"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5584 if test -n "$ac_ct_AR"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5586 $as_echo "$ac_ct_AR" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592
5593   test -n "$ac_ct_AR" && break
5594 done
5595
5596   if test "x$ac_ct_AR" = x; then
5597     AR="false"
5598   else
5599     case $cross_compiling:$ac_tool_warned in
5600 yes:)
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603 ac_tool_warned=yes ;;
5604 esac
5605     AR=$ac_ct_AR
5606   fi
5607 fi
5608
5609 : ${AR=ar}
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5612 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5613 if ${am_cv_ar_interface+:} false; then :
5614   $as_echo_n "(cached) " >&6
5615 else
5616   ac_ext=c
5617 ac_cpp='$CPP $CPPFLAGS'
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5621
5622    am_cv_ar_interface=ar
5623    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h.  */
5625 int some_variable = 0;
5626 _ACEOF
5627 if ac_fn_c_try_compile "$LINENO"; then :
5628   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5629       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5630   (eval $am_ar_try) 2>&5
5631   ac_status=$?
5632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633   test $ac_status = 0; }
5634       if test "$ac_status" -eq 0; then
5635         am_cv_ar_interface=ar
5636       else
5637         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5638         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5639   (eval $am_ar_try) 2>&5
5640   ac_status=$?
5641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642   test $ac_status = 0; }
5643         if test "$ac_status" -eq 0; then
5644           am_cv_ar_interface=lib
5645         else
5646           am_cv_ar_interface=unknown
5647         fi
5648       fi
5649       rm -f conftest.lib libconftest.a
5650
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653    ac_ext=c
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5661 $as_echo "$am_cv_ar_interface" >&6; }
5662
5663 case $am_cv_ar_interface in
5664 ar)
5665   ;;
5666 lib)
5667   # Microsoft lib, so override with the ar-lib wrapper script.
5668   # FIXME: It is wrong to rewrite AR.
5669   # But if we don't then we get into trouble of one sort or another.
5670   # A longer-term fix would be to have automake use am__AR in this case,
5671   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5672   # similar.
5673   AR="$am_aux_dir/ar-lib $AR"
5674   ;;
5675 unknown)
5676   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5677   ;;
5678 esac
5679
5680 case `pwd` in
5681   *\ * | *\     *)
5682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5683 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5684 esac
5685
5686
5687
5688 macro_version='2.4.2'
5689 macro_revision='1.3337'
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 ltmain="$ac_aux_dir/ltmain.sh"
5704
5705 # Make sure we can run config.sub.
5706 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5707   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5708
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5710 $as_echo_n "checking build system type... " >&6; }
5711 if ${ac_cv_build+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   ac_build_alias=$build_alias
5715 test "x$ac_build_alias" = x &&
5716   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5717 test "x$ac_build_alias" = x &&
5718   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5719 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5720   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5721
5722 fi
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5724 $as_echo "$ac_cv_build" >&6; }
5725 case $ac_cv_build in
5726 *-*-*) ;;
5727 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5728 esac
5729 build=$ac_cv_build
5730 ac_save_IFS=$IFS; IFS='-'
5731 set x $ac_cv_build
5732 shift
5733 build_cpu=$1
5734 build_vendor=$2
5735 shift; shift
5736 # Remember, the first character of IFS is used to create $*,
5737 # except with old shells:
5738 build_os=$*
5739 IFS=$ac_save_IFS
5740 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5741
5742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5744 $as_echo_n "checking host system type... " >&6; }
5745 if ${ac_cv_host+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test "x$host_alias" = x; then
5749   ac_cv_host=$ac_cv_build
5750 else
5751   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5752     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5753 fi
5754
5755 fi
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5757 $as_echo "$ac_cv_host" >&6; }
5758 case $ac_cv_host in
5759 *-*-*) ;;
5760 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5761 esac
5762 host=$ac_cv_host
5763 ac_save_IFS=$IFS; IFS='-'
5764 set x $ac_cv_host
5765 shift
5766 host_cpu=$1
5767 host_vendor=$2
5768 shift; shift
5769 # Remember, the first character of IFS is used to create $*,
5770 # except with old shells:
5771 host_os=$*
5772 IFS=$ac_save_IFS
5773 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5774
5775
5776 # Backslashify metacharacters that are still active within
5777 # double-quoted strings.
5778 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5779
5780 # Same as above, but do not quote variable references.
5781 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5782
5783 # Sed substitution to delay expansion of an escaped shell variable in a
5784 # double_quote_subst'ed string.
5785 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5786
5787 # Sed substitution to delay expansion of an escaped single quote.
5788 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5789
5790 # Sed substitution to avoid accidental globbing in evaled expressions
5791 no_glob_subst='s/\*/\\\*/g'
5792
5793 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5794 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5795 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5798 $as_echo_n "checking how to print strings... " >&6; }
5799 # Test print first, because it will be a builtin if present.
5800 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5801    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5802   ECHO='print -r --'
5803 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5804   ECHO='printf %s\n'
5805 else
5806   # Use this function as a fallback that always works.
5807   func_fallback_echo ()
5808   {
5809     eval 'cat <<_LTECHO_EOF
5810 $1
5811 _LTECHO_EOF'
5812   }
5813   ECHO='func_fallback_echo'
5814 fi
5815
5816 # func_echo_all arg...
5817 # Invoke $ECHO with all args, space-separated.
5818 func_echo_all ()
5819 {
5820     $ECHO ""
5821 }
5822
5823 case "$ECHO" in
5824   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5825 $as_echo "printf" >&6; } ;;
5826   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5827 $as_echo "print -r" >&6; } ;;
5828   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5829 $as_echo "cat" >&6; } ;;
5830 esac
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5846 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5847 if ${ac_cv_path_SED+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5851      for ac_i in 1 2 3 4 5 6 7; do
5852        ac_script="$ac_script$as_nl$ac_script"
5853      done
5854      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5855      { ac_script=; unset ac_script;}
5856      if test -z "$SED"; then
5857   ac_path_SED_found=false
5858   # Loop through the user's path and test for each of PROGNAME-LIST
5859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864     for ac_prog in sed gsed; do
5865     for ac_exec_ext in '' $ac_executable_extensions; do
5866       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5867       as_fn_executable_p "$ac_path_SED" || continue
5868 # Check for GNU ac_path_SED and select it if it is found.
5869   # Check for GNU $ac_path_SED
5870 case `"$ac_path_SED" --version 2>&1` in
5871 *GNU*)
5872   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5873 *)
5874   ac_count=0
5875   $as_echo_n 0123456789 >"conftest.in"
5876   while :
5877   do
5878     cat "conftest.in" "conftest.in" >"conftest.tmp"
5879     mv "conftest.tmp" "conftest.in"
5880     cp "conftest.in" "conftest.nl"
5881     $as_echo '' >> "conftest.nl"
5882     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5883     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5884     as_fn_arith $ac_count + 1 && ac_count=$as_val
5885     if test $ac_count -gt ${ac_path_SED_max-0}; then
5886       # Best one so far, save it but keep looking for a better one
5887       ac_cv_path_SED="$ac_path_SED"
5888       ac_path_SED_max=$ac_count
5889     fi
5890     # 10*(2^10) chars as input seems more than enough
5891     test $ac_count -gt 10 && break
5892   done
5893   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5894 esac
5895
5896       $ac_path_SED_found && break 3
5897     done
5898   done
5899   done
5900 IFS=$as_save_IFS
5901   if test -z "$ac_cv_path_SED"; then
5902     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5903   fi
5904 else
5905   ac_cv_path_SED=$SED
5906 fi
5907
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5910 $as_echo "$ac_cv_path_SED" >&6; }
5911  SED="$ac_cv_path_SED"
5912   rm -f conftest.sed
5913
5914 test -z "$SED" && SED=sed
5915 Xsed="$SED -e 1s/^X//"
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5928 $as_echo_n "checking for fgrep... " >&6; }
5929 if ${ac_cv_path_FGREP+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5933    then ac_cv_path_FGREP="$GREP -F"
5934    else
5935      if test -z "$FGREP"; then
5936   ac_path_FGREP_found=false
5937   # Loop through the user's path and test for each of PROGNAME-LIST
5938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943     for ac_prog in fgrep; do
5944     for ac_exec_ext in '' $ac_executable_extensions; do
5945       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5946       as_fn_executable_p "$ac_path_FGREP" || continue
5947 # Check for GNU ac_path_FGREP and select it if it is found.
5948   # Check for GNU $ac_path_FGREP
5949 case `"$ac_path_FGREP" --version 2>&1` in
5950 *GNU*)
5951   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5952 *)
5953   ac_count=0
5954   $as_echo_n 0123456789 >"conftest.in"
5955   while :
5956   do
5957     cat "conftest.in" "conftest.in" >"conftest.tmp"
5958     mv "conftest.tmp" "conftest.in"
5959     cp "conftest.in" "conftest.nl"
5960     $as_echo 'FGREP' >> "conftest.nl"
5961     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5962     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5963     as_fn_arith $ac_count + 1 && ac_count=$as_val
5964     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5965       # Best one so far, save it but keep looking for a better one
5966       ac_cv_path_FGREP="$ac_path_FGREP"
5967       ac_path_FGREP_max=$ac_count
5968     fi
5969     # 10*(2^10) chars as input seems more than enough
5970     test $ac_count -gt 10 && break
5971   done
5972   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5973 esac
5974
5975       $ac_path_FGREP_found && break 3
5976     done
5977   done
5978   done
5979 IFS=$as_save_IFS
5980   if test -z "$ac_cv_path_FGREP"; then
5981     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5982   fi
5983 else
5984   ac_cv_path_FGREP=$FGREP
5985 fi
5986
5987    fi
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5990 $as_echo "$ac_cv_path_FGREP" >&6; }
5991  FGREP="$ac_cv_path_FGREP"
5992
5993
5994 test -z "$GREP" && GREP=grep
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014 # Check whether --with-gnu-ld was given.
6015 if test "${with_gnu_ld+set}" = set; then :
6016   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6017 else
6018   with_gnu_ld=no
6019 fi
6020
6021 ac_prog=ld
6022 if test "$GCC" = yes; then
6023   # Check if gcc -print-prog-name=ld gives a path.
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6025 $as_echo_n "checking for ld used by $CC... " >&6; }
6026   case $host in
6027   *-*-mingw*)
6028     # gcc leaves a trailing carriage return which upsets mingw
6029     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6030   *)
6031     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6032   esac
6033   case $ac_prog in
6034     # Accept absolute paths.
6035     [\\/]* | ?:[\\/]*)
6036       re_direlt='/[^/][^/]*/\.\./'
6037       # Canonicalize the pathname of ld
6038       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6039       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6040         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6041       done
6042       test -z "$LD" && LD="$ac_prog"
6043       ;;
6044   "")
6045     # If it fails, then pretend we aren't using GCC.
6046     ac_prog=ld
6047     ;;
6048   *)
6049     # If it is relative, then search for the first ld in PATH.
6050     with_gnu_ld=unknown
6051     ;;
6052   esac
6053 elif test "$with_gnu_ld" = yes; then
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6055 $as_echo_n "checking for GNU ld... " >&6; }
6056 else
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6058 $as_echo_n "checking for non-GNU ld... " >&6; }
6059 fi
6060 if ${lt_cv_path_LD+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   if test -z "$LD"; then
6064   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6065   for ac_dir in $PATH; do
6066     IFS="$lt_save_ifs"
6067     test -z "$ac_dir" && ac_dir=.
6068     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6069       lt_cv_path_LD="$ac_dir/$ac_prog"
6070       # Check to see if the program is GNU ld.  I'd rather use --version,
6071       # but apparently some variants of GNU ld only accept -v.
6072       # Break only if it was the GNU/non-GNU ld that we prefer.
6073       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6074       *GNU* | *'with BFD'*)
6075         test "$with_gnu_ld" != no && break
6076         ;;
6077       *)
6078         test "$with_gnu_ld" != yes && break
6079         ;;
6080       esac
6081     fi
6082   done
6083   IFS="$lt_save_ifs"
6084 else
6085   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6086 fi
6087 fi
6088
6089 LD="$lt_cv_path_LD"
6090 if test -n "$LD"; then
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6092 $as_echo "$LD" >&6; }
6093 else
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6099 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6100 if ${lt_cv_prog_gnu_ld+:} false; then :
6101   $as_echo_n "(cached) " >&6
6102 else
6103   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6104 case `$LD -v 2>&1 </dev/null` in
6105 *GNU* | *'with BFD'*)
6106   lt_cv_prog_gnu_ld=yes
6107   ;;
6108 *)
6109   lt_cv_prog_gnu_ld=no
6110   ;;
6111 esac
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6114 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6115 with_gnu_ld=$lt_cv_prog_gnu_ld
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6126 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6127 if ${lt_cv_path_NM+:} false; then :
6128   $as_echo_n "(cached) " >&6
6129 else
6130   if test -n "$NM"; then
6131   # Let the user override the test.
6132   lt_cv_path_NM="$NM"
6133 else
6134   lt_nm_to_check="${ac_tool_prefix}nm"
6135   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6136     lt_nm_to_check="$lt_nm_to_check nm"
6137   fi
6138   for lt_tmp_nm in $lt_nm_to_check; do
6139     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6140     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6141       IFS="$lt_save_ifs"
6142       test -z "$ac_dir" && ac_dir=.
6143       tmp_nm="$ac_dir/$lt_tmp_nm"
6144       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6145         # Check to see if the nm accepts a BSD-compat flag.
6146         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6147         #   nm: unknown option "B" ignored
6148         # Tru64's nm complains that /dev/null is an invalid object file
6149         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6150         */dev/null* | *'Invalid file or object type'*)
6151           lt_cv_path_NM="$tmp_nm -B"
6152           break
6153           ;;
6154         *)
6155           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6156           */dev/null*)
6157             lt_cv_path_NM="$tmp_nm -p"
6158             break
6159             ;;
6160           *)
6161             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6162             continue # so that we can try to find one that supports BSD flags
6163             ;;
6164           esac
6165           ;;
6166         esac
6167       fi
6168     done
6169     IFS="$lt_save_ifs"
6170   done
6171   : ${lt_cv_path_NM=no}
6172 fi
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6175 $as_echo "$lt_cv_path_NM" >&6; }
6176 if test "$lt_cv_path_NM" != "no"; then
6177   NM="$lt_cv_path_NM"
6178 else
6179   # Didn't find any BSD compatible name lister, look for dumpbin.
6180   if test -n "$DUMPBIN"; then :
6181     # Let the user override the test.
6182   else
6183     if test -n "$ac_tool_prefix"; then
6184   for ac_prog in dumpbin "link -dump"
6185   do
6186     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_DUMPBIN+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   if test -n "$DUMPBIN"; then
6194   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     for ac_exec_ext in '' $ac_executable_extensions; do
6202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208   done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 DUMPBIN=$ac_cv_prog_DUMPBIN
6214 if test -n "$DUMPBIN"; then
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6216 $as_echo "$DUMPBIN" >&6; }
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6220 fi
6221
6222
6223     test -n "$DUMPBIN" && break
6224   done
6225 fi
6226 if test -z "$DUMPBIN"; then
6227   ac_ct_DUMPBIN=$DUMPBIN
6228   for ac_prog in dumpbin "link -dump"
6229 do
6230   # Extract the first word of "$ac_prog", so it can be a program name with args.
6231 set dummy $ac_prog; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$ac_ct_DUMPBIN"; then
6238   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6258 if test -n "$ac_ct_DUMPBIN"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6260 $as_echo "$ac_ct_DUMPBIN" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267   test -n "$ac_ct_DUMPBIN" && break
6268 done
6269
6270   if test "x$ac_ct_DUMPBIN" = x; then
6271     DUMPBIN=":"
6272   else
6273     case $cross_compiling:$ac_tool_warned in
6274 yes:)
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279     DUMPBIN=$ac_ct_DUMPBIN
6280   fi
6281 fi
6282
6283     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6284     *COFF*)
6285       DUMPBIN="$DUMPBIN -symbols"
6286       ;;
6287     *)
6288       DUMPBIN=:
6289       ;;
6290     esac
6291   fi
6292
6293   if test "$DUMPBIN" != ":"; then
6294     NM="$DUMPBIN"
6295   fi
6296 fi
6297 test -z "$NM" && NM=nm
6298
6299
6300
6301
6302
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6305 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6306 if ${lt_cv_nm_interface+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   lt_cv_nm_interface="BSD nm"
6310   echo "int some_variable = 0;" > conftest.$ac_ext
6311   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6312   (eval "$ac_compile" 2>conftest.err)
6313   cat conftest.err >&5
6314   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6315   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6316   cat conftest.err >&5
6317   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6318   cat conftest.out >&5
6319   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6320     lt_cv_nm_interface="MS dumpbin"
6321   fi
6322   rm -f conftest*
6323 fi
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6325 $as_echo "$lt_cv_nm_interface" >&6; }
6326
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6328 $as_echo_n "checking whether ln -s works... " >&6; }
6329 LN_S=$as_ln_s
6330 if test "$LN_S" = "ln -s"; then
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6332 $as_echo "yes" >&6; }
6333 else
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6335 $as_echo "no, using $LN_S" >&6; }
6336 fi
6337
6338 # find the maximum length of command line arguments
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6340 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6341 if ${lt_cv_sys_max_cmd_len+:} false; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344     i=0
6345   teststring="ABCD"
6346
6347   case $build_os in
6348   msdosdjgpp*)
6349     # On DJGPP, this test can blow up pretty badly due to problems in libc
6350     # (any single argument exceeding 2000 bytes causes a buffer overrun
6351     # during glob expansion).  Even if it were fixed, the result of this
6352     # check would be larger than it should be.
6353     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6354     ;;
6355
6356   gnu*)
6357     # Under GNU Hurd, this test is not required because there is
6358     # no limit to the length of command line arguments.
6359     # Libtool will interpret -1 as no limit whatsoever
6360     lt_cv_sys_max_cmd_len=-1;
6361     ;;
6362
6363   cygwin* | mingw* | cegcc*)
6364     # On Win9x/ME, this test blows up -- it succeeds, but takes
6365     # about 5 minutes as the teststring grows exponentially.
6366     # Worse, since 9x/ME are not pre-emptively multitasking,
6367     # you end up with a "frozen" computer, even though with patience
6368     # the test eventually succeeds (with a max line length of 256k).
6369     # Instead, let's just punt: use the minimum linelength reported by
6370     # all of the supported platforms: 8192 (on NT/2K/XP).
6371     lt_cv_sys_max_cmd_len=8192;
6372     ;;
6373
6374   mint*)
6375     # On MiNT this can take a long time and run out of memory.
6376     lt_cv_sys_max_cmd_len=8192;
6377     ;;
6378
6379   amigaos*)
6380     # On AmigaOS with pdksh, this test takes hours, literally.
6381     # So we just punt and use a minimum line length of 8192.
6382     lt_cv_sys_max_cmd_len=8192;
6383     ;;
6384
6385   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6386     # This has been around since 386BSD, at least.  Likely further.
6387     if test -x /sbin/sysctl; then
6388       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6389     elif test -x /usr/sbin/sysctl; then
6390       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6391     else
6392       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6393     fi
6394     # And add a safety zone
6395     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6396     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6397     ;;
6398
6399   interix*)
6400     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6401     lt_cv_sys_max_cmd_len=196608
6402     ;;
6403
6404   os2*)
6405     # The test takes a long time on OS/2.
6406     lt_cv_sys_max_cmd_len=8192
6407     ;;
6408
6409   osf*)
6410     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6411     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6412     # nice to cause kernel panics so lets avoid the loop below.
6413     # First set a reasonable default.
6414     lt_cv_sys_max_cmd_len=16384
6415     #
6416     if test -x /sbin/sysconfig; then
6417       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6418         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6419       esac
6420     fi
6421     ;;
6422   sco3.2v5*)
6423     lt_cv_sys_max_cmd_len=102400
6424     ;;
6425   sysv5* | sco5v6* | sysv4.2uw2*)
6426     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6427     if test -n "$kargmax"; then
6428       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6429     else
6430       lt_cv_sys_max_cmd_len=32768
6431     fi
6432     ;;
6433   *)
6434     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6435     if test -n "$lt_cv_sys_max_cmd_len" && \
6436         test undefined != "$lt_cv_sys_max_cmd_len"; then
6437       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6438       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6439     else
6440       # Make teststring a little bigger before we do anything with it.
6441       # a 1K string should be a reasonable start.
6442       for i in 1 2 3 4 5 6 7 8 ; do
6443         teststring=$teststring$teststring
6444       done
6445       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6446       # If test is not a shell built-in, we'll probably end up computing a
6447       # maximum length that is only half of the actual maximum length, but
6448       # we can't tell.
6449       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6450                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6451               test $i != 17 # 1/2 MB should be enough
6452       do
6453         i=`expr $i + 1`
6454         teststring=$teststring$teststring
6455       done
6456       # Only check the string length outside the loop.
6457       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6458       teststring=
6459       # Add a significant safety factor because C++ compilers can tack on
6460       # massive amounts of additional arguments before passing them to the
6461       # linker.  It appears as though 1/2 is a usable value.
6462       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6463     fi
6464     ;;
6465   esac
6466
6467 fi
6468
6469 if test -n $lt_cv_sys_max_cmd_len ; then
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6471 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6472 else
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6474 $as_echo "none" >&6; }
6475 fi
6476 max_cmd_len=$lt_cv_sys_max_cmd_len
6477
6478
6479
6480
6481
6482
6483 : ${CP="cp -f"}
6484 : ${MV="mv -f"}
6485 : ${RM="rm -f"}
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6488 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6489 # Try some XSI features
6490 xsi_shell=no
6491 ( _lt_dummy="a/b/c"
6492   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6493       = c,a/b,b/c, \
6494     && eval 'test $(( 1 + 1 )) -eq 2 \
6495     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6496   && xsi_shell=yes
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6498 $as_echo "$xsi_shell" >&6; }
6499
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6502 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6503 lt_shell_append=no
6504 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6505     >/dev/null 2>&1 \
6506   && lt_shell_append=yes
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6508 $as_echo "$lt_shell_append" >&6; }
6509
6510
6511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6512   lt_unset=unset
6513 else
6514   lt_unset=false
6515 fi
6516
6517
6518
6519
6520
6521 # test EBCDIC or ASCII
6522 case `echo X|tr X '\101'` in
6523  A) # ASCII based system
6524     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6525   lt_SP2NL='tr \040 \012'
6526   lt_NL2SP='tr \015\012 \040\040'
6527   ;;
6528  *) # EBCDIC based system
6529   lt_SP2NL='tr \100 \n'
6530   lt_NL2SP='tr \r\n \100\100'
6531   ;;
6532 esac
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6543 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6544 if ${lt_cv_to_host_file_cmd+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   case $host in
6548   *-*-mingw* )
6549     case $build in
6550       *-*-mingw* ) # actually msys
6551         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6552         ;;
6553       *-*-cygwin* )
6554         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6555         ;;
6556       * ) # otherwise, assume *nix
6557         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6558         ;;
6559     esac
6560     ;;
6561   *-*-cygwin* )
6562     case $build in
6563       *-*-mingw* ) # actually msys
6564         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6565         ;;
6566       *-*-cygwin* )
6567         lt_cv_to_host_file_cmd=func_convert_file_noop
6568         ;;
6569       * ) # otherwise, assume *nix
6570         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6571         ;;
6572     esac
6573     ;;
6574   * ) # unhandled hosts (and "normal" native builds)
6575     lt_cv_to_host_file_cmd=func_convert_file_noop
6576     ;;
6577 esac
6578
6579 fi
6580
6581 to_host_file_cmd=$lt_cv_to_host_file_cmd
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6583 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6584
6585
6586
6587
6588
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6590 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6591 if ${lt_cv_to_tool_file_cmd+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   #assume ordinary cross tools, or native build.
6595 lt_cv_to_tool_file_cmd=func_convert_file_noop
6596 case $host in
6597   *-*-mingw* )
6598     case $build in
6599       *-*-mingw* ) # actually msys
6600         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6601         ;;
6602     esac
6603     ;;
6604 esac
6605
6606 fi
6607
6608 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6610 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6611
6612
6613
6614
6615
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6617 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6618 if ${lt_cv_ld_reload_flag+:} false; then :
6619   $as_echo_n "(cached) " >&6
6620 else
6621   lt_cv_ld_reload_flag='-r'
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6624 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6625 reload_flag=$lt_cv_ld_reload_flag
6626 case $reload_flag in
6627 "" | " "*) ;;
6628 *) reload_flag=" $reload_flag" ;;
6629 esac
6630 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6631 case $host_os in
6632   cygwin* | mingw* | pw32* | cegcc*)
6633     if test "$GCC" != yes; then
6634       reload_cmds=false
6635     fi
6636     ;;
6637   darwin*)
6638     if test "$GCC" = yes; then
6639       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6640     else
6641       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6642     fi
6643     ;;
6644 esac
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 if test -n "$ac_tool_prefix"; then
6655   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_OBJDUMP+:} false; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   if test -n "$OBJDUMP"; then
6663   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670     for ac_exec_ext in '' $ac_executable_extensions; do
6671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677   done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 OBJDUMP=$ac_cv_prog_OBJDUMP
6683 if test -n "$OBJDUMP"; then
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6685 $as_echo "$OBJDUMP" >&6; }
6686 else
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691
6692 fi
6693 if test -z "$ac_cv_prog_OBJDUMP"; then
6694   ac_ct_OBJDUMP=$OBJDUMP
6695   # Extract the first word of "objdump", so it can be a program name with args.
6696 set dummy objdump; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6700   $as_echo_n "(cached) " >&6
6701 else
6702   if test -n "$ac_ct_OBJDUMP"; then
6703   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710     for ac_exec_ext in '' $ac_executable_extensions; do
6711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717   done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6723 if test -n "$ac_ct_OBJDUMP"; then
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6725 $as_echo "$ac_ct_OBJDUMP" >&6; }
6726 else
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731   if test "x$ac_ct_OBJDUMP" = x; then
6732     OBJDUMP="false"
6733   else
6734     case $cross_compiling:$ac_tool_warned in
6735 yes:)
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740     OBJDUMP=$ac_ct_OBJDUMP
6741   fi
6742 else
6743   OBJDUMP="$ac_cv_prog_OBJDUMP"
6744 fi
6745
6746 test -z "$OBJDUMP" && OBJDUMP=objdump
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6757 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6758 if ${lt_cv_deplibs_check_method+:} false; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   lt_cv_file_magic_cmd='$MAGIC_CMD'
6762 lt_cv_file_magic_test_file=
6763 lt_cv_deplibs_check_method='unknown'
6764 # Need to set the preceding variable on all platforms that support
6765 # interlibrary dependencies.
6766 # 'none' -- dependencies not supported.
6767 # `unknown' -- same as none, but documents that we really don't know.
6768 # 'pass_all' -- all dependencies passed with no checks.
6769 # 'test_compile' -- check by making test program.
6770 # 'file_magic [[regex]]' -- check by looking for files in library path
6771 # which responds to the $file_magic_cmd with a given extended regex.
6772 # If you have `file' or equivalent on your system and you're not sure
6773 # whether `pass_all' will *always* work, you probably want this one.
6774
6775 case $host_os in
6776 aix[4-9]*)
6777   lt_cv_deplibs_check_method=pass_all
6778   ;;
6779
6780 beos*)
6781   lt_cv_deplibs_check_method=pass_all
6782   ;;
6783
6784 bsdi[45]*)
6785   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6786   lt_cv_file_magic_cmd='/usr/bin/file -L'
6787   lt_cv_file_magic_test_file=/shlib/libc.so
6788   ;;
6789
6790 cygwin*)
6791   # func_win32_libid is a shell function defined in ltmain.sh
6792   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6793   lt_cv_file_magic_cmd='func_win32_libid'
6794   ;;
6795
6796 mingw* | pw32*)
6797   # Base MSYS/MinGW do not provide the 'file' command needed by
6798   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6799   # unless we find 'file', for example because we are cross-compiling.
6800   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6801   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6802     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6803     lt_cv_file_magic_cmd='func_win32_libid'
6804   else
6805     # Keep this pattern in sync with the one in func_win32_libid.
6806     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6807     lt_cv_file_magic_cmd='$OBJDUMP -f'
6808   fi
6809   ;;
6810
6811 cegcc*)
6812   # use the weaker test based on 'objdump'. See mingw*.
6813   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6814   lt_cv_file_magic_cmd='$OBJDUMP -f'
6815   ;;
6816
6817 darwin* | rhapsody*)
6818   lt_cv_deplibs_check_method=pass_all
6819   ;;
6820
6821 freebsd* | dragonfly*)
6822   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6823     case $host_cpu in
6824     i*86 )
6825       # Not sure whether the presence of OpenBSD here was a mistake.
6826       # Let's accept both of them until this is cleared up.
6827       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6828       lt_cv_file_magic_cmd=/usr/bin/file
6829       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6830       ;;
6831     esac
6832   else
6833     lt_cv_deplibs_check_method=pass_all
6834   fi
6835   ;;
6836
6837 haiku*)
6838   lt_cv_deplibs_check_method=pass_all
6839   ;;
6840
6841 hpux10.20* | hpux11*)
6842   lt_cv_file_magic_cmd=/usr/bin/file
6843   case $host_cpu in
6844   ia64*)
6845     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6846     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6847     ;;
6848   hppa*64*)
6849     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]'
6850     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6851     ;;
6852   *)
6853     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6854     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6855     ;;
6856   esac
6857   ;;
6858
6859 interix[3-9]*)
6860   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6861   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6862   ;;
6863
6864 irix5* | irix6* | nonstopux*)
6865   case $LD in
6866   *-32|*"-32 ") libmagic=32-bit;;
6867   *-n32|*"-n32 ") libmagic=N32;;
6868   *-64|*"-64 ") libmagic=64-bit;;
6869   *) libmagic=never-match;;
6870   esac
6871   lt_cv_deplibs_check_method=pass_all
6872   ;;
6873
6874 # This must be glibc/ELF.
6875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6876   lt_cv_deplibs_check_method=pass_all
6877   ;;
6878
6879 netbsd* | netbsdelf*-gnu)
6880   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6881     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6882   else
6883     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6884   fi
6885   ;;
6886
6887 newos6*)
6888   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6889   lt_cv_file_magic_cmd=/usr/bin/file
6890   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6891   ;;
6892
6893 *nto* | *qnx*)
6894   lt_cv_deplibs_check_method=pass_all
6895   ;;
6896
6897 openbsd*)
6898   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6899     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6900   else
6901     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6902   fi
6903   ;;
6904
6905 osf3* | osf4* | osf5*)
6906   lt_cv_deplibs_check_method=pass_all
6907   ;;
6908
6909 rdos*)
6910   lt_cv_deplibs_check_method=pass_all
6911   ;;
6912
6913 solaris*)
6914   lt_cv_deplibs_check_method=pass_all
6915   ;;
6916
6917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6918   lt_cv_deplibs_check_method=pass_all
6919   ;;
6920
6921 sysv4 | sysv4.3*)
6922   case $host_vendor in
6923   motorola)
6924     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]'
6925     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6926     ;;
6927   ncr)
6928     lt_cv_deplibs_check_method=pass_all
6929     ;;
6930   sequent)
6931     lt_cv_file_magic_cmd='/bin/file'
6932     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6933     ;;
6934   sni)
6935     lt_cv_file_magic_cmd='/bin/file'
6936     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6937     lt_cv_file_magic_test_file=/lib/libc.so
6938     ;;
6939   siemens)
6940     lt_cv_deplibs_check_method=pass_all
6941     ;;
6942   pc)
6943     lt_cv_deplibs_check_method=pass_all
6944     ;;
6945   esac
6946   ;;
6947
6948 tpf*)
6949   lt_cv_deplibs_check_method=pass_all
6950   ;;
6951 esac
6952
6953 fi
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6955 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6956
6957 file_magic_glob=
6958 want_nocaseglob=no
6959 if test "$build" = "$host"; then
6960   case $host_os in
6961   mingw* | pw32*)
6962     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6963       want_nocaseglob=yes
6964     else
6965       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6966     fi
6967     ;;
6968   esac
6969 fi
6970
6971 file_magic_cmd=$lt_cv_file_magic_cmd
6972 deplibs_check_method=$lt_cv_deplibs_check_method
6973 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996 if test -n "$ac_tool_prefix"; then
6997   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6998 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_prog_DLLTOOL+:} false; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   if test -n "$DLLTOOL"; then
7005   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012     for ac_exec_ext in '' $ac_executable_extensions; do
7013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019   done
7020 IFS=$as_save_IFS
7021
7022 fi
7023 fi
7024 DLLTOOL=$ac_cv_prog_DLLTOOL
7025 if test -n "$DLLTOOL"; then
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7027 $as_echo "$DLLTOOL" >&6; }
7028 else
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032
7033
7034 fi
7035 if test -z "$ac_cv_prog_DLLTOOL"; then
7036   ac_ct_DLLTOOL=$DLLTOOL
7037   # Extract the first word of "dlltool", so it can be a program name with args.
7038 set dummy dlltool; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   if test -n "$ac_ct_DLLTOOL"; then
7045   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050   IFS=$as_save_IFS
7051   test -z "$as_dir" && as_dir=.
7052     for ac_exec_ext in '' $ac_executable_extensions; do
7053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056     break 2
7057   fi
7058 done
7059   done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7065 if test -n "$ac_ct_DLLTOOL"; then
7066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7067 $as_echo "$ac_ct_DLLTOOL" >&6; }
7068 else
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7072
7073   if test "x$ac_ct_DLLTOOL" = x; then
7074     DLLTOOL="false"
7075   else
7076     case $cross_compiling:$ac_tool_warned in
7077 yes:)
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080 ac_tool_warned=yes ;;
7081 esac
7082     DLLTOOL=$ac_ct_DLLTOOL
7083   fi
7084 else
7085   DLLTOOL="$ac_cv_prog_DLLTOOL"
7086 fi
7087
7088 test -z "$DLLTOOL" && DLLTOOL=dlltool
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7100 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7101 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   lt_cv_sharedlib_from_linklib_cmd='unknown'
7105
7106 case $host_os in
7107 cygwin* | mingw* | pw32* | cegcc*)
7108   # two different shell functions defined in ltmain.sh
7109   # decide which to use based on capabilities of $DLLTOOL
7110   case `$DLLTOOL --help 2>&1` in
7111   *--identify-strict*)
7112     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7113     ;;
7114   *)
7115     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7116     ;;
7117   esac
7118   ;;
7119 *)
7120   # fallback: assume linklib IS sharedlib
7121   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7122   ;;
7123 esac
7124
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7127 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7128 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7129 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7130
7131
7132
7133
7134
7135
7136
7137 if test -n "$ac_tool_prefix"; then
7138   for ac_prog in ar
7139   do
7140     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if ${ac_cv_prog_AR+:} false; then :
7145   $as_echo_n "(cached) " >&6
7146 else
7147   if test -n "$AR"; then
7148   ac_cv_prog_AR="$AR" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155     for ac_exec_ext in '' $ac_executable_extensions; do
7156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162   done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 AR=$ac_cv_prog_AR
7168 if test -n "$AR"; then
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7170 $as_echo "$AR" >&6; }
7171 else
7172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7174 fi
7175
7176
7177     test -n "$AR" && break
7178   done
7179 fi
7180 if test -z "$AR"; then
7181   ac_ct_AR=$AR
7182   for ac_prog in ar
7183 do
7184   # Extract the first word of "$ac_prog", so it can be a program name with args.
7185 set dummy $ac_prog; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   if test -n "$ac_ct_AR"; then
7192   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199     for ac_exec_ext in '' $ac_executable_extensions; do
7200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201     ac_cv_prog_ac_ct_AR="$ac_prog"
7202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206   done
7207 IFS=$as_save_IFS
7208
7209 fi
7210 fi
7211 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7212 if test -n "$ac_ct_AR"; then
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7214 $as_echo "$ac_ct_AR" >&6; }
7215 else
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220
7221   test -n "$ac_ct_AR" && break
7222 done
7223
7224   if test "x$ac_ct_AR" = x; then
7225     AR="false"
7226   else
7227     case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233     AR=$ac_ct_AR
7234   fi
7235 fi
7236
7237 : ${AR=ar}
7238 : ${AR_FLAGS=cru}
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7251 $as_echo_n "checking for archiver @FILE support... " >&6; }
7252 if ${lt_cv_ar_at_file+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   lt_cv_ar_at_file=no
7256    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h.  */
7258
7259 int
7260 main ()
7261 {
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 if ac_fn_c_try_compile "$LINENO"; then :
7268   echo conftest.$ac_objext > conftest.lst
7269       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7270       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7271   (eval $lt_ar_try) 2>&5
7272   ac_status=$?
7273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274   test $ac_status = 0; }
7275       if test "$ac_status" -eq 0; then
7276         # Ensure the archiver fails upon bogus file names.
7277         rm -f conftest.$ac_objext libconftest.a
7278         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7279   (eval $lt_ar_try) 2>&5
7280   ac_status=$?
7281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282   test $ac_status = 0; }
7283         if test "$ac_status" -ne 0; then
7284           lt_cv_ar_at_file=@
7285         fi
7286       fi
7287       rm -f conftest.* libconftest.a
7288
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7294 $as_echo "$lt_cv_ar_at_file" >&6; }
7295
7296 if test "x$lt_cv_ar_at_file" = xno; then
7297   archiver_list_spec=
7298 else
7299   archiver_list_spec=$lt_cv_ar_at_file
7300 fi
7301
7302
7303
7304
7305
7306
7307
7308 if test -n "$ac_tool_prefix"; then
7309   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}strip; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_STRIP+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   if test -n "$STRIP"; then
7317   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324     for ac_exec_ext in '' $ac_executable_extensions; do
7325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331   done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 STRIP=$ac_cv_prog_STRIP
7337 if test -n "$STRIP"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7339 $as_echo "$STRIP" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345
7346 fi
7347 if test -z "$ac_cv_prog_STRIP"; then
7348   ac_ct_STRIP=$STRIP
7349   # Extract the first word of "strip", so it can be a program name with args.
7350 set dummy strip; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$ac_ct_STRIP"; then
7357   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366     ac_cv_prog_ac_ct_STRIP="strip"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7377 if test -n "$ac_ct_STRIP"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7379 $as_echo "$ac_ct_STRIP" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385   if test "x$ac_ct_STRIP" = x; then
7386     STRIP=":"
7387   else
7388     case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394     STRIP=$ac_ct_STRIP
7395   fi
7396 else
7397   STRIP="$ac_cv_prog_STRIP"
7398 fi
7399
7400 test -z "$STRIP" && STRIP=:
7401
7402
7403
7404
7405
7406
7407 if test -n "$ac_tool_prefix"; then
7408   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_RANLIB+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   if test -n "$RANLIB"; then
7416   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423     for ac_exec_ext in '' $ac_executable_extensions; do
7424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430   done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 RANLIB=$ac_cv_prog_RANLIB
7436 if test -n "$RANLIB"; then
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7438 $as_echo "$RANLIB" >&6; }
7439 else
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443
7444
7445 fi
7446 if test -z "$ac_cv_prog_RANLIB"; then
7447   ac_ct_RANLIB=$RANLIB
7448   # Extract the first word of "ranlib", so it can be a program name with args.
7449 set dummy ranlib; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7453   $as_echo_n "(cached) " >&6
7454 else
7455   if test -n "$ac_ct_RANLIB"; then
7456   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463     for ac_exec_ext in '' $ac_executable_extensions; do
7464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465     ac_cv_prog_ac_ct_RANLIB="ranlib"
7466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470   done
7471 IFS=$as_save_IFS
7472
7473 fi
7474 fi
7475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7476 if test -n "$ac_ct_RANLIB"; then
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7478 $as_echo "$ac_ct_RANLIB" >&6; }
7479 else
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7482 fi
7483
7484   if test "x$ac_ct_RANLIB" = x; then
7485     RANLIB=":"
7486   else
7487     case $cross_compiling:$ac_tool_warned in
7488 yes:)
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493     RANLIB=$ac_ct_RANLIB
7494   fi
7495 else
7496   RANLIB="$ac_cv_prog_RANLIB"
7497 fi
7498
7499 test -z "$RANLIB" && RANLIB=:
7500
7501
7502
7503
7504
7505
7506 # Determine commands to create old-style static archives.
7507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7508 old_postinstall_cmds='chmod 644 $oldlib'
7509 old_postuninstall_cmds=
7510
7511 if test -n "$RANLIB"; then
7512   case $host_os in
7513   openbsd*)
7514     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7515     ;;
7516   *)
7517     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7518     ;;
7519   esac
7520   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7521 fi
7522
7523 case $host_os in
7524   darwin*)
7525     lock_old_archive_extraction=yes ;;
7526   *)
7527     lock_old_archive_extraction=no ;;
7528 esac
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 # If no C compiler was specified, use CC.
7569 LTCC=${LTCC-"$CC"}
7570
7571 # If no C compiler flags were specified, use CFLAGS.
7572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7573
7574 # Allow CC to be a program name with arguments.
7575 compiler=$CC
7576
7577
7578 # Check for command to grab the raw symbol name followed by C symbol from nm.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7581 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584
7585 # These are sane defaults that work on at least a few old systems.
7586 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7587
7588 # Character class describing NM global symbol codes.
7589 symcode='[BCDEGRST]'
7590
7591 # Regexp to match symbols that can be accessed directly from C.
7592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7593
7594 # Define system-specific variables.
7595 case $host_os in
7596 aix*)
7597   symcode='[BCDT]'
7598   ;;
7599 cygwin* | mingw* | pw32* | cegcc*)
7600   symcode='[ABCDGISTW]'
7601   ;;
7602 hpux*)
7603   if test "$host_cpu" = ia64; then
7604     symcode='[ABCDEGRST]'
7605   fi
7606   ;;
7607 irix* | nonstopux*)
7608   symcode='[BCDEGRST]'
7609   ;;
7610 osf*)
7611   symcode='[BCDEGQRST]'
7612   ;;
7613 solaris*)
7614   symcode='[BDRT]'
7615   ;;
7616 sco3.2v5*)
7617   symcode='[DT]'
7618   ;;
7619 sysv4.2uw2*)
7620   symcode='[DT]'
7621   ;;
7622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7623   symcode='[ABDT]'
7624   ;;
7625 sysv4)
7626   symcode='[DFNSTU]'
7627   ;;
7628 esac
7629
7630 # If we're using GNU nm, then use its standard symbol codes.
7631 case `$NM -V 2>&1` in
7632 *GNU* | *'with BFD'*)
7633   symcode='[ABCDGIRSTW]' ;;
7634 esac
7635
7636 # Transform an extracted symbol line into a proper C declaration.
7637 # Some systems (esp. on ia64) link data and code symbols differently,
7638 # so use this general approach.
7639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7640
7641 # Transform an extracted symbol line into symbol name and symbol address
7642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7643 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'"
7644
7645 # Handle CRLF in mingw tool chain
7646 opt_cr=
7647 case $build_os in
7648 mingw*)
7649   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7650   ;;
7651 esac
7652
7653 # Try without a prefix underscore, then with it.
7654 for ac_symprfx in "" "_"; do
7655
7656   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7657   symxfrm="\\1 $ac_symprfx\\2 \\2"
7658
7659   # Write the raw and C identifiers.
7660   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7661     # Fake it for dumpbin and say T for any non-static function
7662     # and D for any global variable.
7663     # Also find C++ and __fastcall symbols from MSVC++,
7664     # which start with @ or ?.
7665     lt_cv_sys_global_symbol_pipe="$AWK '"\
7666 "     {last_section=section; section=\$ 3};"\
7667 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7668 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7669 "     \$ 0!~/External *\|/{next};"\
7670 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7671 "     {if(hide[section]) next};"\
7672 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7673 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7674 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7675 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7676 "     ' prfx=^$ac_symprfx"
7677   else
7678     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7679   fi
7680   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7681
7682   # Check to see that the pipe works correctly.
7683   pipe_works=no
7684
7685   rm -f conftest*
7686   cat > conftest.$ac_ext <<_LT_EOF
7687 #ifdef __cplusplus
7688 extern "C" {
7689 #endif
7690 char nm_test_var;
7691 void nm_test_func(void);
7692 void nm_test_func(void){}
7693 #ifdef __cplusplus
7694 }
7695 #endif
7696 int main(){nm_test_var='a';nm_test_func();return(0);}
7697 _LT_EOF
7698
7699   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700   (eval $ac_compile) 2>&5
7701   ac_status=$?
7702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703   test $ac_status = 0; }; then
7704     # Now try to grab the symbols.
7705     nlist=conftest.nm
7706     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7707   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7708   ac_status=$?
7709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710   test $ac_status = 0; } && test -s "$nlist"; then
7711       # Try sorting and uniquifying the output.
7712       if sort "$nlist" | uniq > "$nlist"T; then
7713         mv -f "$nlist"T "$nlist"
7714       else
7715         rm -f "$nlist"T
7716       fi
7717
7718       # Make sure that we snagged all the symbols we need.
7719       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7720         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7721           cat <<_LT_EOF > conftest.$ac_ext
7722 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7723 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7724 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7725    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7726 # define LT_DLSYM_CONST
7727 #elif defined(__osf__)
7728 /* This system does not cope well with relocations in const data.  */
7729 # define LT_DLSYM_CONST
7730 #else
7731 # define LT_DLSYM_CONST const
7732 #endif
7733
7734 #ifdef __cplusplus
7735 extern "C" {
7736 #endif
7737
7738 _LT_EOF
7739           # Now generate the symbol file.
7740           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7741
7742           cat <<_LT_EOF >> conftest.$ac_ext
7743
7744 /* The mapping between symbol names and symbols.  */
7745 LT_DLSYM_CONST struct {
7746   const char *name;
7747   void       *address;
7748 }
7749 lt__PROGRAM__LTX_preloaded_symbols[] =
7750 {
7751   { "@PROGRAM@", (void *) 0 },
7752 _LT_EOF
7753           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7754           cat <<\_LT_EOF >> conftest.$ac_ext
7755   {0, (void *) 0}
7756 };
7757
7758 /* This works around a problem in FreeBSD linker */
7759 #ifdef FREEBSD_WORKAROUND
7760 static const void *lt_preloaded_setup() {
7761   return lt__PROGRAM__LTX_preloaded_symbols;
7762 }
7763 #endif
7764
7765 #ifdef __cplusplus
7766 }
7767 #endif
7768 _LT_EOF
7769           # Now try linking the two files.
7770           mv conftest.$ac_objext conftstm.$ac_objext
7771           lt_globsym_save_LIBS=$LIBS
7772           lt_globsym_save_CFLAGS=$CFLAGS
7773           LIBS="conftstm.$ac_objext"
7774           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7775           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7776   (eval $ac_link) 2>&5
7777   ac_status=$?
7778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7779   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7780             pipe_works=yes
7781           fi
7782           LIBS=$lt_globsym_save_LIBS
7783           CFLAGS=$lt_globsym_save_CFLAGS
7784         else
7785           echo "cannot find nm_test_func in $nlist" >&5
7786         fi
7787       else
7788         echo "cannot find nm_test_var in $nlist" >&5
7789       fi
7790     else
7791       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7792     fi
7793   else
7794     echo "$progname: failed program was:" >&5
7795     cat conftest.$ac_ext >&5
7796   fi
7797   rm -rf conftest* conftst*
7798
7799   # Do not use the global_symbol_pipe unless it works.
7800   if test "$pipe_works" = yes; then
7801     break
7802   else
7803     lt_cv_sys_global_symbol_pipe=
7804   fi
7805 done
7806
7807 fi
7808
7809 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7810   lt_cv_sys_global_symbol_to_cdecl=
7811 fi
7812 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7814 $as_echo "failed" >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7817 $as_echo "ok" >&6; }
7818 fi
7819
7820 # Response file support.
7821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7822   nm_file_list_spec='@'
7823 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7824   nm_file_list_spec='@'
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7854 $as_echo_n "checking for sysroot... " >&6; }
7855
7856 # Check whether --with-sysroot was given.
7857 if test "${with_sysroot+set}" = set; then :
7858   withval=$with_sysroot;
7859 else
7860   with_sysroot=no
7861 fi
7862
7863
7864 lt_sysroot=
7865 case ${with_sysroot} in #(
7866  yes)
7867    if test "$GCC" = yes; then
7868      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7869    fi
7870    ;; #(
7871  /*)
7872    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7873    ;; #(
7874  no|'')
7875    ;; #(
7876  *)
7877    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7878 $as_echo "${with_sysroot}" >&6; }
7879    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7880    ;;
7881 esac
7882
7883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7884 $as_echo "${lt_sysroot:-no}" >&6; }
7885
7886
7887
7888
7889
7890 # Check whether --enable-libtool-lock was given.
7891 if test "${enable_libtool_lock+set}" = set; then :
7892   enableval=$enable_libtool_lock;
7893 fi
7894
7895 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7896
7897 # Some flags need to be propagated to the compiler or linker for good
7898 # libtool support.
7899 case $host in
7900 ia64-*-hpux*)
7901   # Find out which ABI we are using.
7902   echo 'int i;' > conftest.$ac_ext
7903   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7904   (eval $ac_compile) 2>&5
7905   ac_status=$?
7906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907   test $ac_status = 0; }; then
7908     case `/usr/bin/file conftest.$ac_objext` in
7909       *ELF-32*)
7910         HPUX_IA64_MODE="32"
7911         ;;
7912       *ELF-64*)
7913         HPUX_IA64_MODE="64"
7914         ;;
7915     esac
7916   fi
7917   rm -rf conftest*
7918   ;;
7919 *-*-irix6*)
7920   # Find out which ABI we are using.
7921   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7922   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7923   (eval $ac_compile) 2>&5
7924   ac_status=$?
7925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926   test $ac_status = 0; }; then
7927     if test "$lt_cv_prog_gnu_ld" = yes; then
7928       case `/usr/bin/file conftest.$ac_objext` in
7929         *32-bit*)
7930           LD="${LD-ld} -melf32bsmip"
7931           ;;
7932         *N32*)
7933           LD="${LD-ld} -melf32bmipn32"
7934           ;;
7935         *64-bit*)
7936           LD="${LD-ld} -melf64bmip"
7937         ;;
7938       esac
7939     else
7940       case `/usr/bin/file conftest.$ac_objext` in
7941         *32-bit*)
7942           LD="${LD-ld} -32"
7943           ;;
7944         *N32*)
7945           LD="${LD-ld} -n32"
7946           ;;
7947         *64-bit*)
7948           LD="${LD-ld} -64"
7949           ;;
7950       esac
7951     fi
7952   fi
7953   rm -rf conftest*
7954   ;;
7955
7956 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7957 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7958   # Find out which ABI we are using.
7959   echo 'int i;' > conftest.$ac_ext
7960   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7961   (eval $ac_compile) 2>&5
7962   ac_status=$?
7963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964   test $ac_status = 0; }; then
7965     case `/usr/bin/file conftest.o` in
7966       *32-bit*)
7967         case $host in
7968           x86_64-*kfreebsd*-gnu)
7969             LD="${LD-ld} -m elf_i386_fbsd"
7970             ;;
7971           x86_64-*linux*)
7972             case `/usr/bin/file conftest.o` in
7973               *x86-64*)
7974                 LD="${LD-ld} -m elf32_x86_64"
7975                 ;;
7976               *)
7977                 LD="${LD-ld} -m elf_i386"
7978                 ;;
7979             esac
7980             ;;
7981           powerpc64le-*)
7982             LD="${LD-ld} -m elf32lppclinux"
7983             ;;
7984           powerpc64-*)
7985             LD="${LD-ld} -m elf32ppclinux"
7986             ;;
7987           s390x-*linux*)
7988             LD="${LD-ld} -m elf_s390"
7989             ;;
7990           sparc64-*linux*)
7991             LD="${LD-ld} -m elf32_sparc"
7992             ;;
7993         esac
7994         ;;
7995       *64-bit*)
7996         case $host in
7997           x86_64-*kfreebsd*-gnu)
7998             LD="${LD-ld} -m elf_x86_64_fbsd"
7999             ;;
8000           x86_64-*linux*)
8001             LD="${LD-ld} -m elf_x86_64"
8002             ;;
8003           powerpcle-*)
8004             LD="${LD-ld} -m elf64lppc"
8005             ;;
8006           powerpc-*)
8007             LD="${LD-ld} -m elf64ppc"
8008             ;;
8009           s390*-*linux*|s390*-*tpf*)
8010             LD="${LD-ld} -m elf64_s390"
8011             ;;
8012           sparc*-*linux*)
8013             LD="${LD-ld} -m elf64_sparc"
8014             ;;
8015         esac
8016         ;;
8017     esac
8018   fi
8019   rm -rf conftest*
8020   ;;
8021
8022 *-*-sco3.2v5*)
8023   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8024   SAVE_CFLAGS="$CFLAGS"
8025   CFLAGS="$CFLAGS -belf"
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8027 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8028 if ${lt_cv_cc_needs_belf+:} false; then :
8029   $as_echo_n "(cached) " >&6
8030 else
8031   ac_ext=c
8032 ac_cpp='$CPP $CPPFLAGS'
8033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
8037      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h.  */
8039
8040 int
8041 main ()
8042 {
8043
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_link "$LINENO"; then :
8049   lt_cv_cc_needs_belf=yes
8050 else
8051   lt_cv_cc_needs_belf=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext \
8054     conftest$ac_exeext conftest.$ac_ext
8055      ac_ext=c
8056 ac_cpp='$CPP $CPPFLAGS'
8057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060
8061 fi
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8063 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8064   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8065     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8066     CFLAGS="$SAVE_CFLAGS"
8067   fi
8068   ;;
8069 *-*solaris*)
8070   # Find out which ABI we are using.
8071   echo 'int i;' > conftest.$ac_ext
8072   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8073   (eval $ac_compile) 2>&5
8074   ac_status=$?
8075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076   test $ac_status = 0; }; then
8077     case `/usr/bin/file conftest.o` in
8078     *64-bit*)
8079       case $lt_cv_prog_gnu_ld in
8080       yes*)
8081         case $host in
8082         i?86-*-solaris*)
8083           LD="${LD-ld} -m elf_x86_64"
8084           ;;
8085         sparc*-*-solaris*)
8086           LD="${LD-ld} -m elf64_sparc"
8087           ;;
8088         esac
8089         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8090         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8091           LD="${LD-ld}_sol2"
8092         fi
8093         ;;
8094       *)
8095         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8096           LD="${LD-ld} -64"
8097         fi
8098         ;;
8099       esac
8100       ;;
8101     esac
8102   fi
8103   rm -rf conftest*
8104   ;;
8105 esac
8106
8107 need_locks="$enable_libtool_lock"
8108
8109 if test -n "$ac_tool_prefix"; then
8110   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8111 set dummy ${ac_tool_prefix}mt; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   if test -n "$MANIFEST_TOOL"; then
8118   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8122 do
8123   IFS=$as_save_IFS
8124   test -z "$as_dir" && as_dir=.
8125     for ac_exec_ext in '' $ac_executable_extensions; do
8126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8127     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129     break 2
8130   fi
8131 done
8132   done
8133 IFS=$as_save_IFS
8134
8135 fi
8136 fi
8137 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8138 if test -n "$MANIFEST_TOOL"; then
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8140 $as_echo "$MANIFEST_TOOL" >&6; }
8141 else
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8144 fi
8145
8146
8147 fi
8148 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8149   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8150   # Extract the first word of "mt", so it can be a program name with args.
8151 set dummy mt; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8155   $as_echo_n "(cached) " >&6
8156 else
8157   if test -n "$ac_ct_MANIFEST_TOOL"; then
8158   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8159 else
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 for as_dir in $PATH
8162 do
8163   IFS=$as_save_IFS
8164   test -z "$as_dir" && as_dir=.
8165     for ac_exec_ext in '' $ac_executable_extensions; do
8166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8167     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8169     break 2
8170   fi
8171 done
8172   done
8173 IFS=$as_save_IFS
8174
8175 fi
8176 fi
8177 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8178 if test -n "$ac_ct_MANIFEST_TOOL"; then
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8180 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8181 else
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8184 fi
8185
8186   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8187     MANIFEST_TOOL=":"
8188   else
8189     case $cross_compiling:$ac_tool_warned in
8190 yes:)
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8193 ac_tool_warned=yes ;;
8194 esac
8195     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8196   fi
8197 else
8198   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8199 fi
8200
8201 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8203 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8204 if ${lt_cv_path_mainfest_tool+:} false; then :
8205   $as_echo_n "(cached) " >&6
8206 else
8207   lt_cv_path_mainfest_tool=no
8208   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8209   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8210   cat conftest.err >&5
8211   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8212     lt_cv_path_mainfest_tool=yes
8213   fi
8214   rm -f conftest*
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8217 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8218 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8219   MANIFEST_TOOL=:
8220 fi
8221
8222
8223
8224
8225
8226
8227   case $host_os in
8228     rhapsody* | darwin*)
8229     if test -n "$ac_tool_prefix"; then
8230   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8231 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8235   $as_echo_n "(cached) " >&6
8236 else
8237   if test -n "$DSYMUTIL"; then
8238   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243   IFS=$as_save_IFS
8244   test -z "$as_dir" && as_dir=.
8245     for ac_exec_ext in '' $ac_executable_extensions; do
8246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249     break 2
8250   fi
8251 done
8252   done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8258 if test -n "$DSYMUTIL"; then
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8260 $as_echo "$DSYMUTIL" >&6; }
8261 else
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266
8267 fi
8268 if test -z "$ac_cv_prog_DSYMUTIL"; then
8269   ac_ct_DSYMUTIL=$DSYMUTIL
8270   # Extract the first word of "dsymutil", so it can be a program name with args.
8271 set dummy dsymutil; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   if test -n "$ac_ct_DSYMUTIL"; then
8278   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285     for ac_exec_ext in '' $ac_executable_extensions; do
8286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292   done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8298 if test -n "$ac_ct_DSYMUTIL"; then
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8300 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8301 else
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306   if test "x$ac_ct_DSYMUTIL" = x; then
8307     DSYMUTIL=":"
8308   else
8309     case $cross_compiling:$ac_tool_warned in
8310 yes:)
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned=yes ;;
8314 esac
8315     DSYMUTIL=$ac_ct_DSYMUTIL
8316   fi
8317 else
8318   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8319 fi
8320
8321     if test -n "$ac_tool_prefix"; then
8322   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_NMEDIT+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   if test -n "$NMEDIT"; then
8330   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337     for ac_exec_ext in '' $ac_executable_extensions; do
8338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344   done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 NMEDIT=$ac_cv_prog_NMEDIT
8350 if test -n "$NMEDIT"; then
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8352 $as_echo "$NMEDIT" >&6; }
8353 else
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359 fi
8360 if test -z "$ac_cv_prog_NMEDIT"; then
8361   ac_ct_NMEDIT=$NMEDIT
8362   # Extract the first word of "nmedit", so it can be a program name with args.
8363 set dummy nmedit; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8367   $as_echo_n "(cached) " >&6
8368 else
8369   if test -n "$ac_ct_NMEDIT"; then
8370   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375   IFS=$as_save_IFS
8376   test -z "$as_dir" && as_dir=.
8377     for ac_exec_ext in '' $ac_executable_extensions; do
8378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8379     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381     break 2
8382   fi
8383 done
8384   done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8390 if test -n "$ac_ct_NMEDIT"; then
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8392 $as_echo "$ac_ct_NMEDIT" >&6; }
8393 else
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398   if test "x$ac_ct_NMEDIT" = x; then
8399     NMEDIT=":"
8400   else
8401     case $cross_compiling:$ac_tool_warned in
8402 yes:)
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8406 esac
8407     NMEDIT=$ac_ct_NMEDIT
8408   fi
8409 else
8410   NMEDIT="$ac_cv_prog_NMEDIT"
8411 fi
8412
8413     if test -n "$ac_tool_prefix"; then
8414   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8415 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_LIPO+:} false; then :
8419   $as_echo_n "(cached) " >&6
8420 else
8421   if test -n "$LIPO"; then
8422   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8426 do
8427   IFS=$as_save_IFS
8428   test -z "$as_dir" && as_dir=.
8429     for ac_exec_ext in '' $ac_executable_extensions; do
8430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433     break 2
8434   fi
8435 done
8436   done
8437 IFS=$as_save_IFS
8438
8439 fi
8440 fi
8441 LIPO=$ac_cv_prog_LIPO
8442 if test -n "$LIPO"; then
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8444 $as_echo "$LIPO" >&6; }
8445 else
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 fi
8449
8450
8451 fi
8452 if test -z "$ac_cv_prog_LIPO"; then
8453   ac_ct_LIPO=$LIPO
8454   # Extract the first word of "lipo", so it can be a program name with args.
8455 set dummy lipo; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8459   $as_echo_n "(cached) " >&6
8460 else
8461   if test -n "$ac_ct_LIPO"; then
8462   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8463 else
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8466 do
8467   IFS=$as_save_IFS
8468   test -z "$as_dir" && as_dir=.
8469     for ac_exec_ext in '' $ac_executable_extensions; do
8470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8471     ac_cv_prog_ac_ct_LIPO="lipo"
8472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473     break 2
8474   fi
8475 done
8476   done
8477 IFS=$as_save_IFS
8478
8479 fi
8480 fi
8481 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8482 if test -n "$ac_ct_LIPO"; then
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8484 $as_echo "$ac_ct_LIPO" >&6; }
8485 else
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 fi
8489
8490   if test "x$ac_ct_LIPO" = x; then
8491     LIPO=":"
8492   else
8493     case $cross_compiling:$ac_tool_warned in
8494 yes:)
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8497 ac_tool_warned=yes ;;
8498 esac
8499     LIPO=$ac_ct_LIPO
8500   fi
8501 else
8502   LIPO="$ac_cv_prog_LIPO"
8503 fi
8504
8505     if test -n "$ac_tool_prefix"; then
8506   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}otool; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_prog_OTOOL+:} false; then :
8511   $as_echo_n "(cached) " >&6
8512 else
8513   if test -n "$OTOOL"; then
8514   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8515 else
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 for as_dir in $PATH
8518 do
8519   IFS=$as_save_IFS
8520   test -z "$as_dir" && as_dir=.
8521     for ac_exec_ext in '' $ac_executable_extensions; do
8522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525     break 2
8526   fi
8527 done
8528   done
8529 IFS=$as_save_IFS
8530
8531 fi
8532 fi
8533 OTOOL=$ac_cv_prog_OTOOL
8534 if test -n "$OTOOL"; then
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8536 $as_echo "$OTOOL" >&6; }
8537 else
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8540 fi
8541
8542
8543 fi
8544 if test -z "$ac_cv_prog_OTOOL"; then
8545   ac_ct_OTOOL=$OTOOL
8546   # Extract the first word of "otool", so it can be a program name with args.
8547 set dummy otool; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8551   $as_echo_n "(cached) " >&6
8552 else
8553   if test -n "$ac_ct_OTOOL"; then
8554   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559   IFS=$as_save_IFS
8560   test -z "$as_dir" && as_dir=.
8561     for ac_exec_ext in '' $ac_executable_extensions; do
8562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563     ac_cv_prog_ac_ct_OTOOL="otool"
8564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565     break 2
8566   fi
8567 done
8568   done
8569 IFS=$as_save_IFS
8570
8571 fi
8572 fi
8573 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8574 if test -n "$ac_ct_OTOOL"; then
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8576 $as_echo "$ac_ct_OTOOL" >&6; }
8577 else
8578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8580 fi
8581
8582   if test "x$ac_ct_OTOOL" = x; then
8583     OTOOL=":"
8584   else
8585     case $cross_compiling:$ac_tool_warned in
8586 yes:)
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8589 ac_tool_warned=yes ;;
8590 esac
8591     OTOOL=$ac_ct_OTOOL
8592   fi
8593 else
8594   OTOOL="$ac_cv_prog_OTOOL"
8595 fi
8596
8597     if test -n "$ac_tool_prefix"; then
8598   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8599 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_OTOOL64+:} false; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   if test -n "$OTOOL64"; then
8606   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8610 do
8611   IFS=$as_save_IFS
8612   test -z "$as_dir" && as_dir=.
8613     for ac_exec_ext in '' $ac_executable_extensions; do
8614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617     break 2
8618   fi
8619 done
8620   done
8621 IFS=$as_save_IFS
8622
8623 fi
8624 fi
8625 OTOOL64=$ac_cv_prog_OTOOL64
8626 if test -n "$OTOOL64"; then
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8628 $as_echo "$OTOOL64" >&6; }
8629 else
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8632 fi
8633
8634
8635 fi
8636 if test -z "$ac_cv_prog_OTOOL64"; then
8637   ac_ct_OTOOL64=$OTOOL64
8638   # Extract the first word of "otool64", so it can be a program name with args.
8639 set dummy otool64; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   if test -n "$ac_ct_OTOOL64"; then
8646   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8650 do
8651   IFS=$as_save_IFS
8652   test -z "$as_dir" && as_dir=.
8653     for ac_exec_ext in '' $ac_executable_extensions; do
8654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655     ac_cv_prog_ac_ct_OTOOL64="otool64"
8656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657     break 2
8658   fi
8659 done
8660   done
8661 IFS=$as_save_IFS
8662
8663 fi
8664 fi
8665 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8666 if test -n "$ac_ct_OTOOL64"; then
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8668 $as_echo "$ac_ct_OTOOL64" >&6; }
8669 else
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674   if test "x$ac_ct_OTOOL64" = x; then
8675     OTOOL64=":"
8676   else
8677     case $cross_compiling:$ac_tool_warned in
8678 yes:)
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8681 ac_tool_warned=yes ;;
8682 esac
8683     OTOOL64=$ac_ct_OTOOL64
8684   fi
8685 else
8686   OTOOL64="$ac_cv_prog_OTOOL64"
8687 fi
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8716 $as_echo_n "checking for -single_module linker flag... " >&6; }
8717 if ${lt_cv_apple_cc_single_mod+:} false; then :
8718   $as_echo_n "(cached) " >&6
8719 else
8720   lt_cv_apple_cc_single_mod=no
8721       if test -z "${LT_MULTI_MODULE}"; then
8722         # By default we will add the -single_module flag. You can override
8723         # by either setting the environment variable LT_MULTI_MODULE
8724         # non-empty at configure time, or by adding -multi_module to the
8725         # link flags.
8726         rm -rf libconftest.dylib*
8727         echo "int foo(void){return 1;}" > conftest.c
8728         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8729 -dynamiclib -Wl,-single_module conftest.c" >&5
8730         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8731           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8732         _lt_result=$?
8733         # If there is a non-empty error log, and "single_module"
8734         # appears in it, assume the flag caused a linker warning
8735         if test -s conftest.err && $GREP single_module conftest.err; then
8736           cat conftest.err >&5
8737         # Otherwise, if the output was created with a 0 exit code from
8738         # the compiler, it worked.
8739         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8740           lt_cv_apple_cc_single_mod=yes
8741         else
8742           cat conftest.err >&5
8743         fi
8744         rm -rf libconftest.dylib*
8745         rm -f conftest.*
8746       fi
8747 fi
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8749 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8750
8751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8752 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8753 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8754   $as_echo_n "(cached) " >&6
8755 else
8756   lt_cv_ld_exported_symbols_list=no
8757       save_LDFLAGS=$LDFLAGS
8758       echo "_main" > conftest.sym
8759       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8760       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h.  */
8762
8763 int
8764 main ()
8765 {
8766
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772   lt_cv_ld_exported_symbols_list=yes
8773 else
8774   lt_cv_ld_exported_symbols_list=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext \
8777     conftest$ac_exeext conftest.$ac_ext
8778         LDFLAGS="$save_LDFLAGS"
8779
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8782 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8783
8784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8785 $as_echo_n "checking for -force_load linker flag... " >&6; }
8786 if ${lt_cv_ld_force_load+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   lt_cv_ld_force_load=no
8790       cat > conftest.c << _LT_EOF
8791 int forced_loaded() { return 2;}
8792 _LT_EOF
8793       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8794       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8795       echo "$AR cru libconftest.a conftest.o" >&5
8796       $AR cru libconftest.a conftest.o 2>&5
8797       echo "$RANLIB libconftest.a" >&5
8798       $RANLIB libconftest.a 2>&5
8799       cat > conftest.c << _LT_EOF
8800 int main() { return 0;}
8801 _LT_EOF
8802       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8803       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8804       _lt_result=$?
8805       if test -s conftest.err && $GREP force_load conftest.err; then
8806         cat conftest.err >&5
8807       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8808         lt_cv_ld_force_load=yes
8809       else
8810         cat conftest.err >&5
8811       fi
8812         rm -f conftest.err libconftest.a conftest conftest.c
8813         rm -rf conftest.dSYM
8814
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8817 $as_echo "$lt_cv_ld_force_load" >&6; }
8818     case $host_os in
8819     rhapsody* | darwin1.[012])
8820       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8821     darwin1.*)
8822       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8823     darwin*) # darwin 5.x on
8824       # if running on 10.5 or later, the deployment target defaults
8825       # to the OS version, if on x86, and 10.4, the deployment
8826       # target defaults to 10.4. Don't you love it?
8827       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8828         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8829           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8830         10.[012]*)
8831           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8832         10.*)
8833           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8834       esac
8835     ;;
8836   esac
8837     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8838       _lt_dar_single_mod='$single_module'
8839     fi
8840     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8841       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8842     else
8843       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8844     fi
8845     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8846       _lt_dsymutil='~$DSYMUTIL $lib || :'
8847     else
8848       _lt_dsymutil=
8849     fi
8850     ;;
8851   esac
8852
8853 for ac_header in dlfcn.h
8854 do :
8855   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8856 "
8857 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8858   cat >>confdefs.h <<_ACEOF
8859 #define HAVE_DLFCN_H 1
8860 _ACEOF
8861
8862 fi
8863
8864 done
8865
8866
8867
8868
8869
8870 # Set options
8871 # Check whether --enable-static was given.
8872 if test "${enable_static+set}" = set; then :
8873   enableval=$enable_static; p=${PACKAGE-default}
8874     case $enableval in
8875     yes) enable_static=yes ;;
8876     no) enable_static=no ;;
8877     *)
8878      enable_static=no
8879       # Look at the argument we got.  We use all the common list separators.
8880       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8881       for pkg in $enableval; do
8882         IFS="$lt_save_ifs"
8883         if test "X$pkg" = "X$p"; then
8884           enable_static=yes
8885         fi
8886       done
8887       IFS="$lt_save_ifs"
8888       ;;
8889     esac
8890 else
8891   enable_static=no
8892 fi
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903         enable_dlopen=no
8904
8905
8906   enable_win32_dll=no
8907
8908
8909             # Check whether --enable-shared was given.
8910 if test "${enable_shared+set}" = set; then :
8911   enableval=$enable_shared; p=${PACKAGE-default}
8912     case $enableval in
8913     yes) enable_shared=yes ;;
8914     no) enable_shared=no ;;
8915     *)
8916       enable_shared=no
8917       # Look at the argument we got.  We use all the common list separators.
8918       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8919       for pkg in $enableval; do
8920         IFS="$lt_save_ifs"
8921         if test "X$pkg" = "X$p"; then
8922           enable_shared=yes
8923         fi
8924       done
8925       IFS="$lt_save_ifs"
8926       ;;
8927     esac
8928 else
8929   enable_shared=yes
8930 fi
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942 # Check whether --with-pic was given.
8943 if test "${with_pic+set}" = set; then :
8944   withval=$with_pic; lt_p=${PACKAGE-default}
8945     case $withval in
8946     yes|no) pic_mode=$withval ;;
8947     *)
8948       pic_mode=default
8949       # Look at the argument we got.  We use all the common list separators.
8950       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8951       for lt_pkg in $withval; do
8952         IFS="$lt_save_ifs"
8953         if test "X$lt_pkg" = "X$lt_p"; then
8954           pic_mode=yes
8955         fi
8956       done
8957       IFS="$lt_save_ifs"
8958       ;;
8959     esac
8960 else
8961   pic_mode=default
8962 fi
8963
8964
8965 test -z "$pic_mode" && pic_mode=default
8966
8967
8968
8969
8970
8971
8972
8973   # Check whether --enable-fast-install was given.
8974 if test "${enable_fast_install+set}" = set; then :
8975   enableval=$enable_fast_install; p=${PACKAGE-default}
8976     case $enableval in
8977     yes) enable_fast_install=yes ;;
8978     no) enable_fast_install=no ;;
8979     *)
8980       enable_fast_install=no
8981       # Look at the argument we got.  We use all the common list separators.
8982       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8983       for pkg in $enableval; do
8984         IFS="$lt_save_ifs"
8985         if test "X$pkg" = "X$p"; then
8986           enable_fast_install=yes
8987         fi
8988       done
8989       IFS="$lt_save_ifs"
8990       ;;
8991     esac
8992 else
8993   enable_fast_install=yes
8994 fi
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 # This can be used to rebuild libtool when needed
9007 LIBTOOL_DEPS="$ltmain"
9008
9009 # Always use our own libtool.
9010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041 test -z "$LN_S" && LN_S="ln -s"
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056 if test -n "${ZSH_VERSION+set}" ; then
9057    setopt NO_GLOB_SUBST
9058 fi
9059
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9061 $as_echo_n "checking for objdir... " >&6; }
9062 if ${lt_cv_objdir+:} false; then :
9063   $as_echo_n "(cached) " >&6
9064 else
9065   rm -f .libs 2>/dev/null
9066 mkdir .libs 2>/dev/null
9067 if test -d .libs; then
9068   lt_cv_objdir=.libs
9069 else
9070   # MS-DOS does not allow filenames that begin with a dot.
9071   lt_cv_objdir=_libs
9072 fi
9073 rmdir .libs 2>/dev/null
9074 fi
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9076 $as_echo "$lt_cv_objdir" >&6; }
9077 objdir=$lt_cv_objdir
9078
9079
9080
9081
9082
9083 cat >>confdefs.h <<_ACEOF
9084 #define LT_OBJDIR "$lt_cv_objdir/"
9085 _ACEOF
9086
9087
9088
9089
9090 case $host_os in
9091 aix3*)
9092   # AIX sometimes has problems with the GCC collect2 program.  For some
9093   # reason, if we set the COLLECT_NAMES environment variable, the problems
9094   # vanish in a puff of smoke.
9095   if test "X${COLLECT_NAMES+set}" != Xset; then
9096     COLLECT_NAMES=
9097     export COLLECT_NAMES
9098   fi
9099   ;;
9100 esac
9101
9102 # Global variables:
9103 ofile=libtool
9104 can_build_shared=yes
9105
9106 # All known linkers require a `.a' archive for static linking (except MSVC,
9107 # which needs '.lib').
9108 libext=a
9109
9110 with_gnu_ld="$lt_cv_prog_gnu_ld"
9111
9112 old_CC="$CC"
9113 old_CFLAGS="$CFLAGS"
9114
9115 # Set sane defaults for various variables
9116 test -z "$CC" && CC=cc
9117 test -z "$LTCC" && LTCC=$CC
9118 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9119 test -z "$LD" && LD=ld
9120 test -z "$ac_objext" && ac_objext=o
9121
9122 for cc_temp in $compiler""; do
9123   case $cc_temp in
9124     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9125     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9126     \-*) ;;
9127     *) break;;
9128   esac
9129 done
9130 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9131
9132
9133 # Only perform the check for file, if the check method requires it
9134 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9135 case $deplibs_check_method in
9136 file_magic*)
9137   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9139 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9140 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   case $MAGIC_CMD in
9144 [\\/*] |  ?:[\\/]*)
9145   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9146   ;;
9147 *)
9148   lt_save_MAGIC_CMD="$MAGIC_CMD"
9149   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9150   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9151   for ac_dir in $ac_dummy; do
9152     IFS="$lt_save_ifs"
9153     test -z "$ac_dir" && ac_dir=.
9154     if test -f $ac_dir/${ac_tool_prefix}file; then
9155       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9156       if test -n "$file_magic_test_file"; then
9157         case $deplibs_check_method in
9158         "file_magic "*)
9159           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9160           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9161           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9162             $EGREP "$file_magic_regex" > /dev/null; then
9163             :
9164           else
9165             cat <<_LT_EOF 1>&2
9166
9167 *** Warning: the command libtool uses to detect shared libraries,
9168 *** $file_magic_cmd, produces output that libtool cannot recognize.
9169 *** The result is that libtool may fail to recognize shared libraries
9170 *** as such.  This will affect the creation of libtool libraries that
9171 *** depend on shared libraries, but programs linked with such libtool
9172 *** libraries will work regardless of this problem.  Nevertheless, you
9173 *** may want to report the problem to your system manager and/or to
9174 *** bug-libtool@gnu.org
9175
9176 _LT_EOF
9177           fi ;;
9178         esac
9179       fi
9180       break
9181     fi
9182   done
9183   IFS="$lt_save_ifs"
9184   MAGIC_CMD="$lt_save_MAGIC_CMD"
9185   ;;
9186 esac
9187 fi
9188
9189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9190 if test -n "$MAGIC_CMD"; then
9191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9192 $as_echo "$MAGIC_CMD" >&6; }
9193 else
9194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9196 fi
9197
9198
9199
9200
9201
9202 if test -z "$lt_cv_path_MAGIC_CMD"; then
9203   if test -n "$ac_tool_prefix"; then
9204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9205 $as_echo_n "checking for file... " >&6; }
9206 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9207   $as_echo_n "(cached) " >&6
9208 else
9209   case $MAGIC_CMD in
9210 [\\/*] |  ?:[\\/]*)
9211   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9212   ;;
9213 *)
9214   lt_save_MAGIC_CMD="$MAGIC_CMD"
9215   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9216   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9217   for ac_dir in $ac_dummy; do
9218     IFS="$lt_save_ifs"
9219     test -z "$ac_dir" && ac_dir=.
9220     if test -f $ac_dir/file; then
9221       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9222       if test -n "$file_magic_test_file"; then
9223         case $deplibs_check_method in
9224         "file_magic "*)
9225           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9226           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9227           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9228             $EGREP "$file_magic_regex" > /dev/null; then
9229             :
9230           else
9231             cat <<_LT_EOF 1>&2
9232
9233 *** Warning: the command libtool uses to detect shared libraries,
9234 *** $file_magic_cmd, produces output that libtool cannot recognize.
9235 *** The result is that libtool may fail to recognize shared libraries
9236 *** as such.  This will affect the creation of libtool libraries that
9237 *** depend on shared libraries, but programs linked with such libtool
9238 *** libraries will work regardless of this problem.  Nevertheless, you
9239 *** may want to report the problem to your system manager and/or to
9240 *** bug-libtool@gnu.org
9241
9242 _LT_EOF
9243           fi ;;
9244         esac
9245       fi
9246       break
9247     fi
9248   done
9249   IFS="$lt_save_ifs"
9250   MAGIC_CMD="$lt_save_MAGIC_CMD"
9251   ;;
9252 esac
9253 fi
9254
9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9256 if test -n "$MAGIC_CMD"; then
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9258 $as_echo "$MAGIC_CMD" >&6; }
9259 else
9260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 $as_echo "no" >&6; }
9262 fi
9263
9264
9265   else
9266     MAGIC_CMD=:
9267   fi
9268 fi
9269
9270   fi
9271   ;;
9272 esac
9273
9274 # Use C for the default configuration in the libtool script
9275
9276 lt_save_CC="$CC"
9277 ac_ext=c
9278 ac_cpp='$CPP $CPPFLAGS'
9279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9282
9283
9284 # Source file extension for C test sources.
9285 ac_ext=c
9286
9287 # Object file extension for compiled C test sources.
9288 objext=o
9289 objext=$objext
9290
9291 # Code to be used in simple compile tests
9292 lt_simple_compile_test_code="int some_variable = 0;"
9293
9294 # Code to be used in simple link tests
9295 lt_simple_link_test_code='int main(){return(0);}'
9296
9297
9298
9299
9300
9301
9302
9303 # If no C compiler was specified, use CC.
9304 LTCC=${LTCC-"$CC"}
9305
9306 # If no C compiler flags were specified, use CFLAGS.
9307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9308
9309 # Allow CC to be a program name with arguments.
9310 compiler=$CC
9311
9312 # Save the default compiler, since it gets overwritten when the other
9313 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9314 compiler_DEFAULT=$CC
9315
9316 # save warnings/boilerplate of simple test code
9317 ac_outfile=conftest.$ac_objext
9318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9320 _lt_compiler_boilerplate=`cat conftest.err`
9321 $RM conftest*
9322
9323 ac_outfile=conftest.$ac_objext
9324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9326 _lt_linker_boilerplate=`cat conftest.err`
9327 $RM -r conftest*
9328
9329
9330 ## CAVEAT EMPTOR:
9331 ## There is no encapsulation within the following macros, do not change
9332 ## the running order or otherwise move them around unless you know exactly
9333 ## what you are doing...
9334 if test -n "$compiler"; then
9335
9336 lt_prog_compiler_no_builtin_flag=
9337
9338 if test "$GCC" = yes; then
9339   case $cc_basename in
9340   nvcc*)
9341     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9342   *)
9343     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9344   esac
9345
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9347 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9348 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9349   $as_echo_n "(cached) " >&6
9350 else
9351   lt_cv_prog_compiler_rtti_exceptions=no
9352    ac_outfile=conftest.$ac_objext
9353    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9354    lt_compiler_flag="-fno-rtti -fno-exceptions"
9355    # Insert the option either (1) after the last *FLAGS variable, or
9356    # (2) before a word containing "conftest.", or (3) at the end.
9357    # Note that $ac_compile itself does not contain backslashes and begins
9358    # with a dollar sign (not a hyphen), so the echo should work correctly.
9359    # The option is referenced via a variable to avoid confusing sed.
9360    lt_compile=`echo "$ac_compile" | $SED \
9361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9363    -e 's:$: $lt_compiler_flag:'`
9364    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9365    (eval "$lt_compile" 2>conftest.err)
9366    ac_status=$?
9367    cat conftest.err >&5
9368    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369    if (exit $ac_status) && test -s "$ac_outfile"; then
9370      # The compiler can only warn and ignore the option if not recognized
9371      # So say no if there are warnings other than the usual output.
9372      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9373      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9374      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9375        lt_cv_prog_compiler_rtti_exceptions=yes
9376      fi
9377    fi
9378    $RM conftest*
9379
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9382 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9383
9384 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9385     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9386 else
9387     :
9388 fi
9389
9390 fi
9391
9392
9393
9394
9395
9396
9397   lt_prog_compiler_wl=
9398 lt_prog_compiler_pic=
9399 lt_prog_compiler_static=
9400
9401
9402   if test "$GCC" = yes; then
9403     lt_prog_compiler_wl='-Wl,'
9404     lt_prog_compiler_static='-static'
9405
9406     case $host_os in
9407       aix*)
9408       # All AIX code is PIC.
9409       if test "$host_cpu" = ia64; then
9410         # AIX 5 now supports IA64 processor
9411         lt_prog_compiler_static='-Bstatic'
9412       fi
9413       ;;
9414
9415     amigaos*)
9416       case $host_cpu in
9417       powerpc)
9418             # see comment about AmigaOS4 .so support
9419             lt_prog_compiler_pic='-fPIC'
9420         ;;
9421       m68k)
9422             # FIXME: we need at least 68020 code to build shared libraries, but
9423             # adding the `-m68020' flag to GCC prevents building anything better,
9424             # like `-m68040'.
9425             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9426         ;;
9427       esac
9428       ;;
9429
9430     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9431       # PIC is the default for these OSes.
9432       ;;
9433
9434     mingw* | cygwin* | pw32* | os2* | cegcc*)
9435       # This hack is so that the source file can tell whether it is being
9436       # built for inclusion in a dll (and should export symbols for example).
9437       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9438       # (--disable-auto-import) libraries
9439       lt_prog_compiler_pic='-DDLL_EXPORT'
9440       ;;
9441
9442     darwin* | rhapsody*)
9443       # PIC is the default on this platform
9444       # Common symbols not allowed in MH_DYLIB files
9445       lt_prog_compiler_pic='-fno-common'
9446       ;;
9447
9448     haiku*)
9449       # PIC is the default for Haiku.
9450       # The "-static" flag exists, but is broken.
9451       lt_prog_compiler_static=
9452       ;;
9453
9454     hpux*)
9455       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9456       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9457       # sets the default TLS model and affects inlining.
9458       case $host_cpu in
9459       hppa*64*)
9460         # +Z the default
9461         ;;
9462       *)
9463         lt_prog_compiler_pic='-fPIC'
9464         ;;
9465       esac
9466       ;;
9467
9468     interix[3-9]*)
9469       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9470       # Instead, we relocate shared libraries at runtime.
9471       ;;
9472
9473     msdosdjgpp*)
9474       # Just because we use GCC doesn't mean we suddenly get shared libraries
9475       # on systems that don't support them.
9476       lt_prog_compiler_can_build_shared=no
9477       enable_shared=no
9478       ;;
9479
9480     *nto* | *qnx*)
9481       # QNX uses GNU C++, but need to define -shared option too, otherwise
9482       # it will coredump.
9483       lt_prog_compiler_pic='-fPIC -shared'
9484       ;;
9485
9486     sysv4*MP*)
9487       if test -d /usr/nec; then
9488         lt_prog_compiler_pic=-Kconform_pic
9489       fi
9490       ;;
9491
9492     *)
9493       lt_prog_compiler_pic='-fPIC'
9494       ;;
9495     esac
9496
9497     case $cc_basename in
9498     nvcc*) # Cuda Compiler Driver 2.2
9499       lt_prog_compiler_wl='-Xlinker '
9500       if test -n "$lt_prog_compiler_pic"; then
9501         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9502       fi
9503       ;;
9504     esac
9505   else
9506     # PORTME Check for flag to pass linker flags through the system compiler.
9507     case $host_os in
9508     aix*)
9509       lt_prog_compiler_wl='-Wl,'
9510       if test "$host_cpu" = ia64; then
9511         # AIX 5 now supports IA64 processor
9512         lt_prog_compiler_static='-Bstatic'
9513       else
9514         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9515       fi
9516       ;;
9517
9518     mingw* | cygwin* | pw32* | os2* | cegcc*)
9519       # This hack is so that the source file can tell whether it is being
9520       # built for inclusion in a dll (and should export symbols for example).
9521       lt_prog_compiler_pic='-DDLL_EXPORT'
9522       ;;
9523
9524     hpux9* | hpux10* | hpux11*)
9525       lt_prog_compiler_wl='-Wl,'
9526       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9527       # not for PA HP-UX.
9528       case $host_cpu in
9529       hppa*64*|ia64*)
9530         # +Z the default
9531         ;;
9532       *)
9533         lt_prog_compiler_pic='+Z'
9534         ;;
9535       esac
9536       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9537       lt_prog_compiler_static='${wl}-a ${wl}archive'
9538       ;;
9539
9540     irix5* | irix6* | nonstopux*)
9541       lt_prog_compiler_wl='-Wl,'
9542       # PIC (with -KPIC) is the default.
9543       lt_prog_compiler_static='-non_shared'
9544       ;;
9545
9546     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9547       case $cc_basename in
9548       # old Intel for x86_64 which still supported -KPIC.
9549       ecc*)
9550         lt_prog_compiler_wl='-Wl,'
9551         lt_prog_compiler_pic='-KPIC'
9552         lt_prog_compiler_static='-static'
9553         ;;
9554       # icc used to be incompatible with GCC.
9555       # ICC 10 doesn't accept -KPIC any more.
9556       icc* | ifort*)
9557         lt_prog_compiler_wl='-Wl,'
9558         lt_prog_compiler_pic='-fPIC'
9559         lt_prog_compiler_static='-static'
9560         ;;
9561       # Lahey Fortran 8.1.
9562       lf95*)
9563         lt_prog_compiler_wl='-Wl,'
9564         lt_prog_compiler_pic='--shared'
9565         lt_prog_compiler_static='--static'
9566         ;;
9567       nagfor*)
9568         # NAG Fortran compiler
9569         lt_prog_compiler_wl='-Wl,-Wl,,'
9570         lt_prog_compiler_pic='-PIC'
9571         lt_prog_compiler_static='-Bstatic'
9572         ;;
9573       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9574         # Portland Group compilers (*not* the Pentium gcc compiler,
9575         # which looks to be a dead project)
9576         lt_prog_compiler_wl='-Wl,'
9577         lt_prog_compiler_pic='-fpic'
9578         lt_prog_compiler_static='-Bstatic'
9579         ;;
9580       ccc*)
9581         lt_prog_compiler_wl='-Wl,'
9582         # All Alpha code is PIC.
9583         lt_prog_compiler_static='-non_shared'
9584         ;;
9585       xl* | bgxl* | bgf* | mpixl*)
9586         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9587         lt_prog_compiler_wl='-Wl,'
9588         lt_prog_compiler_pic='-qpic'
9589         lt_prog_compiler_static='-qstaticlink'
9590         ;;
9591       *)
9592         case `$CC -V 2>&1 | sed 5q` in
9593         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9594           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9595           lt_prog_compiler_pic='-KPIC'
9596           lt_prog_compiler_static='-Bstatic'
9597           lt_prog_compiler_wl=''
9598           ;;
9599         *Sun\ F* | *Sun*Fortran*)
9600           lt_prog_compiler_pic='-KPIC'
9601           lt_prog_compiler_static='-Bstatic'
9602           lt_prog_compiler_wl='-Qoption ld '
9603           ;;
9604         *Sun\ C*)
9605           # Sun C 5.9
9606           lt_prog_compiler_pic='-KPIC'
9607           lt_prog_compiler_static='-Bstatic'
9608           lt_prog_compiler_wl='-Wl,'
9609           ;;
9610         *Intel*\ [CF]*Compiler*)
9611           lt_prog_compiler_wl='-Wl,'
9612           lt_prog_compiler_pic='-fPIC'
9613           lt_prog_compiler_static='-static'
9614           ;;
9615         *Portland\ Group*)
9616           lt_prog_compiler_wl='-Wl,'
9617           lt_prog_compiler_pic='-fpic'
9618           lt_prog_compiler_static='-Bstatic'
9619           ;;
9620         esac
9621         ;;
9622       esac
9623       ;;
9624
9625     newsos6)
9626       lt_prog_compiler_pic='-KPIC'
9627       lt_prog_compiler_static='-Bstatic'
9628       ;;
9629
9630     *nto* | *qnx*)
9631       # QNX uses GNU C++, but need to define -shared option too, otherwise
9632       # it will coredump.
9633       lt_prog_compiler_pic='-fPIC -shared'
9634       ;;
9635
9636     osf3* | osf4* | osf5*)
9637       lt_prog_compiler_wl='-Wl,'
9638       # All OSF/1 code is PIC.
9639       lt_prog_compiler_static='-non_shared'
9640       ;;
9641
9642     rdos*)
9643       lt_prog_compiler_static='-non_shared'
9644       ;;
9645
9646     solaris*)
9647       lt_prog_compiler_pic='-KPIC'
9648       lt_prog_compiler_static='-Bstatic'
9649       case $cc_basename in
9650       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9651         lt_prog_compiler_wl='-Qoption ld ';;
9652       *)
9653         lt_prog_compiler_wl='-Wl,';;
9654       esac
9655       ;;
9656
9657     sunos4*)
9658       lt_prog_compiler_wl='-Qoption ld '
9659       lt_prog_compiler_pic='-PIC'
9660       lt_prog_compiler_static='-Bstatic'
9661       ;;
9662
9663     sysv4 | sysv4.2uw2* | sysv4.3*)
9664       lt_prog_compiler_wl='-Wl,'
9665       lt_prog_compiler_pic='-KPIC'
9666       lt_prog_compiler_static='-Bstatic'
9667       ;;
9668
9669     sysv4*MP*)
9670       if test -d /usr/nec ;then
9671         lt_prog_compiler_pic='-Kconform_pic'
9672         lt_prog_compiler_static='-Bstatic'
9673       fi
9674       ;;
9675
9676     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9677       lt_prog_compiler_wl='-Wl,'
9678       lt_prog_compiler_pic='-KPIC'
9679       lt_prog_compiler_static='-Bstatic'
9680       ;;
9681
9682     unicos*)
9683       lt_prog_compiler_wl='-Wl,'
9684       lt_prog_compiler_can_build_shared=no
9685       ;;
9686
9687     uts4*)
9688       lt_prog_compiler_pic='-pic'
9689       lt_prog_compiler_static='-Bstatic'
9690       ;;
9691
9692     *)
9693       lt_prog_compiler_can_build_shared=no
9694       ;;
9695     esac
9696   fi
9697
9698 case $host_os in
9699   # For platforms which do not support PIC, -DPIC is meaningless:
9700   *djgpp*)
9701     lt_prog_compiler_pic=
9702     ;;
9703   *)
9704     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9705     ;;
9706 esac
9707
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9709 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9710 if ${lt_cv_prog_compiler_pic+:} false; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9714 fi
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9716 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9717 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9718
9719 #
9720 # Check to make sure the PIC flag actually works.
9721 #
9722 if test -n "$lt_prog_compiler_pic"; then
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9724 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9725 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9726   $as_echo_n "(cached) " >&6
9727 else
9728   lt_cv_prog_compiler_pic_works=no
9729    ac_outfile=conftest.$ac_objext
9730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9731    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9732    # Insert the option either (1) after the last *FLAGS variable, or
9733    # (2) before a word containing "conftest.", or (3) at the end.
9734    # Note that $ac_compile itself does not contain backslashes and begins
9735    # with a dollar sign (not a hyphen), so the echo should work correctly.
9736    # The option is referenced via a variable to avoid confusing sed.
9737    lt_compile=`echo "$ac_compile" | $SED \
9738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9740    -e 's:$: $lt_compiler_flag:'`
9741    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9742    (eval "$lt_compile" 2>conftest.err)
9743    ac_status=$?
9744    cat conftest.err >&5
9745    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746    if (exit $ac_status) && test -s "$ac_outfile"; then
9747      # The compiler can only warn and ignore the option if not recognized
9748      # So say no if there are warnings other than the usual output.
9749      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9750      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9751      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9752        lt_cv_prog_compiler_pic_works=yes
9753      fi
9754    fi
9755    $RM conftest*
9756
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9759 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9760
9761 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9762     case $lt_prog_compiler_pic in
9763      "" | " "*) ;;
9764      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9765      esac
9766 else
9767     lt_prog_compiler_pic=
9768      lt_prog_compiler_can_build_shared=no
9769 fi
9770
9771 fi
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783 #
9784 # Check to make sure the static flag actually works.
9785 #
9786 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9788 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9789 if ${lt_cv_prog_compiler_static_works+:} false; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   lt_cv_prog_compiler_static_works=no
9793    save_LDFLAGS="$LDFLAGS"
9794    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9795    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9796    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9797      # The linker can only warn and ignore the option if not recognized
9798      # So say no if there are warnings
9799      if test -s conftest.err; then
9800        # Append any errors to the config.log.
9801        cat conftest.err 1>&5
9802        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9803        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9804        if diff conftest.exp conftest.er2 >/dev/null; then
9805          lt_cv_prog_compiler_static_works=yes
9806        fi
9807      else
9808        lt_cv_prog_compiler_static_works=yes
9809      fi
9810    fi
9811    $RM -r conftest*
9812    LDFLAGS="$save_LDFLAGS"
9813
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9816 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9817
9818 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9819     :
9820 else
9821     lt_prog_compiler_static=
9822 fi
9823
9824
9825
9826
9827
9828
9829
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9831 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9832 if ${lt_cv_prog_compiler_c_o+:} false; then :
9833   $as_echo_n "(cached) " >&6
9834 else
9835   lt_cv_prog_compiler_c_o=no
9836    $RM -r conftest 2>/dev/null
9837    mkdir conftest
9838    cd conftest
9839    mkdir out
9840    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9841
9842    lt_compiler_flag="-o out/conftest2.$ac_objext"
9843    # Insert the option either (1) after the last *FLAGS variable, or
9844    # (2) before a word containing "conftest.", or (3) at the end.
9845    # Note that $ac_compile itself does not contain backslashes and begins
9846    # with a dollar sign (not a hyphen), so the echo should work correctly.
9847    lt_compile=`echo "$ac_compile" | $SED \
9848    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9850    -e 's:$: $lt_compiler_flag:'`
9851    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9852    (eval "$lt_compile" 2>out/conftest.err)
9853    ac_status=$?
9854    cat out/conftest.err >&5
9855    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9857    then
9858      # The compiler can only warn and ignore the option if not recognized
9859      # So say no if there are warnings
9860      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9861      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9862      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9863        lt_cv_prog_compiler_c_o=yes
9864      fi
9865    fi
9866    chmod u+w . 2>&5
9867    $RM conftest*
9868    # SGI C++ compiler will create directory out/ii_files/ for
9869    # template instantiation
9870    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9871    $RM out/* && rmdir out
9872    cd ..
9873    $RM -r conftest
9874    $RM conftest*
9875
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9878 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9879
9880
9881
9882
9883
9884
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9886 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9887 if ${lt_cv_prog_compiler_c_o+:} false; then :
9888   $as_echo_n "(cached) " >&6
9889 else
9890   lt_cv_prog_compiler_c_o=no
9891    $RM -r conftest 2>/dev/null
9892    mkdir conftest
9893    cd conftest
9894    mkdir out
9895    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9896
9897    lt_compiler_flag="-o out/conftest2.$ac_objext"
9898    # Insert the option either (1) after the last *FLAGS variable, or
9899    # (2) before a word containing "conftest.", or (3) at the end.
9900    # Note that $ac_compile itself does not contain backslashes and begins
9901    # with a dollar sign (not a hyphen), so the echo should work correctly.
9902    lt_compile=`echo "$ac_compile" | $SED \
9903    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9904    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9905    -e 's:$: $lt_compiler_flag:'`
9906    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9907    (eval "$lt_compile" 2>out/conftest.err)
9908    ac_status=$?
9909    cat out/conftest.err >&5
9910    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9912    then
9913      # The compiler can only warn and ignore the option if not recognized
9914      # So say no if there are warnings
9915      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9916      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9917      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9918        lt_cv_prog_compiler_c_o=yes
9919      fi
9920    fi
9921    chmod u+w . 2>&5
9922    $RM conftest*
9923    # SGI C++ compiler will create directory out/ii_files/ for
9924    # template instantiation
9925    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9926    $RM out/* && rmdir out
9927    cd ..
9928    $RM -r conftest
9929    $RM conftest*
9930
9931 fi
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9933 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9934
9935
9936
9937
9938 hard_links="nottested"
9939 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9940   # do not overwrite the value of need_locks provided by the user
9941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9942 $as_echo_n "checking if we can lock with hard links... " >&6; }
9943   hard_links=yes
9944   $RM conftest*
9945   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9946   touch conftest.a
9947   ln conftest.a conftest.b 2>&5 || hard_links=no
9948   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9950 $as_echo "$hard_links" >&6; }
9951   if test "$hard_links" = no; then
9952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9953 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9954     need_locks=warn
9955   fi
9956 else
9957   need_locks=no
9958 fi
9959
9960
9961
9962
9963
9964
9965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9966 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9967
9968   runpath_var=
9969   allow_undefined_flag=
9970   always_export_symbols=no
9971   archive_cmds=
9972   archive_expsym_cmds=
9973   compiler_needs_object=no
9974   enable_shared_with_static_runtimes=no
9975   export_dynamic_flag_spec=
9976   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9977   hardcode_automatic=no
9978   hardcode_direct=no
9979   hardcode_direct_absolute=no
9980   hardcode_libdir_flag_spec=
9981   hardcode_libdir_separator=
9982   hardcode_minus_L=no
9983   hardcode_shlibpath_var=unsupported
9984   inherit_rpath=no
9985   link_all_deplibs=unknown
9986   module_cmds=
9987   module_expsym_cmds=
9988   old_archive_from_new_cmds=
9989   old_archive_from_expsyms_cmds=
9990   thread_safe_flag_spec=
9991   whole_archive_flag_spec=
9992   # include_expsyms should be a list of space-separated symbols to be *always*
9993   # included in the symbol list
9994   include_expsyms=
9995   # exclude_expsyms can be an extended regexp of symbols to exclude
9996   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9997   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9998   # as well as any symbol that contains `d'.
9999   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10000   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10001   # platforms (ab)use it in PIC code, but their linkers get confused if
10002   # the symbol is explicitly referenced.  Since portable code cannot
10003   # rely on this symbol name, it's probably fine to never include it in
10004   # preloaded symbol tables.
10005   # Exclude shared library initialization/finalization symbols.
10006   extract_expsyms_cmds=
10007
10008   case $host_os in
10009   cygwin* | mingw* | pw32* | cegcc*)
10010     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10011     # When not using gcc, we currently assume that we are using
10012     # Microsoft Visual C++.
10013     if test "$GCC" != yes; then
10014       with_gnu_ld=no
10015     fi
10016     ;;
10017   interix*)
10018     # we just hope/assume this is gcc and not c89 (= MSVC++)
10019     with_gnu_ld=yes
10020     ;;
10021   openbsd*)
10022     with_gnu_ld=no
10023     ;;
10024   linux* | k*bsd*-gnu | gnu*)
10025     link_all_deplibs=no
10026     ;;
10027   esac
10028
10029   ld_shlibs=yes
10030
10031   # On some targets, GNU ld is compatible enough with the native linker
10032   # that we're better off using the native interface for both.
10033   lt_use_gnu_ld_interface=no
10034   if test "$with_gnu_ld" = yes; then
10035     case $host_os in
10036       aix*)
10037         # The AIX port of GNU ld has always aspired to compatibility
10038         # with the native linker.  However, as the warning in the GNU ld
10039         # block says, versions before 2.19.5* couldn't really create working
10040         # shared libraries, regardless of the interface used.
10041         case `$LD -v 2>&1` in
10042           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10043           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10044           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10045           *)
10046             lt_use_gnu_ld_interface=yes
10047             ;;
10048         esac
10049         ;;
10050       *)
10051         lt_use_gnu_ld_interface=yes
10052         ;;
10053     esac
10054   fi
10055
10056   if test "$lt_use_gnu_ld_interface" = yes; then
10057     # If archive_cmds runs LD, not CC, wlarc should be empty
10058     wlarc='${wl}'
10059
10060     # Set some defaults for GNU ld with shared library support. These
10061     # are reset later if shared libraries are not supported. Putting them
10062     # here allows them to be overridden if necessary.
10063     runpath_var=LD_RUN_PATH
10064     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065     export_dynamic_flag_spec='${wl}--export-dynamic'
10066     # ancient GNU ld didn't support --whole-archive et. al.
10067     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10068       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10069     else
10070       whole_archive_flag_spec=
10071     fi
10072     supports_anon_versioning=no
10073     case `$LD -v 2>&1` in
10074       *GNU\ gold*) supports_anon_versioning=yes ;;
10075       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10076       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10077       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10078       *\ 2.11.*) ;; # other 2.11 versions
10079       *) supports_anon_versioning=yes ;;
10080     esac
10081
10082     # See if GNU ld supports shared libraries.
10083     case $host_os in
10084     aix[3-9]*)
10085       # On AIX/PPC, the GNU linker is very broken
10086       if test "$host_cpu" != ia64; then
10087         ld_shlibs=no
10088         cat <<_LT_EOF 1>&2
10089
10090 *** Warning: the GNU linker, at least up to release 2.19, is reported
10091 *** to be unable to reliably create shared libraries on AIX.
10092 *** Therefore, libtool is disabling shared libraries support.  If you
10093 *** really care for shared libraries, you may want to install binutils
10094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10095 *** You will then need to restart the configuration process.
10096
10097 _LT_EOF
10098       fi
10099       ;;
10100
10101     amigaos*)
10102       case $host_cpu in
10103       powerpc)
10104             # see comment about AmigaOS4 .so support
10105             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106             archive_expsym_cmds=''
10107         ;;
10108       m68k)
10109             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)'
10110             hardcode_libdir_flag_spec='-L$libdir'
10111             hardcode_minus_L=yes
10112         ;;
10113       esac
10114       ;;
10115
10116     beos*)
10117       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10118         allow_undefined_flag=unsupported
10119         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10120         # support --undefined.  This deserves some investigation.  FIXME
10121         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122       else
10123         ld_shlibs=no
10124       fi
10125       ;;
10126
10127     cygwin* | mingw* | pw32* | cegcc*)
10128       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10129       # as there is no search path for DLLs.
10130       hardcode_libdir_flag_spec='-L$libdir'
10131       export_dynamic_flag_spec='${wl}--export-all-symbols'
10132       allow_undefined_flag=unsupported
10133       always_export_symbols=no
10134       enable_shared_with_static_runtimes=yes
10135       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'
10136       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10137
10138       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10140         # If the export-symbols file already is a .def file (1st line
10141         # is EXPORTS), use it as is; otherwise, prepend...
10142         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10143           cp $export_symbols $output_objdir/$soname.def;
10144         else
10145           echo EXPORTS > $output_objdir/$soname.def;
10146           cat $export_symbols >> $output_objdir/$soname.def;
10147         fi~
10148         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10149       else
10150         ld_shlibs=no
10151       fi
10152       ;;
10153
10154     haiku*)
10155       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156       link_all_deplibs=yes
10157       ;;
10158
10159     interix[3-9]*)
10160       hardcode_direct=no
10161       hardcode_shlibpath_var=no
10162       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10163       export_dynamic_flag_spec='${wl}-E'
10164       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10165       # Instead, shared libraries are loaded at an image base (0x10000000 by
10166       # default) and relocated if they conflict, which is a slow very memory
10167       # consuming and fragmenting process.  To avoid this, we pick a random,
10168       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10169       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10170       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10171       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'
10172       ;;
10173
10174     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10175       tmp_diet=no
10176       if test "$host_os" = linux-dietlibc; then
10177         case $cc_basename in
10178           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10179         esac
10180       fi
10181       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10182          && test "$tmp_diet" = no
10183       then
10184         tmp_addflag=' $pic_flag'
10185         tmp_sharedflag='-shared'
10186         case $cc_basename,$host_cpu in
10187         pgcc*)                          # Portland Group C compiler
10188           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'
10189           tmp_addflag=' $pic_flag'
10190           ;;
10191         pgf77* | pgf90* | pgf95* | pgfortran*)
10192                                         # Portland Group f77 and f90 compilers
10193           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'
10194           tmp_addflag=' $pic_flag -Mnomain' ;;
10195         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10196           tmp_addflag=' -i_dynamic' ;;
10197         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10198           tmp_addflag=' -i_dynamic -nofor_main' ;;
10199         ifc* | ifort*)                  # Intel Fortran compiler
10200           tmp_addflag=' -nofor_main' ;;
10201         lf95*)                          # Lahey Fortran 8.1
10202           whole_archive_flag_spec=
10203           tmp_sharedflag='--shared' ;;
10204         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10205           tmp_sharedflag='-qmkshrobj'
10206           tmp_addflag= ;;
10207         nvcc*)  # Cuda Compiler Driver 2.2
10208           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'
10209           compiler_needs_object=yes
10210           ;;
10211         esac
10212         case `$CC -V 2>&1 | sed 5q` in
10213         *Sun\ C*)                       # Sun C 5.9
10214           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'
10215           compiler_needs_object=yes
10216           tmp_sharedflag='-G' ;;
10217         *Sun\ F*)                       # Sun Fortran 8.3
10218           tmp_sharedflag='-G' ;;
10219         esac
10220         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221
10222         if test "x$supports_anon_versioning" = xyes; then
10223           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10224             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10225             echo "local: *; };" >> $output_objdir/$libname.ver~
10226             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10227         fi
10228
10229         case $cc_basename in
10230         xlf* | bgf* | bgxlf* | mpixlf*)
10231           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10232           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10233           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10235           if test "x$supports_anon_versioning" = xyes; then
10236             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10237               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10238               echo "local: *; };" >> $output_objdir/$libname.ver~
10239               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10240           fi
10241           ;;
10242         esac
10243       else
10244         ld_shlibs=no
10245       fi
10246       ;;
10247
10248     netbsd* | netbsdelf*-gnu)
10249       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10250         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10251         wlarc=
10252       else
10253         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10255       fi
10256       ;;
10257
10258     solaris*)
10259       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10260         ld_shlibs=no
10261         cat <<_LT_EOF 1>&2
10262
10263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10264 *** create shared libraries on Solaris systems.  Therefore, libtool
10265 *** is disabling shared libraries support.  We urge you to upgrade GNU
10266 *** binutils to release 2.9.1 or newer.  Another option is to modify
10267 *** your PATH or compiler configuration so that the native linker is
10268 *** used, and then restart.
10269
10270 _LT_EOF
10271       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10272         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10274       else
10275         ld_shlibs=no
10276       fi
10277       ;;
10278
10279     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10280       case `$LD -v 2>&1` in
10281         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10282         ld_shlibs=no
10283         cat <<_LT_EOF 1>&2
10284
10285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10286 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10287 *** is disabling shared libraries support.  We urge you to upgrade GNU
10288 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10289 *** your PATH or compiler configuration so that the native linker is
10290 *** used, and then restart.
10291
10292 _LT_EOF
10293         ;;
10294         *)
10295           # For security reasons, it is highly recommended that you always
10296           # use absolute paths for naming shared libraries, and exclude the
10297           # DT_RUNPATH tag from executables and libraries.  But doing so
10298           # requires that you compile everything twice, which is a pain.
10299           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10300             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10301             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10302             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10303           else
10304             ld_shlibs=no
10305           fi
10306         ;;
10307       esac
10308       ;;
10309
10310     sunos4*)
10311       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10312       wlarc=
10313       hardcode_direct=yes
10314       hardcode_shlibpath_var=no
10315       ;;
10316
10317     *)
10318       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10319         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10321       else
10322         ld_shlibs=no
10323       fi
10324       ;;
10325     esac
10326
10327     if test "$ld_shlibs" = no; then
10328       runpath_var=
10329       hardcode_libdir_flag_spec=
10330       export_dynamic_flag_spec=
10331       whole_archive_flag_spec=
10332     fi
10333   else
10334     # PORTME fill in a description of your system's linker (not GNU ld)
10335     case $host_os in
10336     aix3*)
10337       allow_undefined_flag=unsupported
10338       always_export_symbols=yes
10339       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'
10340       # Note: this linker hardcodes the directories in LIBPATH if there
10341       # are no directories specified by -L.
10342       hardcode_minus_L=yes
10343       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10344         # Neither direct hardcoding nor static linking is supported with a
10345         # broken collect2.
10346         hardcode_direct=unsupported
10347       fi
10348       ;;
10349
10350     aix[4-9]*)
10351       if test "$host_cpu" = ia64; then
10352         # On IA64, the linker does run time linking by default, so we don't
10353         # have to do anything special.
10354         aix_use_runtimelinking=no
10355         exp_sym_flag='-Bexport'
10356         no_entry_flag=""
10357       else
10358         # If we're using GNU nm, then we don't want the "-C" option.
10359         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10360         # Also, AIX nm treats weak defined symbols like other global
10361         # defined symbols, whereas GNU nm marks them as "W".
10362         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10363           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'
10364         else
10365           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'
10366         fi
10367         aix_use_runtimelinking=no
10368
10369         # Test if we are trying to use run time linking or normal
10370         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10371         # need to do runtime linking.
10372         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10373           for ld_flag in $LDFLAGS; do
10374           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10375             aix_use_runtimelinking=yes
10376             break
10377           fi
10378           done
10379           ;;
10380         esac
10381
10382         exp_sym_flag='-bexport'
10383         no_entry_flag='-bnoentry'
10384       fi
10385
10386       # When large executables or shared objects are built, AIX ld can
10387       # have problems creating the table of contents.  If linking a library
10388       # or program results in "error TOC overflow" add -mminimal-toc to
10389       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10390       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10391
10392       archive_cmds=''
10393       hardcode_direct=yes
10394       hardcode_direct_absolute=yes
10395       hardcode_libdir_separator=':'
10396       link_all_deplibs=yes
10397       file_list_spec='${wl}-f,'
10398
10399       if test "$GCC" = yes; then
10400         case $host_os in aix4.[012]|aix4.[012].*)
10401         # We only want to do this on AIX 4.2 and lower, the check
10402         # below for broken collect2 doesn't work under 4.3+
10403           collect2name=`${CC} -print-prog-name=collect2`
10404           if test -f "$collect2name" &&
10405            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10406           then
10407           # We have reworked collect2
10408           :
10409           else
10410           # We have old collect2
10411           hardcode_direct=unsupported
10412           # It fails to find uninstalled libraries when the uninstalled
10413           # path is not listed in the libpath.  Setting hardcode_minus_L
10414           # to unsupported forces relinking
10415           hardcode_minus_L=yes
10416           hardcode_libdir_flag_spec='-L$libdir'
10417           hardcode_libdir_separator=
10418           fi
10419           ;;
10420         esac
10421         shared_flag='-shared'
10422         if test "$aix_use_runtimelinking" = yes; then
10423           shared_flag="$shared_flag "'${wl}-G'
10424         fi
10425         link_all_deplibs=no
10426       else
10427         # not using gcc
10428         if test "$host_cpu" = ia64; then
10429         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10430         # chokes on -Wl,-G. The following line is correct:
10431           shared_flag='-G'
10432         else
10433           if test "$aix_use_runtimelinking" = yes; then
10434             shared_flag='${wl}-G'
10435           else
10436             shared_flag='${wl}-bM:SRE'
10437           fi
10438         fi
10439       fi
10440
10441       export_dynamic_flag_spec='${wl}-bexpall'
10442       # It seems that -bexpall does not export symbols beginning with
10443       # underscore (_), so it is better to generate a list of symbols to export.
10444       always_export_symbols=yes
10445       if test "$aix_use_runtimelinking" = yes; then
10446         # Warning - without using the other runtime loading flags (-brtl),
10447         # -berok will link without error, but may produce a broken library.
10448         allow_undefined_flag='-berok'
10449         # Determine the default libpath from the value encoded in an
10450         # empty executable.
10451         if test "${lt_cv_aix_libpath+set}" = set; then
10452   aix_libpath=$lt_cv_aix_libpath
10453 else
10454   if ${lt_cv_aix_libpath_+:} false; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h.  */
10459
10460 int
10461 main ()
10462 {
10463
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469
10470   lt_aix_libpath_sed='
10471       /Import File Strings/,/^$/ {
10472           /^0/ {
10473               s/^0  *\([^ ]*\) *$/\1/
10474               p
10475           }
10476       }'
10477   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478   # Check for a 64-bit object if we didn't find anything.
10479   if test -z "$lt_cv_aix_libpath_"; then
10480     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481   fi
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext \
10484     conftest$ac_exeext conftest.$ac_ext
10485   if test -z "$lt_cv_aix_libpath_"; then
10486     lt_cv_aix_libpath_="/usr/lib:/lib"
10487   fi
10488
10489 fi
10490
10491   aix_libpath=$lt_cv_aix_libpath_
10492 fi
10493
10494         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10495         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"
10496       else
10497         if test "$host_cpu" = ia64; then
10498           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10499           allow_undefined_flag="-z nodefs"
10500           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"
10501         else
10502          # Determine the default libpath from the value encoded in an
10503          # empty executable.
10504          if test "${lt_cv_aix_libpath+set}" = set; then
10505   aix_libpath=$lt_cv_aix_libpath
10506 else
10507   if ${lt_cv_aix_libpath_+:} false; then :
10508   $as_echo_n "(cached) " >&6
10509 else
10510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h.  */
10512
10513 int
10514 main ()
10515 {
10516
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_link "$LINENO"; then :
10522
10523   lt_aix_libpath_sed='
10524       /Import File Strings/,/^$/ {
10525           /^0/ {
10526               s/^0  *\([^ ]*\) *$/\1/
10527               p
10528           }
10529       }'
10530   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10531   # Check for a 64-bit object if we didn't find anything.
10532   if test -z "$lt_cv_aix_libpath_"; then
10533     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534   fi
10535 fi
10536 rm -f core conftest.err conftest.$ac_objext \
10537     conftest$ac_exeext conftest.$ac_ext
10538   if test -z "$lt_cv_aix_libpath_"; then
10539     lt_cv_aix_libpath_="/usr/lib:/lib"
10540   fi
10541
10542 fi
10543
10544   aix_libpath=$lt_cv_aix_libpath_
10545 fi
10546
10547          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10548           # Warning - without using the other run time loading flags,
10549           # -berok will link without error, but may produce a broken library.
10550           no_undefined_flag=' ${wl}-bernotok'
10551           allow_undefined_flag=' ${wl}-berok'
10552           if test "$with_gnu_ld" = yes; then
10553             # We only use this code for GNU lds that support --whole-archive.
10554             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10555           else
10556             # Exported symbols can be pulled into shared objects from archives
10557             whole_archive_flag_spec='$convenience'
10558           fi
10559           archive_cmds_need_lc=yes
10560           # This is similar to how AIX traditionally builds its shared libraries.
10561           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'
10562         fi
10563       fi
10564       ;;
10565
10566     amigaos*)
10567       case $host_cpu in
10568       powerpc)
10569             # see comment about AmigaOS4 .so support
10570             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571             archive_expsym_cmds=''
10572         ;;
10573       m68k)
10574             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)'
10575             hardcode_libdir_flag_spec='-L$libdir'
10576             hardcode_minus_L=yes
10577         ;;
10578       esac
10579       ;;
10580
10581     bsdi[45]*)
10582       export_dynamic_flag_spec=-rdynamic
10583       ;;
10584
10585     cygwin* | mingw* | pw32* | cegcc*)
10586       # When not using gcc, we currently assume that we are using
10587       # Microsoft Visual C++.
10588       # hardcode_libdir_flag_spec is actually meaningless, as there is
10589       # no search path for DLLs.
10590       case $cc_basename in
10591       cl*)
10592         # Native MSVC
10593         hardcode_libdir_flag_spec=' '
10594         allow_undefined_flag=unsupported
10595         always_export_symbols=yes
10596         file_list_spec='@'
10597         # Tell ltmain to make .lib files, not .a files.
10598         libext=lib
10599         # Tell ltmain to make .dll files, not .so files.
10600         shrext_cmds=".dll"
10601         # FIXME: Setting linknames here is a bad hack.
10602         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10603         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10604             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10605           else
10606             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10607           fi~
10608           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10609           linknames='
10610         # The linker will not automatically build a static lib if we build a DLL.
10611         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10612         enable_shared_with_static_runtimes=yes
10613         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10614         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10615         # Don't use ranlib
10616         old_postinstall_cmds='chmod 644 $oldlib'
10617         postlink_cmds='lt_outputfile="@OUTPUT@"~
10618           lt_tool_outputfile="@TOOL_OUTPUT@"~
10619           case $lt_outputfile in
10620             *.exe|*.EXE) ;;
10621             *)
10622               lt_outputfile="$lt_outputfile.exe"
10623               lt_tool_outputfile="$lt_tool_outputfile.exe"
10624               ;;
10625           esac~
10626           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10627             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10628             $RM "$lt_outputfile.manifest";
10629           fi'
10630         ;;
10631       *)
10632         # Assume MSVC wrapper
10633         hardcode_libdir_flag_spec=' '
10634         allow_undefined_flag=unsupported
10635         # Tell ltmain to make .lib files, not .a files.
10636         libext=lib
10637         # Tell ltmain to make .dll files, not .so files.
10638         shrext_cmds=".dll"
10639         # FIXME: Setting linknames here is a bad hack.
10640         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10641         # The linker will automatically build a .lib file if we build a DLL.
10642         old_archive_from_new_cmds='true'
10643         # FIXME: Should let the user specify the lib program.
10644         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10645         enable_shared_with_static_runtimes=yes
10646         ;;
10647       esac
10648       ;;
10649
10650     darwin* | rhapsody*)
10651
10652
10653   archive_cmds_need_lc=no
10654   hardcode_direct=no
10655   hardcode_automatic=yes
10656   hardcode_shlibpath_var=unsupported
10657   if test "$lt_cv_ld_force_load" = "yes"; then
10658     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\"`'
10659
10660   else
10661     whole_archive_flag_spec=''
10662   fi
10663   link_all_deplibs=yes
10664   allow_undefined_flag="$_lt_dar_allow_undefined"
10665   case $cc_basename in
10666      ifort*) _lt_dar_can_shared=yes ;;
10667      *) _lt_dar_can_shared=$GCC ;;
10668   esac
10669   if test "$_lt_dar_can_shared" = "yes"; then
10670     output_verbose_link_cmd=func_echo_all
10671     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10672     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10673     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}"
10674     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}"
10675
10676   else
10677   ld_shlibs=no
10678   fi
10679
10680       ;;
10681
10682     dgux*)
10683       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10684       hardcode_libdir_flag_spec='-L$libdir'
10685       hardcode_shlibpath_var=no
10686       ;;
10687
10688     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10689     # support.  Future versions do this automatically, but an explicit c++rt0.o
10690     # does not break anything, and helps significantly (at the cost of a little
10691     # extra space).
10692     freebsd2.2*)
10693       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10694       hardcode_libdir_flag_spec='-R$libdir'
10695       hardcode_direct=yes
10696       hardcode_shlibpath_var=no
10697       ;;
10698
10699     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10700     freebsd2.*)
10701       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10702       hardcode_direct=yes
10703       hardcode_minus_L=yes
10704       hardcode_shlibpath_var=no
10705       ;;
10706
10707     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10708     freebsd* | dragonfly*)
10709       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10710       hardcode_libdir_flag_spec='-R$libdir'
10711       hardcode_direct=yes
10712       hardcode_shlibpath_var=no
10713       ;;
10714
10715     hpux9*)
10716       if test "$GCC" = yes; then
10717         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'
10718       else
10719         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'
10720       fi
10721       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10722       hardcode_libdir_separator=:
10723       hardcode_direct=yes
10724
10725       # hardcode_minus_L: Not really in the search PATH,
10726       # but as the default location of the library.
10727       hardcode_minus_L=yes
10728       export_dynamic_flag_spec='${wl}-E'
10729       ;;
10730
10731     hpux10*)
10732       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10733         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10734       else
10735         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10736       fi
10737       if test "$with_gnu_ld" = no; then
10738         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10739         hardcode_libdir_separator=:
10740         hardcode_direct=yes
10741         hardcode_direct_absolute=yes
10742         export_dynamic_flag_spec='${wl}-E'
10743         # hardcode_minus_L: Not really in the search PATH,
10744         # but as the default location of the library.
10745         hardcode_minus_L=yes
10746       fi
10747       ;;
10748
10749     hpux11*)
10750       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10751         case $host_cpu in
10752         hppa*64*)
10753           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10754           ;;
10755         ia64*)
10756           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10757           ;;
10758         *)
10759           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10760           ;;
10761         esac
10762       else
10763         case $host_cpu in
10764         hppa*64*)
10765           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10766           ;;
10767         ia64*)
10768           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10769           ;;
10770         *)
10771
10772           # Older versions of the 11.00 compiler do not understand -b yet
10773           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10774           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10775 $as_echo_n "checking if $CC understands -b... " >&6; }
10776 if ${lt_cv_prog_compiler__b+:} false; then :
10777   $as_echo_n "(cached) " >&6
10778 else
10779   lt_cv_prog_compiler__b=no
10780    save_LDFLAGS="$LDFLAGS"
10781    LDFLAGS="$LDFLAGS -b"
10782    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10783    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10784      # The linker can only warn and ignore the option if not recognized
10785      # So say no if there are warnings
10786      if test -s conftest.err; then
10787        # Append any errors to the config.log.
10788        cat conftest.err 1>&5
10789        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10790        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10791        if diff conftest.exp conftest.er2 >/dev/null; then
10792          lt_cv_prog_compiler__b=yes
10793        fi
10794      else
10795        lt_cv_prog_compiler__b=yes
10796      fi
10797    fi
10798    $RM -r conftest*
10799    LDFLAGS="$save_LDFLAGS"
10800
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10803 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10804
10805 if test x"$lt_cv_prog_compiler__b" = xyes; then
10806     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10807 else
10808     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10809 fi
10810
10811           ;;
10812         esac
10813       fi
10814       if test "$with_gnu_ld" = no; then
10815         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10816         hardcode_libdir_separator=:
10817
10818         case $host_cpu in
10819         hppa*64*|ia64*)
10820           hardcode_direct=no
10821           hardcode_shlibpath_var=no
10822           ;;
10823         *)
10824           hardcode_direct=yes
10825           hardcode_direct_absolute=yes
10826           export_dynamic_flag_spec='${wl}-E'
10827
10828           # hardcode_minus_L: Not really in the search PATH,
10829           # but as the default location of the library.
10830           hardcode_minus_L=yes
10831           ;;
10832         esac
10833       fi
10834       ;;
10835
10836     irix5* | irix6* | nonstopux*)
10837       if test "$GCC" = yes; then
10838         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'
10839         # Try to use the -exported_symbol ld option, if it does not
10840         # work, assume that -exports_file does not work either and
10841         # implicitly export all symbols.
10842         # This should be the same for all languages, so no per-tag cache variable.
10843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10844 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10845 if ${lt_cv_irix_exported_symbol+:} false; then :
10846   $as_echo_n "(cached) " >&6
10847 else
10848   save_LDFLAGS="$LDFLAGS"
10849            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10850            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h.  */
10852 int foo (void) { return 0; }
10853 _ACEOF
10854 if ac_fn_c_try_link "$LINENO"; then :
10855   lt_cv_irix_exported_symbol=yes
10856 else
10857   lt_cv_irix_exported_symbol=no
10858 fi
10859 rm -f core conftest.err conftest.$ac_objext \
10860     conftest$ac_exeext conftest.$ac_ext
10861            LDFLAGS="$save_LDFLAGS"
10862 fi
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10864 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10865         if test "$lt_cv_irix_exported_symbol" = yes; then
10866           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'
10867         fi
10868       else
10869         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'
10870         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'
10871       fi
10872       archive_cmds_need_lc='no'
10873       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10874       hardcode_libdir_separator=:
10875       inherit_rpath=yes
10876       link_all_deplibs=yes
10877       ;;
10878
10879     netbsd* | netbsdelf*-gnu)
10880       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10881         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10882       else
10883         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10884       fi
10885       hardcode_libdir_flag_spec='-R$libdir'
10886       hardcode_direct=yes
10887       hardcode_shlibpath_var=no
10888       ;;
10889
10890     newsos6)
10891       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892       hardcode_direct=yes
10893       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10894       hardcode_libdir_separator=:
10895       hardcode_shlibpath_var=no
10896       ;;
10897
10898     *nto* | *qnx*)
10899       ;;
10900
10901     openbsd*)
10902       if test -f /usr/libexec/ld.so; then
10903         hardcode_direct=yes
10904         hardcode_shlibpath_var=no
10905         hardcode_direct_absolute=yes
10906         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10907           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10908           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10909           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10910           export_dynamic_flag_spec='${wl}-E'
10911         else
10912           case $host_os in
10913            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10914              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10915              hardcode_libdir_flag_spec='-R$libdir'
10916              ;;
10917            *)
10918              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10919              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10920              ;;
10921           esac
10922         fi
10923       else
10924         ld_shlibs=no
10925       fi
10926       ;;
10927
10928     os2*)
10929       hardcode_libdir_flag_spec='-L$libdir'
10930       hardcode_minus_L=yes
10931       allow_undefined_flag=unsupported
10932       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'
10933       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10934       ;;
10935
10936     osf3*)
10937       if test "$GCC" = yes; then
10938         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10939         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'
10940       else
10941         allow_undefined_flag=' -expect_unresolved \*'
10942         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'
10943       fi
10944       archive_cmds_need_lc='no'
10945       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946       hardcode_libdir_separator=:
10947       ;;
10948
10949     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10950       if test "$GCC" = yes; then
10951         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10952         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'
10953         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10954       else
10955         allow_undefined_flag=' -expect_unresolved \*'
10956         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'
10957         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~
10958         $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'
10959
10960         # Both c and cxx compiler support -rpath directly
10961         hardcode_libdir_flag_spec='-rpath $libdir'
10962       fi
10963       archive_cmds_need_lc='no'
10964       hardcode_libdir_separator=:
10965       ;;
10966
10967     solaris*)
10968       no_undefined_flag=' -z defs'
10969       if test "$GCC" = yes; then
10970         wlarc='${wl}'
10971         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10972         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10973           $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'
10974       else
10975         case `$CC -V 2>&1` in
10976         *"Compilers 5.0"*)
10977           wlarc=''
10978           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10980           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10981           ;;
10982         *)
10983           wlarc='${wl}'
10984           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10985           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10986           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10987           ;;
10988         esac
10989       fi
10990       hardcode_libdir_flag_spec='-R$libdir'
10991       hardcode_shlibpath_var=no
10992       case $host_os in
10993       solaris2.[0-5] | solaris2.[0-5].*) ;;
10994       *)
10995         # The compiler driver will combine and reorder linker options,
10996         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10997         # but is careful enough not to reorder.
10998         # Supported since Solaris 2.6 (maybe 2.5.1?)
10999         if test "$GCC" = yes; then
11000           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11001         else
11002           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11003         fi
11004         ;;
11005       esac
11006       link_all_deplibs=yes
11007       ;;
11008
11009     sunos4*)
11010       if test "x$host_vendor" = xsequent; then
11011         # Use $CC to link under sequent, because it throws in some extra .o
11012         # files that make .init and .fini sections work.
11013         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11014       else
11015         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11016       fi
11017       hardcode_libdir_flag_spec='-L$libdir'
11018       hardcode_direct=yes
11019       hardcode_minus_L=yes
11020       hardcode_shlibpath_var=no
11021       ;;
11022
11023     sysv4)
11024       case $host_vendor in
11025         sni)
11026           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027           hardcode_direct=yes # is this really true???
11028         ;;
11029         siemens)
11030           ## LD is ld it makes a PLAMLIB
11031           ## CC just makes a GrossModule.
11032           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11033           reload_cmds='$CC -r -o $output$reload_objs'
11034           hardcode_direct=no
11035         ;;
11036         motorola)
11037           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11039         ;;
11040       esac
11041       runpath_var='LD_RUN_PATH'
11042       hardcode_shlibpath_var=no
11043       ;;
11044
11045     sysv4.3*)
11046       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11047       hardcode_shlibpath_var=no
11048       export_dynamic_flag_spec='-Bexport'
11049       ;;
11050
11051     sysv4*MP*)
11052       if test -d /usr/nec; then
11053         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11054         hardcode_shlibpath_var=no
11055         runpath_var=LD_RUN_PATH
11056         hardcode_runpath_var=yes
11057         ld_shlibs=yes
11058       fi
11059       ;;
11060
11061     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11062       no_undefined_flag='${wl}-z,text'
11063       archive_cmds_need_lc=no
11064       hardcode_shlibpath_var=no
11065       runpath_var='LD_RUN_PATH'
11066
11067       if test "$GCC" = yes; then
11068         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11069         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070       else
11071         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11073       fi
11074       ;;
11075
11076     sysv5* | sco3.2v5* | sco5v6*)
11077       # Note: We can NOT use -z defs as we might desire, because we do not
11078       # link with -lc, and that would cause any symbols used from libc to
11079       # always be unresolved, which means just about no library would
11080       # ever link correctly.  If we're not using GNU ld we use -z text
11081       # though, which does catch some bad symbols but isn't as heavy-handed
11082       # as -z defs.
11083       no_undefined_flag='${wl}-z,text'
11084       allow_undefined_flag='${wl}-z,nodefs'
11085       archive_cmds_need_lc=no
11086       hardcode_shlibpath_var=no
11087       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11088       hardcode_libdir_separator=':'
11089       link_all_deplibs=yes
11090       export_dynamic_flag_spec='${wl}-Bexport'
11091       runpath_var='LD_RUN_PATH'
11092
11093       if test "$GCC" = yes; then
11094         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11095         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11096       else
11097         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11099       fi
11100       ;;
11101
11102     uts4*)
11103       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11104       hardcode_libdir_flag_spec='-L$libdir'
11105       hardcode_shlibpath_var=no
11106       ;;
11107
11108     *)
11109       ld_shlibs=no
11110       ;;
11111     esac
11112
11113     if test x$host_vendor = xsni; then
11114       case $host in
11115       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11116         export_dynamic_flag_spec='${wl}-Blargedynsym'
11117         ;;
11118       esac
11119     fi
11120   fi
11121
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11123 $as_echo "$ld_shlibs" >&6; }
11124 test "$ld_shlibs" = no && can_build_shared=no
11125
11126 with_gnu_ld=$with_gnu_ld
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142 #
11143 # Do we need to explicitly link libc?
11144 #
11145 case "x$archive_cmds_need_lc" in
11146 x|xyes)
11147   # Assume -lc should be added
11148   archive_cmds_need_lc=yes
11149
11150   if test "$enable_shared" = yes && test "$GCC" = yes; then
11151     case $archive_cmds in
11152     *'~'*)
11153       # FIXME: we may have to deal with multi-command sequences.
11154       ;;
11155     '$CC '*)
11156       # Test whether the compiler implicitly links with -lc since on some
11157       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11158       # to ld, don't add -lc before -lgcc.
11159       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11160 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11161 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11162   $as_echo_n "(cached) " >&6
11163 else
11164   $RM conftest*
11165         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11166
11167         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11168   (eval $ac_compile) 2>&5
11169   ac_status=$?
11170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11171   test $ac_status = 0; } 2>conftest.err; then
11172           soname=conftest
11173           lib=conftest
11174           libobjs=conftest.$ac_objext
11175           deplibs=
11176           wl=$lt_prog_compiler_wl
11177           pic_flag=$lt_prog_compiler_pic
11178           compiler_flags=-v
11179           linker_flags=-v
11180           verstring=
11181           output_objdir=.
11182           libname=conftest
11183           lt_save_allow_undefined_flag=$allow_undefined_flag
11184           allow_undefined_flag=
11185           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11186   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11187   ac_status=$?
11188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11189   test $ac_status = 0; }
11190           then
11191             lt_cv_archive_cmds_need_lc=no
11192           else
11193             lt_cv_archive_cmds_need_lc=yes
11194           fi
11195           allow_undefined_flag=$lt_save_allow_undefined_flag
11196         else
11197           cat conftest.err 1>&5
11198         fi
11199         $RM conftest*
11200
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11203 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11204       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11205       ;;
11206     esac
11207   fi
11208   ;;
11209 esac
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11363 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11364
11365 if test "$GCC" = yes; then
11366   case $host_os in
11367     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11368     *) lt_awk_arg="/^libraries:/" ;;
11369   esac
11370   case $host_os in
11371     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11372     *) lt_sed_strip_eq="s,=/,/,g" ;;
11373   esac
11374   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11375   case $lt_search_path_spec in
11376   *\;*)
11377     # if the path contains ";" then we assume it to be the separator
11378     # otherwise default to the standard path separator (i.e. ":") - it is
11379     # assumed that no part of a normal pathname contains ";" but that should
11380     # okay in the real world where ";" in dirpaths is itself problematic.
11381     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11382     ;;
11383   *)
11384     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11385     ;;
11386   esac
11387   # Ok, now we have the path, separated by spaces, we can step through it
11388   # and add multilib dir if necessary.
11389   lt_tmp_lt_search_path_spec=
11390   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11391   for lt_sys_path in $lt_search_path_spec; do
11392     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11393       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11394     else
11395       test -d "$lt_sys_path" && \
11396         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11397     fi
11398   done
11399   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11400 BEGIN {RS=" "; FS="/|\n";} {
11401   lt_foo="";
11402   lt_count=0;
11403   for (lt_i = NF; lt_i > 0; lt_i--) {
11404     if ($lt_i != "" && $lt_i != ".") {
11405       if ($lt_i == "..") {
11406         lt_count++;
11407       } else {
11408         if (lt_count == 0) {
11409           lt_foo="/" $lt_i lt_foo;
11410         } else {
11411           lt_count--;
11412         }
11413       }
11414     }
11415   }
11416   if (lt_foo != "") { lt_freq[lt_foo]++; }
11417   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11418 }'`
11419   # AWK program above erroneously prepends '/' to C:/dos/paths
11420   # for these hosts.
11421   case $host_os in
11422     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11423       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11424   esac
11425   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11426 else
11427   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11428 fi
11429 library_names_spec=
11430 libname_spec='lib$name'
11431 soname_spec=
11432 shrext_cmds=".so"
11433 postinstall_cmds=
11434 postuninstall_cmds=
11435 finish_cmds=
11436 finish_eval=
11437 shlibpath_var=
11438 shlibpath_overrides_runpath=unknown
11439 version_type=none
11440 dynamic_linker="$host_os ld.so"
11441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11442 need_lib_prefix=unknown
11443 hardcode_into_libs=no
11444
11445 # when you set need_version to no, make sure it does not cause -set_version
11446 # flags to be left without arguments
11447 need_version=unknown
11448
11449 case $host_os in
11450 aix3*)
11451   version_type=linux # correct to gnu/linux during the next big refactor
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11453   shlibpath_var=LIBPATH
11454
11455   # AIX 3 has no versioning support, so we append a major version to the name.
11456   soname_spec='${libname}${release}${shared_ext}$major'
11457   ;;
11458
11459 aix[4-9]*)
11460   version_type=linux # correct to gnu/linux during the next big refactor
11461   need_lib_prefix=no
11462   need_version=no
11463   hardcode_into_libs=yes
11464   if test "$host_cpu" = ia64; then
11465     # AIX 5 supports IA64
11466     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11467     shlibpath_var=LD_LIBRARY_PATH
11468   else
11469     # With GCC up to 2.95.x, collect2 would create an import file
11470     # for dependence libraries.  The import file would start with
11471     # the line `#! .'.  This would cause the generated library to
11472     # depend on `.', always an invalid library.  This was fixed in
11473     # development snapshots of GCC prior to 3.0.
11474     case $host_os in
11475       aix4 | aix4.[01] | aix4.[01].*)
11476       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11477            echo ' yes '
11478            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11479         :
11480       else
11481         can_build_shared=no
11482       fi
11483       ;;
11484     esac
11485     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11486     # soname into executable. Probably we can add versioning support to
11487     # collect2, so additional links can be useful in future.
11488     if test "$aix_use_runtimelinking" = yes; then
11489       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11490       # instead of lib<name>.a to let people know that these are not
11491       # typical AIX shared libraries.
11492       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493     else
11494       # We preserve .a as extension for shared libraries through AIX4.2
11495       # and later when we are not doing run time linking.
11496       library_names_spec='${libname}${release}.a $libname.a'
11497       soname_spec='${libname}${release}${shared_ext}$major'
11498     fi
11499     shlibpath_var=LIBPATH
11500   fi
11501   ;;
11502
11503 amigaos*)
11504   case $host_cpu in
11505   powerpc)
11506     # Since July 2007 AmigaOS4 officially supports .so libraries.
11507     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11508     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509     ;;
11510   m68k)
11511     library_names_spec='$libname.ixlibrary $libname.a'
11512     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11513     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'
11514     ;;
11515   esac
11516   ;;
11517
11518 beos*)
11519   library_names_spec='${libname}${shared_ext}'
11520   dynamic_linker="$host_os ld.so"
11521   shlibpath_var=LIBRARY_PATH
11522   ;;
11523
11524 bsdi[45]*)
11525   version_type=linux # correct to gnu/linux during the next big refactor
11526   need_version=no
11527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528   soname_spec='${libname}${release}${shared_ext}$major'
11529   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11532   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11533   # the default ld.so.conf also contains /usr/contrib/lib and
11534   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11535   # libtool to hard-code these into programs
11536   ;;
11537
11538 cygwin* | mingw* | pw32* | cegcc*)
11539   version_type=windows
11540   shrext_cmds=".dll"
11541   need_version=no
11542   need_lib_prefix=no
11543
11544   case $GCC,$cc_basename in
11545   yes,*)
11546     # gcc
11547     library_names_spec='$libname.dll.a'
11548     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11549     postinstall_cmds='base_file=`basename \${file}`~
11550       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11551       dldir=$destdir/`dirname \$dlpath`~
11552       test -d \$dldir || mkdir -p \$dldir~
11553       $install_prog $dir/$dlname \$dldir/$dlname~
11554       chmod a+x \$dldir/$dlname~
11555       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11556         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11557       fi'
11558     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11559       dlpath=$dir/\$dldll~
11560        $RM \$dlpath'
11561     shlibpath_overrides_runpath=yes
11562
11563     case $host_os in
11564     cygwin*)
11565       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11566       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11567
11568       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11569       ;;
11570     mingw* | cegcc*)
11571       # MinGW DLLs use traditional 'lib' prefix
11572       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11573       ;;
11574     pw32*)
11575       # pw32 DLLs use 'pw' prefix rather than 'lib'
11576       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11577       ;;
11578     esac
11579     dynamic_linker='Win32 ld.exe'
11580     ;;
11581
11582   *,cl*)
11583     # Native MSVC
11584     libname_spec='$name'
11585     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11586     library_names_spec='${libname}.dll.lib'
11587
11588     case $build_os in
11589     mingw*)
11590       sys_lib_search_path_spec=
11591       lt_save_ifs=$IFS
11592       IFS=';'
11593       for lt_path in $LIB
11594       do
11595         IFS=$lt_save_ifs
11596         # Let DOS variable expansion print the short 8.3 style file name.
11597         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11598         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11599       done
11600       IFS=$lt_save_ifs
11601       # Convert to MSYS style.
11602       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11603       ;;
11604     cygwin*)
11605       # Convert to unix form, then to dos form, then back to unix form
11606       # but this time dos style (no spaces!) so that the unix form looks
11607       # like /cygdrive/c/PROGRA~1:/cygdr...
11608       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11609       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11610       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11611       ;;
11612     *)
11613       sys_lib_search_path_spec="$LIB"
11614       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11615         # It is most probably a Windows format PATH.
11616         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11617       else
11618         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11619       fi
11620       # FIXME: find the short name or the path components, as spaces are
11621       # common. (e.g. "Program Files" -> "PROGRA~1")
11622       ;;
11623     esac
11624
11625     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11626     postinstall_cmds='base_file=`basename \${file}`~
11627       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11628       dldir=$destdir/`dirname \$dlpath`~
11629       test -d \$dldir || mkdir -p \$dldir~
11630       $install_prog $dir/$dlname \$dldir/$dlname'
11631     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11632       dlpath=$dir/\$dldll~
11633        $RM \$dlpath'
11634     shlibpath_overrides_runpath=yes
11635     dynamic_linker='Win32 link.exe'
11636     ;;
11637
11638   *)
11639     # Assume MSVC wrapper
11640     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11641     dynamic_linker='Win32 ld.exe'
11642     ;;
11643   esac
11644   # FIXME: first we should search . and the directory the executable is in
11645   shlibpath_var=PATH
11646   ;;
11647
11648 darwin* | rhapsody*)
11649   dynamic_linker="$host_os dyld"
11650   version_type=darwin
11651   need_lib_prefix=no
11652   need_version=no
11653   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11654   soname_spec='${libname}${release}${major}$shared_ext'
11655   shlibpath_overrides_runpath=yes
11656   shlibpath_var=DYLD_LIBRARY_PATH
11657   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11658
11659   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11660   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11661   ;;
11662
11663 dgux*)
11664   version_type=linux # correct to gnu/linux during the next big refactor
11665   need_lib_prefix=no
11666   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
11670   ;;
11671
11672 freebsd* | dragonfly*)
11673   # DragonFly does not have aout.  When/if they implement a new
11674   # versioning mechanism, adjust this.
11675   if test -x /usr/bin/objformat; then
11676     objformat=`/usr/bin/objformat`
11677   else
11678     case $host_os in
11679     freebsd[23].*) objformat=aout ;;
11680     *) objformat=elf ;;
11681     esac
11682   fi
11683   version_type=freebsd-$objformat
11684   case $version_type in
11685     freebsd-elf*)
11686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11687       need_version=no
11688       need_lib_prefix=no
11689       ;;
11690     freebsd-*)
11691       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11692       need_version=yes
11693       ;;
11694   esac
11695   shlibpath_var=LD_LIBRARY_PATH
11696   case $host_os in
11697   freebsd2.*)
11698     shlibpath_overrides_runpath=yes
11699     ;;
11700   freebsd3.[01]* | freebsdelf3.[01]*)
11701     shlibpath_overrides_runpath=yes
11702     hardcode_into_libs=yes
11703     ;;
11704   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11705   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11706     shlibpath_overrides_runpath=no
11707     hardcode_into_libs=yes
11708     ;;
11709   *) # from 4.6 on, and DragonFly
11710     shlibpath_overrides_runpath=yes
11711     hardcode_into_libs=yes
11712     ;;
11713   esac
11714   ;;
11715
11716 haiku*)
11717   version_type=linux # correct to gnu/linux during the next big refactor
11718   need_lib_prefix=no
11719   need_version=no
11720   dynamic_linker="$host_os runtime_loader"
11721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11722   soname_spec='${libname}${release}${shared_ext}$major'
11723   shlibpath_var=LIBRARY_PATH
11724   shlibpath_overrides_runpath=yes
11725   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11726   hardcode_into_libs=yes
11727   ;;
11728
11729 hpux9* | hpux10* | hpux11*)
11730   # Give a soname corresponding to the major version so that dld.sl refuses to
11731   # link against other versions.
11732   version_type=sunos
11733   need_lib_prefix=no
11734   need_version=no
11735   case $host_cpu in
11736   ia64*)
11737     shrext_cmds='.so'
11738     hardcode_into_libs=yes
11739     dynamic_linker="$host_os dld.so"
11740     shlibpath_var=LD_LIBRARY_PATH
11741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743     soname_spec='${libname}${release}${shared_ext}$major'
11744     if test "X$HPUX_IA64_MODE" = X32; then
11745       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11746     else
11747       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11748     fi
11749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11750     ;;
11751   hppa*64*)
11752     shrext_cmds='.sl'
11753     hardcode_into_libs=yes
11754     dynamic_linker="$host_os dld.sl"
11755     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11756     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758     soname_spec='${libname}${release}${shared_ext}$major'
11759     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11760     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11761     ;;
11762   *)
11763     shrext_cmds='.sl'
11764     dynamic_linker="$host_os dld.sl"
11765     shlibpath_var=SHLIB_PATH
11766     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768     soname_spec='${libname}${release}${shared_ext}$major'
11769     ;;
11770   esac
11771   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11772   postinstall_cmds='chmod 555 $lib'
11773   # or fails outright, so override atomically:
11774   install_override_mode=555
11775   ;;
11776
11777 interix[3-9]*)
11778   version_type=linux # correct to gnu/linux during the next big refactor
11779   need_lib_prefix=no
11780   need_version=no
11781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11782   soname_spec='${libname}${release}${shared_ext}$major'
11783   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11784   shlibpath_var=LD_LIBRARY_PATH
11785   shlibpath_overrides_runpath=no
11786   hardcode_into_libs=yes
11787   ;;
11788
11789 irix5* | irix6* | nonstopux*)
11790   case $host_os in
11791     nonstopux*) version_type=nonstopux ;;
11792     *)
11793         if test "$lt_cv_prog_gnu_ld" = yes; then
11794                 version_type=linux # correct to gnu/linux during the next big refactor
11795         else
11796                 version_type=irix
11797         fi ;;
11798   esac
11799   need_lib_prefix=no
11800   need_version=no
11801   soname_spec='${libname}${release}${shared_ext}$major'
11802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11803   case $host_os in
11804   irix5* | nonstopux*)
11805     libsuff= shlibsuff=
11806     ;;
11807   *)
11808     case $LD in # libtool.m4 will add one of these switches to LD
11809     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11810       libsuff= shlibsuff= libmagic=32-bit;;
11811     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11812       libsuff=32 shlibsuff=N32 libmagic=N32;;
11813     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11814       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11815     *) libsuff= shlibsuff= libmagic=never-match;;
11816     esac
11817     ;;
11818   esac
11819   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11820   shlibpath_overrides_runpath=no
11821   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11822   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11823   hardcode_into_libs=yes
11824   ;;
11825
11826 # No shared lib support for Linux oldld, aout, or coff.
11827 linux*oldld* | linux*aout* | linux*coff*)
11828   dynamic_linker=no
11829   ;;
11830
11831 # This must be glibc/ELF.
11832 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11833   version_type=linux # correct to gnu/linux during the next big refactor
11834   need_lib_prefix=no
11835   need_version=no
11836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837   soname_spec='${libname}${release}${shared_ext}$major'
11838   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11839   shlibpath_var=LD_LIBRARY_PATH
11840   shlibpath_overrides_runpath=no
11841
11842   # Some binutils ld are patched to set DT_RUNPATH
11843   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11844   $as_echo_n "(cached) " >&6
11845 else
11846   lt_cv_shlibpath_overrides_runpath=no
11847     save_LDFLAGS=$LDFLAGS
11848     save_libdir=$libdir
11849     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11850          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h.  */
11853
11854 int
11855 main ()
11856 {
11857
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 if ac_fn_c_try_link "$LINENO"; then :
11863   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11864   lt_cv_shlibpath_overrides_runpath=yes
11865 fi
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext \
11868     conftest$ac_exeext conftest.$ac_ext
11869     LDFLAGS=$save_LDFLAGS
11870     libdir=$save_libdir
11871
11872 fi
11873
11874   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11875
11876   # This implies no fast_install, which is unacceptable.
11877   # Some rework will be needed to allow for fast_install
11878   # before this can be enabled.
11879   hardcode_into_libs=yes
11880
11881   # Append ld.so.conf contents to the search path
11882   if test -f /etc/ld.so.conf; then
11883     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' ' '`
11884     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11885   fi
11886
11887   # We used to test for /lib/ld.so.1 and disable shared libraries on
11888   # powerpc, because MkLinux only supported shared libraries with the
11889   # GNU dynamic linker.  Since this was broken with cross compilers,
11890   # most powerpc-linux boxes support dynamic linking these days and
11891   # people can always --disable-shared, the test was removed, and we
11892   # assume the GNU/Linux dynamic linker is in use.
11893   dynamic_linker='GNU/Linux ld.so'
11894   ;;
11895
11896 netbsdelf*-gnu)
11897   version_type=linux
11898   need_lib_prefix=no
11899   need_version=no
11900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11901   soname_spec='${libname}${release}${shared_ext}$major'
11902   shlibpath_var=LD_LIBRARY_PATH
11903   shlibpath_overrides_runpath=no
11904   hardcode_into_libs=yes
11905   dynamic_linker='NetBSD ld.elf_so'
11906   ;;
11907
11908 netbsd*)
11909   version_type=sunos
11910   need_lib_prefix=no
11911   need_version=no
11912   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11914     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11915     dynamic_linker='NetBSD (a.out) ld.so'
11916   else
11917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11918     soname_spec='${libname}${release}${shared_ext}$major'
11919     dynamic_linker='NetBSD ld.elf_so'
11920   fi
11921   shlibpath_var=LD_LIBRARY_PATH
11922   shlibpath_overrides_runpath=yes
11923   hardcode_into_libs=yes
11924   ;;
11925
11926 newsos6)
11927   version_type=linux # correct to gnu/linux during the next big refactor
11928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11929   shlibpath_var=LD_LIBRARY_PATH
11930   shlibpath_overrides_runpath=yes
11931   ;;
11932
11933 *nto* | *qnx*)
11934   version_type=qnx
11935   need_lib_prefix=no
11936   need_version=no
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938   soname_spec='${libname}${release}${shared_ext}$major'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   shlibpath_overrides_runpath=no
11941   hardcode_into_libs=yes
11942   dynamic_linker='ldqnx.so'
11943   ;;
11944
11945 openbsd*)
11946   version_type=sunos
11947   sys_lib_dlsearch_path_spec="/usr/lib"
11948   need_lib_prefix=no
11949   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11950   case $host_os in
11951     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11952     *)                          need_version=no  ;;
11953   esac
11954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11955   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11956   shlibpath_var=LD_LIBRARY_PATH
11957   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11958     case $host_os in
11959       openbsd2.[89] | openbsd2.[89].*)
11960         shlibpath_overrides_runpath=no
11961         ;;
11962       *)
11963         shlibpath_overrides_runpath=yes
11964         ;;
11965       esac
11966   else
11967     shlibpath_overrides_runpath=yes
11968   fi
11969   ;;
11970
11971 os2*)
11972   libname_spec='$name'
11973   shrext_cmds=".dll"
11974   need_lib_prefix=no
11975   library_names_spec='$libname${shared_ext} $libname.a'
11976   dynamic_linker='OS/2 ld.exe'
11977   shlibpath_var=LIBPATH
11978   ;;
11979
11980 osf3* | osf4* | osf5*)
11981   version_type=osf
11982   need_lib_prefix=no
11983   need_version=no
11984   soname_spec='${libname}${release}${shared_ext}$major'
11985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11986   shlibpath_var=LD_LIBRARY_PATH
11987   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11988   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11989   ;;
11990
11991 rdos*)
11992   dynamic_linker=no
11993   ;;
11994
11995 solaris*)
11996   version_type=linux # correct to gnu/linux during the next big refactor
11997   need_lib_prefix=no
11998   need_version=no
11999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000   soname_spec='${libname}${release}${shared_ext}$major'
12001   shlibpath_var=LD_LIBRARY_PATH
12002   shlibpath_overrides_runpath=yes
12003   hardcode_into_libs=yes
12004   # ldd complains unless libraries are executable
12005   postinstall_cmds='chmod +x $lib'
12006   ;;
12007
12008 sunos4*)
12009   version_type=sunos
12010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12011   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12012   shlibpath_var=LD_LIBRARY_PATH
12013   shlibpath_overrides_runpath=yes
12014   if test "$with_gnu_ld" = yes; then
12015     need_lib_prefix=no
12016   fi
12017   need_version=yes
12018   ;;
12019
12020 sysv4 | sysv4.3*)
12021   version_type=linux # correct to gnu/linux during the next big refactor
12022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023   soname_spec='${libname}${release}${shared_ext}$major'
12024   shlibpath_var=LD_LIBRARY_PATH
12025   case $host_vendor in
12026     sni)
12027       shlibpath_overrides_runpath=no
12028       need_lib_prefix=no
12029       runpath_var=LD_RUN_PATH
12030       ;;
12031     siemens)
12032       need_lib_prefix=no
12033       ;;
12034     motorola)
12035       need_lib_prefix=no
12036       need_version=no
12037       shlibpath_overrides_runpath=no
12038       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12039       ;;
12040   esac
12041   ;;
12042
12043 sysv4*MP*)
12044   if test -d /usr/nec ;then
12045     version_type=linux # correct to gnu/linux during the next big refactor
12046     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12047     soname_spec='$libname${shared_ext}.$major'
12048     shlibpath_var=LD_LIBRARY_PATH
12049   fi
12050   ;;
12051
12052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12053   version_type=freebsd-elf
12054   need_lib_prefix=no
12055   need_version=no
12056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12057   soname_spec='${libname}${release}${shared_ext}$major'
12058   shlibpath_var=LD_LIBRARY_PATH
12059   shlibpath_overrides_runpath=yes
12060   hardcode_into_libs=yes
12061   if test "$with_gnu_ld" = yes; then
12062     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12063   else
12064     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12065     case $host_os in
12066       sco3.2v5*)
12067         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12068         ;;
12069     esac
12070   fi
12071   sys_lib_dlsearch_path_spec='/usr/lib'
12072   ;;
12073
12074 tpf*)
12075   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12076   version_type=linux # correct to gnu/linux during the next big refactor
12077   need_lib_prefix=no
12078   need_version=no
12079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080   shlibpath_var=LD_LIBRARY_PATH
12081   shlibpath_overrides_runpath=no
12082   hardcode_into_libs=yes
12083   ;;
12084
12085 uts4*)
12086   version_type=linux # correct to gnu/linux during the next big refactor
12087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088   soname_spec='${libname}${release}${shared_ext}$major'
12089   shlibpath_var=LD_LIBRARY_PATH
12090   ;;
12091
12092 *)
12093   dynamic_linker=no
12094   ;;
12095 esac
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12097 $as_echo "$dynamic_linker" >&6; }
12098 test "$dynamic_linker" = no && can_build_shared=no
12099
12100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12101 if test "$GCC" = yes; then
12102   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12103 fi
12104
12105 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12106   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12107 fi
12108 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12109   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12110 fi
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12204 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12205 hardcode_action=
12206 if test -n "$hardcode_libdir_flag_spec" ||
12207    test -n "$runpath_var" ||
12208    test "X$hardcode_automatic" = "Xyes" ; then
12209
12210   # We can hardcode non-existent directories.
12211   if test "$hardcode_direct" != no &&
12212      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12213      # have to relink, otherwise we might link with an installed library
12214      # when we should be linking with a yet-to-be-installed one
12215      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12216      test "$hardcode_minus_L" != no; then
12217     # Linking always hardcodes the temporary library directory.
12218     hardcode_action=relink
12219   else
12220     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12221     hardcode_action=immediate
12222   fi
12223 else
12224   # We cannot hardcode anything, or else we can only hardcode existing
12225   # directories.
12226   hardcode_action=unsupported
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12229 $as_echo "$hardcode_action" >&6; }
12230
12231 if test "$hardcode_action" = relink ||
12232    test "$inherit_rpath" = yes; then
12233   # Fast installation is not supported
12234   enable_fast_install=no
12235 elif test "$shlibpath_overrides_runpath" = yes ||
12236      test "$enable_shared" = no; then
12237   # Fast installation is not necessary
12238   enable_fast_install=needless
12239 fi
12240
12241
12242
12243
12244
12245
12246   if test "x$enable_dlopen" != xyes; then
12247   enable_dlopen=unknown
12248   enable_dlopen_self=unknown
12249   enable_dlopen_self_static=unknown
12250 else
12251   lt_cv_dlopen=no
12252   lt_cv_dlopen_libs=
12253
12254   case $host_os in
12255   beos*)
12256     lt_cv_dlopen="load_add_on"
12257     lt_cv_dlopen_libs=
12258     lt_cv_dlopen_self=yes
12259     ;;
12260
12261   mingw* | pw32* | cegcc*)
12262     lt_cv_dlopen="LoadLibrary"
12263     lt_cv_dlopen_libs=
12264     ;;
12265
12266   cygwin*)
12267     lt_cv_dlopen="dlopen"
12268     lt_cv_dlopen_libs=
12269     ;;
12270
12271   darwin*)
12272   # if libdl is installed we need to link against it
12273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12275 if ${ac_cv_lib_dl_dlopen+:} false; then :
12276   $as_echo_n "(cached) " >&6
12277 else
12278   ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-ldl  $LIBS"
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h.  */
12282
12283 /* Override any GCC internal prototype to avoid an error.
12284    Use char because int might match the return type of a GCC
12285    builtin and then its argument prototype would still apply.  */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char dlopen ();
12290 int
12291 main ()
12292 {
12293 return dlopen ();
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_link "$LINENO"; then :
12299   ac_cv_lib_dl_dlopen=yes
12300 else
12301   ac_cv_lib_dl_dlopen=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext \
12304     conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12309 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12310   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12311 else
12312
12313     lt_cv_dlopen="dyld"
12314     lt_cv_dlopen_libs=
12315     lt_cv_dlopen_self=yes
12316
12317 fi
12318
12319     ;;
12320
12321   *)
12322     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12323 if test "x$ac_cv_func_shl_load" = xyes; then :
12324   lt_cv_dlopen="shl_load"
12325 else
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12327 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12328 if ${ac_cv_lib_dld_shl_load+:} false; then :
12329   $as_echo_n "(cached) " >&6
12330 else
12331   ac_check_lib_save_LIBS=$LIBS
12332 LIBS="-ldld  $LIBS"
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h.  */
12335
12336 /* Override any GCC internal prototype to avoid an error.
12337    Use char because int might match the return type of a GCC
12338    builtin and then its argument prototype would still apply.  */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char shl_load ();
12343 int
12344 main ()
12345 {
12346 return shl_load ();
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 if ac_fn_c_try_link "$LINENO"; then :
12352   ac_cv_lib_dld_shl_load=yes
12353 else
12354   ac_cv_lib_dld_shl_load=no
12355 fi
12356 rm -f core conftest.err conftest.$ac_objext \
12357     conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12361 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12362 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12363   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12364 else
12365   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12366 if test "x$ac_cv_func_dlopen" = xyes; then :
12367   lt_cv_dlopen="dlopen"
12368 else
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12371 if ${ac_cv_lib_dl_dlopen+:} false; then :
12372   $as_echo_n "(cached) " >&6
12373 else
12374   ac_check_lib_save_LIBS=$LIBS
12375 LIBS="-ldl  $LIBS"
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h.  */
12378
12379 /* Override any GCC internal prototype to avoid an error.
12380    Use char because int might match the return type of a GCC
12381    builtin and then its argument prototype would still apply.  */
12382 #ifdef __cplusplus
12383 extern "C"
12384 #endif
12385 char dlopen ();
12386 int
12387 main ()
12388 {
12389 return dlopen ();
12390   ;
12391   return 0;
12392 }
12393 _ACEOF
12394 if ac_fn_c_try_link "$LINENO"; then :
12395   ac_cv_lib_dl_dlopen=yes
12396 else
12397   ac_cv_lib_dl_dlopen=no
12398 fi
12399 rm -f core conftest.err conftest.$ac_objext \
12400     conftest$ac_exeext conftest.$ac_ext
12401 LIBS=$ac_check_lib_save_LIBS
12402 fi
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12405 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12406   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12407 else
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12409 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12410 if ${ac_cv_lib_svld_dlopen+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-lsvld  $LIBS"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h.  */
12417
12418 /* Override any GCC internal prototype to avoid an error.
12419    Use char because int might match the return type of a GCC
12420    builtin and then its argument prototype would still apply.  */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char dlopen ();
12425 int
12426 main ()
12427 {
12428 return dlopen ();
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434   ac_cv_lib_svld_dlopen=yes
12435 else
12436   ac_cv_lib_svld_dlopen=no
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext \
12439     conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12443 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12444 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12445   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12446 else
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12448 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12449 if ${ac_cv_lib_dld_dld_link+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-ldld  $LIBS"
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h.  */
12456
12457 /* Override any GCC internal prototype to avoid an error.
12458    Use char because int might match the return type of a GCC
12459    builtin and then its argument prototype would still apply.  */
12460 #ifdef __cplusplus
12461 extern "C"
12462 #endif
12463 char dld_link ();
12464 int
12465 main ()
12466 {
12467 return dld_link ();
12468   ;
12469   return 0;
12470 }
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12473   ac_cv_lib_dld_dld_link=yes
12474 else
12475   ac_cv_lib_dld_dld_link=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext \
12478     conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12482 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12483 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12484   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12485 fi
12486
12487
12488 fi
12489
12490
12491 fi
12492
12493
12494 fi
12495
12496
12497 fi
12498
12499
12500 fi
12501
12502     ;;
12503   esac
12504
12505   if test "x$lt_cv_dlopen" != xno; then
12506     enable_dlopen=yes
12507   else
12508     enable_dlopen=no
12509   fi
12510
12511   case $lt_cv_dlopen in
12512   dlopen)
12513     save_CPPFLAGS="$CPPFLAGS"
12514     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12515
12516     save_LDFLAGS="$LDFLAGS"
12517     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12518
12519     save_LIBS="$LIBS"
12520     LIBS="$lt_cv_dlopen_libs $LIBS"
12521
12522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12523 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12524 if ${lt_cv_dlopen_self+:} false; then :
12525   $as_echo_n "(cached) " >&6
12526 else
12527           if test "$cross_compiling" = yes; then :
12528   lt_cv_dlopen_self=cross
12529 else
12530   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12531   lt_status=$lt_dlunknown
12532   cat > conftest.$ac_ext <<_LT_EOF
12533 #line $LINENO "configure"
12534 #include "confdefs.h"
12535
12536 #if HAVE_DLFCN_H
12537 #include <dlfcn.h>
12538 #endif
12539
12540 #include <stdio.h>
12541
12542 #ifdef RTLD_GLOBAL
12543 #  define LT_DLGLOBAL           RTLD_GLOBAL
12544 #else
12545 #  ifdef DL_GLOBAL
12546 #    define LT_DLGLOBAL         DL_GLOBAL
12547 #  else
12548 #    define LT_DLGLOBAL         0
12549 #  endif
12550 #endif
12551
12552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12553    find out it does not work in some platform. */
12554 #ifndef LT_DLLAZY_OR_NOW
12555 #  ifdef RTLD_LAZY
12556 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12557 #  else
12558 #    ifdef DL_LAZY
12559 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12560 #    else
12561 #      ifdef RTLD_NOW
12562 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12563 #      else
12564 #        ifdef DL_NOW
12565 #          define LT_DLLAZY_OR_NOW      DL_NOW
12566 #        else
12567 #          define LT_DLLAZY_OR_NOW      0
12568 #        endif
12569 #      endif
12570 #    endif
12571 #  endif
12572 #endif
12573
12574 /* When -fvisbility=hidden is used, assume the code has been annotated
12575    correspondingly for the symbols needed.  */
12576 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12577 int fnord () __attribute__((visibility("default")));
12578 #endif
12579
12580 int fnord () { return 42; }
12581 int main ()
12582 {
12583   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12584   int status = $lt_dlunknown;
12585
12586   if (self)
12587     {
12588       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12589       else
12590         {
12591           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12592           else puts (dlerror ());
12593         }
12594       /* dlclose (self); */
12595     }
12596   else
12597     puts (dlerror ());
12598
12599   return status;
12600 }
12601 _LT_EOF
12602   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12603   (eval $ac_link) 2>&5
12604   ac_status=$?
12605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12606   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12607     (./conftest; exit; ) >&5 2>/dev/null
12608     lt_status=$?
12609     case x$lt_status in
12610       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12611       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12612       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12613     esac
12614   else :
12615     # compilation failed
12616     lt_cv_dlopen_self=no
12617   fi
12618 fi
12619 rm -fr conftest*
12620
12621
12622 fi
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12624 $as_echo "$lt_cv_dlopen_self" >&6; }
12625
12626     if test "x$lt_cv_dlopen_self" = xyes; then
12627       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12628       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12629 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12630 if ${lt_cv_dlopen_self_static+:} false; then :
12631   $as_echo_n "(cached) " >&6
12632 else
12633           if test "$cross_compiling" = yes; then :
12634   lt_cv_dlopen_self_static=cross
12635 else
12636   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12637   lt_status=$lt_dlunknown
12638   cat > conftest.$ac_ext <<_LT_EOF
12639 #line $LINENO "configure"
12640 #include "confdefs.h"
12641
12642 #if HAVE_DLFCN_H
12643 #include <dlfcn.h>
12644 #endif
12645
12646 #include <stdio.h>
12647
12648 #ifdef RTLD_GLOBAL
12649 #  define LT_DLGLOBAL           RTLD_GLOBAL
12650 #else
12651 #  ifdef DL_GLOBAL
12652 #    define LT_DLGLOBAL         DL_GLOBAL
12653 #  else
12654 #    define LT_DLGLOBAL         0
12655 #  endif
12656 #endif
12657
12658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12659    find out it does not work in some platform. */
12660 #ifndef LT_DLLAZY_OR_NOW
12661 #  ifdef RTLD_LAZY
12662 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12663 #  else
12664 #    ifdef DL_LAZY
12665 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12666 #    else
12667 #      ifdef RTLD_NOW
12668 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12669 #      else
12670 #        ifdef DL_NOW
12671 #          define LT_DLLAZY_OR_NOW      DL_NOW
12672 #        else
12673 #          define LT_DLLAZY_OR_NOW      0
12674 #        endif
12675 #      endif
12676 #    endif
12677 #  endif
12678 #endif
12679
12680 /* When -fvisbility=hidden is used, assume the code has been annotated
12681    correspondingly for the symbols needed.  */
12682 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12683 int fnord () __attribute__((visibility("default")));
12684 #endif
12685
12686 int fnord () { return 42; }
12687 int main ()
12688 {
12689   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12690   int status = $lt_dlunknown;
12691
12692   if (self)
12693     {
12694       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12695       else
12696         {
12697           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12698           else puts (dlerror ());
12699         }
12700       /* dlclose (self); */
12701     }
12702   else
12703     puts (dlerror ());
12704
12705   return status;
12706 }
12707 _LT_EOF
12708   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12709   (eval $ac_link) 2>&5
12710   ac_status=$?
12711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12712   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12713     (./conftest; exit; ) >&5 2>/dev/null
12714     lt_status=$?
12715     case x$lt_status in
12716       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12717       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12718       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12719     esac
12720   else :
12721     # compilation failed
12722     lt_cv_dlopen_self_static=no
12723   fi
12724 fi
12725 rm -fr conftest*
12726
12727
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12730 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12731     fi
12732
12733     CPPFLAGS="$save_CPPFLAGS"
12734     LDFLAGS="$save_LDFLAGS"
12735     LIBS="$save_LIBS"
12736     ;;
12737   esac
12738
12739   case $lt_cv_dlopen_self in
12740   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12741   *) enable_dlopen_self=unknown ;;
12742   esac
12743
12744   case $lt_cv_dlopen_self_static in
12745   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12746   *) enable_dlopen_self_static=unknown ;;
12747   esac
12748 fi
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766 striplib=
12767 old_striplib=
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12769 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12770 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12771   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12772   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12775 else
12776 # FIXME - insert some real tests, host_os isn't really good enough
12777   case $host_os in
12778   darwin*)
12779     if test -n "$STRIP" ; then
12780       striplib="$STRIP -x"
12781       old_striplib="$STRIP -S"
12782       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12783 $as_echo "yes" >&6; }
12784     else
12785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787     fi
12788     ;;
12789   *)
12790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12792     ;;
12793   esac
12794 fi
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807   # Report which library types will actually be built
12808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12809 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12811 $as_echo "$can_build_shared" >&6; }
12812
12813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12814 $as_echo_n "checking whether to build shared libraries... " >&6; }
12815   test "$can_build_shared" = "no" && enable_shared=no
12816
12817   # On AIX, shared libraries and static libraries use the same namespace, and
12818   # are all built from PIC.
12819   case $host_os in
12820   aix3*)
12821     test "$enable_shared" = yes && enable_static=no
12822     if test -n "$RANLIB"; then
12823       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12824       postinstall_cmds='$RANLIB $lib'
12825     fi
12826     ;;
12827
12828   aix[4-9]*)
12829     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12830       test "$enable_shared" = yes && enable_static=no
12831     fi
12832     ;;
12833   esac
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12835 $as_echo "$enable_shared" >&6; }
12836
12837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12838 $as_echo_n "checking whether to build static libraries... " >&6; }
12839   # Make sure either enable_shared or enable_static is yes.
12840   test "$enable_shared" = yes || enable_static=yes
12841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12842 $as_echo "$enable_static" >&6; }
12843
12844
12845
12846
12847 fi
12848 ac_ext=c
12849 ac_cpp='$CPP $CPPFLAGS'
12850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12853
12854 CC="$lt_save_CC"
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870         ac_config_commands="$ac_config_commands libtool"
12871
12872
12873
12874
12875 # Only expand once:
12876
12877
12878
12879 ac_config_headers="$ac_config_headers config.h"
12880
12881
12882
12883 # Check $PATH for the following programs and append suitable options.
12884 ac_ext=c
12885 ac_cpp='$CPP $CPPFLAGS'
12886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889 if test -n "$ac_tool_prefix"; then
12890   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893 $as_echo_n "checking for $ac_word... " >&6; }
12894 if ${ac_cv_prog_CC+:} false; then :
12895   $as_echo_n "(cached) " >&6
12896 else
12897   if test -n "$CC"; then
12898   ac_cv_prog_CC="$CC" # Let the user override the test.
12899 else
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12902 do
12903   IFS=$as_save_IFS
12904   test -z "$as_dir" && as_dir=.
12905     for ac_exec_ext in '' $ac_executable_extensions; do
12906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909     break 2
12910   fi
12911 done
12912   done
12913 IFS=$as_save_IFS
12914
12915 fi
12916 fi
12917 CC=$ac_cv_prog_CC
12918 if test -n "$CC"; then
12919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12920 $as_echo "$CC" >&6; }
12921 else
12922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924 fi
12925
12926
12927 fi
12928 if test -z "$ac_cv_prog_CC"; then
12929   ac_ct_CC=$CC
12930   # Extract the first word of "gcc", so it can be a program name with args.
12931 set dummy gcc; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12935   $as_echo_n "(cached) " >&6
12936 else
12937   if test -n "$ac_ct_CC"; then
12938   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12939 else
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12942 do
12943   IFS=$as_save_IFS
12944   test -z "$as_dir" && as_dir=.
12945     for ac_exec_ext in '' $ac_executable_extensions; do
12946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947     ac_cv_prog_ac_ct_CC="gcc"
12948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949     break 2
12950   fi
12951 done
12952   done
12953 IFS=$as_save_IFS
12954
12955 fi
12956 fi
12957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12958 if test -n "$ac_ct_CC"; then
12959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12960 $as_echo "$ac_ct_CC" >&6; }
12961 else
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12964 fi
12965
12966   if test "x$ac_ct_CC" = x; then
12967     CC=""
12968   else
12969     case $cross_compiling:$ac_tool_warned in
12970 yes:)
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12973 ac_tool_warned=yes ;;
12974 esac
12975     CC=$ac_ct_CC
12976   fi
12977 else
12978   CC="$ac_cv_prog_CC"
12979 fi
12980
12981 if test -z "$CC"; then
12982           if test -n "$ac_tool_prefix"; then
12983     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12984 set dummy ${ac_tool_prefix}cc; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if ${ac_cv_prog_CC+:} false; then :
12988   $as_echo_n "(cached) " >&6
12989 else
12990   if test -n "$CC"; then
12991   ac_cv_prog_CC="$CC" # Let the user override the test.
12992 else
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12995 do
12996   IFS=$as_save_IFS
12997   test -z "$as_dir" && as_dir=.
12998     for ac_exec_ext in '' $ac_executable_extensions; do
12999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000     ac_cv_prog_CC="${ac_tool_prefix}cc"
13001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002     break 2
13003   fi
13004 done
13005   done
13006 IFS=$as_save_IFS
13007
13008 fi
13009 fi
13010 CC=$ac_cv_prog_CC
13011 if test -n "$CC"; then
13012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13013 $as_echo "$CC" >&6; }
13014 else
13015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13017 fi
13018
13019
13020   fi
13021 fi
13022 if test -z "$CC"; then
13023   # Extract the first word of "cc", so it can be a program name with args.
13024 set dummy cc; ac_word=$2
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026 $as_echo_n "checking for $ac_word... " >&6; }
13027 if ${ac_cv_prog_CC+:} false; then :
13028   $as_echo_n "(cached) " >&6
13029 else
13030   if test -n "$CC"; then
13031   ac_cv_prog_CC="$CC" # Let the user override the test.
13032 else
13033   ac_prog_rejected=no
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13036 do
13037   IFS=$as_save_IFS
13038   test -z "$as_dir" && as_dir=.
13039     for ac_exec_ext in '' $ac_executable_extensions; do
13040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13042        ac_prog_rejected=yes
13043        continue
13044      fi
13045     ac_cv_prog_CC="cc"
13046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13047     break 2
13048   fi
13049 done
13050   done
13051 IFS=$as_save_IFS
13052
13053 if test $ac_prog_rejected = yes; then
13054   # We found a bogon in the path, so make sure we never use it.
13055   set dummy $ac_cv_prog_CC
13056   shift
13057   if test $# != 0; then
13058     # We chose a different compiler from the bogus one.
13059     # However, it has the same basename, so the bogon will be chosen
13060     # first if we set CC to just the basename; use the full file name.
13061     shift
13062     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13063   fi
13064 fi
13065 fi
13066 fi
13067 CC=$ac_cv_prog_CC
13068 if test -n "$CC"; then
13069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13070 $as_echo "$CC" >&6; }
13071 else
13072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13074 fi
13075
13076
13077 fi
13078 if test -z "$CC"; then
13079   if test -n "$ac_tool_prefix"; then
13080   for ac_prog in cl.exe
13081   do
13082     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13085 $as_echo_n "checking for $ac_word... " >&6; }
13086 if ${ac_cv_prog_CC+:} false; then :
13087   $as_echo_n "(cached) " >&6
13088 else
13089   if test -n "$CC"; then
13090   ac_cv_prog_CC="$CC" # Let the user override the test.
13091 else
13092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13094 do
13095   IFS=$as_save_IFS
13096   test -z "$as_dir" && as_dir=.
13097     for ac_exec_ext in '' $ac_executable_extensions; do
13098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13099     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13101     break 2
13102   fi
13103 done
13104   done
13105 IFS=$as_save_IFS
13106
13107 fi
13108 fi
13109 CC=$ac_cv_prog_CC
13110 if test -n "$CC"; then
13111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13112 $as_echo "$CC" >&6; }
13113 else
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13116 fi
13117
13118
13119     test -n "$CC" && break
13120   done
13121 fi
13122 if test -z "$CC"; then
13123   ac_ct_CC=$CC
13124   for ac_prog in cl.exe
13125 do
13126   # Extract the first word of "$ac_prog", so it can be a program name with args.
13127 set dummy $ac_prog; ac_word=$2
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129 $as_echo_n "checking for $ac_word... " >&6; }
13130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13131   $as_echo_n "(cached) " >&6
13132 else
13133   if test -n "$ac_ct_CC"; then
13134   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13135 else
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137 for as_dir in $PATH
13138 do
13139   IFS=$as_save_IFS
13140   test -z "$as_dir" && as_dir=.
13141     for ac_exec_ext in '' $ac_executable_extensions; do
13142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13143     ac_cv_prog_ac_ct_CC="$ac_prog"
13144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145     break 2
13146   fi
13147 done
13148   done
13149 IFS=$as_save_IFS
13150
13151 fi
13152 fi
13153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13154 if test -n "$ac_ct_CC"; then
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13156 $as_echo "$ac_ct_CC" >&6; }
13157 else
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13160 fi
13161
13162
13163   test -n "$ac_ct_CC" && break
13164 done
13165
13166   if test "x$ac_ct_CC" = x; then
13167     CC=""
13168   else
13169     case $cross_compiling:$ac_tool_warned in
13170 yes:)
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13173 ac_tool_warned=yes ;;
13174 esac
13175     CC=$ac_ct_CC
13176   fi
13177 fi
13178
13179 fi
13180
13181
13182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13184 as_fn_error $? "no acceptable C compiler found in \$PATH
13185 See \`config.log' for more details" "$LINENO" 5; }
13186
13187 # Provide some information about the compiler.
13188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13189 set X $ac_compile
13190 ac_compiler=$2
13191 for ac_option in --version -v -V -qversion; do
13192   { { ac_try="$ac_compiler $ac_option >&5"
13193 case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13198 $as_echo "$ac_try_echo"; } >&5
13199   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13200   ac_status=$?
13201   if test -s conftest.err; then
13202     sed '10a\
13203 ... rest of stderr output deleted ...
13204          10q' conftest.err >conftest.er1
13205     cat conftest.er1 >&5
13206   fi
13207   rm -f conftest.er1 conftest.err
13208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13209   test $ac_status = 0; }
13210 done
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13213 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13214 if ${ac_cv_c_compiler_gnu+:} false; then :
13215   $as_echo_n "(cached) " >&6
13216 else
13217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h.  */
13219
13220 int
13221 main ()
13222 {
13223 #ifndef __GNUC__
13224        choke me
13225 #endif
13226
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232   ac_compiler_gnu=yes
13233 else
13234   ac_compiler_gnu=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13238
13239 fi
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13241 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13242 if test $ac_compiler_gnu = yes; then
13243   GCC=yes
13244 else
13245   GCC=
13246 fi
13247 ac_test_CFLAGS=${CFLAGS+set}
13248 ac_save_CFLAGS=$CFLAGS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13250 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13251 if ${ac_cv_prog_cc_g+:} false; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254   ac_save_c_werror_flag=$ac_c_werror_flag
13255    ac_c_werror_flag=yes
13256    ac_cv_prog_cc_g=no
13257    CFLAGS="-g"
13258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h.  */
13260
13261 int
13262 main ()
13263 {
13264
13265   ;
13266   return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_compile "$LINENO"; then :
13270   ac_cv_prog_cc_g=yes
13271 else
13272   CFLAGS=""
13273       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h.  */
13275
13276 int
13277 main ()
13278 {
13279
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 if ac_fn_c_try_compile "$LINENO"; then :
13285
13286 else
13287   ac_c_werror_flag=$ac_save_c_werror_flag
13288          CFLAGS="-g"
13289          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h.  */
13291
13292 int
13293 main ()
13294 {
13295
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_c_try_compile "$LINENO"; then :
13301   ac_cv_prog_cc_g=yes
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 fi
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308    ac_c_werror_flag=$ac_save_c_werror_flag
13309 fi
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13311 $as_echo "$ac_cv_prog_cc_g" >&6; }
13312 if test "$ac_test_CFLAGS" = set; then
13313   CFLAGS=$ac_save_CFLAGS
13314 elif test $ac_cv_prog_cc_g = yes; then
13315   if test "$GCC" = yes; then
13316     CFLAGS="-g -O2"
13317   else
13318     CFLAGS="-g"
13319   fi
13320 else
13321   if test "$GCC" = yes; then
13322     CFLAGS="-O2"
13323   else
13324     CFLAGS=
13325   fi
13326 fi
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13328 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13329 if ${ac_cv_prog_cc_c89+:} false; then :
13330   $as_echo_n "(cached) " >&6
13331 else
13332   ac_cv_prog_cc_c89=no
13333 ac_save_CC=$CC
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h.  */
13336 #include <stdarg.h>
13337 #include <stdio.h>
13338 struct stat;
13339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13340 struct buf { int x; };
13341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13342 static char *e (p, i)
13343      char **p;
13344      int i;
13345 {
13346   return p[i];
13347 }
13348 static char *f (char * (*g) (char **, int), char **p, ...)
13349 {
13350   char *s;
13351   va_list v;
13352   va_start (v,p);
13353   s = g (p, va_arg (v,int));
13354   va_end (v);
13355   return s;
13356 }
13357
13358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13359    function prototypes and stuff, but not '\xHH' hex character constants.
13360    These don't provoke an error unfortunately, instead are silently treated
13361    as 'x'.  The following induces an error, until -std is added to get
13362    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13363    array size at least.  It's necessary to write '\x00'==0 to get something
13364    that's true only with -std.  */
13365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13366
13367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13368    inside strings and character constants.  */
13369 #define FOO(x) 'x'
13370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13371
13372 int test (int i, double x);
13373 struct s1 {int (*f) (int a);};
13374 struct s2 {int (*f) (double a);};
13375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13376 int argc;
13377 char **argv;
13378 int
13379 main ()
13380 {
13381 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13387         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13388 do
13389   CC="$ac_save_CC $ac_arg"
13390   if ac_fn_c_try_compile "$LINENO"; then :
13391   ac_cv_prog_cc_c89=$ac_arg
13392 fi
13393 rm -f core conftest.err conftest.$ac_objext
13394   test "x$ac_cv_prog_cc_c89" != "xno" && break
13395 done
13396 rm -f conftest.$ac_ext
13397 CC=$ac_save_CC
13398
13399 fi
13400 # AC_CACHE_VAL
13401 case "x$ac_cv_prog_cc_c89" in
13402   x)
13403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13404 $as_echo "none needed" >&6; } ;;
13405   xno)
13406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13407 $as_echo "unsupported" >&6; } ;;
13408   *)
13409     CC="$CC $ac_cv_prog_cc_c89"
13410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13412 esac
13413 if test "x$ac_cv_prog_cc_c89" != xno; then :
13414
13415 fi
13416
13417 ac_ext=c
13418 ac_cpp='$CPP $CPPFLAGS'
13419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13422
13423 ac_ext=c
13424 ac_cpp='$CPP $CPPFLAGS'
13425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13429 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13430 if ${am_cv_prog_cc_c_o+:} false; then :
13431   $as_echo_n "(cached) " >&6
13432 else
13433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h.  */
13435
13436 int
13437 main ()
13438 {
13439
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444   # Make sure it works both with $CC and with simple cc.
13445   # Following AC_PROG_CC_C_O, we do the test twice because some
13446   # compilers refuse to overwrite an existing .o file with -o,
13447   # though they will create one.
13448   am_cv_prog_cc_c_o=yes
13449   for am_i in 1 2; do
13450     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13451    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13452    ac_status=$?
13453    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454    (exit $ac_status); } \
13455          && test -f conftest2.$ac_objext; then
13456       : OK
13457     else
13458       am_cv_prog_cc_c_o=no
13459       break
13460     fi
13461   done
13462   rm -f core conftest*
13463   unset am_i
13464 fi
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13466 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13467 if test "$am_cv_prog_cc_c_o" != yes; then
13468    # Losing compiler, so override with the script.
13469    # FIXME: It is wrong to rewrite CC.
13470    # But if we don't then we get into trouble of one sort or another.
13471    # A longer-term fix would be to have automake use am__CC in this case,
13472    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13473    CC="$am_aux_dir/compile $CC"
13474 fi
13475 ac_ext=c
13476 ac_cpp='$CPP $CPPFLAGS'
13477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13480
13481
13482 depcc="$CC"   am_compiler_list=
13483
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13485 $as_echo_n "checking dependency style of $depcc... " >&6; }
13486 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13490   # We make a subdir and do the tests there.  Otherwise we can end up
13491   # making bogus files that we don't know about and never remove.  For
13492   # instance it was reported that on HP-UX the gcc test will end up
13493   # making a dummy file named 'D' -- because '-MD' means "put the output
13494   # in D".
13495   rm -rf conftest.dir
13496   mkdir conftest.dir
13497   # Copy depcomp to subdir because otherwise we won't find it if we're
13498   # using a relative directory.
13499   cp "$am_depcomp" conftest.dir
13500   cd conftest.dir
13501   # We will build objects and dependencies in a subdirectory because
13502   # it helps to detect inapplicable dependency modes.  For instance
13503   # both Tru64's cc and ICC support -MD to output dependencies as a
13504   # side effect of compilation, but ICC will put the dependencies in
13505   # the current directory while Tru64 will put them in the object
13506   # directory.
13507   mkdir sub
13508
13509   am_cv_CC_dependencies_compiler_type=none
13510   if test "$am_compiler_list" = ""; then
13511      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13512   fi
13513   am__universal=false
13514   case " $depcc " in #(
13515      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13516      esac
13517
13518   for depmode in $am_compiler_list; do
13519     # Setup a source with many dependencies, because some compilers
13520     # like to wrap large dependency lists on column 80 (with \), and
13521     # we should not choose a depcomp mode which is confused by this.
13522     #
13523     # We need to recreate these files for each test, as the compiler may
13524     # overwrite some of them when testing with obscure command lines.
13525     # This happens at least with the AIX C compiler.
13526     : > sub/conftest.c
13527     for i in 1 2 3 4 5 6; do
13528       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13529       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13530       # Solaris 10 /bin/sh.
13531       echo '/* dummy */' > sub/conftst$i.h
13532     done
13533     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13534
13535     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13536     # mode.  It turns out that the SunPro C++ compiler does not properly
13537     # handle '-M -o', and we need to detect this.  Also, some Intel
13538     # versions had trouble with output in subdirs.
13539     am__obj=sub/conftest.${OBJEXT-o}
13540     am__minus_obj="-o $am__obj"
13541     case $depmode in
13542     gcc)
13543       # This depmode causes a compiler race in universal mode.
13544       test "$am__universal" = false || continue
13545       ;;
13546     nosideeffect)
13547       # After this tag, mechanisms are not by side-effect, so they'll
13548       # only be used when explicitly requested.
13549       if test "x$enable_dependency_tracking" = xyes; then
13550         continue
13551       else
13552         break
13553       fi
13554       ;;
13555     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13556       # This compiler won't grok '-c -o', but also, the minuso test has
13557       # not run yet.  These depmodes are late enough in the game, and
13558       # so weak that their functioning should not be impacted.
13559       am__obj=conftest.${OBJEXT-o}
13560       am__minus_obj=
13561       ;;
13562     none) break ;;
13563     esac
13564     if depmode=$depmode \
13565        source=sub/conftest.c object=$am__obj \
13566        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13567        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13568          >/dev/null 2>conftest.err &&
13569        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13570        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13571        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13572        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13573       # icc doesn't choke on unknown options, it will just issue warnings
13574       # or remarks (even with -Werror).  So we grep stderr for any message
13575       # that says an option was ignored or not supported.
13576       # When given -MP, icc 7.0 and 7.1 complain thusly:
13577       #   icc: Command line warning: ignoring option '-M'; no argument required
13578       # The diagnosis changed in icc 8.0:
13579       #   icc: Command line remark: option '-MP' not supported
13580       if (grep 'ignoring option' conftest.err ||
13581           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13582         am_cv_CC_dependencies_compiler_type=$depmode
13583         break
13584       fi
13585     fi
13586   done
13587
13588   cd ..
13589   rm -rf conftest.dir
13590 else
13591   am_cv_CC_dependencies_compiler_type=none
13592 fi
13593
13594 fi
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13596 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13598
13599  if
13600   test "x$enable_dependency_tracking" != xno \
13601   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13602   am__fastdepCC_TRUE=
13603   am__fastdepCC_FALSE='#'
13604 else
13605   am__fastdepCC_TRUE='#'
13606   am__fastdepCC_FALSE=
13607 fi
13608
13609
13610
13611
13612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13613 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13614 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13615   $as_echo_n "(cached) " >&6
13616 else
13617
13618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h.  */
13620
13621 #ifdef __ACK__
13622 Amsterdam
13623 #endif
13624
13625 _ACEOF
13626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13627   $EGREP "Amsterdam" >/dev/null 2>&1; then :
13628   gl_cv_c_amsterdam_compiler=yes
13629 else
13630   gl_cv_c_amsterdam_compiler=no
13631 fi
13632 rm -f conftest*
13633
13634
13635 fi
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13637 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13638   if test -z "$AR"; then
13639     if test $gl_cv_c_amsterdam_compiler = yes; then
13640       AR='cc -c.a'
13641       if test -z "$ARFLAGS"; then
13642         ARFLAGS='-o'
13643       fi
13644     else
13645                   if test -n "$ac_tool_prefix"; then
13646   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13647 set dummy ${ac_tool_prefix}ar; ac_word=$2
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649 $as_echo_n "checking for $ac_word... " >&6; }
13650 if ${ac_cv_prog_AR+:} false; then :
13651   $as_echo_n "(cached) " >&6
13652 else
13653   if test -n "$AR"; then
13654   ac_cv_prog_AR="$AR" # Let the user override the test.
13655 else
13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657 for as_dir in $PATH
13658 do
13659   IFS=$as_save_IFS
13660   test -z "$as_dir" && as_dir=.
13661     for ac_exec_ext in '' $ac_executable_extensions; do
13662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13663     ac_cv_prog_AR="${ac_tool_prefix}ar"
13664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13665     break 2
13666   fi
13667 done
13668   done
13669 IFS=$as_save_IFS
13670
13671 fi
13672 fi
13673 AR=$ac_cv_prog_AR
13674 if test -n "$AR"; then
13675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13676 $as_echo "$AR" >&6; }
13677 else
13678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13680 fi
13681
13682
13683 fi
13684 if test -z "$ac_cv_prog_AR"; then
13685   ac_ct_AR=$AR
13686   # Extract the first word of "ar", so it can be a program name with args.
13687 set dummy ar; ac_word=$2
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13689 $as_echo_n "checking for $ac_word... " >&6; }
13690 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13691   $as_echo_n "(cached) " >&6
13692 else
13693   if test -n "$ac_ct_AR"; then
13694   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13695 else
13696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in $PATH
13698 do
13699   IFS=$as_save_IFS
13700   test -z "$as_dir" && as_dir=.
13701     for ac_exec_ext in '' $ac_executable_extensions; do
13702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13703     ac_cv_prog_ac_ct_AR="ar"
13704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13705     break 2
13706   fi
13707 done
13708   done
13709 IFS=$as_save_IFS
13710
13711 fi
13712 fi
13713 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13714 if test -n "$ac_ct_AR"; then
13715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13716 $as_echo "$ac_ct_AR" >&6; }
13717 else
13718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13720 fi
13721
13722   if test "x$ac_ct_AR" = x; then
13723     AR="ar"
13724   else
13725     case $cross_compiling:$ac_tool_warned in
13726 yes:)
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13729 ac_tool_warned=yes ;;
13730 esac
13731     AR=$ac_ct_AR
13732   fi
13733 else
13734   AR="$ac_cv_prog_AR"
13735 fi
13736
13737       if test -z "$ARFLAGS"; then
13738         ARFLAGS='cru'
13739       fi
13740     fi
13741   else
13742     if test -z "$ARFLAGS"; then
13743       ARFLAGS='cru'
13744     fi
13745   fi
13746
13747
13748   if test -z "$RANLIB"; then
13749     if test $gl_cv_c_amsterdam_compiler = yes; then
13750       RANLIB=':'
13751     else
13752             if test -n "$ac_tool_prefix"; then
13753   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13754 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756 $as_echo_n "checking for $ac_word... " >&6; }
13757 if ${ac_cv_prog_RANLIB+:} false; then :
13758   $as_echo_n "(cached) " >&6
13759 else
13760   if test -n "$RANLIB"; then
13761   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13762 else
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13765 do
13766   IFS=$as_save_IFS
13767   test -z "$as_dir" && as_dir=.
13768     for ac_exec_ext in '' $ac_executable_extensions; do
13769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772     break 2
13773   fi
13774 done
13775   done
13776 IFS=$as_save_IFS
13777
13778 fi
13779 fi
13780 RANLIB=$ac_cv_prog_RANLIB
13781 if test -n "$RANLIB"; then
13782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13783 $as_echo "$RANLIB" >&6; }
13784 else
13785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787 fi
13788
13789
13790 fi
13791 if test -z "$ac_cv_prog_RANLIB"; then
13792   ac_ct_RANLIB=$RANLIB
13793   # Extract the first word of "ranlib", so it can be a program name with args.
13794 set dummy ranlib; ac_word=$2
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796 $as_echo_n "checking for $ac_word... " >&6; }
13797 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13798   $as_echo_n "(cached) " >&6
13799 else
13800   if test -n "$ac_ct_RANLIB"; then
13801   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13802 else
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806   IFS=$as_save_IFS
13807   test -z "$as_dir" && as_dir=.
13808     for ac_exec_ext in '' $ac_executable_extensions; do
13809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810     ac_cv_prog_ac_ct_RANLIB="ranlib"
13811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812     break 2
13813   fi
13814 done
13815   done
13816 IFS=$as_save_IFS
13817
13818 fi
13819 fi
13820 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13821 if test -n "$ac_ct_RANLIB"; then
13822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13823 $as_echo "$ac_ct_RANLIB" >&6; }
13824 else
13825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827 fi
13828
13829   if test "x$ac_ct_RANLIB" = x; then
13830     RANLIB=":"
13831   else
13832     case $cross_compiling:$ac_tool_warned in
13833 yes:)
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13836 ac_tool_warned=yes ;;
13837 esac
13838     RANLIB=$ac_ct_RANLIB
13839   fi
13840 else
13841   RANLIB="$ac_cv_prog_RANLIB"
13842 fi
13843
13844     fi
13845   fi
13846
13847
13848
13849
13850
13851
13852
13853
13854 # Check whether --enable-largefile was given.
13855 if test "${enable_largefile+set}" = set; then :
13856   enableval=$enable_largefile;
13857 fi
13858
13859 if test "$enable_largefile" != no; then
13860
13861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13862 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13863 if ${ac_cv_sys_largefile_CC+:} false; then :
13864   $as_echo_n "(cached) " >&6
13865 else
13866   ac_cv_sys_largefile_CC=no
13867      if test "$GCC" != yes; then
13868        ac_save_CC=$CC
13869        while :; do
13870          # IRIX 6.2 and later do not support large files by default,
13871          # so use the C compiler's -n32 option if that helps.
13872          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h.  */
13874 #include <sys/types.h>
13875  /* Check that off_t can represent 2**63 - 1 correctly.
13876     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13877     since some C++ compilers masquerading as C compilers
13878     incorrectly reject 9223372036854775807.  */
13879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13880   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13881                        && LARGE_OFF_T % 2147483647 == 1)
13882                       ? 1 : -1];
13883 int
13884 main ()
13885 {
13886
13887   ;
13888   return 0;
13889 }
13890 _ACEOF
13891          if ac_fn_c_try_compile "$LINENO"; then :
13892   break
13893 fi
13894 rm -f core conftest.err conftest.$ac_objext
13895          CC="$CC -n32"
13896          if ac_fn_c_try_compile "$LINENO"; then :
13897   ac_cv_sys_largefile_CC=' -n32'; break
13898 fi
13899 rm -f core conftest.err conftest.$ac_objext
13900          break
13901        done
13902        CC=$ac_save_CC
13903        rm -f conftest.$ac_ext
13904     fi
13905 fi
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13907 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13908   if test "$ac_cv_sys_largefile_CC" != no; then
13909     CC=$CC$ac_cv_sys_largefile_CC
13910   fi
13911
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13913 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13914 if ${ac_cv_sys_file_offset_bits+:} false; then :
13915   $as_echo_n "(cached) " >&6
13916 else
13917   while :; do
13918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h.  */
13920 #include <sys/types.h>
13921  /* Check that off_t can represent 2**63 - 1 correctly.
13922     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13923     since some C++ compilers masquerading as C compilers
13924     incorrectly reject 9223372036854775807.  */
13925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13926   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13927                        && LARGE_OFF_T % 2147483647 == 1)
13928                       ? 1 : -1];
13929 int
13930 main ()
13931 {
13932
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 if ac_fn_c_try_compile "$LINENO"; then :
13938   ac_cv_sys_file_offset_bits=no; break
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h.  */
13943 #define _FILE_OFFSET_BITS 64
13944 #include <sys/types.h>
13945  /* Check that off_t can represent 2**63 - 1 correctly.
13946     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13947     since some C++ compilers masquerading as C compilers
13948     incorrectly reject 9223372036854775807.  */
13949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13950   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13951                        && LARGE_OFF_T % 2147483647 == 1)
13952                       ? 1 : -1];
13953 int
13954 main ()
13955 {
13956
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_compile "$LINENO"; then :
13962   ac_cv_sys_file_offset_bits=64; break
13963 fi
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965   ac_cv_sys_file_offset_bits=unknown
13966   break
13967 done
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13970 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13971 case $ac_cv_sys_file_offset_bits in #(
13972   no | unknown) ;;
13973   *)
13974 cat >>confdefs.h <<_ACEOF
13975 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13976 _ACEOF
13977 ;;
13978 esac
13979 rm -rf conftest*
13980   if test $ac_cv_sys_file_offset_bits = unknown; then
13981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13982 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13983 if ${ac_cv_sys_large_files+:} false; then :
13984   $as_echo_n "(cached) " >&6
13985 else
13986   while :; do
13987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h.  */
13989 #include <sys/types.h>
13990  /* Check that off_t can represent 2**63 - 1 correctly.
13991     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13992     since some C++ compilers masquerading as C compilers
13993     incorrectly reject 9223372036854775807.  */
13994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13995   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13996                        && LARGE_OFF_T % 2147483647 == 1)
13997                       ? 1 : -1];
13998 int
13999 main ()
14000 {
14001
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007   ac_cv_sys_large_files=no; break
14008 fi
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h.  */
14012 #define _LARGE_FILES 1
14013 #include <sys/types.h>
14014  /* Check that off_t can represent 2**63 - 1 correctly.
14015     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14016     since some C++ compilers masquerading as C compilers
14017     incorrectly reject 9223372036854775807.  */
14018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14019   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14020                        && LARGE_OFF_T % 2147483647 == 1)
14021                       ? 1 : -1];
14022 int
14023 main ()
14024 {
14025
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 if ac_fn_c_try_compile "$LINENO"; then :
14031   ac_cv_sys_large_files=1; break
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034   ac_cv_sys_large_files=unknown
14035   break
14036 done
14037 fi
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14039 $as_echo "$ac_cv_sys_large_files" >&6; }
14040 case $ac_cv_sys_large_files in #(
14041   no | unknown) ;;
14042   *)
14043 cat >>confdefs.h <<_ACEOF
14044 #define _LARGE_FILES $ac_cv_sys_large_files
14045 _ACEOF
14046 ;;
14047 esac
14048 rm -rf conftest*
14049   fi
14050
14051
14052 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
14053
14054 fi
14055
14056    case $ac_cv_prog_cc_stdc in #(
14057   no) :
14058     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14059   *) :
14060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14061 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14062 if ${ac_cv_prog_cc_c99+:} false; then :
14063   $as_echo_n "(cached) " >&6
14064 else
14065   ac_cv_prog_cc_c99=no
14066 ac_save_CC=$CC
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h.  */
14069 #include <stdarg.h>
14070 #include <stdbool.h>
14071 #include <stdlib.h>
14072 #include <wchar.h>
14073 #include <stdio.h>
14074
14075 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14076 #define debug(...) fprintf (stderr, __VA_ARGS__)
14077 #define showlist(...) puts (#__VA_ARGS__)
14078 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14079 static void
14080 test_varargs_macros (void)
14081 {
14082   int x = 1234;
14083   int y = 5678;
14084   debug ("Flag");
14085   debug ("X = %d\n", x);
14086   showlist (The first, second, and third items.);
14087   report (x>y, "x is %d but y is %d", x, y);
14088 }
14089
14090 // Check long long types.
14091 #define BIG64 18446744073709551615ull
14092 #define BIG32 4294967295ul
14093 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14094 #if !BIG_OK
14095   your preprocessor is broken;
14096 #endif
14097 #if BIG_OK
14098 #else
14099   your preprocessor is broken;
14100 #endif
14101 static long long int bignum = -9223372036854775807LL;
14102 static unsigned long long int ubignum = BIG64;
14103
14104 struct incomplete_array
14105 {
14106   int datasize;
14107   double data[];
14108 };
14109
14110 struct named_init {
14111   int number;
14112   const wchar_t *name;
14113   double average;
14114 };
14115
14116 typedef const char *ccp;
14117
14118 static inline int
14119 test_restrict (ccp restrict text)
14120 {
14121   // See if C++-style comments work.
14122   // Iterate through items via the restricted pointer.
14123   // Also check for declarations in for loops.
14124   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14125     continue;
14126   return 0;
14127 }
14128
14129 // Check varargs and va_copy.
14130 static void
14131 test_varargs (const char *format, ...)
14132 {
14133   va_list args;
14134   va_start (args, format);
14135   va_list args_copy;
14136   va_copy (args_copy, args);
14137
14138   const char *str;
14139   int number;
14140   float fnumber;
14141
14142   while (*format)
14143     {
14144       switch (*format++)
14145         {
14146         case 's': // string
14147           str = va_arg (args_copy, const char *);
14148           break;
14149         case 'd': // int
14150           number = va_arg (args_copy, int);
14151           break;
14152         case 'f': // float
14153           fnumber = va_arg (args_copy, double);
14154           break;
14155         default:
14156           break;
14157         }
14158     }
14159   va_end (args_copy);
14160   va_end (args);
14161 }
14162
14163 int
14164 main ()
14165 {
14166
14167   // Check bool.
14168   _Bool success = false;
14169
14170   // Check restrict.
14171   if (test_restrict ("String literal") == 0)
14172     success = true;
14173   char *restrict newvar = "Another string";
14174
14175   // Check varargs.
14176   test_varargs ("s, d' f .", "string", 65, 34.234);
14177   test_varargs_macros ();
14178
14179   // Check flexible array members.
14180   struct incomplete_array *ia =
14181     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14182   ia->datasize = 10;
14183   for (int i = 0; i < ia->datasize; ++i)
14184     ia->data[i] = i * 1.234;
14185
14186   // Check named initializers.
14187   struct named_init ni = {
14188     .number = 34,
14189     .name = L"Test wide string",
14190     .average = 543.34343,
14191   };
14192
14193   ni.number = 58;
14194
14195   int dynamic_array[ni.number];
14196   dynamic_array[ni.number - 1] = 543;
14197
14198   // work around unused variable warnings
14199   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14200           || dynamic_array[ni.number - 1] != 543);
14201
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14207 do
14208   CC="$ac_save_CC $ac_arg"
14209   if ac_fn_c_try_compile "$LINENO"; then :
14210   ac_cv_prog_cc_c99=$ac_arg
14211 fi
14212 rm -f core conftest.err conftest.$ac_objext
14213   test "x$ac_cv_prog_cc_c99" != "xno" && break
14214 done
14215 rm -f conftest.$ac_ext
14216 CC=$ac_save_CC
14217
14218 fi
14219 # AC_CACHE_VAL
14220 case "x$ac_cv_prog_cc_c99" in
14221   x)
14222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14223 $as_echo "none needed" >&6; } ;;
14224   xno)
14225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14226 $as_echo "unsupported" >&6; } ;;
14227   *)
14228     CC="$CC $ac_cv_prog_cc_c99"
14229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14230 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14231 esac
14232 if test "x$ac_cv_prog_cc_c99" != xno; then :
14233   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14234 else
14235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14237 if ${ac_cv_prog_cc_c89+:} false; then :
14238   $as_echo_n "(cached) " >&6
14239 else
14240   ac_cv_prog_cc_c89=no
14241 ac_save_CC=$CC
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h.  */
14244 #include <stdarg.h>
14245 #include <stdio.h>
14246 struct stat;
14247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14248 struct buf { int x; };
14249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14250 static char *e (p, i)
14251      char **p;
14252      int i;
14253 {
14254   return p[i];
14255 }
14256 static char *f (char * (*g) (char **, int), char **p, ...)
14257 {
14258   char *s;
14259   va_list v;
14260   va_start (v,p);
14261   s = g (p, va_arg (v,int));
14262   va_end (v);
14263   return s;
14264 }
14265
14266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14267    function prototypes and stuff, but not '\xHH' hex character constants.
14268    These don't provoke an error unfortunately, instead are silently treated
14269    as 'x'.  The following induces an error, until -std is added to get
14270    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14271    array size at least.  It's necessary to write '\x00'==0 to get something
14272    that's true only with -std.  */
14273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14274
14275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14276    inside strings and character constants.  */
14277 #define FOO(x) 'x'
14278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14279
14280 int test (int i, double x);
14281 struct s1 {int (*f) (int a);};
14282 struct s2 {int (*f) (double a);};
14283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14284 int argc;
14285 char **argv;
14286 int
14287 main ()
14288 {
14289 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14295         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14296 do
14297   CC="$ac_save_CC $ac_arg"
14298   if ac_fn_c_try_compile "$LINENO"; then :
14299   ac_cv_prog_cc_c89=$ac_arg
14300 fi
14301 rm -f core conftest.err conftest.$ac_objext
14302   test "x$ac_cv_prog_cc_c89" != "xno" && break
14303 done
14304 rm -f conftest.$ac_ext
14305 CC=$ac_save_CC
14306
14307 fi
14308 # AC_CACHE_VAL
14309 case "x$ac_cv_prog_cc_c89" in
14310   x)
14311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14312 $as_echo "none needed" >&6; } ;;
14313   xno)
14314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14315 $as_echo "unsupported" >&6; } ;;
14316   *)
14317     CC="$CC $ac_cv_prog_cc_c89"
14318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14320 esac
14321 if test "x$ac_cv_prog_cc_c89" != xno; then :
14322   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14323 else
14324   ac_cv_prog_cc_stdc=no
14325 fi
14326
14327 fi
14328  ;;
14329 esac
14330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14331 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14332   if ${ac_cv_prog_cc_stdc+:} false; then :
14333   $as_echo_n "(cached) " >&6
14334 fi
14335
14336   case $ac_cv_prog_cc_stdc in #(
14337   no) :
14338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14339 $as_echo "unsupported" >&6; } ;; #(
14340   '') :
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14342 $as_echo "none needed" >&6; } ;; #(
14343   *) :
14344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14345 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14346 esac
14347
14348
14349
14350
14351
14352
14353   # Check whether --enable-threads was given.
14354 if test "${enable_threads+set}" = set; then :
14355   enableval=$enable_threads; gl_use_threads=$enableval
14356 else
14357   if test -n "$gl_use_threads_default"; then
14358        gl_use_threads="$gl_use_threads_default"
14359      else
14360        case "$host_os" in
14361                                                                osf*) gl_use_threads=no ;;
14362          cygwin*)
14363                case `uname -r` in
14364                  1.[0-5].*) gl_use_threads=no ;;
14365                  *)         gl_use_threads=yes ;;
14366                esac
14367                ;;
14368          *)    gl_use_threads=yes ;;
14369        esac
14370      fi
14371
14372 fi
14373
14374   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14375     # For using <pthread.h>:
14376     case "$host_os" in
14377       osf*)
14378         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14379         # groks <pthread.h>. cc also understands the flag -pthread, but
14380         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14381         # 2. putting a flag into CPPFLAGS that has an effect on the linker
14382         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14383         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14384         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14385         ;;
14386     esac
14387     # Some systems optimize for single-threaded programs by default, and
14388     # need special flags to disable these optimizations. For example, the
14389     # definition of 'errno' in <errno.h>.
14390     case "$host_os" in
14391       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14392       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14393     esac
14394   fi
14395
14396
14397
14398
14399   # Code from module absolute-header:
14400   # Code from module alloca-opt:
14401   # Code from module dirname:
14402   # Code from module dirname-lgpl:
14403   # Code from module dosname:
14404   # Code from module double-slash-root:
14405   # Code from module environ:
14406   # Code from module errno:
14407   # Code from module error:
14408   # Code from module exitfail:
14409   # Code from module extensions:
14410
14411   # Code from module extern-inline:
14412   # Code from module fcntl-h:
14413   # Code from module float:
14414   # Code from module full-write:
14415   # Code from module gettext-h:
14416   # Code from module gettimeofday:
14417   # Code from module gitlog-to-changelog:
14418   # Code from module gnupload:
14419   # Code from module havelib:
14420   # Code from module include_next:
14421   # Code from module intprops:
14422   # Code from module largefile:
14423
14424   # Code from module lib-ignore:
14425   # Code from module lock:
14426   # Code from module lstat:
14427   # Code from module malloc-posix:
14428   # Code from module malloca:
14429   # Code from module memchr:
14430   # Code from module mkdtemp:
14431   # Code from module msvc-inval:
14432   # Code from module msvc-nothrow:
14433   # Code from module multiarch:
14434   # Code from module pathmax:
14435   # Code from module raise:
14436   # Code from module read:
14437   # Code from module safe-read:
14438   # Code from module safe-write:
14439   # Code from module secure_getenv:
14440   # Code from module setenv:
14441   # Code from module sigaction:
14442   # Code from module signal:
14443   # Code from module signal-h:
14444   # Code from module sigprocmask:
14445   # Code from module size_max:
14446   # Code from module snippet/_Noreturn:
14447   # Code from module snippet/arg-nonnull:
14448   # Code from module snippet/c++defs:
14449   # Code from module snippet/warn-on-use:
14450   # Code from module snprintf:
14451   # Code from module ssize_t:
14452   # Code from module stat:
14453   # Code from module stdarg:
14454
14455
14456
14457   # Code from module stdbool:
14458   # Code from module stddef:
14459   # Code from module stdint:
14460   # Code from module stdio:
14461   # Code from module stdlib:
14462   # Code from module strerror:
14463   # Code from module strerror-override:
14464   # Code from module string:
14465   # Code from module strndup:
14466   # Code from module strnlen:
14467   # Code from module strsignal:
14468   # Code from module sys_select:
14469   # Code from module sys_stat:
14470   # Code from module sys_time:
14471   # Code from module sys_types:
14472   # Code from module sys_wait:
14473   # Code from module tempname:
14474   # Code from module threadlib:
14475
14476
14477
14478   # Code from module time:
14479   # Code from module tls:
14480   # Code from module unistd:
14481   # Code from module unsetenv:
14482   # Code from module vasnprintf:
14483   # Code from module vasprintf:
14484   # Code from module verify:
14485   # Code from module waitpid:
14486   # Code from module warnings:
14487   # Code from module wchar:
14488   # Code from module write:
14489   # Code from module xalloc:
14490   # Code from module xalloc-die:
14491   # Code from module xalloc-oversized:
14492   # Code from module xsize:
14493   # Code from module xstrndup:
14494   # Code from module xvasprintf:
14495
14496 ac_ext=c
14497 ac_cpp='$CPP $CPPFLAGS'
14498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14502 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14503 # On Suns, sometimes $CPP names a directory.
14504 if test -n "$CPP" && test -d "$CPP"; then
14505   CPP=
14506 fi
14507 if test -z "$CPP"; then
14508   if ${ac_cv_prog_CPP+:} false; then :
14509   $as_echo_n "(cached) " >&6
14510 else
14511       # Double quotes because CPP needs to be expanded
14512     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14513     do
14514       ac_preproc_ok=false
14515 for ac_c_preproc_warn_flag in '' yes
14516 do
14517   # Use a header file that comes with gcc, so configuring glibc
14518   # with a fresh cross-compiler works.
14519   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14520   # <limits.h> exists even on freestanding compilers.
14521   # On the NeXT, cc -E runs the code through the compiler's parser,
14522   # not just through cpp. "Syntax error" is here to catch this case.
14523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h.  */
14525 #ifdef __STDC__
14526 # include <limits.h>
14527 #else
14528 # include <assert.h>
14529 #endif
14530                      Syntax error
14531 _ACEOF
14532 if ac_fn_c_try_cpp "$LINENO"; then :
14533
14534 else
14535   # Broken: fails on valid input.
14536 continue
14537 fi
14538 rm -f conftest.err conftest.i conftest.$ac_ext
14539
14540   # OK, works on sane cases.  Now check whether nonexistent headers
14541   # can be detected and how.
14542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544 #include <ac_nonexistent.h>
14545 _ACEOF
14546 if ac_fn_c_try_cpp "$LINENO"; then :
14547   # Broken: success on invalid input.
14548 continue
14549 else
14550   # Passes both tests.
14551 ac_preproc_ok=:
14552 break
14553 fi
14554 rm -f conftest.err conftest.i conftest.$ac_ext
14555
14556 done
14557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14558 rm -f conftest.i conftest.err conftest.$ac_ext
14559 if $ac_preproc_ok; then :
14560   break
14561 fi
14562
14563     done
14564     ac_cv_prog_CPP=$CPP
14565
14566 fi
14567   CPP=$ac_cv_prog_CPP
14568 else
14569   ac_cv_prog_CPP=$CPP
14570 fi
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14572 $as_echo "$CPP" >&6; }
14573 ac_preproc_ok=false
14574 for ac_c_preproc_warn_flag in '' yes
14575 do
14576   # Use a header file that comes with gcc, so configuring glibc
14577   # with a fresh cross-compiler works.
14578   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14579   # <limits.h> exists even on freestanding compilers.
14580   # On the NeXT, cc -E runs the code through the compiler's parser,
14581   # not just through cpp. "Syntax error" is here to catch this case.
14582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h.  */
14584 #ifdef __STDC__
14585 # include <limits.h>
14586 #else
14587 # include <assert.h>
14588 #endif
14589                      Syntax error
14590 _ACEOF
14591 if ac_fn_c_try_cpp "$LINENO"; then :
14592
14593 else
14594   # Broken: fails on valid input.
14595 continue
14596 fi
14597 rm -f conftest.err conftest.i conftest.$ac_ext
14598
14599   # OK, works on sane cases.  Now check whether nonexistent headers
14600   # can be detected and how.
14601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h.  */
14603 #include <ac_nonexistent.h>
14604 _ACEOF
14605 if ac_fn_c_try_cpp "$LINENO"; then :
14606   # Broken: success on invalid input.
14607 continue
14608 else
14609   # Passes both tests.
14610 ac_preproc_ok=:
14611 break
14612 fi
14613 rm -f conftest.err conftest.i conftest.$ac_ext
14614
14615 done
14616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14617 rm -f conftest.i conftest.err conftest.$ac_ext
14618 if $ac_preproc_ok; then :
14619
14620 else
14621   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14623 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14624 See \`config.log' for more details" "$LINENO" 5; }
14625 fi
14626
14627 ac_ext=c
14628 ac_cpp='$CPP $CPPFLAGS'
14629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14632
14633 CFLAGS="$CFLAGS -Wall"
14634 if test "$GCC" = yes
14635 then
14636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
14637 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
14638 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
14639   $as_echo_n "(cached) " >&6
14640 else
14641
14642   gl_save_compiler_FLAGS="$CFLAGS"
14643   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
14644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h.  */
14646
14647 int
14648 main ()
14649 {
14650
14651   ;
14652   return 0;
14653 }
14654 _ACEOF
14655 if ac_fn_c_try_link "$LINENO"; then :
14656   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
14657 else
14658   gl_cv_warn_c__Werror__Wunknown_warning_option=no
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext \
14661     conftest$ac_exeext conftest.$ac_ext
14662   CFLAGS="$gl_save_compiler_FLAGS"
14663
14664 fi
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
14666 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
14667 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
14668   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
14669 else
14670   gl_unknown_warnings_are_errors=
14671 fi
14672
14673
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
14675 $as_echo_n "checking whether C compiler handles -W... " >&6; }
14676 if ${gl_cv_warn_c__W+:} false; then :
14677   $as_echo_n "(cached) " >&6
14678 else
14679
14680   gl_save_compiler_FLAGS="$CFLAGS"
14681   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
14682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h.  */
14684
14685 int
14686 main ()
14687 {
14688
14689   ;
14690   return 0;
14691 }
14692 _ACEOF
14693 if ac_fn_c_try_link "$LINENO"; then :
14694   gl_cv_warn_c__W=yes
14695 else
14696   gl_cv_warn_c__W=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext \
14699     conftest$ac_exeext conftest.$ac_ext
14700   CFLAGS="$gl_save_compiler_FLAGS"
14701
14702 fi
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
14704 $as_echo "$gl_cv_warn_c__W" >&6; }
14705 if test "x$gl_cv_warn_c__W" = xyes; then :
14706   as_fn_append WARN_CFLAGS " -W"
14707 fi
14708
14709
14710
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
14712 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
14713 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
14714   $as_echo_n "(cached) " >&6
14715 else
14716
14717   gl_save_compiler_FLAGS="$CFLAGS"
14718   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
14719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h.  */
14721
14722 int
14723 main ()
14724 {
14725
14726   ;
14727   return 0;
14728 }
14729 _ACEOF
14730 if ac_fn_c_try_link "$LINENO"; then :
14731   gl_cv_warn_c__Wpointer_arith=yes
14732 else
14733   gl_cv_warn_c__Wpointer_arith=no
14734 fi
14735 rm -f core conftest.err conftest.$ac_objext \
14736     conftest$ac_exeext conftest.$ac_ext
14737   CFLAGS="$gl_save_compiler_FLAGS"
14738
14739 fi
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
14741 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
14742 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
14743   as_fn_append WARN_CFLAGS " -Wpointer-arith"
14744 fi
14745
14746
14747
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
14749 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
14750 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
14751   $as_echo_n "(cached) " >&6
14752 else
14753
14754   gl_save_compiler_FLAGS="$CFLAGS"
14755   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
14756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h.  */
14758
14759 int
14760 main ()
14761 {
14762
14763   ;
14764   return 0;
14765 }
14766 _ACEOF
14767 if ac_fn_c_try_link "$LINENO"; then :
14768   gl_cv_warn_c__Wwrite_strings=yes
14769 else
14770   gl_cv_warn_c__Wwrite_strings=no
14771 fi
14772 rm -f core conftest.err conftest.$ac_objext \
14773     conftest$ac_exeext conftest.$ac_ext
14774   CFLAGS="$gl_save_compiler_FLAGS"
14775
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
14778 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
14779 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
14780   as_fn_append WARN_CFLAGS " -Wwrite-strings"
14781 fi
14782
14783
14784
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
14786 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
14787 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
14788   $as_echo_n "(cached) " >&6
14789 else
14790
14791   gl_save_compiler_FLAGS="$CFLAGS"
14792   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
14793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h.  */
14795
14796 int
14797 main ()
14798 {
14799
14800   ;
14801   return 0;
14802 }
14803 _ACEOF
14804 if ac_fn_c_try_link "$LINENO"; then :
14805   gl_cv_warn_c__Wstrict_prototypes=yes
14806 else
14807   gl_cv_warn_c__Wstrict_prototypes=no
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext \
14810     conftest$ac_exeext conftest.$ac_ext
14811   CFLAGS="$gl_save_compiler_FLAGS"
14812
14813 fi
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
14815 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
14816 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
14817   as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
14818 fi
14819
14820
14821
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
14823 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
14824 if ${gl_cv_warn_c__Wshadow+:} false; then :
14825   $as_echo_n "(cached) " >&6
14826 else
14827
14828   gl_save_compiler_FLAGS="$CFLAGS"
14829   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
14830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h.  */
14832
14833 int
14834 main ()
14835 {
14836
14837   ;
14838   return 0;
14839 }
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"; then :
14842   gl_cv_warn_c__Wshadow=yes
14843 else
14844   gl_cv_warn_c__Wshadow=no
14845 fi
14846 rm -f core conftest.err conftest.$ac_objext \
14847     conftest$ac_exeext conftest.$ac_ext
14848   CFLAGS="$gl_save_compiler_FLAGS"
14849
14850 fi
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
14852 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
14853 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
14854   as_fn_append WARN_CFLAGS " -Wshadow"
14855 fi
14856
14857
14858
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
14860 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
14861 if ${gl_cv_warn_c__Wformat_security+:} false; then :
14862   $as_echo_n "(cached) " >&6
14863 else
14864
14865   gl_save_compiler_FLAGS="$CFLAGS"
14866   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
14867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h.  */
14869
14870 int
14871 main ()
14872 {
14873
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 if ac_fn_c_try_link "$LINENO"; then :
14879   gl_cv_warn_c__Wformat_security=yes
14880 else
14881   gl_cv_warn_c__Wformat_security=no
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext \
14884     conftest$ac_exeext conftest.$ac_ext
14885   CFLAGS="$gl_save_compiler_FLAGS"
14886
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
14889 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
14890 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
14891   as_fn_append WARN_CFLAGS " -Wformat-security"
14892 fi
14893
14894
14895
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
14897 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
14898 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
14899   $as_echo_n "(cached) " >&6
14900 else
14901
14902   gl_save_compiler_FLAGS="$CFLAGS"
14903   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
14904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h.  */
14906
14907 int
14908 main ()
14909 {
14910
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_link "$LINENO"; then :
14916   gl_cv_warn_c__Wredundant_decls=yes
14917 else
14918   gl_cv_warn_c__Wredundant_decls=no
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext \
14921     conftest$ac_exeext conftest.$ac_ext
14922   CFLAGS="$gl_save_compiler_FLAGS"
14923
14924 fi
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
14926 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
14927 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
14928   as_fn_append WARN_CFLAGS " -Wredundant-decls"
14929 fi
14930
14931
14932
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
14934 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
14935 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
14936   $as_echo_n "(cached) " >&6
14937 else
14938
14939   gl_save_compiler_FLAGS="$CFLAGS"
14940   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
14941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h.  */
14943
14944 int
14945 main ()
14946 {
14947
14948   ;
14949   return 0;
14950 }
14951 _ACEOF
14952 if ac_fn_c_try_link "$LINENO"; then :
14953   gl_cv_warn_c__Wno_missing_field_initializers=yes
14954 else
14955   gl_cv_warn_c__Wno_missing_field_initializers=no
14956 fi
14957 rm -f core conftest.err conftest.$ac_objext \
14958     conftest$ac_exeext conftest.$ac_ext
14959   CFLAGS="$gl_save_compiler_FLAGS"
14960
14961 fi
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
14963 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
14964 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
14965   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
14966 fi
14967
14968
14969 fi
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14971 $as_echo_n "checking whether ln -s works... " >&6; }
14972 LN_S=$as_ln_s
14973 if test "$LN_S" = "ln -s"; then
14974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14975 $as_echo "yes" >&6; }
14976 else
14977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14978 $as_echo "no, using $LN_S" >&6; }
14979 fi
14980
14981
14982 cat >>confdefs.h <<_ACEOF
14983 #define SHELL "$SHELL"
14984 _ACEOF
14985
14986
14987
14988
14989
14990
14991
14992
14993 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14994         if test -n "$ac_tool_prefix"; then
14995   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14996 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14998 $as_echo_n "checking for $ac_word... " >&6; }
14999 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15000   $as_echo_n "(cached) " >&6
15001 else
15002   case $PKG_CONFIG in
15003   [\\/]* | ?:[\\/]*)
15004   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15005   ;;
15006   *)
15007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008 for as_dir in $PATH
15009 do
15010   IFS=$as_save_IFS
15011   test -z "$as_dir" && as_dir=.
15012     for ac_exec_ext in '' $ac_executable_extensions; do
15013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15014     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15016     break 2
15017   fi
15018 done
15019   done
15020 IFS=$as_save_IFS
15021
15022   ;;
15023 esac
15024 fi
15025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15026 if test -n "$PKG_CONFIG"; then
15027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15028 $as_echo "$PKG_CONFIG" >&6; }
15029 else
15030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 $as_echo "no" >&6; }
15032 fi
15033
15034
15035 fi
15036 if test -z "$ac_cv_path_PKG_CONFIG"; then
15037   ac_pt_PKG_CONFIG=$PKG_CONFIG
15038   # Extract the first word of "pkg-config", so it can be a program name with args.
15039 set dummy pkg-config; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15043   $as_echo_n "(cached) " >&6
15044 else
15045   case $ac_pt_PKG_CONFIG in
15046   [\\/]* | ?:[\\/]*)
15047   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15048   ;;
15049   *)
15050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15052 do
15053   IFS=$as_save_IFS
15054   test -z "$as_dir" && as_dir=.
15055     for ac_exec_ext in '' $ac_executable_extensions; do
15056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15059     break 2
15060   fi
15061 done
15062   done
15063 IFS=$as_save_IFS
15064
15065   ;;
15066 esac
15067 fi
15068 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15069 if test -n "$ac_pt_PKG_CONFIG"; then
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15071 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15072 else
15073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15075 fi
15076
15077   if test "x$ac_pt_PKG_CONFIG" = x; then
15078     PKG_CONFIG=""
15079   else
15080     case $cross_compiling:$ac_tool_warned in
15081 yes:)
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15084 ac_tool_warned=yes ;;
15085 esac
15086     PKG_CONFIG=$ac_pt_PKG_CONFIG
15087   fi
15088 else
15089   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15090 fi
15091
15092 fi
15093 if test -n "$PKG_CONFIG"; then
15094         _pkg_min_version=0.9.0
15095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15096 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15097         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15098                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15099 $as_echo "yes" >&6; }
15100         else
15101                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15103                 PKG_CONFIG=""
15104         fi
15105 fi
15106
15107 pkg_failed=no
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15109 $as_echo_n "checking for CHECK... " >&6; }
15110
15111 if test -n "$CHECK_CFLAGS"; then
15112     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15113  elif test -n "$PKG_CONFIG"; then
15114     if test -n "$PKG_CONFIG" && \
15115     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15116   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15117   ac_status=$?
15118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15119   test $ac_status = 0; }; then
15120   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15121                       test "x$?" != "x0" && pkg_failed=yes
15122 else
15123   pkg_failed=yes
15124 fi
15125  else
15126     pkg_failed=untried
15127 fi
15128 if test -n "$CHECK_LIBS"; then
15129     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15130  elif test -n "$PKG_CONFIG"; then
15131     if test -n "$PKG_CONFIG" && \
15132     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15133   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15134   ac_status=$?
15135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15136   test $ac_status = 0; }; then
15137   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15138                       test "x$?" != "x0" && pkg_failed=yes
15139 else
15140   pkg_failed=yes
15141 fi
15142  else
15143     pkg_failed=untried
15144 fi
15145
15146
15147
15148 if test $pkg_failed = yes; then
15149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150 $as_echo "no" >&6; }
15151
15152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15153         _pkg_short_errors_supported=yes
15154 else
15155         _pkg_short_errors_supported=no
15156 fi
15157         if test $_pkg_short_errors_supported = yes; then
15158                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15159         else
15160                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15161         fi
15162         # Put the nasty error message in config.log where it belongs
15163         echo "$CHECK_PKG_ERRORS" >&5
15164
15165         run_tests=no
15166 elif test $pkg_failed = untried; then
15167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168 $as_echo "no" >&6; }
15169         run_tests=no
15170 else
15171         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15172         CHECK_LIBS=$pkg_cv_CHECK_LIBS
15173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15174 $as_echo "yes" >&6; }
15175         run_tests=yes
15176 fi
15177  if test "x$run_tests" = xyes; then
15178   RUN_TESTS_TRUE=
15179   RUN_TESTS_FALSE='#'
15180 else
15181   RUN_TESTS_TRUE='#'
15182   RUN_TESTS_FALSE=
15183 fi
15184
15185
15186 # Check for various header files and associated libraries.
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15188 $as_echo_n "checking for library containing strerror... " >&6; }
15189 if ${ac_cv_search_strerror+:} false; then :
15190   $as_echo_n "(cached) " >&6
15191 else
15192   ac_func_search_save_LIBS=$LIBS
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h.  */
15195
15196 /* Override any GCC internal prototype to avoid an error.
15197    Use char because int might match the return type of a GCC
15198    builtin and then its argument prototype would still apply.  */
15199 #ifdef __cplusplus
15200 extern "C"
15201 #endif
15202 char strerror ();
15203 int
15204 main ()
15205 {
15206 return strerror ();
15207   ;
15208   return 0;
15209 }
15210 _ACEOF
15211 for ac_lib in '' cposix; do
15212   if test -z "$ac_lib"; then
15213     ac_res="none required"
15214   else
15215     ac_res=-l$ac_lib
15216     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15217   fi
15218   if ac_fn_c_try_link "$LINENO"; then :
15219   ac_cv_search_strerror=$ac_res
15220 fi
15221 rm -f core conftest.err conftest.$ac_objext \
15222     conftest$ac_exeext
15223   if ${ac_cv_search_strerror+:} false; then :
15224   break
15225 fi
15226 done
15227 if ${ac_cv_search_strerror+:} false; then :
15228
15229 else
15230   ac_cv_search_strerror=no
15231 fi
15232 rm conftest.$ac_ext
15233 LIBS=$ac_func_search_save_LIBS
15234 fi
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15236 $as_echo "$ac_cv_search_strerror" >&6; }
15237 ac_res=$ac_cv_search_strerror
15238 if test "$ac_res" != no; then :
15239   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15240
15241 fi
15242
15243
15244
15245
15246
15247
15248           LIBC_FATAL_STDERR_=1
15249   export LIBC_FATAL_STDERR_
15250
15251 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15252 if test "x$ac_cv_type_size_t" = xyes; then :
15253
15254 else
15255
15256 cat >>confdefs.h <<_ACEOF
15257 #define size_t unsigned int
15258 _ACEOF
15259
15260 fi
15261
15262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15263 # for constant arguments.  Useless!
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15265 $as_echo_n "checking for working alloca.h... " >&6; }
15266 if ${ac_cv_working_alloca_h+:} false; then :
15267   $as_echo_n "(cached) " >&6
15268 else
15269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h.  */
15271 #include <alloca.h>
15272 int
15273 main ()
15274 {
15275 char *p = (char *) alloca (2 * sizeof (int));
15276                           if (p) return 0;
15277   ;
15278   return 0;
15279 }
15280 _ACEOF
15281 if ac_fn_c_try_link "$LINENO"; then :
15282   ac_cv_working_alloca_h=yes
15283 else
15284   ac_cv_working_alloca_h=no
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext \
15287     conftest$ac_exeext conftest.$ac_ext
15288 fi
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15290 $as_echo "$ac_cv_working_alloca_h" >&6; }
15291 if test $ac_cv_working_alloca_h = yes; then
15292
15293 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15294
15295 fi
15296
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15298 $as_echo_n "checking for alloca... " >&6; }
15299 if ${ac_cv_func_alloca_works+:} false; then :
15300   $as_echo_n "(cached) " >&6
15301 else
15302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h.  */
15304 #ifdef __GNUC__
15305 # define alloca __builtin_alloca
15306 #else
15307 # ifdef _MSC_VER
15308 #  include <malloc.h>
15309 #  define alloca _alloca
15310 # else
15311 #  ifdef HAVE_ALLOCA_H
15312 #   include <alloca.h>
15313 #  else
15314 #   ifdef _AIX
15315  #pragma alloca
15316 #   else
15317 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15318 void *alloca (size_t);
15319 #    endif
15320 #   endif
15321 #  endif
15322 # endif
15323 #endif
15324
15325 int
15326 main ()
15327 {
15328 char *p = (char *) alloca (1);
15329                                     if (p) return 0;
15330   ;
15331   return 0;
15332 }
15333 _ACEOF
15334 if ac_fn_c_try_link "$LINENO"; then :
15335   ac_cv_func_alloca_works=yes
15336 else
15337   ac_cv_func_alloca_works=no
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext \
15340     conftest$ac_exeext conftest.$ac_ext
15341 fi
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15343 $as_echo "$ac_cv_func_alloca_works" >&6; }
15344
15345 if test $ac_cv_func_alloca_works = yes; then
15346
15347 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15348
15349 else
15350   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15351 # that cause trouble.  Some versions do not even contain alloca or
15352 # contain a buggy version.  If you still want to use their alloca,
15353 # use ar to extract alloca.o from them instead of compiling alloca.c.
15354
15355
15356
15357
15358
15359 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15360
15361 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15362
15363
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15365 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15366 if ${ac_cv_os_cray+:} false; then :
15367   $as_echo_n "(cached) " >&6
15368 else
15369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h.  */
15371 #if defined CRAY && ! defined CRAY2
15372 webecray
15373 #else
15374 wenotbecray
15375 #endif
15376
15377 _ACEOF
15378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15379   $EGREP "webecray" >/dev/null 2>&1; then :
15380   ac_cv_os_cray=yes
15381 else
15382   ac_cv_os_cray=no
15383 fi
15384 rm -f conftest*
15385
15386 fi
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15388 $as_echo "$ac_cv_os_cray" >&6; }
15389 if test $ac_cv_os_cray = yes; then
15390   for ac_func in _getb67 GETB67 getb67; do
15391     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15394
15395 cat >>confdefs.h <<_ACEOF
15396 #define CRAY_STACKSEG_END $ac_func
15397 _ACEOF
15398
15399     break
15400 fi
15401
15402   done
15403 fi
15404
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15406 $as_echo_n "checking stack direction for C alloca... " >&6; }
15407 if ${ac_cv_c_stack_direction+:} false; then :
15408   $as_echo_n "(cached) " >&6
15409 else
15410   if test "$cross_compiling" = yes; then :
15411   ac_cv_c_stack_direction=0
15412 else
15413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h.  */
15415 $ac_includes_default
15416 int
15417 find_stack_direction (int *addr, int depth)
15418 {
15419   int dir, dummy = 0;
15420   if (! addr)
15421     addr = &dummy;
15422   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15423   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15424   return dir + dummy;
15425 }
15426
15427 int
15428 main (int argc, char **argv)
15429 {
15430   return find_stack_direction (0, argc + !argv + 20) < 0;
15431 }
15432 _ACEOF
15433 if ac_fn_c_try_run "$LINENO"; then :
15434   ac_cv_c_stack_direction=1
15435 else
15436   ac_cv_c_stack_direction=-1
15437 fi
15438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15439   conftest.$ac_objext conftest.beam conftest.$ac_ext
15440 fi
15441
15442 fi
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15444 $as_echo "$ac_cv_c_stack_direction" >&6; }
15445 cat >>confdefs.h <<_ACEOF
15446 #define STACK_DIRECTION $ac_cv_c_stack_direction
15447 _ACEOF
15448
15449
15450 fi
15451
15452
15453
15454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15455 $as_echo_n "checking whether // is distinct from /... " >&6; }
15456 if ${gl_cv_double_slash_root+:} false; then :
15457   $as_echo_n "(cached) " >&6
15458 else
15459    if test x"$cross_compiling" = xyes ; then
15460         # When cross-compiling, there is no way to tell whether // is special
15461         # short of a list of hosts.  However, the only known hosts to date
15462         # that have a distinct // are Apollo DomainOS (too old to port to),
15463         # Cygwin, and z/OS.  If anyone knows of another system for which // has
15464         # special semantics and is distinct from /, please report it to
15465         # <bug-gnulib@gnu.org>.
15466         case $host in
15467           *-cygwin | i370-ibm-openedition)
15468             gl_cv_double_slash_root=yes ;;
15469           *)
15470             # Be optimistic and assume that / and // are the same when we
15471             # don't know.
15472             gl_cv_double_slash_root='unknown, assuming no' ;;
15473         esac
15474       else
15475         set x `ls -di / // 2>/dev/null`
15476         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15477           gl_cv_double_slash_root=no
15478         else
15479           gl_cv_double_slash_root=yes
15480         fi
15481       fi
15482 fi
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15484 $as_echo "$gl_cv_double_slash_root" >&6; }
15485   if test "$gl_cv_double_slash_root" = yes; then
15486
15487 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15488
15489   fi
15490
15491
15492
15493
15494
15495
15496   GNULIB_CHDIR=0;
15497   GNULIB_CHOWN=0;
15498   GNULIB_CLOSE=0;
15499   GNULIB_DUP=0;
15500   GNULIB_DUP2=0;
15501   GNULIB_DUP3=0;
15502   GNULIB_ENVIRON=0;
15503   GNULIB_EUIDACCESS=0;
15504   GNULIB_FACCESSAT=0;
15505   GNULIB_FCHDIR=0;
15506   GNULIB_FCHOWNAT=0;
15507   GNULIB_FDATASYNC=0;
15508   GNULIB_FSYNC=0;
15509   GNULIB_FTRUNCATE=0;
15510   GNULIB_GETCWD=0;
15511   GNULIB_GETDOMAINNAME=0;
15512   GNULIB_GETDTABLESIZE=0;
15513   GNULIB_GETGROUPS=0;
15514   GNULIB_GETHOSTNAME=0;
15515   GNULIB_GETLOGIN=0;
15516   GNULIB_GETLOGIN_R=0;
15517   GNULIB_GETPAGESIZE=0;
15518   GNULIB_GETUSERSHELL=0;
15519   GNULIB_GROUP_MEMBER=0;
15520   GNULIB_ISATTY=0;
15521   GNULIB_LCHOWN=0;
15522   GNULIB_LINK=0;
15523   GNULIB_LINKAT=0;
15524   GNULIB_LSEEK=0;
15525   GNULIB_PIPE=0;
15526   GNULIB_PIPE2=0;
15527   GNULIB_PREAD=0;
15528   GNULIB_PWRITE=0;
15529   GNULIB_READ=0;
15530   GNULIB_READLINK=0;
15531   GNULIB_READLINKAT=0;
15532   GNULIB_RMDIR=0;
15533   GNULIB_SETHOSTNAME=0;
15534   GNULIB_SLEEP=0;
15535   GNULIB_SYMLINK=0;
15536   GNULIB_SYMLINKAT=0;
15537   GNULIB_TTYNAME_R=0;
15538   GNULIB_UNISTD_H_NONBLOCKING=0;
15539   GNULIB_UNISTD_H_SIGPIPE=0;
15540   GNULIB_UNLINK=0;
15541   GNULIB_UNLINKAT=0;
15542   GNULIB_USLEEP=0;
15543   GNULIB_WRITE=0;
15544     HAVE_CHOWN=1;
15545   HAVE_DUP2=1;
15546   HAVE_DUP3=1;
15547   HAVE_EUIDACCESS=1;
15548   HAVE_FACCESSAT=1;
15549   HAVE_FCHDIR=1;
15550   HAVE_FCHOWNAT=1;
15551   HAVE_FDATASYNC=1;
15552   HAVE_FSYNC=1;
15553   HAVE_FTRUNCATE=1;
15554   HAVE_GETDTABLESIZE=1;
15555   HAVE_GETGROUPS=1;
15556   HAVE_GETHOSTNAME=1;
15557   HAVE_GETLOGIN=1;
15558   HAVE_GETPAGESIZE=1;
15559   HAVE_GROUP_MEMBER=1;
15560   HAVE_LCHOWN=1;
15561   HAVE_LINK=1;
15562   HAVE_LINKAT=1;
15563   HAVE_PIPE=1;
15564   HAVE_PIPE2=1;
15565   HAVE_PREAD=1;
15566   HAVE_PWRITE=1;
15567   HAVE_READLINK=1;
15568   HAVE_READLINKAT=1;
15569   HAVE_SETHOSTNAME=1;
15570   HAVE_SLEEP=1;
15571   HAVE_SYMLINK=1;
15572   HAVE_SYMLINKAT=1;
15573   HAVE_UNLINKAT=1;
15574   HAVE_USLEEP=1;
15575   HAVE_DECL_ENVIRON=1;
15576   HAVE_DECL_FCHDIR=1;
15577   HAVE_DECL_FDATASYNC=1;
15578   HAVE_DECL_GETDOMAINNAME=1;
15579   HAVE_DECL_GETLOGIN_R=1;
15580   HAVE_DECL_GETPAGESIZE=1;
15581   HAVE_DECL_GETUSERSHELL=1;
15582   HAVE_DECL_SETHOSTNAME=1;
15583   HAVE_DECL_TTYNAME_R=1;
15584   HAVE_OS_H=0;
15585   HAVE_SYS_PARAM_H=0;
15586   REPLACE_CHOWN=0;
15587   REPLACE_CLOSE=0;
15588   REPLACE_DUP=0;
15589   REPLACE_DUP2=0;
15590   REPLACE_FCHOWNAT=0;
15591   REPLACE_FTRUNCATE=0;
15592   REPLACE_GETCWD=0;
15593   REPLACE_GETDOMAINNAME=0;
15594   REPLACE_GETDTABLESIZE=0;
15595   REPLACE_GETLOGIN_R=0;
15596   REPLACE_GETGROUPS=0;
15597   REPLACE_GETPAGESIZE=0;
15598   REPLACE_ISATTY=0;
15599   REPLACE_LCHOWN=0;
15600   REPLACE_LINK=0;
15601   REPLACE_LINKAT=0;
15602   REPLACE_LSEEK=0;
15603   REPLACE_PREAD=0;
15604   REPLACE_PWRITE=0;
15605   REPLACE_READ=0;
15606   REPLACE_READLINK=0;
15607   REPLACE_RMDIR=0;
15608   REPLACE_SLEEP=0;
15609   REPLACE_SYMLINK=0;
15610   REPLACE_TTYNAME_R=0;
15611   REPLACE_UNLINK=0;
15612   REPLACE_UNLINKAT=0;
15613   REPLACE_USLEEP=0;
15614   REPLACE_WRITE=0;
15615   UNISTD_H_HAVE_WINSOCK2_H=0;
15616   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15617
15618
15619
15620
15621
15622
15623   for ac_header in $gl_header_list
15624 do :
15625   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15626 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15628   cat >>confdefs.h <<_ACEOF
15629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15630 _ACEOF
15631
15632 fi
15633
15634 done
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645   :
15646
15647
15648
15649
15650
15651
15652
15653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15654 $as_echo_n "checking if environ is properly declared... " >&6; }
15655   if ${gt_cv_var_environ_declaration+:} false; then :
15656   $as_echo_n "(cached) " >&6
15657 else
15658
15659     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h.  */
15661 #if HAVE_UNISTD_H
15662      #include <unistd.h>
15663      #endif
15664      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
15665      #include <stdlib.h>
15666
15667            extern struct { int foo; } environ;
15668 int
15669 main ()
15670 {
15671 environ.foo = 1;
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 if ac_fn_c_try_compile "$LINENO"; then :
15677   gt_cv_var_environ_declaration=no
15678 else
15679   gt_cv_var_environ_declaration=yes
15680 fi
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 fi
15683
15684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15685 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15686   if test $gt_cv_var_environ_declaration = yes; then
15687
15688 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15689
15690   fi
15691
15692
15693   if test $gt_cv_var_environ_declaration != yes; then
15694     HAVE_DECL_ENVIRON=0
15695   fi
15696
15697
15698
15699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15700 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15701 if ${gl_cv_have_include_next+:} false; then :
15702   $as_echo_n "(cached) " >&6
15703 else
15704   rm -rf conftestd1a conftestd1b conftestd2
15705      mkdir conftestd1a conftestd1b conftestd2
15706                                                   cat <<EOF > conftestd1a/conftest.h
15707 #define DEFINED_IN_CONFTESTD1
15708 #include_next <conftest.h>
15709 #ifdef DEFINED_IN_CONFTESTD2
15710 int foo;
15711 #else
15712 #error "include_next doesn't work"
15713 #endif
15714 EOF
15715      cat <<EOF > conftestd1b/conftest.h
15716 #define DEFINED_IN_CONFTESTD1
15717 #include <stdio.h>
15718 #include_next <conftest.h>
15719 #ifdef DEFINED_IN_CONFTESTD2
15720 int foo;
15721 #else
15722 #error "include_next doesn't work"
15723 #endif
15724 EOF
15725      cat <<EOF > conftestd2/conftest.h
15726 #ifndef DEFINED_IN_CONFTESTD1
15727 #error "include_next test doesn't work"
15728 #endif
15729 #define DEFINED_IN_CONFTESTD2
15730 EOF
15731      gl_save_CPPFLAGS="$CPPFLAGS"
15732      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15733      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h.  */
15735 #include <conftest.h>
15736 _ACEOF
15737 if ac_fn_c_try_compile "$LINENO"; then :
15738   gl_cv_have_include_next=yes
15739 else
15740   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15741         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h.  */
15743 #include <conftest.h>
15744 _ACEOF
15745 if ac_fn_c_try_compile "$LINENO"; then :
15746   gl_cv_have_include_next=buggy
15747 else
15748   gl_cv_have_include_next=no
15749 fi
15750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751
15752 fi
15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754      CPPFLAGS="$gl_save_CPPFLAGS"
15755      rm -rf conftestd1a conftestd1b conftestd2
15756
15757 fi
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15759 $as_echo "$gl_cv_have_include_next" >&6; }
15760   PRAGMA_SYSTEM_HEADER=
15761   if test $gl_cv_have_include_next = yes; then
15762     INCLUDE_NEXT=include_next
15763     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15764     if test -n "$GCC"; then
15765       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15766     fi
15767   else
15768     if test $gl_cv_have_include_next = buggy; then
15769       INCLUDE_NEXT=include
15770       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15771     else
15772       INCLUDE_NEXT=include
15773       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15774     fi
15775   fi
15776
15777
15778
15779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15780 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15781 if ${gl_cv_pragma_columns+:} false; then :
15782   $as_echo_n "(cached) " >&6
15783 else
15784        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h.  */
15786
15787 #ifdef __TANDEM
15788 choke me
15789 #endif
15790
15791 _ACEOF
15792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15793   $EGREP "choke me" >/dev/null 2>&1; then :
15794   gl_cv_pragma_columns=yes
15795 else
15796   gl_cv_pragma_columns=no
15797 fi
15798 rm -f conftest*
15799
15800
15801 fi
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15803 $as_echo "$gl_cv_pragma_columns" >&6; }
15804   if test $gl_cv_pragma_columns = yes; then
15805     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15806   else
15807     PRAGMA_COLUMNS=
15808   fi
15809
15810
15811
15812
15813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15814 $as_echo_n "checking for complete errno.h... " >&6; }
15815 if ${gl_cv_header_errno_h_complete+:} false; then :
15816   $as_echo_n "(cached) " >&6
15817 else
15818
15819     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h.  */
15821
15822 #include <errno.h>
15823 #if !defined ETXTBSY
15824 booboo
15825 #endif
15826 #if !defined ENOMSG
15827 booboo
15828 #endif
15829 #if !defined EIDRM
15830 booboo
15831 #endif
15832 #if !defined ENOLINK
15833 booboo
15834 #endif
15835 #if !defined EPROTO
15836 booboo
15837 #endif
15838 #if !defined EMULTIHOP
15839 booboo
15840 #endif
15841 #if !defined EBADMSG
15842 booboo
15843 #endif
15844 #if !defined EOVERFLOW
15845 booboo
15846 #endif
15847 #if !defined ENOTSUP
15848 booboo
15849 #endif
15850 #if !defined ENETRESET
15851 booboo
15852 #endif
15853 #if !defined ECONNABORTED
15854 booboo
15855 #endif
15856 #if !defined ESTALE
15857 booboo
15858 #endif
15859 #if !defined EDQUOT
15860 booboo
15861 #endif
15862 #if !defined ECANCELED
15863 booboo
15864 #endif
15865 #if !defined EOWNERDEAD
15866 booboo
15867 #endif
15868 #if !defined ENOTRECOVERABLE
15869 booboo
15870 #endif
15871 #if !defined EILSEQ
15872 booboo
15873 #endif
15874
15875 _ACEOF
15876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15877   $EGREP "booboo" >/dev/null 2>&1; then :
15878   gl_cv_header_errno_h_complete=no
15879 else
15880   gl_cv_header_errno_h_complete=yes
15881 fi
15882 rm -f conftest*
15883
15884
15885 fi
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15887 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15888   if test $gl_cv_header_errno_h_complete = yes; then
15889     ERRNO_H=''
15890   else
15891
15892
15893
15894
15895
15896
15897
15898
15899      if test $gl_cv_have_include_next = yes; then
15900        gl_cv_next_errno_h='<'errno.h'>'
15901      else
15902        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15903 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15904 if ${gl_cv_next_errno_h+:} false; then :
15905   $as_echo_n "(cached) " >&6
15906 else
15907
15908
15909
15910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h.  */
15912 #include <errno.h>
15913 _ACEOF
15914                 case "$host_os" in
15915     aix*) gl_absname_cpp="$ac_cpp -C" ;;
15916     *)    gl_absname_cpp="$ac_cpp" ;;
15917   esac
15918
15919   case "$host_os" in
15920     mingw*)
15921                                           gl_dirsep_regex='[/\\]'
15922       ;;
15923     *)
15924       gl_dirsep_regex='\/'
15925       ;;
15926   esac
15927       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15928   gl_header_literal_regex=`echo 'errno.h' \
15929                            | sed -e "$gl_make_literal_regex_sed"`
15930   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15931       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15932       s|^/[^/]|//&|
15933       p
15934       q
15935     }'
15936
15937         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15938   sed -n "$gl_absolute_header_sed"`
15939
15940            gl_header=$gl_cv_absolute_errno_h
15941            gl_cv_next_errno_h='"'$gl_header'"'
15942
15943
15944 fi
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15946 $as_echo "$gl_cv_next_errno_h" >&6; }
15947      fi
15948      NEXT_ERRNO_H=$gl_cv_next_errno_h
15949
15950      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15951        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15952        gl_next_as_first_directive='<'errno.h'>'
15953      else
15954        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15955        gl_next_as_first_directive=$gl_cv_next_errno_h
15956      fi
15957      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15958
15959
15960
15961
15962     ERRNO_H='errno.h'
15963   fi
15964
15965    if test -n "$ERRNO_H"; then
15966   GL_GENERATE_ERRNO_H_TRUE=
15967   GL_GENERATE_ERRNO_H_FALSE='#'
15968 else
15969   GL_GENERATE_ERRNO_H_TRUE='#'
15970   GL_GENERATE_ERRNO_H_FALSE=
15971 fi
15972
15973
15974   if test -n "$ERRNO_H"; then
15975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15976 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15977 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15978   $as_echo_n "(cached) " >&6
15979 else
15980
15981       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h.  */
15983
15984 #include <errno.h>
15985 #ifdef EMULTIHOP
15986 yes
15987 #endif
15988
15989 _ACEOF
15990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15991   $EGREP "yes" >/dev/null 2>&1; then :
15992   gl_cv_header_errno_h_EMULTIHOP=yes
15993 else
15994   gl_cv_header_errno_h_EMULTIHOP=no
15995 fi
15996 rm -f conftest*
15997
15998       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15999         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h.  */
16001
16002 #define _XOPEN_SOURCE_EXTENDED 1
16003 #include <errno.h>
16004 #ifdef EMULTIHOP
16005 yes
16006 #endif
16007
16008 _ACEOF
16009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16010   $EGREP "yes" >/dev/null 2>&1; then :
16011   gl_cv_header_errno_h_EMULTIHOP=hidden
16012 fi
16013 rm -f conftest*
16014
16015         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16016                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
16017 #define _XOPEN_SOURCE_EXTENDED 1
16018 #include <errno.h>
16019 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16020 #include <stdio.h>
16021 #include <stdlib.h>
16022 "; then :
16023
16024 fi
16025
16026         fi
16027       fi
16028
16029 fi
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16031 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16032     case $gl_cv_header_errno_h_EMULTIHOP in
16033       yes | no)
16034         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16035         ;;
16036       *)
16037         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16038         ;;
16039     esac
16040
16041
16042   fi
16043
16044
16045   if test -n "$ERRNO_H"; then
16046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16047 $as_echo_n "checking for ENOLINK value... " >&6; }
16048 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16049   $as_echo_n "(cached) " >&6
16050 else
16051
16052       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h.  */
16054
16055 #include <errno.h>
16056 #ifdef ENOLINK
16057 yes
16058 #endif
16059
16060 _ACEOF
16061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16062   $EGREP "yes" >/dev/null 2>&1; then :
16063   gl_cv_header_errno_h_ENOLINK=yes
16064 else
16065   gl_cv_header_errno_h_ENOLINK=no
16066 fi
16067 rm -f conftest*
16068
16069       if test $gl_cv_header_errno_h_ENOLINK = no; then
16070         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h.  */
16072
16073 #define _XOPEN_SOURCE_EXTENDED 1
16074 #include <errno.h>
16075 #ifdef ENOLINK
16076 yes
16077 #endif
16078
16079 _ACEOF
16080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16081   $EGREP "yes" >/dev/null 2>&1; then :
16082   gl_cv_header_errno_h_ENOLINK=hidden
16083 fi
16084 rm -f conftest*
16085
16086         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16087                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
16088 #define _XOPEN_SOURCE_EXTENDED 1
16089 #include <errno.h>
16090 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16091 #include <stdio.h>
16092 #include <stdlib.h>
16093 "; then :
16094
16095 fi
16096
16097         fi
16098       fi
16099
16100 fi
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16102 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16103     case $gl_cv_header_errno_h_ENOLINK in
16104       yes | no)
16105         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16106         ;;
16107       *)
16108         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16109         ;;
16110     esac
16111
16112
16113   fi
16114
16115
16116   if test -n "$ERRNO_H"; then
16117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16118 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16119 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16120   $as_echo_n "(cached) " >&6
16121 else
16122
16123       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h.  */
16125
16126 #include <errno.h>
16127 #ifdef EOVERFLOW
16128 yes
16129 #endif
16130
16131 _ACEOF
16132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16133   $EGREP "yes" >/dev/null 2>&1; then :
16134   gl_cv_header_errno_h_EOVERFLOW=yes
16135 else
16136   gl_cv_header_errno_h_EOVERFLOW=no
16137 fi
16138 rm -f conftest*
16139
16140       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16141         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h.  */
16143
16144 #define _XOPEN_SOURCE_EXTENDED 1
16145 #include <errno.h>
16146 #ifdef EOVERFLOW
16147 yes
16148 #endif
16149
16150 _ACEOF
16151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16152   $EGREP "yes" >/dev/null 2>&1; then :
16153   gl_cv_header_errno_h_EOVERFLOW=hidden
16154 fi
16155 rm -f conftest*
16156
16157         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16158                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
16159 #define _XOPEN_SOURCE_EXTENDED 1
16160 #include <errno.h>
16161 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16162 #include <stdio.h>
16163 #include <stdlib.h>
16164 "; then :
16165
16166 fi
16167
16168         fi
16169       fi
16170
16171 fi
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16173 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16174     case $gl_cv_header_errno_h_EOVERFLOW in
16175       yes | no)
16176         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16177         ;;
16178       *)
16179         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16180         ;;
16181     esac
16182
16183
16184   fi
16185
16186
16187 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16188 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16189   ac_have_decl=1
16190 else
16191   ac_have_decl=0
16192 fi
16193
16194 cat >>confdefs.h <<_ACEOF
16195 #define HAVE_DECL_STRERROR_R $ac_have_decl
16196 _ACEOF
16197
16198 for ac_func in strerror_r
16199 do :
16200   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16201 if test "x$ac_cv_func_strerror_r" = xyes; then :
16202   cat >>confdefs.h <<_ACEOF
16203 #define HAVE_STRERROR_R 1
16204 _ACEOF
16205
16206 fi
16207 done
16208
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16210 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16211 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16212   $as_echo_n "(cached) " >&6
16213 else
16214
16215     ac_cv_func_strerror_r_char_p=no
16216     if test $ac_cv_have_decl_strerror_r = yes; then
16217       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h.  */
16219 $ac_includes_default
16220 int
16221 main ()
16222 {
16223
16224           char buf[100];
16225           char x = *strerror_r (0, buf, sizeof buf);
16226           char *p = strerror_r (0, buf, sizeof buf);
16227           return !p || x;
16228
16229   ;
16230   return 0;
16231 }
16232 _ACEOF
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234   ac_cv_func_strerror_r_char_p=yes
16235 fi
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16237     else
16238       # strerror_r is not declared.  Choose between
16239       # systems that have relatively inaccessible declarations for the
16240       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
16241       # former has a strerror_r that returns char*, while the latter
16242       # has a strerror_r that returns `int'.
16243       # This test should segfault on the DEC system.
16244       if test "$cross_compiling" = yes; then :
16245   :
16246 else
16247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h.  */
16249 $ac_includes_default
16250         extern char *strerror_r ();
16251 int
16252 main ()
16253 {
16254 char buf[100];
16255           char x = *strerror_r (0, buf, sizeof buf);
16256           return ! isalpha (x);
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 if ac_fn_c_try_run "$LINENO"; then :
16262   ac_cv_func_strerror_r_char_p=yes
16263 fi
16264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16265   conftest.$ac_objext conftest.beam conftest.$ac_ext
16266 fi
16267
16268     fi
16269
16270 fi
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16272 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16273 if test $ac_cv_func_strerror_r_char_p = yes; then
16274
16275 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16276
16277 fi
16278
16279
16280   XGETTEXT_EXTRA_OPTIONS=
16281
16282
16283
16284
16285
16286   GNULIB_FCNTL=0;
16287   GNULIB_NONBLOCKING=0;
16288   GNULIB_OPEN=0;
16289   GNULIB_OPENAT=0;
16290     HAVE_FCNTL=1;
16291   HAVE_OPENAT=1;
16292   REPLACE_FCNTL=0;
16293   REPLACE_OPEN=0;
16294   REPLACE_OPENAT=0;
16295
16296
16297
16298
16299
16300   for ac_func in $gl_func_list
16301 do :
16302   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16305   cat >>confdefs.h <<_ACEOF
16306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16307 _ACEOF
16308
16309 fi
16310 done
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320   :
16321
16322
16323
16324
16325
16326
16327   :
16328
16329
16330
16331
16332
16333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
16334 $as_echo_n "checking for working fcntl.h... " >&6; }
16335 if ${gl_cv_header_working_fcntl_h+:} false; then :
16336   $as_echo_n "(cached) " >&6
16337 else
16338   if test "$cross_compiling" = yes; then :
16339   gl_cv_header_working_fcntl_h=cross-compiling
16340 else
16341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h.  */
16343 #include <sys/types.h>
16344            #include <sys/stat.h>
16345            #if HAVE_UNISTD_H
16346            # include <unistd.h>
16347            #else /* on Windows with MSVC */
16348            # include <io.h>
16349            # include <stdlib.h>
16350            # defined sleep(n) _sleep ((n) * 1000)
16351            #endif
16352            #include <fcntl.h>
16353            #ifndef O_NOATIME
16354             #define O_NOATIME 0
16355            #endif
16356            #ifndef O_NOFOLLOW
16357             #define O_NOFOLLOW 0
16358            #endif
16359            static int const constants[] =
16360             {
16361               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
16362               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
16363             };
16364
16365 int
16366 main ()
16367 {
16368
16369             int result = !constants;
16370             #if HAVE_SYMLINK
16371             {
16372               static char const sym[] = "conftest.sym";
16373               if (symlink ("/dev/null", sym) != 0)
16374                 result |= 2;
16375               else
16376                 {
16377                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
16378                   if (fd >= 0)
16379                     {
16380                       close (fd);
16381                       result |= 4;
16382                     }
16383                 }
16384               if (unlink (sym) != 0 || symlink (".", sym) != 0)
16385                 result |= 2;
16386               else
16387                 {
16388                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
16389                   if (fd >= 0)
16390                     {
16391                       close (fd);
16392                       result |= 4;
16393                     }
16394                 }
16395               unlink (sym);
16396             }
16397             #endif
16398             {
16399               static char const file[] = "confdefs.h";
16400               int fd = open (file, O_RDONLY | O_NOATIME);
16401               if (fd < 0)
16402                 result |= 8;
16403               else
16404                 {
16405                   struct stat st0;
16406                   if (fstat (fd, &st0) != 0)
16407                     result |= 16;
16408                   else
16409                     {
16410                       char c;
16411                       sleep (1);
16412                       if (read (fd, &c, 1) != 1)
16413                         result |= 24;
16414                       else
16415                         {
16416                           if (close (fd) != 0)
16417                             result |= 32;
16418                           else
16419                             {
16420                               struct stat st1;
16421                               if (stat (file, &st1) != 0)
16422                                 result |= 40;
16423                               else
16424                                 if (st0.st_atime != st1.st_atime)
16425                                   result |= 64;
16426                             }
16427                         }
16428                     }
16429                 }
16430             }
16431             return result;
16432   ;
16433   return 0;
16434 }
16435 _ACEOF
16436 if ac_fn_c_try_run "$LINENO"; then :
16437   gl_cv_header_working_fcntl_h=yes
16438 else
16439   case $? in #(
16440         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
16441         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
16442         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
16443          *) gl_cv_header_working_fcntl_h='no';;
16444         esac
16445 fi
16446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16447   conftest.$ac_objext conftest.beam conftest.$ac_ext
16448 fi
16449
16450 fi
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
16452 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
16453
16454   case $gl_cv_header_working_fcntl_h in #(
16455   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
16456   *) ac_val=1;;
16457   esac
16458
16459 cat >>confdefs.h <<_ACEOF
16460 #define HAVE_WORKING_O_NOATIME $ac_val
16461 _ACEOF
16462
16463
16464   case $gl_cv_header_working_fcntl_h in #(
16465   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
16466   *) ac_val=1;;
16467   esac
16468
16469 cat >>confdefs.h <<_ACEOF
16470 #define HAVE_WORKING_O_NOFOLLOW $ac_val
16471 _ACEOF
16472
16473
16474 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16475 if test "x$ac_cv_type_pid_t" = xyes; then :
16476
16477 else
16478
16479 cat >>confdefs.h <<_ACEOF
16480 #define pid_t int
16481 _ACEOF
16482
16483 fi
16484
16485 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16486 if test "x$ac_cv_type_mode_t" = xyes; then :
16487
16488 else
16489
16490 cat >>confdefs.h <<_ACEOF
16491 #define mode_t int
16492 _ACEOF
16493
16494 fi
16495
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16497 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16498 if ${ac_cv_c_restrict+:} false; then :
16499   $as_echo_n "(cached) " >&6
16500 else
16501   ac_cv_c_restrict=no
16502    # The order here caters to the fact that C++ does not require restrict.
16503    for ac_kw in __restrict __restrict__ _Restrict restrict; do
16504      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h.  */
16506 typedef int * int_ptr;
16507         int foo (int_ptr $ac_kw ip) {
16508         return ip[0];
16509        }
16510 int
16511 main ()
16512 {
16513 int s[1];
16514         int * $ac_kw t = s;
16515         t[0] = 0;
16516         return foo(t)
16517   ;
16518   return 0;
16519 }
16520 _ACEOF
16521 if ac_fn_c_try_compile "$LINENO"; then :
16522   ac_cv_c_restrict=$ac_kw
16523 fi
16524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525      test "$ac_cv_c_restrict" != no && break
16526    done
16527
16528 fi
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16530 $as_echo "$ac_cv_c_restrict" >&6; }
16531
16532  case $ac_cv_c_restrict in
16533    restrict) ;;
16534    no) $as_echo "#define restrict /**/" >>confdefs.h
16535  ;;
16536    *)  cat >>confdefs.h <<_ACEOF
16537 #define restrict $ac_cv_c_restrict
16538 _ACEOF
16539  ;;
16540  esac
16541
16542
16543   GNULIB_GETTIMEOFDAY=0;
16544     HAVE_GETTIMEOFDAY=1;
16545   HAVE_STRUCT_TIMEVAL=1;
16546   HAVE_SYS_TIME_H=1;
16547   REPLACE_GETTIMEOFDAY=0;
16548   REPLACE_STRUCT_TIMEVAL=0;
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564   :
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576   :
16577
16578
16579
16580
16581
16582
16583
16584
16585      if test $gl_cv_have_include_next = yes; then
16586        gl_cv_next_sys_time_h='<'sys/time.h'>'
16587      else
16588        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
16589 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
16590 if ${gl_cv_next_sys_time_h+:} false; then :
16591   $as_echo_n "(cached) " >&6
16592 else
16593
16594              if test $ac_cv_header_sys_time_h = yes; then
16595
16596
16597
16598
16599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h.  */
16601 #include <sys/time.h>
16602 _ACEOF
16603                 case "$host_os" in
16604     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16605     *)    gl_absname_cpp="$ac_cpp" ;;
16606   esac
16607
16608   case "$host_os" in
16609     mingw*)
16610                                           gl_dirsep_regex='[/\\]'
16611       ;;
16612     *)
16613       gl_dirsep_regex='\/'
16614       ;;
16615   esac
16616       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16617   gl_header_literal_regex=`echo 'sys/time.h' \
16618                            | sed -e "$gl_make_literal_regex_sed"`
16619   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16620       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16621       s|^/[^/]|//&|
16622       p
16623       q
16624     }'
16625
16626         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16627   sed -n "$gl_absolute_header_sed"`
16628
16629            gl_header=$gl_cv_absolute_sys_time_h
16630            gl_cv_next_sys_time_h='"'$gl_header'"'
16631           else
16632                gl_cv_next_sys_time_h='<'sys/time.h'>'
16633              fi
16634
16635
16636 fi
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
16638 $as_echo "$gl_cv_next_sys_time_h" >&6; }
16639      fi
16640      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
16641
16642      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16643        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16644        gl_next_as_first_directive='<'sys/time.h'>'
16645      else
16646        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16647        gl_next_as_first_directive=$gl_cv_next_sys_time_h
16648      fi
16649      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
16650
16651
16652
16653
16654
16655   if test $ac_cv_header_sys_time_h != yes; then
16656     HAVE_SYS_TIME_H=0
16657   fi
16658
16659
16660
16661
16662
16663   :
16664
16665
16666
16667
16668
16669   if test $ac_cv_header_sys_socket_h != yes; then
16670                     for ac_header in winsock2.h
16671 do :
16672   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16673 if test "x$ac_cv_header_winsock2_h" = xyes; then :
16674   cat >>confdefs.h <<_ACEOF
16675 #define HAVE_WINSOCK2_H 1
16676 _ACEOF
16677
16678 fi
16679
16680 done
16681
16682   fi
16683   if test "$ac_cv_header_winsock2_h" = yes; then
16684     HAVE_WINSOCK2_H=1
16685     UNISTD_H_HAVE_WINSOCK2_H=1
16686     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
16687   else
16688     HAVE_WINSOCK2_H=0
16689   fi
16690
16691
16692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
16693 $as_echo_n "checking for struct timeval... " >&6; }
16694 if ${gl_cv_sys_struct_timeval+:} false; then :
16695   $as_echo_n "(cached) " >&6
16696 else
16697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h.  */
16699 #if HAVE_SYS_TIME_H
16700              #include <sys/time.h>
16701             #endif
16702             #include <time.h>
16703             #if HAVE_WINSOCK2_H
16704             # include <winsock2.h>
16705             #endif
16706
16707 int
16708 main ()
16709 {
16710 static struct timeval x; x.tv_sec = x.tv_usec;
16711   ;
16712   return 0;
16713 }
16714 _ACEOF
16715 if ac_fn_c_try_compile "$LINENO"; then :
16716   gl_cv_sys_struct_timeval=yes
16717 else
16718   gl_cv_sys_struct_timeval=no
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721
16722 fi
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
16724 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
16725   if test $gl_cv_sys_struct_timeval != yes; then
16726     HAVE_STRUCT_TIMEVAL=0
16727   else
16728                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
16729 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
16730 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
16731   $as_echo_n "(cached) " >&6
16732 else
16733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h.  */
16735 #if HAVE_SYS_TIME_H
16736                #include <sys/time.h>
16737               #endif
16738               #include <time.h>
16739               #if HAVE_WINSOCK2_H
16740               # include <winsock2.h>
16741               #endif
16742
16743 int
16744 main ()
16745 {
16746 static struct timeval x;
16747               typedef int verify_tv_sec_type[
16748                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
16749               ];
16750
16751   ;
16752   return 0;
16753 }
16754 _ACEOF
16755 if ac_fn_c_try_compile "$LINENO"; then :
16756   gl_cv_sys_struct_timeval_tv_sec=yes
16757 else
16758   gl_cv_sys_struct_timeval_tv_sec=no
16759 fi
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761
16762 fi
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
16764 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
16765     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
16766       REPLACE_STRUCT_TIMEVAL=1
16767     fi
16768   fi
16769
16770
16771     for gl_func in gettimeofday; do
16772     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16774 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16775 if eval \${$as_gl_Symbol+:} false; then :
16776   $as_echo_n "(cached) " >&6
16777 else
16778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h.  */
16780
16781 #if HAVE_SYS_TIME_H
16782 # include <sys/time.h>
16783 #endif
16784 #include <time.h>
16785
16786 int
16787 main ()
16788 {
16789 #undef $gl_func
16790   (void) $gl_func;
16791   ;
16792   return 0;
16793 }
16794 _ACEOF
16795 if ac_fn_c_try_compile "$LINENO"; then :
16796   eval "$as_gl_Symbol=yes"
16797 else
16798   eval "$as_gl_Symbol=no"
16799 fi
16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 fi
16802 eval ac_res=\$$as_gl_Symbol
16803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16804 $as_echo "$ac_res" >&6; }
16805     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16806   cat >>confdefs.h <<_ACEOF
16807 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16808 _ACEOF
16809
16810                      eval ac_cv_have_decl_$gl_func=yes
16811 fi
16812       done
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825   case "$host_os" in
16826     mingw*)
16827                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16828 $as_echo_n "checking for 64-bit off_t... " >&6; }
16829 if ${gl_cv_type_off_t_64+:} false; then :
16830   $as_echo_n "(cached) " >&6
16831 else
16832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h.  */
16834 #include <sys/types.h>
16835                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
16836
16837 int
16838 main ()
16839 {
16840
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 if ac_fn_c_try_compile "$LINENO"; then :
16846   gl_cv_type_off_t_64=yes
16847 else
16848   gl_cv_type_off_t_64=no
16849 fi
16850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851
16852 fi
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
16854 $as_echo "$gl_cv_type_off_t_64" >&6; }
16855       if test $gl_cv_type_off_t_64 = no; then
16856         WINDOWS_64_BIT_OFF_T=1
16857       else
16858         WINDOWS_64_BIT_OFF_T=0
16859       fi
16860                   WINDOWS_64_BIT_ST_SIZE=1
16861       ;;
16862     *)
16863                                                       WINDOWS_64_BIT_OFF_T=0
16864       WINDOWS_64_BIT_ST_SIZE=0
16865       ;;
16866   esac
16867
16868
16869       if test "X$prefix" = "XNONE"; then
16870     acl_final_prefix="$ac_default_prefix"
16871   else
16872     acl_final_prefix="$prefix"
16873   fi
16874   if test "X$exec_prefix" = "XNONE"; then
16875     acl_final_exec_prefix='${prefix}'
16876   else
16877     acl_final_exec_prefix="$exec_prefix"
16878   fi
16879   acl_save_prefix="$prefix"
16880   prefix="$acl_final_prefix"
16881   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16882   prefix="$acl_save_prefix"
16883
16884
16885
16886 # Check whether --with-gnu-ld was given.
16887 if test "${with_gnu_ld+set}" = set; then :
16888   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16889 else
16890   with_gnu_ld=no
16891 fi
16892
16893 # Prepare PATH_SEPARATOR.
16894 # The user is always right.
16895 if test "${PATH_SEPARATOR+set}" != set; then
16896   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16897   # contains only /bin. Note that ksh looks also at the FPATH variable,
16898   # so we have to set that as well for the test.
16899   PATH_SEPARATOR=:
16900   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16901     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16902            || PATH_SEPARATOR=';'
16903        }
16904 fi
16905
16906 ac_prog=ld
16907 if test "$GCC" = yes; then
16908   # Check if gcc -print-prog-name=ld gives a path.
16909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16910 $as_echo_n "checking for ld used by $CC... " >&6; }
16911   case $host in
16912   *-*-mingw*)
16913     # gcc leaves a trailing carriage return which upsets mingw
16914     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16915   *)
16916     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16917   esac
16918   case $ac_prog in
16919     # Accept absolute paths.
16920     [\\/]* | ?:[\\/]*)
16921       re_direlt='/[^/][^/]*/\.\./'
16922       # Canonicalize the pathname of ld
16923       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16924       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16925         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16926       done
16927       test -z "$LD" && LD="$ac_prog"
16928       ;;
16929   "")
16930     # If it fails, then pretend we aren't using GCC.
16931     ac_prog=ld
16932     ;;
16933   *)
16934     # If it is relative, then search for the first ld in PATH.
16935     with_gnu_ld=unknown
16936     ;;
16937   esac
16938 elif test "$with_gnu_ld" = yes; then
16939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16940 $as_echo_n "checking for GNU ld... " >&6; }
16941 else
16942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16943 $as_echo_n "checking for non-GNU ld... " >&6; }
16944 fi
16945 if ${acl_cv_path_LD+:} false; then :
16946   $as_echo_n "(cached) " >&6
16947 else
16948   if test -z "$LD"; then
16949   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16950   for ac_dir in $PATH; do
16951     IFS="$acl_save_ifs"
16952     test -z "$ac_dir" && ac_dir=.
16953     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16954       acl_cv_path_LD="$ac_dir/$ac_prog"
16955       # Check to see if the program is GNU ld.  I'd rather use --version,
16956       # but apparently some variants of GNU ld only accept -v.
16957       # Break only if it was the GNU/non-GNU ld that we prefer.
16958       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16959       *GNU* | *'with BFD'*)
16960         test "$with_gnu_ld" != no && break
16961         ;;
16962       *)
16963         test "$with_gnu_ld" != yes && break
16964         ;;
16965       esac
16966     fi
16967   done
16968   IFS="$acl_save_ifs"
16969 else
16970   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16971 fi
16972 fi
16973
16974 LD="$acl_cv_path_LD"
16975 if test -n "$LD"; then
16976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16977 $as_echo "$LD" >&6; }
16978 else
16979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16980 $as_echo "no" >&6; }
16981 fi
16982 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16984 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16985 if ${acl_cv_prog_gnu_ld+:} false; then :
16986   $as_echo_n "(cached) " >&6
16987 else
16988   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16989 case `$LD -v 2>&1 </dev/null` in
16990 *GNU* | *'with BFD'*)
16991   acl_cv_prog_gnu_ld=yes
16992   ;;
16993 *)
16994   acl_cv_prog_gnu_ld=no
16995   ;;
16996 esac
16997 fi
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16999 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17000 with_gnu_ld=$acl_cv_prog_gnu_ld
17001
17002
17003
17004
17005                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17006 $as_echo_n "checking for shared library run path origin... " >&6; }
17007 if ${acl_cv_rpath+:} false; then :
17008   $as_echo_n "(cached) " >&6
17009 else
17010
17011     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17012     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17013     . ./conftest.sh
17014     rm -f ./conftest.sh
17015     acl_cv_rpath=done
17016
17017 fi
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17019 $as_echo "$acl_cv_rpath" >&6; }
17020   wl="$acl_cv_wl"
17021   acl_libext="$acl_cv_libext"
17022   acl_shlibext="$acl_cv_shlibext"
17023   acl_libname_spec="$acl_cv_libname_spec"
17024   acl_library_names_spec="$acl_cv_library_names_spec"
17025   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17026   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17027   acl_hardcode_direct="$acl_cv_hardcode_direct"
17028   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17029     # Check whether --enable-rpath was given.
17030 if test "${enable_rpath+set}" = set; then :
17031   enableval=$enable_rpath; :
17032 else
17033   enable_rpath=yes
17034 fi
17035
17036
17037
17038
17039   acl_libdirstem=lib
17040   acl_libdirstem2=
17041   case "$host_os" in
17042     solaris*)
17043                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
17044 $as_echo_n "checking for 64-bit host... " >&6; }
17045 if ${gl_cv_solaris_64bit+:} false; then :
17046   $as_echo_n "(cached) " >&6
17047 else
17048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h.  */
17050
17051 #ifdef _LP64
17052 sixtyfour bits
17053 #endif
17054
17055 _ACEOF
17056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17057   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
17058   gl_cv_solaris_64bit=yes
17059 else
17060   gl_cv_solaris_64bit=no
17061 fi
17062 rm -f conftest*
17063
17064
17065 fi
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
17067 $as_echo "$gl_cv_solaris_64bit" >&6; }
17068       if test $gl_cv_solaris_64bit = yes; then
17069         acl_libdirstem=lib/64
17070         case "$host_cpu" in
17071           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
17072           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
17073         esac
17074       fi
17075       ;;
17076     *)
17077       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17078       if test -n "$searchpath"; then
17079         acl_save_IFS="${IFS=    }"; IFS=":"
17080         for searchdir in $searchpath; do
17081           if test -d "$searchdir"; then
17082             case "$searchdir" in
17083               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17084               */../ | */.. )
17085                 # Better ignore directories of this form. They are misleading.
17086                 ;;
17087               *) searchdir=`cd "$searchdir" && pwd`
17088                  case "$searchdir" in
17089                    */lib64 ) acl_libdirstem=lib64 ;;
17090                  esac ;;
17091             esac
17092           fi
17093         done
17094         IFS="$acl_save_IFS"
17095       fi
17096       ;;
17097   esac
17098   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17099
17100
17101
17102   gl_threads_api=none
17103   LIBTHREAD=
17104   LTLIBTHREAD=
17105   LIBMULTITHREAD=
17106   LTLIBMULTITHREAD=
17107   if test "$gl_use_threads" != no; then
17108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
17109 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
17110 if ${gl_cv_have_weak+:} false; then :
17111   $as_echo_n "(cached) " >&6
17112 else
17113   gl_cv_have_weak=no
17114               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h.  */
17116 extern void xyzzy ();
17117 #pragma weak xyzzy
17118 int
17119 main ()
17120 {
17121 xyzzy();
17122   ;
17123   return 0;
17124 }
17125 _ACEOF
17126 if ac_fn_c_try_link "$LINENO"; then :
17127   gl_cv_have_weak=maybe
17128 fi
17129 rm -f core conftest.err conftest.$ac_objext \
17130     conftest$ac_exeext conftest.$ac_ext
17131        if test $gl_cv_have_weak = maybe; then
17132                            if test "$cross_compiling" = yes; then :
17133                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h.  */
17135 #ifdef __ELF__
17136                Extensible Linking Format
17137                #endif
17138
17139 _ACEOF
17140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17141   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
17142   gl_cv_have_weak="guessing yes"
17143 else
17144   gl_cv_have_weak="guessing no"
17145 fi
17146 rm -f conftest*
17147
17148
17149 else
17150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h.  */
17152
17153 #include <stdio.h>
17154 #pragma weak fputs
17155 int main ()
17156 {
17157   return (fputs == NULL);
17158 }
17159 _ACEOF
17160 if ac_fn_c_try_run "$LINENO"; then :
17161   gl_cv_have_weak=yes
17162 else
17163   gl_cv_have_weak=no
17164 fi
17165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17166   conftest.$ac_objext conftest.beam conftest.$ac_ext
17167 fi
17168
17169        fi
17170
17171 fi
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
17173 $as_echo "$gl_cv_have_weak" >&6; }
17174     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
17175       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
17176       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
17177       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17178 if test "x$ac_cv_header_pthread_h" = xyes; then :
17179   gl_have_pthread_h=yes
17180 else
17181   gl_have_pthread_h=no
17182 fi
17183
17184
17185       if test "$gl_have_pthread_h" = yes; then
17186         # Other possible tests:
17187         #   -lpthreads (FSU threads, PCthreads)
17188         #   -lgthreads
17189         gl_have_pthread=
17190         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
17191         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
17192         # the second one only in libpthread, and lock.c needs it.
17193         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h.  */
17195 #include <pthread.h>
17196 int
17197 main ()
17198 {
17199 pthread_mutex_lock((pthread_mutex_t*)0);
17200                pthread_mutexattr_init((pthread_mutexattr_t*)0);
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 if ac_fn_c_try_link "$LINENO"; then :
17206   gl_have_pthread=yes
17207 fi
17208 rm -f core conftest.err conftest.$ac_objext \
17209     conftest$ac_exeext conftest.$ac_ext
17210         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
17211         # since it is defined as a macro on OSF/1.)
17212         if test -n "$gl_have_pthread"; then
17213           # The program links fine without libpthread. But it may actually
17214           # need to link with libpthread in order to create multiple threads.
17215           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17216 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17217 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17218   $as_echo_n "(cached) " >&6
17219 else
17220   ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-lpthread  $LIBS"
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h.  */
17224
17225 /* Override any GCC internal prototype to avoid an error.
17226    Use char because int might match the return type of a GCC
17227    builtin and then its argument prototype would still apply.  */
17228 #ifdef __cplusplus
17229 extern "C"
17230 #endif
17231 char pthread_kill ();
17232 int
17233 main ()
17234 {
17235 return pthread_kill ();
17236   ;
17237   return 0;
17238 }
17239 _ACEOF
17240 if ac_fn_c_try_link "$LINENO"; then :
17241   ac_cv_lib_pthread_pthread_kill=yes
17242 else
17243   ac_cv_lib_pthread_pthread_kill=no
17244 fi
17245 rm -f core conftest.err conftest.$ac_objext \
17246     conftest$ac_exeext conftest.$ac_ext
17247 LIBS=$ac_check_lib_save_LIBS
17248 fi
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17250 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17251 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17252   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17253              # On Solaris and HP-UX, most pthread functions exist also in libc.
17254              # Therefore pthread_in_use() needs to actually try to create a
17255              # thread: pthread_create from libc will fail, whereas
17256              # pthread_create will actually create a thread.
17257              case "$host_os" in
17258                solaris* | hpux*)
17259
17260 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
17261
17262              esac
17263
17264 fi
17265
17266         else
17267           # Some library is needed. Try libpthread and libc_r.
17268           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17269 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17270 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17271   $as_echo_n "(cached) " >&6
17272 else
17273   ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-lpthread  $LIBS"
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h.  */
17277
17278 /* Override any GCC internal prototype to avoid an error.
17279    Use char because int might match the return type of a GCC
17280    builtin and then its argument prototype would still apply.  */
17281 #ifdef __cplusplus
17282 extern "C"
17283 #endif
17284 char pthread_kill ();
17285 int
17286 main ()
17287 {
17288 return pthread_kill ();
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 if ac_fn_c_try_link "$LINENO"; then :
17294   ac_cv_lib_pthread_pthread_kill=yes
17295 else
17296   ac_cv_lib_pthread_pthread_kill=no
17297 fi
17298 rm -f core conftest.err conftest.$ac_objext \
17299     conftest$ac_exeext conftest.$ac_ext
17300 LIBS=$ac_check_lib_save_LIBS
17301 fi
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17303 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17304 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17305   gl_have_pthread=yes
17306              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17307              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17308 fi
17309
17310           if test -z "$gl_have_pthread"; then
17311             # For FreeBSD 4.
17312             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17313 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17314 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17315   $as_echo_n "(cached) " >&6
17316 else
17317   ac_check_lib_save_LIBS=$LIBS
17318 LIBS="-lc_r  $LIBS"
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h.  */
17321
17322 /* Override any GCC internal prototype to avoid an error.
17323    Use char because int might match the return type of a GCC
17324    builtin and then its argument prototype would still apply.  */
17325 #ifdef __cplusplus
17326 extern "C"
17327 #endif
17328 char pthread_kill ();
17329 int
17330 main ()
17331 {
17332 return pthread_kill ();
17333   ;
17334   return 0;
17335 }
17336 _ACEOF
17337 if ac_fn_c_try_link "$LINENO"; then :
17338   ac_cv_lib_c_r_pthread_kill=yes
17339 else
17340   ac_cv_lib_c_r_pthread_kill=no
17341 fi
17342 rm -f core conftest.err conftest.$ac_objext \
17343     conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17345 fi
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17347 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17348 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17349   gl_have_pthread=yes
17350                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17351                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17352 fi
17353
17354           fi
17355         fi
17356         if test -n "$gl_have_pthread"; then
17357           gl_threads_api=posix
17358
17359 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17360
17361           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17362             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17363
17364 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17365
17366               LIBTHREAD=
17367               LTLIBTHREAD=
17368             fi
17369           fi
17370         fi
17371       fi
17372     fi
17373     if test -z "$gl_have_pthread"; then
17374       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17375         gl_have_solaristhread=
17376         gl_save_LIBS="$LIBS"
17377         LIBS="$LIBS -lthread"
17378         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h.  */
17380
17381 #include <thread.h>
17382 #include <synch.h>
17383
17384 int
17385 main ()
17386 {
17387 thr_self();
17388   ;
17389   return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_link "$LINENO"; then :
17393   gl_have_solaristhread=yes
17394 fi
17395 rm -f core conftest.err conftest.$ac_objext \
17396     conftest$ac_exeext conftest.$ac_ext
17397         LIBS="$gl_save_LIBS"
17398         if test -n "$gl_have_solaristhread"; then
17399           gl_threads_api=solaris
17400           LIBTHREAD=-lthread
17401           LTLIBTHREAD=-lthread
17402           LIBMULTITHREAD="$LIBTHREAD"
17403           LTLIBMULTITHREAD="$LTLIBTHREAD"
17404
17405 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17406
17407           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17408
17409 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17410
17411             LIBTHREAD=
17412             LTLIBTHREAD=
17413           fi
17414         fi
17415       fi
17416     fi
17417     if test "$gl_use_threads" = pth; then
17418       gl_save_CPPFLAGS="$CPPFLAGS"
17419
17420
17421
17422
17423
17424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17425 $as_echo_n "checking how to link with libpth... " >&6; }
17426 if ${ac_cv_libpth_libs+:} false; then :
17427   $as_echo_n "(cached) " >&6
17428 else
17429
17430
17431
17432
17433
17434
17435
17436
17437     use_additional=yes
17438
17439   acl_save_prefix="$prefix"
17440   prefix="$acl_final_prefix"
17441   acl_save_exec_prefix="$exec_prefix"
17442   exec_prefix="$acl_final_exec_prefix"
17443
17444     eval additional_includedir=\"$includedir\"
17445     eval additional_libdir=\"$libdir\"
17446
17447   exec_prefix="$acl_save_exec_prefix"
17448   prefix="$acl_save_prefix"
17449
17450
17451 # Check whether --with-libpth-prefix was given.
17452 if test "${with_libpth_prefix+set}" = set; then :
17453   withval=$with_libpth_prefix;
17454     if test "X$withval" = "Xno"; then
17455       use_additional=no
17456     else
17457       if test "X$withval" = "X"; then
17458
17459   acl_save_prefix="$prefix"
17460   prefix="$acl_final_prefix"
17461   acl_save_exec_prefix="$exec_prefix"
17462   exec_prefix="$acl_final_exec_prefix"
17463
17464           eval additional_includedir=\"$includedir\"
17465           eval additional_libdir=\"$libdir\"
17466
17467   exec_prefix="$acl_save_exec_prefix"
17468   prefix="$acl_save_prefix"
17469
17470       else
17471         additional_includedir="$withval/include"
17472         additional_libdir="$withval/$acl_libdirstem"
17473         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17474            && ! test -d "$withval/$acl_libdirstem"; then
17475           additional_libdir="$withval/$acl_libdirstem2"
17476         fi
17477       fi
17478     fi
17479
17480 fi
17481
17482       LIBPTH=
17483   LTLIBPTH=
17484   INCPTH=
17485   LIBPTH_PREFIX=
17486       HAVE_LIBPTH=
17487   rpathdirs=
17488   ltrpathdirs=
17489   names_already_handled=
17490   names_next_round='pth '
17491   while test -n "$names_next_round"; do
17492     names_this_round="$names_next_round"
17493     names_next_round=
17494     for name in $names_this_round; do
17495       already_handled=
17496       for n in $names_already_handled; do
17497         if test "$n" = "$name"; then
17498           already_handled=yes
17499           break
17500         fi
17501       done
17502       if test -z "$already_handled"; then
17503         names_already_handled="$names_already_handled $name"
17504                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17505         eval value=\"\$HAVE_LIB$uppername\"
17506         if test -n "$value"; then
17507           if test "$value" = yes; then
17508             eval value=\"\$LIB$uppername\"
17509             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
17510             eval value=\"\$LTLIB$uppername\"
17511             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
17512           else
17513                                     :
17514           fi
17515         else
17516                               found_dir=
17517           found_la=
17518           found_so=
17519           found_a=
17520           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17521           if test -n "$acl_shlibext"; then
17522             shrext=".$acl_shlibext"             # typically: shrext=.so
17523           else
17524             shrext=
17525           fi
17526           if test $use_additional = yes; then
17527             dir="$additional_libdir"
17528                                     if test -n "$acl_shlibext"; then
17529               if test -f "$dir/$libname$shrext"; then
17530                 found_dir="$dir"
17531                 found_so="$dir/$libname$shrext"
17532               else
17533                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17534                   ver=`(cd "$dir" && \
17535                         for f in "$libname$shrext".*; do echo "$f"; done \
17536                         | sed -e "s,^$libname$shrext\\\\.,," \
17537                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17538                         | sed 1q ) 2>/dev/null`
17539                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17540                     found_dir="$dir"
17541                     found_so="$dir/$libname$shrext.$ver"
17542                   fi
17543                 else
17544                   eval library_names=\"$acl_library_names_spec\"
17545                   for f in $library_names; do
17546                     if test -f "$dir/$f"; then
17547                       found_dir="$dir"
17548                       found_so="$dir/$f"
17549                       break
17550                     fi
17551                   done
17552                 fi
17553               fi
17554             fi
17555                         if test "X$found_dir" = "X"; then
17556               if test -f "$dir/$libname.$acl_libext"; then
17557                 found_dir="$dir"
17558                 found_a="$dir/$libname.$acl_libext"
17559               fi
17560             fi
17561             if test "X$found_dir" != "X"; then
17562               if test -f "$dir/$libname.la"; then
17563                 found_la="$dir/$libname.la"
17564               fi
17565             fi
17566           fi
17567           if test "X$found_dir" = "X"; then
17568             for x in $LDFLAGS $LTLIBPTH; do
17569
17570   acl_save_prefix="$prefix"
17571   prefix="$acl_final_prefix"
17572   acl_save_exec_prefix="$exec_prefix"
17573   exec_prefix="$acl_final_exec_prefix"
17574   eval x=\"$x\"
17575   exec_prefix="$acl_save_exec_prefix"
17576   prefix="$acl_save_prefix"
17577
17578               case "$x" in
17579                 -L*)
17580                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17581                                     if test -n "$acl_shlibext"; then
17582                     if test -f "$dir/$libname$shrext"; then
17583                       found_dir="$dir"
17584                       found_so="$dir/$libname$shrext"
17585                     else
17586                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17587                         ver=`(cd "$dir" && \
17588                               for f in "$libname$shrext".*; do echo "$f"; done \
17589                               | sed -e "s,^$libname$shrext\\\\.,," \
17590                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17591                               | sed 1q ) 2>/dev/null`
17592                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17593                           found_dir="$dir"
17594                           found_so="$dir/$libname$shrext.$ver"
17595                         fi
17596                       else
17597                         eval library_names=\"$acl_library_names_spec\"
17598                         for f in $library_names; do
17599                           if test -f "$dir/$f"; then
17600                             found_dir="$dir"
17601                             found_so="$dir/$f"
17602                             break
17603                           fi
17604                         done
17605                       fi
17606                     fi
17607                   fi
17608                                     if test "X$found_dir" = "X"; then
17609                     if test -f "$dir/$libname.$acl_libext"; then
17610                       found_dir="$dir"
17611                       found_a="$dir/$libname.$acl_libext"
17612                     fi
17613                   fi
17614                   if test "X$found_dir" != "X"; then
17615                     if test -f "$dir/$libname.la"; then
17616                       found_la="$dir/$libname.la"
17617                     fi
17618                   fi
17619                   ;;
17620               esac
17621               if test "X$found_dir" != "X"; then
17622                 break
17623               fi
17624             done
17625           fi
17626           if test "X$found_dir" != "X"; then
17627                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17628             if test "X$found_so" != "X"; then
17629                                                         if test "$enable_rpath" = no \
17630                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17631                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17632                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17633               else
17634                                                                                 haveit=
17635                 for x in $ltrpathdirs; do
17636                   if test "X$x" = "X$found_dir"; then
17637                     haveit=yes
17638                     break
17639                   fi
17640                 done
17641                 if test -z "$haveit"; then
17642                   ltrpathdirs="$ltrpathdirs $found_dir"
17643                 fi
17644                                 if test "$acl_hardcode_direct" = yes; then
17645                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17646                 else
17647                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17648                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17649                                                             haveit=
17650                     for x in $rpathdirs; do
17651                       if test "X$x" = "X$found_dir"; then
17652                         haveit=yes
17653                         break
17654                       fi
17655                     done
17656                     if test -z "$haveit"; then
17657                       rpathdirs="$rpathdirs $found_dir"
17658                     fi
17659                   else
17660                                                                                 haveit=
17661                     for x in $LDFLAGS $LIBPTH; do
17662
17663   acl_save_prefix="$prefix"
17664   prefix="$acl_final_prefix"
17665   acl_save_exec_prefix="$exec_prefix"
17666   exec_prefix="$acl_final_exec_prefix"
17667   eval x=\"$x\"
17668   exec_prefix="$acl_save_exec_prefix"
17669   prefix="$acl_save_prefix"
17670
17671                       if test "X$x" = "X-L$found_dir"; then
17672                         haveit=yes
17673                         break
17674                       fi
17675                     done
17676                     if test -z "$haveit"; then
17677                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17678                     fi
17679                     if test "$acl_hardcode_minus_L" != no; then
17680                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17681                     else
17682                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17683                     fi
17684                   fi
17685                 fi
17686               fi
17687             else
17688               if test "X$found_a" != "X"; then
17689                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17690               else
17691                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17692               fi
17693             fi
17694                         additional_includedir=
17695             case "$found_dir" in
17696               */$acl_libdirstem | */$acl_libdirstem/)
17697                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17698                 if test "$name" = 'pth'; then
17699                   LIBPTH_PREFIX="$basedir"
17700                 fi
17701                 additional_includedir="$basedir/include"
17702                 ;;
17703               */$acl_libdirstem2 | */$acl_libdirstem2/)
17704                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17705                 if test "$name" = 'pth'; then
17706                   LIBPTH_PREFIX="$basedir"
17707                 fi
17708                 additional_includedir="$basedir/include"
17709                 ;;
17710             esac
17711             if test "X$additional_includedir" != "X"; then
17712                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17713                 haveit=
17714                 if test "X$additional_includedir" = "X/usr/local/include"; then
17715                   if test -n "$GCC"; then
17716                     case $host_os in
17717                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17718                     esac
17719                   fi
17720                 fi
17721                 if test -z "$haveit"; then
17722                   for x in $CPPFLAGS $INCPTH; do
17723
17724   acl_save_prefix="$prefix"
17725   prefix="$acl_final_prefix"
17726   acl_save_exec_prefix="$exec_prefix"
17727   exec_prefix="$acl_final_exec_prefix"
17728   eval x=\"$x\"
17729   exec_prefix="$acl_save_exec_prefix"
17730   prefix="$acl_save_prefix"
17731
17732                     if test "X$x" = "X-I$additional_includedir"; then
17733                       haveit=yes
17734                       break
17735                     fi
17736                   done
17737                   if test -z "$haveit"; then
17738                     if test -d "$additional_includedir"; then
17739                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17740                     fi
17741                   fi
17742                 fi
17743               fi
17744             fi
17745                         if test -n "$found_la"; then
17746                                                         save_libdir="$libdir"
17747               case "$found_la" in
17748                 */* | *\\*) . "$found_la" ;;
17749                 *) . "./$found_la" ;;
17750               esac
17751               libdir="$save_libdir"
17752                             for dep in $dependency_libs; do
17753                 case "$dep" in
17754                   -L*)
17755                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17756                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17757                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17758                       haveit=
17759                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17760                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17761                         if test -n "$GCC"; then
17762                           case $host_os in
17763                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17764                           esac
17765                         fi
17766                       fi
17767                       if test -z "$haveit"; then
17768                         haveit=
17769                         for x in $LDFLAGS $LIBPTH; do
17770
17771   acl_save_prefix="$prefix"
17772   prefix="$acl_final_prefix"
17773   acl_save_exec_prefix="$exec_prefix"
17774   exec_prefix="$acl_final_exec_prefix"
17775   eval x=\"$x\"
17776   exec_prefix="$acl_save_exec_prefix"
17777   prefix="$acl_save_prefix"
17778
17779                           if test "X$x" = "X-L$additional_libdir"; then
17780                             haveit=yes
17781                             break
17782                           fi
17783                         done
17784                         if test -z "$haveit"; then
17785                           if test -d "$additional_libdir"; then
17786                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17787                           fi
17788                         fi
17789                         haveit=
17790                         for x in $LDFLAGS $LTLIBPTH; do
17791
17792   acl_save_prefix="$prefix"
17793   prefix="$acl_final_prefix"
17794   acl_save_exec_prefix="$exec_prefix"
17795   exec_prefix="$acl_final_exec_prefix"
17796   eval x=\"$x\"
17797   exec_prefix="$acl_save_exec_prefix"
17798   prefix="$acl_save_prefix"
17799
17800                           if test "X$x" = "X-L$additional_libdir"; then
17801                             haveit=yes
17802                             break
17803                           fi
17804                         done
17805                         if test -z "$haveit"; then
17806                           if test -d "$additional_libdir"; then
17807                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17808                           fi
17809                         fi
17810                       fi
17811                     fi
17812                     ;;
17813                   -R*)
17814                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17815                     if test "$enable_rpath" != no; then
17816                                                                   haveit=
17817                       for x in $rpathdirs; do
17818                         if test "X$x" = "X$dir"; then
17819                           haveit=yes
17820                           break
17821                         fi
17822                       done
17823                       if test -z "$haveit"; then
17824                         rpathdirs="$rpathdirs $dir"
17825                       fi
17826                                                                   haveit=
17827                       for x in $ltrpathdirs; do
17828                         if test "X$x" = "X$dir"; then
17829                           haveit=yes
17830                           break
17831                         fi
17832                       done
17833                       if test -z "$haveit"; then
17834                         ltrpathdirs="$ltrpathdirs $dir"
17835                       fi
17836                     fi
17837                     ;;
17838                   -l*)
17839                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17840                     ;;
17841                   *.la)
17842                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17843                     ;;
17844                   *)
17845                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17846                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17847                     ;;
17848                 esac
17849               done
17850             fi
17851           else
17852                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17853             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17854           fi
17855         fi
17856       fi
17857     done
17858   done
17859   if test "X$rpathdirs" != "X"; then
17860     if test -n "$acl_hardcode_libdir_separator"; then
17861                         alldirs=
17862       for found_dir in $rpathdirs; do
17863         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17864       done
17865             acl_save_libdir="$libdir"
17866       libdir="$alldirs"
17867       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17868       libdir="$acl_save_libdir"
17869       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17870     else
17871             for found_dir in $rpathdirs; do
17872         acl_save_libdir="$libdir"
17873         libdir="$found_dir"
17874         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17875         libdir="$acl_save_libdir"
17876         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17877       done
17878     fi
17879   fi
17880   if test "X$ltrpathdirs" != "X"; then
17881             for found_dir in $ltrpathdirs; do
17882       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17883     done
17884   fi
17885
17886
17887
17888
17889
17890
17891     ac_cv_libpth_libs="$LIBPTH"
17892     ac_cv_libpth_ltlibs="$LTLIBPTH"
17893     ac_cv_libpth_cppflags="$INCPTH"
17894     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17895
17896 fi
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17898 $as_echo "$ac_cv_libpth_libs" >&6; }
17899   LIBPTH="$ac_cv_libpth_libs"
17900   LTLIBPTH="$ac_cv_libpth_ltlibs"
17901   INCPTH="$ac_cv_libpth_cppflags"
17902   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17903
17904   for element in $INCPTH; do
17905     haveit=
17906     for x in $CPPFLAGS; do
17907
17908   acl_save_prefix="$prefix"
17909   prefix="$acl_final_prefix"
17910   acl_save_exec_prefix="$exec_prefix"
17911   exec_prefix="$acl_final_exec_prefix"
17912   eval x=\"$x\"
17913   exec_prefix="$acl_save_exec_prefix"
17914   prefix="$acl_save_prefix"
17915
17916       if test "X$x" = "X$element"; then
17917         haveit=yes
17918         break
17919       fi
17920     done
17921     if test -z "$haveit"; then
17922       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17923     fi
17924   done
17925
17926
17927
17928
17929       HAVE_LIBPTH=yes
17930
17931
17932
17933       gl_have_pth=
17934       gl_save_LIBS="$LIBS"
17935       LIBS="$LIBS $LIBPTH"
17936       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h.  */
17938 #include <pth.h>
17939 int
17940 main ()
17941 {
17942 pth_self();
17943   ;
17944   return 0;
17945 }
17946 _ACEOF
17947 if ac_fn_c_try_link "$LINENO"; then :
17948   gl_have_pth=yes
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext \
17951     conftest$ac_exeext conftest.$ac_ext
17952       LIBS="$gl_save_LIBS"
17953       if test -n "$gl_have_pth"; then
17954         gl_threads_api=pth
17955         LIBTHREAD="$LIBPTH"
17956         LTLIBTHREAD="$LTLIBPTH"
17957         LIBMULTITHREAD="$LIBTHREAD"
17958         LTLIBMULTITHREAD="$LTLIBTHREAD"
17959
17960 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17961
17962         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17963           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17964
17965 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17966
17967             LIBTHREAD=
17968             LTLIBTHREAD=
17969           fi
17970         fi
17971       else
17972         CPPFLAGS="$gl_save_CPPFLAGS"
17973       fi
17974     fi
17975     if test -z "$gl_have_pthread"; then
17976       case "$gl_use_threads" in
17977         yes | windows | win32) # The 'win32' is for backward compatibility.
17978           if { case "$host_os" in
17979                  mingw*) true;;
17980                  *) false;;
17981                esac
17982              }; then
17983             gl_threads_api=windows
17984
17985 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17986
17987           fi
17988           ;;
17989       esac
17990     fi
17991   fi
17992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17993 $as_echo_n "checking for multithread API to use... " >&6; }
17994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17995 $as_echo "$gl_threads_api" >&6; }
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006      GNULIB_FCHMODAT=0;
18007   GNULIB_FSTAT=0;
18008   GNULIB_FSTATAT=0;
18009   GNULIB_FUTIMENS=0;
18010   GNULIB_LCHMOD=0;
18011   GNULIB_LSTAT=0;
18012   GNULIB_MKDIRAT=0;
18013   GNULIB_MKFIFO=0;
18014   GNULIB_MKFIFOAT=0;
18015   GNULIB_MKNOD=0;
18016   GNULIB_MKNODAT=0;
18017   GNULIB_STAT=0;
18018   GNULIB_UTIMENSAT=0;
18019     HAVE_FCHMODAT=1;
18020   HAVE_FSTATAT=1;
18021   HAVE_FUTIMENS=1;
18022   HAVE_LCHMOD=1;
18023   HAVE_LSTAT=1;
18024   HAVE_MKDIRAT=1;
18025   HAVE_MKFIFO=1;
18026   HAVE_MKFIFOAT=1;
18027   HAVE_MKNOD=1;
18028   HAVE_MKNODAT=1;
18029   HAVE_UTIMENSAT=1;
18030   REPLACE_FSTAT=0;
18031   REPLACE_FSTATAT=0;
18032   REPLACE_FUTIMENS=0;
18033   REPLACE_LSTAT=0;
18034   REPLACE_MKDIR=0;
18035   REPLACE_MKFIFO=0;
18036   REPLACE_MKNOD=0;
18037   REPLACE_STAT=0;
18038   REPLACE_UTIMENSAT=0;
18039
18040
18041
18042
18043
18044
18045
18046       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18047 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18048 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
18049   $as_echo_n "(cached) " >&6
18050 else
18051   rm -f conftest.sym conftest.file
18052      echo >conftest.file
18053      if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18054        if test "$cross_compiling" = yes; then :
18055   case "$host_os" in
18056                     # Guess yes on glibc systems.
18057             *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18058                     # If we don't know, assume the worst.
18059             *)      gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18060           esac
18061
18062 else
18063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h.  */
18065 $ac_includes_default
18066 int
18067 main ()
18068 {
18069 struct stat sbuf;
18070               /* Linux will dereference the symlink and fail, as required by
18071                  POSIX.  That is better in the sense that it means we will not
18072                  have to compile and use the lstat wrapper.  */
18073               return lstat ("conftest.sym/", &sbuf) == 0;
18074
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 if ac_fn_c_try_run "$LINENO"; then :
18080   gl_cv_func_lstat_dereferences_slashed_symlink=yes
18081 else
18082   gl_cv_func_lstat_dereferences_slashed_symlink=no
18083 fi
18084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18085   conftest.$ac_objext conftest.beam conftest.$ac_ext
18086 fi
18087
18088      else
18089        # If the 'ln -s' command failed, then we probably don't even
18090        # have an lstat function.
18091        gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18092      fi
18093      rm -f conftest.sym conftest.file
18094
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18097 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18098   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18099     *yes)
18100
18101 cat >>confdefs.h <<_ACEOF
18102 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18103 _ACEOF
18104
18105       ;;
18106   esac
18107
18108
18109   GNULIB__EXIT=0;
18110   GNULIB_ATOLL=0;
18111   GNULIB_CALLOC_POSIX=0;
18112   GNULIB_CANONICALIZE_FILE_NAME=0;
18113   GNULIB_GETLOADAVG=0;
18114   GNULIB_GETSUBOPT=0;
18115   GNULIB_GRANTPT=0;
18116   GNULIB_MALLOC_POSIX=0;
18117   GNULIB_MBTOWC=0;
18118   GNULIB_MKDTEMP=0;
18119   GNULIB_MKOSTEMP=0;
18120   GNULIB_MKOSTEMPS=0;
18121   GNULIB_MKSTEMP=0;
18122   GNULIB_MKSTEMPS=0;
18123   GNULIB_POSIX_OPENPT=0;
18124   GNULIB_PTSNAME=0;
18125   GNULIB_PTSNAME_R=0;
18126   GNULIB_PUTENV=0;
18127   GNULIB_RANDOM=0;
18128   GNULIB_RANDOM_R=0;
18129   GNULIB_REALLOC_POSIX=0;
18130   GNULIB_REALPATH=0;
18131   GNULIB_RPMATCH=0;
18132   GNULIB_SECURE_GETENV=0;
18133   GNULIB_SETENV=0;
18134   GNULIB_STRTOD=0;
18135   GNULIB_STRTOLL=0;
18136   GNULIB_STRTOULL=0;
18137   GNULIB_SYSTEM_POSIX=0;
18138   GNULIB_UNLOCKPT=0;
18139   GNULIB_UNSETENV=0;
18140   GNULIB_WCTOMB=0;
18141     HAVE__EXIT=1;
18142   HAVE_ATOLL=1;
18143   HAVE_CANONICALIZE_FILE_NAME=1;
18144   HAVE_DECL_GETLOADAVG=1;
18145   HAVE_GETSUBOPT=1;
18146   HAVE_GRANTPT=1;
18147   HAVE_MKDTEMP=1;
18148   HAVE_MKOSTEMP=1;
18149   HAVE_MKOSTEMPS=1;
18150   HAVE_MKSTEMP=1;
18151   HAVE_MKSTEMPS=1;
18152   HAVE_POSIX_OPENPT=1;
18153   HAVE_PTSNAME=1;
18154   HAVE_PTSNAME_R=1;
18155   HAVE_RANDOM=1;
18156   HAVE_RANDOM_H=1;
18157   HAVE_RANDOM_R=1;
18158   HAVE_REALPATH=1;
18159   HAVE_RPMATCH=1;
18160   HAVE_SECURE_GETENV=1;
18161   HAVE_SETENV=1;
18162   HAVE_DECL_SETENV=1;
18163   HAVE_STRTOD=1;
18164   HAVE_STRTOLL=1;
18165   HAVE_STRTOULL=1;
18166   HAVE_STRUCT_RANDOM_DATA=1;
18167   HAVE_SYS_LOADAVG_H=0;
18168   HAVE_UNLOCKPT=1;
18169   HAVE_DECL_UNSETENV=1;
18170   REPLACE_CALLOC=0;
18171   REPLACE_CANONICALIZE_FILE_NAME=0;
18172   REPLACE_MALLOC=0;
18173   REPLACE_MBTOWC=0;
18174   REPLACE_MKSTEMP=0;
18175   REPLACE_PTSNAME=0;
18176   REPLACE_PTSNAME_R=0;
18177   REPLACE_PUTENV=0;
18178   REPLACE_RANDOM_R=0;
18179   REPLACE_REALLOC=0;
18180   REPLACE_REALPATH=0;
18181   REPLACE_SETENV=0;
18182   REPLACE_STRTOD=0;
18183   REPLACE_UNSETENV=0;
18184   REPLACE_WCTOMB=0;
18185
18186
18187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
18188 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
18189 if ${gl_cv_func_malloc_posix+:} false; then :
18190   $as_echo_n "(cached) " >&6
18191 else
18192
18193                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h.  */
18195
18196 int
18197 main ()
18198 {
18199 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18200              choke me
18201              #endif
18202
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 if ac_fn_c_try_compile "$LINENO"; then :
18208   gl_cv_func_malloc_posix=yes
18209 else
18210   gl_cv_func_malloc_posix=no
18211 fi
18212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18213
18214 fi
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
18216 $as_echo "$gl_cv_func_malloc_posix" >&6; }
18217
18218
18219
18220       for ac_header in stdlib.h
18221 do :
18222   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18223 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18224   cat >>confdefs.h <<_ACEOF
18225 #define HAVE_STDLIB_H 1
18226 _ACEOF
18227
18228 fi
18229
18230 done
18231
18232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18233 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18234 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
18235   $as_echo_n "(cached) " >&6
18236 else
18237   if test "$cross_compiling" = yes; then :
18238   case "$host_os" in
18239           # Guess yes on platforms where we know the result.
18240           *-gnu* | freebsd* | netbsd* | openbsd* \
18241           | hpux* | solaris* | cygwin* | mingw*)
18242             ac_cv_func_malloc_0_nonnull=yes ;;
18243           # If we don't know, assume the worst.
18244           *) ac_cv_func_malloc_0_nonnull=no ;;
18245         esac
18246
18247 else
18248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h.  */
18250 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18251             # include <stdlib.h>
18252             #else
18253             char *malloc ();
18254             #endif
18255
18256 int
18257 main ()
18258 {
18259 return ! malloc (0);
18260   ;
18261   return 0;
18262 }
18263
18264 _ACEOF
18265 if ac_fn_c_try_run "$LINENO"; then :
18266   ac_cv_func_malloc_0_nonnull=yes
18267 else
18268   ac_cv_func_malloc_0_nonnull=no
18269 fi
18270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18271   conftest.$ac_objext conftest.beam conftest.$ac_ext
18272 fi
18273
18274
18275 fi
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18277 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18278   if test $ac_cv_func_malloc_0_nonnull = yes; then :
18279   gl_cv_func_malloc_0_nonnull=1
18280 else
18281   gl_cv_func_malloc_0_nonnull=0
18282 fi
18283
18284
18285 cat >>confdefs.h <<_ACEOF
18286 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
18287 _ACEOF
18288
18289
18290
18291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18292 $as_echo_n "checking for unsigned long long int... " >&6; }
18293 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18294   $as_echo_n "(cached) " >&6
18295 else
18296   ac_cv_type_unsigned_long_long_int=yes
18297      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18298        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h.  */
18300
18301   /* For now, do not test the preprocessor; as of 2007 there are too many
18302          implementations with broken preprocessors.  Perhaps this can
18303          be revisited in 2012.  In the meantime, code should not expect
18304          #if to work with literals wider than 32 bits.  */
18305       /* Test literals.  */
18306       long long int ll = 9223372036854775807ll;
18307       long long int nll = -9223372036854775807LL;
18308       unsigned long long int ull = 18446744073709551615ULL;
18309       /* Test constant expressions.   */
18310       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18311                      ? 1 : -1)];
18312       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18313                      ? 1 : -1)];
18314       int i = 63;
18315 int
18316 main ()
18317 {
18318 /* Test availability of runtime routines for shift and division.  */
18319       long long int llmax = 9223372036854775807ll;
18320       unsigned long long int ullmax = 18446744073709551615ull;
18321       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18322               | (llmax / ll) | (llmax % ll)
18323               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18324               | (ullmax / ull) | (ullmax % ull));
18325   ;
18326   return 0;
18327 }
18328
18329 _ACEOF
18330 if ac_fn_c_try_link "$LINENO"; then :
18331
18332 else
18333   ac_cv_type_unsigned_long_long_int=no
18334 fi
18335 rm -f core conftest.err conftest.$ac_objext \
18336     conftest$ac_exeext conftest.$ac_ext
18337      fi
18338 fi
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18340 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18341   if test $ac_cv_type_unsigned_long_long_int = yes; then
18342
18343 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18344
18345   fi
18346
18347
18348
18349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18350 $as_echo_n "checking for long long int... " >&6; }
18351 if ${ac_cv_type_long_long_int+:} false; then :
18352   $as_echo_n "(cached) " >&6
18353 else
18354   ac_cv_type_long_long_int=yes
18355       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18356         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18357         if test $ac_cv_type_long_long_int = yes; then
18358                                         if test "$cross_compiling" = yes; then :
18359   :
18360 else
18361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h.  */
18363 #include <limits.h>
18364                  #ifndef LLONG_MAX
18365                  # define HALF \
18366                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18367                  # define LLONG_MAX (HALF - 1 + HALF)
18368                  #endif
18369 int
18370 main ()
18371 {
18372 long long int n = 1;
18373                  int i;
18374                  for (i = 0; ; i++)
18375                    {
18376                      long long int m = n << i;
18377                      if (m >> i != n)
18378                        return 1;
18379                      if (LLONG_MAX / 2 < m)
18380                        break;
18381                    }
18382                  return 0;
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 if ac_fn_c_try_run "$LINENO"; then :
18388
18389 else
18390   ac_cv_type_long_long_int=no
18391 fi
18392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18393   conftest.$ac_objext conftest.beam conftest.$ac_ext
18394 fi
18395
18396         fi
18397       fi
18398 fi
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18400 $as_echo "$ac_cv_type_long_long_int" >&6; }
18401   if test $ac_cv_type_long_long_int = yes; then
18402
18403 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18404
18405   fi
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418   GNULIB_FFSL=0;
18419   GNULIB_FFSLL=0;
18420   GNULIB_MEMCHR=0;
18421   GNULIB_MEMMEM=0;
18422   GNULIB_MEMPCPY=0;
18423   GNULIB_MEMRCHR=0;
18424   GNULIB_RAWMEMCHR=0;
18425   GNULIB_STPCPY=0;
18426   GNULIB_STPNCPY=0;
18427   GNULIB_STRCHRNUL=0;
18428   GNULIB_STRDUP=0;
18429   GNULIB_STRNCAT=0;
18430   GNULIB_STRNDUP=0;
18431   GNULIB_STRNLEN=0;
18432   GNULIB_STRPBRK=0;
18433   GNULIB_STRSEP=0;
18434   GNULIB_STRSTR=0;
18435   GNULIB_STRCASESTR=0;
18436   GNULIB_STRTOK_R=0;
18437   GNULIB_MBSLEN=0;
18438   GNULIB_MBSNLEN=0;
18439   GNULIB_MBSCHR=0;
18440   GNULIB_MBSRCHR=0;
18441   GNULIB_MBSSTR=0;
18442   GNULIB_MBSCASECMP=0;
18443   GNULIB_MBSNCASECMP=0;
18444   GNULIB_MBSPCASECMP=0;
18445   GNULIB_MBSCASESTR=0;
18446   GNULIB_MBSCSPN=0;
18447   GNULIB_MBSPBRK=0;
18448   GNULIB_MBSSPN=0;
18449   GNULIB_MBSSEP=0;
18450   GNULIB_MBSTOK_R=0;
18451   GNULIB_STRERROR=0;
18452   GNULIB_STRERROR_R=0;
18453   GNULIB_STRSIGNAL=0;
18454   GNULIB_STRVERSCMP=0;
18455   HAVE_MBSLEN=0;
18456     HAVE_FFSL=1;
18457   HAVE_FFSLL=1;
18458   HAVE_MEMCHR=1;
18459   HAVE_DECL_MEMMEM=1;
18460   HAVE_MEMPCPY=1;
18461   HAVE_DECL_MEMRCHR=1;
18462   HAVE_RAWMEMCHR=1;
18463   HAVE_STPCPY=1;
18464   HAVE_STPNCPY=1;
18465   HAVE_STRCHRNUL=1;
18466   HAVE_DECL_STRDUP=1;
18467   HAVE_DECL_STRNDUP=1;
18468   HAVE_DECL_STRNLEN=1;
18469   HAVE_STRPBRK=1;
18470   HAVE_STRSEP=1;
18471   HAVE_STRCASESTR=1;
18472   HAVE_DECL_STRTOK_R=1;
18473   HAVE_DECL_STRERROR_R=1;
18474   HAVE_DECL_STRSIGNAL=1;
18475   HAVE_STRVERSCMP=1;
18476   REPLACE_MEMCHR=0;
18477   REPLACE_MEMMEM=0;
18478   REPLACE_STPNCPY=0;
18479   REPLACE_STRDUP=0;
18480   REPLACE_STRSTR=0;
18481   REPLACE_STRCASESTR=0;
18482   REPLACE_STRCHRNUL=0;
18483   REPLACE_STRERROR=0;
18484   REPLACE_STRERROR_R=0;
18485   REPLACE_STRNCAT=0;
18486   REPLACE_STRNDUP=0;
18487   REPLACE_STRNLEN=0;
18488   REPLACE_STRSIGNAL=0;
18489   REPLACE_STRTOK_R=0;
18490   UNDEFINE_STRTOK_R=0;
18491
18492
18493
18494
18495
18496   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
18497   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
18498   # irrelevant for anonymous mappings.
18499   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
18500 if test "x$ac_cv_func_mmap" = xyes; then :
18501   gl_have_mmap=yes
18502 else
18503   gl_have_mmap=no
18504 fi
18505
18506
18507   # Try to allow MAP_ANONYMOUS.
18508   gl_have_mmap_anonymous=no
18509   if test $gl_have_mmap = yes; then
18510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
18511 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
18512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h.  */
18514
18515 #include <sys/mman.h>
18516 #ifdef MAP_ANONYMOUS
18517     I cannot identify this map
18518 #endif
18519
18520 _ACEOF
18521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18522   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
18523   gl_have_mmap_anonymous=yes
18524 fi
18525 rm -f conftest*
18526
18527     if test $gl_have_mmap_anonymous != yes; then
18528       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h.  */
18530
18531 #include <sys/mman.h>
18532 #ifdef MAP_ANON
18533     I cannot identify this map
18534 #endif
18535
18536 _ACEOF
18537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18538   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
18539
18540 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
18541
18542          gl_have_mmap_anonymous=yes
18543 fi
18544 rm -f conftest*
18545
18546     fi
18547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
18548 $as_echo "$gl_have_mmap_anonymous" >&6; }
18549     if test $gl_have_mmap_anonymous = yes; then
18550
18551 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
18552
18553     fi
18554   fi
18555
18556
18557   :
18558
18559
18560
18561
18562
18563
18564   :
18565
18566
18567
18568
18569
18570
18571
18572
18573   if test $HAVE_MEMCHR = 1; then
18574     # Detect platform-specific bugs in some versions of glibc:
18575     # memchr should not dereference anything with length 0
18576     #   http://bugzilla.redhat.com/499689
18577     # memchr should not dereference overestimated length after a match
18578     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
18579     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
18580     # Assume that memchr works on platforms that lack mprotect.
18581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
18582 $as_echo_n "checking whether memchr works... " >&6; }
18583 if ${gl_cv_func_memchr_works+:} false; then :
18584   $as_echo_n "(cached) " >&6
18585 else
18586   if test "$cross_compiling" = yes; then :
18587          gl_cv_func_memchr_works="guessing no"
18588 else
18589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h.  */
18591
18592 #include <string.h>
18593 #if HAVE_SYS_MMAN_H
18594 # include <fcntl.h>
18595 # include <unistd.h>
18596 # include <sys/types.h>
18597 # include <sys/mman.h>
18598 # ifndef MAP_FILE
18599 #  define MAP_FILE 0
18600 # endif
18601 #endif
18602
18603 int
18604 main ()
18605 {
18606
18607   int result = 0;
18608   char *fence = NULL;
18609 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
18610 # if HAVE_MAP_ANONYMOUS
18611   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
18612   const int fd = -1;
18613 # else /* !HAVE_MAP_ANONYMOUS */
18614   const int flags = MAP_FILE | MAP_PRIVATE;
18615   int fd = open ("/dev/zero", O_RDONLY, 0666);
18616   if (fd >= 0)
18617 # endif
18618     {
18619       int pagesize = getpagesize ();
18620       char *two_pages =
18621         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
18622                        flags, fd, 0);
18623       if (two_pages != (char *)(-1)
18624           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
18625         fence = two_pages + pagesize;
18626     }
18627 #endif
18628   if (fence)
18629     {
18630       if (memchr (fence, 0, 0))
18631         result |= 1;
18632       strcpy (fence - 9, "12345678");
18633       if (memchr (fence - 9, 0, 79) != fence - 1)
18634         result |= 2;
18635       if (memchr (fence - 1, 0, 3) != fence - 1)
18636         result |= 4;
18637     }
18638   return result;
18639
18640   ;
18641   return 0;
18642 }
18643 _ACEOF
18644 if ac_fn_c_try_run "$LINENO"; then :
18645   gl_cv_func_memchr_works=yes
18646 else
18647   gl_cv_func_memchr_works=no
18648 fi
18649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18650   conftest.$ac_objext conftest.beam conftest.$ac_ext
18651 fi
18652
18653 fi
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
18655 $as_echo "$gl_cv_func_memchr_works" >&6; }
18656     if test "$gl_cv_func_memchr_works" != yes; then
18657       REPLACE_MEMCHR=1
18658     fi
18659   fi
18660
18661
18662
18663
18664
18665
18666
18667     gl_cv_c_multiarch=no
18668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h.  */
18670 #ifndef __APPLE_CC__
18671          not a universal capable compiler
18672         #endif
18673         typedef int dummy;
18674
18675 _ACEOF
18676 if ac_fn_c_try_compile "$LINENO"; then :
18677
18678                arch=
18679      prev=
18680      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18681        if test -n "$prev"; then
18682          case $word in
18683            i?86 | x86_64 | ppc | ppc64)
18684              if test -z "$arch" || test "$arch" = "$word"; then
18685                arch="$word"
18686              else
18687                gl_cv_c_multiarch=yes
18688              fi
18689              ;;
18690          esac
18691          prev=
18692        else
18693          if test "x$word" = "x-arch"; then
18694            prev=arch
18695          fi
18696        fi
18697      done
18698
18699 fi
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701   if test $gl_cv_c_multiarch = yes; then
18702     APPLE_UNIVERSAL_BUILD=1
18703   else
18704     APPLE_UNIVERSAL_BUILD=0
18705   fi
18706
18707
18708
18709
18710
18711
18712
18713
18714   GNULIB_PTHREAD_SIGMASK=0;
18715   GNULIB_RAISE=0;
18716   GNULIB_SIGNAL_H_SIGPIPE=0;
18717   GNULIB_SIGPROCMASK=0;
18718   GNULIB_SIGACTION=0;
18719     HAVE_POSIX_SIGNALBLOCKING=1;
18720   HAVE_PTHREAD_SIGMASK=1;
18721   HAVE_RAISE=1;
18722   HAVE_SIGSET_T=1;
18723   HAVE_SIGINFO_T=1;
18724   HAVE_SIGACTION=1;
18725   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18726
18727   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18728
18729   HAVE_SIGHANDLER_T=1;
18730   REPLACE_PTHREAD_SIGMASK=0;
18731   REPLACE_RAISE=0;
18732
18733
18734   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18735       #include <signal.h>
18736       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
18737       #include <sys/types.h>
18738
18739 "
18740 if test "x$ac_cv_type_sigset_t" = xyes; then :
18741
18742 cat >>confdefs.h <<_ACEOF
18743 #define HAVE_SIGSET_T 1
18744 _ACEOF
18745
18746 gl_cv_type_sigset_t=yes
18747 else
18748   gl_cv_type_sigset_t=no
18749 fi
18750
18751   if test $gl_cv_type_sigset_t != yes; then
18752     HAVE_SIGSET_T=0
18753   fi
18754
18755
18756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
18757 $as_echo_n "checking for ssize_t... " >&6; }
18758 if ${gt_cv_ssize_t+:} false; then :
18759   $as_echo_n "(cached) " >&6
18760 else
18761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762 /* end confdefs.h.  */
18763 #include <sys/types.h>
18764 int
18765 main ()
18766 {
18767 int x = sizeof (ssize_t *) + sizeof (ssize_t);
18768             return !x;
18769   ;
18770   return 0;
18771 }
18772 _ACEOF
18773 if ac_fn_c_try_compile "$LINENO"; then :
18774   gt_cv_ssize_t=yes
18775 else
18776   gt_cv_ssize_t=no
18777 fi
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 fi
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
18781 $as_echo "$gt_cv_ssize_t" >&6; }
18782   if test $gt_cv_ssize_t = no; then
18783
18784 $as_echo "#define ssize_t int" >>confdefs.h
18785
18786   fi
18787
18788
18789
18790
18791
18792
18793
18794       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
18795 if test "x$ac_cv_have_decl_setenv" = xyes; then :
18796   ac_have_decl=1
18797 else
18798   ac_have_decl=0
18799 fi
18800
18801 cat >>confdefs.h <<_ACEOF
18802 #define HAVE_DECL_SETENV $ac_have_decl
18803 _ACEOF
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814   :
18815
18816
18817
18818
18819
18820   if test $ac_cv_have_decl_setenv = no; then
18821     HAVE_DECL_SETENV=0
18822   fi
18823
18824   :
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834   :
18835
18836
18837
18838
18839
18840   for ac_header in search.h
18841 do :
18842   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
18843 if test "x$ac_cv_header_search_h" = xyes; then :
18844   cat >>confdefs.h <<_ACEOF
18845 #define HAVE_SEARCH_H 1
18846 _ACEOF
18847
18848 fi
18849
18850 done
18851
18852   for ac_func in tsearch
18853 do :
18854   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
18855 if test "x$ac_cv_func_tsearch" = xyes; then :
18856   cat >>confdefs.h <<_ACEOF
18857 #define HAVE_TSEARCH 1
18858 _ACEOF
18859
18860 fi
18861 done
18862
18863
18864
18865
18866
18867
18868
18869
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18871 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18872 if ${ac_cv_type_uid_t+:} false; then :
18873   $as_echo_n "(cached) " >&6
18874 else
18875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h.  */
18877 #include <sys/types.h>
18878
18879 _ACEOF
18880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18881   $EGREP "uid_t" >/dev/null 2>&1; then :
18882   ac_cv_type_uid_t=yes
18883 else
18884   ac_cv_type_uid_t=no
18885 fi
18886 rm -f conftest*
18887
18888 fi
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18890 $as_echo "$ac_cv_type_uid_t" >&6; }
18891 if test $ac_cv_type_uid_t = no; then
18892
18893 $as_echo "#define uid_t int" >>confdefs.h
18894
18895
18896 $as_echo "#define gid_t int" >>confdefs.h
18897
18898 fi
18899
18900 :
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912   GNULIB_DPRINTF=0;
18913   GNULIB_FCLOSE=0;
18914   GNULIB_FDOPEN=0;
18915   GNULIB_FFLUSH=0;
18916   GNULIB_FGETC=0;
18917   GNULIB_FGETS=0;
18918   GNULIB_FOPEN=0;
18919   GNULIB_FPRINTF=0;
18920   GNULIB_FPRINTF_POSIX=0;
18921   GNULIB_FPURGE=0;
18922   GNULIB_FPUTC=0;
18923   GNULIB_FPUTS=0;
18924   GNULIB_FREAD=0;
18925   GNULIB_FREOPEN=0;
18926   GNULIB_FSCANF=0;
18927   GNULIB_FSEEK=0;
18928   GNULIB_FSEEKO=0;
18929   GNULIB_FTELL=0;
18930   GNULIB_FTELLO=0;
18931   GNULIB_FWRITE=0;
18932   GNULIB_GETC=0;
18933   GNULIB_GETCHAR=0;
18934   GNULIB_GETDELIM=0;
18935   GNULIB_GETLINE=0;
18936   GNULIB_OBSTACK_PRINTF=0;
18937   GNULIB_OBSTACK_PRINTF_POSIX=0;
18938   GNULIB_PCLOSE=0;
18939   GNULIB_PERROR=0;
18940   GNULIB_POPEN=0;
18941   GNULIB_PRINTF=0;
18942   GNULIB_PRINTF_POSIX=0;
18943   GNULIB_PUTC=0;
18944   GNULIB_PUTCHAR=0;
18945   GNULIB_PUTS=0;
18946   GNULIB_REMOVE=0;
18947   GNULIB_RENAME=0;
18948   GNULIB_RENAMEAT=0;
18949   GNULIB_SCANF=0;
18950   GNULIB_SNPRINTF=0;
18951   GNULIB_SPRINTF_POSIX=0;
18952   GNULIB_STDIO_H_NONBLOCKING=0;
18953   GNULIB_STDIO_H_SIGPIPE=0;
18954   GNULIB_TMPFILE=0;
18955   GNULIB_VASPRINTF=0;
18956   GNULIB_VFSCANF=0;
18957   GNULIB_VSCANF=0;
18958   GNULIB_VDPRINTF=0;
18959   GNULIB_VFPRINTF=0;
18960   GNULIB_VFPRINTF_POSIX=0;
18961   GNULIB_VPRINTF=0;
18962   GNULIB_VPRINTF_POSIX=0;
18963   GNULIB_VSNPRINTF=0;
18964   GNULIB_VSPRINTF_POSIX=0;
18965     HAVE_DECL_FPURGE=1;
18966   HAVE_DECL_FSEEKO=1;
18967   HAVE_DECL_FTELLO=1;
18968   HAVE_DECL_GETDELIM=1;
18969   HAVE_DECL_GETLINE=1;
18970   HAVE_DECL_OBSTACK_PRINTF=1;
18971   HAVE_DECL_SNPRINTF=1;
18972   HAVE_DECL_VSNPRINTF=1;
18973   HAVE_DPRINTF=1;
18974   HAVE_FSEEKO=1;
18975   HAVE_FTELLO=1;
18976   HAVE_PCLOSE=1;
18977   HAVE_POPEN=1;
18978   HAVE_RENAMEAT=1;
18979   HAVE_VASPRINTF=1;
18980   HAVE_VDPRINTF=1;
18981   REPLACE_DPRINTF=0;
18982   REPLACE_FCLOSE=0;
18983   REPLACE_FDOPEN=0;
18984   REPLACE_FFLUSH=0;
18985   REPLACE_FOPEN=0;
18986   REPLACE_FPRINTF=0;
18987   REPLACE_FPURGE=0;
18988   REPLACE_FREOPEN=0;
18989   REPLACE_FSEEK=0;
18990   REPLACE_FSEEKO=0;
18991   REPLACE_FTELL=0;
18992   REPLACE_FTELLO=0;
18993   REPLACE_GETDELIM=0;
18994   REPLACE_GETLINE=0;
18995   REPLACE_OBSTACK_PRINTF=0;
18996   REPLACE_PERROR=0;
18997   REPLACE_POPEN=0;
18998   REPLACE_PRINTF=0;
18999   REPLACE_REMOVE=0;
19000   REPLACE_RENAME=0;
19001   REPLACE_RENAMEAT=0;
19002   REPLACE_SNPRINTF=0;
19003   REPLACE_SPRINTF=0;
19004   REPLACE_STDIO_READ_FUNCS=0;
19005   REPLACE_STDIO_WRITE_FUNCS=0;
19006   REPLACE_TMPFILE=0;
19007   REPLACE_VASPRINTF=0;
19008   REPLACE_VDPRINTF=0;
19009   REPLACE_VFPRINTF=0;
19010   REPLACE_VPRINTF=0;
19011   REPLACE_VSNPRINTF=0;
19012   REPLACE_VSPRINTF=0;
19013
19014
19015
19016
19017
19018
19019
19020
19021   :
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
19032 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
19033 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
19034   $as_echo_n "(cached) " >&6
19035 else
19036
19037       if test "$cross_compiling" = yes; then :
19038
19039          case "$host_os" in
19040                                  # Guess yes on glibc systems.
19041            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
19042                                  # Guess yes on FreeBSD >= 5.
19043            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
19044            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19045                                  # Guess yes on Mac OS X >= 10.3.
19046            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
19047            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
19048                                  # Guess yes on OpenBSD >= 3.9.
19049            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
19050                                  gl_cv_func_snprintf_retval_c99="guessing no";;
19051            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
19052                                  # Guess yes on Solaris >= 2.10.
19053            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
19054            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
19055                                  # Guess yes on AIX >= 4.
19056            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
19057            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
19058                                  # Guess yes on NetBSD >= 3.
19059            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
19060                                  gl_cv_func_snprintf_retval_c99="guessing no";;
19061            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
19062                                  # Guess yes on BeOS.
19063            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
19064                                  # If we don't know, assume the worst.
19065            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
19066          esac
19067
19068 else
19069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19070 /* end confdefs.h.  */
19071
19072 #include <stdio.h>
19073 #include <string.h>
19074 #if HAVE_SNPRINTF
19075 # define my_snprintf snprintf
19076 #else
19077 # include <stdarg.h>
19078 static int my_snprintf (char *buf, int size, const char *format, ...)
19079 {
19080   va_list args;
19081   int ret;
19082   va_start (args, format);
19083   ret = vsnprintf (buf, size, format, args);
19084   va_end (args);
19085   return ret;
19086 }
19087 #endif
19088 static char buf[100];
19089 int main ()
19090 {
19091   strcpy (buf, "ABCDEF");
19092   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
19093     return 1;
19094   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
19095     return 2;
19096   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
19097     return 3;
19098   return 0;
19099 }
19100 _ACEOF
19101 if ac_fn_c_try_run "$LINENO"; then :
19102   gl_cv_func_snprintf_retval_c99=yes
19103 else
19104   gl_cv_func_snprintf_retval_c99=no
19105 fi
19106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19107   conftest.$ac_objext conftest.beam conftest.$ac_ext
19108 fi
19109
19110
19111 fi
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
19113 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
19114
19115
19116       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
19117 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
19118   ac_have_decl=1
19119 else
19120   ac_have_decl=0
19121 fi
19122
19123 cat >>confdefs.h <<_ACEOF
19124 #define HAVE_DECL_SNPRINTF $ac_have_decl
19125 _ACEOF
19126
19127
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19129 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19130 if ${ac_cv_header_stdbool_h+:} false; then :
19131   $as_echo_n "(cached) " >&6
19132 else
19133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h.  */
19135
19136              #include <stdbool.h>
19137              #ifndef bool
19138               "error: bool is not defined"
19139              #endif
19140              #ifndef false
19141               "error: false is not defined"
19142              #endif
19143              #if false
19144               "error: false is not 0"
19145              #endif
19146              #ifndef true
19147               "error: true is not defined"
19148              #endif
19149              #if true != 1
19150               "error: true is not 1"
19151              #endif
19152              #ifndef __bool_true_false_are_defined
19153               "error: __bool_true_false_are_defined is not defined"
19154              #endif
19155
19156              struct s { _Bool s: 1; _Bool t; } s;
19157
19158              char a[true == 1 ? 1 : -1];
19159              char b[false == 0 ? 1 : -1];
19160              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19161              char d[(bool) 0.5 == true ? 1 : -1];
19162              /* See body of main program for 'e'.  */
19163              char f[(_Bool) 0.0 == false ? 1 : -1];
19164              char g[true];
19165              char h[sizeof (_Bool)];
19166              char i[sizeof s.t];
19167              enum { j = false, k = true, l = false * true, m = true * 256 };
19168              /* The following fails for
19169                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19170              _Bool n[m];
19171              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19172              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19173              /* Catch a bug in an HP-UX C compiler.  See
19174                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19175                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19176               */
19177              _Bool q = true;
19178              _Bool *pq = &q;
19179
19180 int
19181 main ()
19182 {
19183
19184              bool e = &s;
19185              *pq |= q;
19186              *pq |= ! q;
19187              /* Refer to every declared value, to avoid compiler optimizations.  */
19188              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19189                      + !m + !n + !o + !p + !q + !pq);
19190
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 if ac_fn_c_try_compile "$LINENO"; then :
19196   ac_cv_header_stdbool_h=yes
19197 else
19198   ac_cv_header_stdbool_h=no
19199 fi
19200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19201 fi
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19203 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19204    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19205 if test "x$ac_cv_type__Bool" = xyes; then :
19206
19207 cat >>confdefs.h <<_ACEOF
19208 #define HAVE__BOOL 1
19209 _ACEOF
19210
19211
19212 fi
19213
19214
19215
19216     REPLACE_NULL=0;
19217   HAVE_WCHAR_T=1;
19218
19219
19220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19221 $as_echo_n "checking for wchar_t... " >&6; }
19222 if ${gt_cv_c_wchar_t+:} false; then :
19223   $as_echo_n "(cached) " >&6
19224 else
19225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19226 /* end confdefs.h.  */
19227 #include <stddef.h>
19228             wchar_t foo = (wchar_t)'\0';
19229 int
19230 main ()
19231 {
19232
19233   ;
19234   return 0;
19235 }
19236 _ACEOF
19237 if ac_fn_c_try_compile "$LINENO"; then :
19238   gt_cv_c_wchar_t=yes
19239 else
19240   gt_cv_c_wchar_t=no
19241 fi
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243 fi
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19245 $as_echo "$gt_cv_c_wchar_t" >&6; }
19246   if test $gt_cv_c_wchar_t = yes; then
19247
19248 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19249
19250   fi
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265   if test $ac_cv_type_long_long_int = yes; then
19266     HAVE_LONG_LONG_INT=1
19267   else
19268     HAVE_LONG_LONG_INT=0
19269   fi
19270
19271
19272   if test $ac_cv_type_unsigned_long_long_int = yes; then
19273     HAVE_UNSIGNED_LONG_LONG_INT=1
19274   else
19275     HAVE_UNSIGNED_LONG_LONG_INT=0
19276   fi
19277
19278
19279
19280   :
19281
19282
19283
19284
19285
19286   if test $ac_cv_header_wchar_h = yes; then
19287     HAVE_WCHAR_H=1
19288   else
19289     HAVE_WCHAR_H=0
19290   fi
19291
19292
19293       if test $ac_cv_header_inttypes_h = yes; then
19294     HAVE_INTTYPES_H=1
19295   else
19296     HAVE_INTTYPES_H=0
19297   fi
19298
19299
19300       if test $ac_cv_header_sys_types_h = yes; then
19301     HAVE_SYS_TYPES_H=1
19302   else
19303     HAVE_SYS_TYPES_H=0
19304   fi
19305
19306
19307
19308
19309
19310
19311
19312
19313   :
19314
19315
19316
19317
19318
19319
19320
19321
19322      if test $gl_cv_have_include_next = yes; then
19323        gl_cv_next_stdint_h='<'stdint.h'>'
19324      else
19325        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19326 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19327 if ${gl_cv_next_stdint_h+:} false; then :
19328   $as_echo_n "(cached) " >&6
19329 else
19330
19331              if test $ac_cv_header_stdint_h = yes; then
19332
19333
19334
19335
19336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h.  */
19338 #include <stdint.h>
19339 _ACEOF
19340                 case "$host_os" in
19341     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19342     *)    gl_absname_cpp="$ac_cpp" ;;
19343   esac
19344
19345   case "$host_os" in
19346     mingw*)
19347                                           gl_dirsep_regex='[/\\]'
19348       ;;
19349     *)
19350       gl_dirsep_regex='\/'
19351       ;;
19352   esac
19353       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19354   gl_header_literal_regex=`echo 'stdint.h' \
19355                            | sed -e "$gl_make_literal_regex_sed"`
19356   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19357       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19358       s|^/[^/]|//&|
19359       p
19360       q
19361     }'
19362
19363         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19364   sed -n "$gl_absolute_header_sed"`
19365
19366            gl_header=$gl_cv_absolute_stdint_h
19367            gl_cv_next_stdint_h='"'$gl_header'"'
19368           else
19369                gl_cv_next_stdint_h='<'stdint.h'>'
19370              fi
19371
19372
19373 fi
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19375 $as_echo "$gl_cv_next_stdint_h" >&6; }
19376      fi
19377      NEXT_STDINT_H=$gl_cv_next_stdint_h
19378
19379      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19380        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19381        gl_next_as_first_directive='<'stdint.h'>'
19382      else
19383        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19384        gl_next_as_first_directive=$gl_cv_next_stdint_h
19385      fi
19386      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19387
19388
19389
19390
19391   if test $ac_cv_header_stdint_h = yes; then
19392     HAVE_STDINT_H=1
19393   else
19394     HAVE_STDINT_H=0
19395   fi
19396
19397
19398     if test $ac_cv_header_stdint_h = yes; then
19399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19400 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19401 if ${gl_cv_header_working_stdint_h+:} false; then :
19402   $as_echo_n "(cached) " >&6
19403 else
19404   gl_cv_header_working_stdint_h=no
19405        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406 /* end confdefs.h.  */
19407
19408
19409 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19410 #include <stdint.h>
19411 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
19412 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19413 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19414 #endif
19415
19416
19417   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19418      included before <wchar.h>.  */
19419   #include <stddef.h>
19420   #include <signal.h>
19421   #if HAVE_WCHAR_H
19422   # include <stdio.h>
19423   # include <time.h>
19424   # include <wchar.h>
19425   #endif
19426
19427
19428 #ifdef INT8_MAX
19429 int8_t a1 = INT8_MAX;
19430 int8_t a1min = INT8_MIN;
19431 #endif
19432 #ifdef INT16_MAX
19433 int16_t a2 = INT16_MAX;
19434 int16_t a2min = INT16_MIN;
19435 #endif
19436 #ifdef INT32_MAX
19437 int32_t a3 = INT32_MAX;
19438 int32_t a3min = INT32_MIN;
19439 #endif
19440 #ifdef INT64_MAX
19441 int64_t a4 = INT64_MAX;
19442 int64_t a4min = INT64_MIN;
19443 #endif
19444 #ifdef UINT8_MAX
19445 uint8_t b1 = UINT8_MAX;
19446 #else
19447 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19448 #endif
19449 #ifdef UINT16_MAX
19450 uint16_t b2 = UINT16_MAX;
19451 #endif
19452 #ifdef UINT32_MAX
19453 uint32_t b3 = UINT32_MAX;
19454 #endif
19455 #ifdef UINT64_MAX
19456 uint64_t b4 = UINT64_MAX;
19457 #endif
19458 int_least8_t c1 = INT8_C (0x7f);
19459 int_least8_t c1max = INT_LEAST8_MAX;
19460 int_least8_t c1min = INT_LEAST8_MIN;
19461 int_least16_t c2 = INT16_C (0x7fff);
19462 int_least16_t c2max = INT_LEAST16_MAX;
19463 int_least16_t c2min = INT_LEAST16_MIN;
19464 int_least32_t c3 = INT32_C (0x7fffffff);
19465 int_least32_t c3max = INT_LEAST32_MAX;
19466 int_least32_t c3min = INT_LEAST32_MIN;
19467 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19468 int_least64_t c4max = INT_LEAST64_MAX;
19469 int_least64_t c4min = INT_LEAST64_MIN;
19470 uint_least8_t d1 = UINT8_C (0xff);
19471 uint_least8_t d1max = UINT_LEAST8_MAX;
19472 uint_least16_t d2 = UINT16_C (0xffff);
19473 uint_least16_t d2max = UINT_LEAST16_MAX;
19474 uint_least32_t d3 = UINT32_C (0xffffffff);
19475 uint_least32_t d3max = UINT_LEAST32_MAX;
19476 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19477 uint_least64_t d4max = UINT_LEAST64_MAX;
19478 int_fast8_t e1 = INT_FAST8_MAX;
19479 int_fast8_t e1min = INT_FAST8_MIN;
19480 int_fast16_t e2 = INT_FAST16_MAX;
19481 int_fast16_t e2min = INT_FAST16_MIN;
19482 int_fast32_t e3 = INT_FAST32_MAX;
19483 int_fast32_t e3min = INT_FAST32_MIN;
19484 int_fast64_t e4 = INT_FAST64_MAX;
19485 int_fast64_t e4min = INT_FAST64_MIN;
19486 uint_fast8_t f1 = UINT_FAST8_MAX;
19487 uint_fast16_t f2 = UINT_FAST16_MAX;
19488 uint_fast32_t f3 = UINT_FAST32_MAX;
19489 uint_fast64_t f4 = UINT_FAST64_MAX;
19490 #ifdef INTPTR_MAX
19491 intptr_t g = INTPTR_MAX;
19492 intptr_t gmin = INTPTR_MIN;
19493 #endif
19494 #ifdef UINTPTR_MAX
19495 uintptr_t h = UINTPTR_MAX;
19496 #endif
19497 intmax_t i = INTMAX_MAX;
19498 uintmax_t j = UINTMAX_MAX;
19499
19500 #include <limits.h> /* for CHAR_BIT */
19501 #define TYPE_MINIMUM(t) \
19502   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19503 #define TYPE_MAXIMUM(t) \
19504   ((t) ((t) 0 < (t) -1 \
19505         ? (t) -1 \
19506         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19507 struct s {
19508   int check_PTRDIFF:
19509       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19510       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19511       ? 1 : -1;
19512   /* Detect bug in FreeBSD 6.0 / ia64.  */
19513   int check_SIG_ATOMIC:
19514       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19515       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19516       ? 1 : -1;
19517   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19518   int check_WCHAR:
19519       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19520       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19521       ? 1 : -1;
19522   /* Detect bug in mingw.  */
19523   int check_WINT:
19524       WINT_MIN == TYPE_MINIMUM (wint_t)
19525       && WINT_MAX == TYPE_MAXIMUM (wint_t)
19526       ? 1 : -1;
19527
19528   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
19529   int check_UINT8_C:
19530         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19531   int check_UINT16_C:
19532         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19533
19534   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
19535 #ifdef UINT8_MAX
19536   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19537 #endif
19538 #ifdef UINT16_MAX
19539   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19540 #endif
19541 #ifdef UINT32_MAX
19542   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19543 #endif
19544 #ifdef UINT64_MAX
19545   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19546 #endif
19547   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19548   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19549   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19550   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19551   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19552   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19553   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19554   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19555   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19556   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19557   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19558 };
19559
19560 int
19561 main ()
19562 {
19563
19564   ;
19565   return 0;
19566 }
19567 _ACEOF
19568 if ac_fn_c_try_compile "$LINENO"; then :
19569                                                     if test "$cross_compiling" = yes; then :
19570                  gl_cv_header_working_stdint_h=yes
19571
19572 else
19573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h.  */
19575
19576
19577 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19578 #include <stdint.h>
19579
19580
19581   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19582      included before <wchar.h>.  */
19583   #include <stddef.h>
19584   #include <signal.h>
19585   #if HAVE_WCHAR_H
19586   # include <stdio.h>
19587   # include <time.h>
19588   # include <wchar.h>
19589   #endif
19590
19591
19592 #include <stdio.h>
19593 #include <string.h>
19594 #define MVAL(macro) MVAL1(macro)
19595 #define MVAL1(expression) #expression
19596 static const char *macro_values[] =
19597   {
19598 #ifdef INT8_MAX
19599     MVAL (INT8_MAX),
19600 #endif
19601 #ifdef INT16_MAX
19602     MVAL (INT16_MAX),
19603 #endif
19604 #ifdef INT32_MAX
19605     MVAL (INT32_MAX),
19606 #endif
19607 #ifdef INT64_MAX
19608     MVAL (INT64_MAX),
19609 #endif
19610 #ifdef UINT8_MAX
19611     MVAL (UINT8_MAX),
19612 #endif
19613 #ifdef UINT16_MAX
19614     MVAL (UINT16_MAX),
19615 #endif
19616 #ifdef UINT32_MAX
19617     MVAL (UINT32_MAX),
19618 #endif
19619 #ifdef UINT64_MAX
19620     MVAL (UINT64_MAX),
19621 #endif
19622     NULL
19623   };
19624
19625 int
19626 main ()
19627 {
19628
19629   const char **mv;
19630   for (mv = macro_values; *mv != NULL; mv++)
19631     {
19632       const char *value = *mv;
19633       /* Test whether it looks like a cast expression.  */
19634       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19635           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19636           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19637           || strncmp (value, "((int)"/*)*/, 6) == 0
19638           || strncmp (value, "((signed short)"/*)*/, 15) == 0
19639           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19640         return mv - macro_values + 1;
19641     }
19642   return 0;
19643
19644   ;
19645   return 0;
19646 }
19647 _ACEOF
19648 if ac_fn_c_try_run "$LINENO"; then :
19649   gl_cv_header_working_stdint_h=yes
19650 fi
19651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19652   conftest.$ac_objext conftest.beam conftest.$ac_ext
19653 fi
19654
19655
19656 fi
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658
19659 fi
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19661 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19662   fi
19663   if test "$gl_cv_header_working_stdint_h" = yes; then
19664     STDINT_H=
19665   else
19666             for ac_header in sys/inttypes.h sys/bitypes.h
19667 do :
19668   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19669 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19670 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19671   cat >>confdefs.h <<_ACEOF
19672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19673 _ACEOF
19674
19675 fi
19676
19677 done
19678
19679     if test $ac_cv_header_sys_inttypes_h = yes; then
19680       HAVE_SYS_INTTYPES_H=1
19681     else
19682       HAVE_SYS_INTTYPES_H=0
19683     fi
19684
19685     if test $ac_cv_header_sys_bitypes_h = yes; then
19686       HAVE_SYS_BITYPES_H=1
19687     else
19688       HAVE_SYS_BITYPES_H=0
19689     fi
19690
19691
19692
19693
19694   if test $APPLE_UNIVERSAL_BUILD = 0; then
19695
19696
19697   for gltype in ptrdiff_t size_t ; do
19698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19699 $as_echo_n "checking for bit size of $gltype... " >&6; }
19700 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19701   $as_echo_n "(cached) " >&6
19702 else
19703   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
19704   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19705      included before <wchar.h>.  */
19706   #include <stddef.h>
19707   #include <signal.h>
19708   #if HAVE_WCHAR_H
19709   # include <stdio.h>
19710   # include <time.h>
19711   # include <wchar.h>
19712   #endif
19713
19714 #include <limits.h>"; then :
19715
19716 else
19717   result=unknown
19718 fi
19719
19720        eval gl_cv_bitsizeof_${gltype}=\$result
19721
19722 fi
19723 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19724                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19725 $as_echo "$ac_res" >&6; }
19726     eval result=\$gl_cv_bitsizeof_${gltype}
19727     if test $result = unknown; then
19728                                                 result=0
19729     fi
19730     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19731     cat >>confdefs.h <<_ACEOF
19732 #define BITSIZEOF_${GLTYPE} $result
19733 _ACEOF
19734
19735     eval BITSIZEOF_${GLTYPE}=\$result
19736   done
19737
19738
19739   fi
19740
19741
19742   for gltype in sig_atomic_t wchar_t wint_t ; do
19743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19744 $as_echo_n "checking for bit size of $gltype... " >&6; }
19745 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19746   $as_echo_n "(cached) " >&6
19747 else
19748   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
19749   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19750      included before <wchar.h>.  */
19751   #include <stddef.h>
19752   #include <signal.h>
19753   #if HAVE_WCHAR_H
19754   # include <stdio.h>
19755   # include <time.h>
19756   # include <wchar.h>
19757   #endif
19758
19759 #include <limits.h>"; then :
19760
19761 else
19762   result=unknown
19763 fi
19764
19765        eval gl_cv_bitsizeof_${gltype}=\$result
19766
19767 fi
19768 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19769                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19770 $as_echo "$ac_res" >&6; }
19771     eval result=\$gl_cv_bitsizeof_${gltype}
19772     if test $result = unknown; then
19773                                                 result=0
19774     fi
19775     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19776     cat >>confdefs.h <<_ACEOF
19777 #define BITSIZEOF_${GLTYPE} $result
19778 _ACEOF
19779
19780     eval BITSIZEOF_${GLTYPE}=\$result
19781   done
19782
19783
19784
19785
19786   for gltype in sig_atomic_t wchar_t wint_t ; do
19787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19788 $as_echo_n "checking whether $gltype is signed... " >&6; }
19789 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
19790   $as_echo_n "(cached) " >&6
19791 else
19792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19793 /* end confdefs.h.  */
19794
19795   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19796      included before <wchar.h>.  */
19797   #include <stddef.h>
19798   #include <signal.h>
19799   #if HAVE_WCHAR_H
19800   # include <stdio.h>
19801   # include <time.h>
19802   # include <wchar.h>
19803   #endif
19804
19805             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19806 int
19807 main ()
19808 {
19809
19810   ;
19811   return 0;
19812 }
19813 _ACEOF
19814 if ac_fn_c_try_compile "$LINENO"; then :
19815   result=yes
19816 else
19817   result=no
19818 fi
19819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820        eval gl_cv_type_${gltype}_signed=\$result
19821
19822 fi
19823 eval ac_res=\$gl_cv_type_${gltype}_signed
19824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19825 $as_echo "$ac_res" >&6; }
19826     eval result=\$gl_cv_type_${gltype}_signed
19827     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19828     if test "$result" = yes; then
19829       cat >>confdefs.h <<_ACEOF
19830 #define HAVE_SIGNED_${GLTYPE} 1
19831 _ACEOF
19832
19833       eval HAVE_SIGNED_${GLTYPE}=1
19834     else
19835       eval HAVE_SIGNED_${GLTYPE}=0
19836     fi
19837   done
19838
19839
19840   gl_cv_type_ptrdiff_t_signed=yes
19841   gl_cv_type_size_t_signed=no
19842   if test $APPLE_UNIVERSAL_BUILD = 0; then
19843
19844
19845   for gltype in ptrdiff_t size_t ; do
19846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19847 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19848 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19849   $as_echo_n "(cached) " >&6
19850 else
19851   eval gl_cv_type_${gltype}_suffix=no
19852        eval result=\$gl_cv_type_${gltype}_signed
19853        if test "$result" = yes; then
19854          glsufu=
19855        else
19856          glsufu=u
19857        fi
19858        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19859          case $glsuf in
19860            '')  gltype1='int';;
19861            l)   gltype1='long int';;
19862            ll)  gltype1='long long int';;
19863            i64) gltype1='__int64';;
19864            u)   gltype1='unsigned int';;
19865            ul)  gltype1='unsigned long int';;
19866            ull) gltype1='unsigned long long int';;
19867            ui64)gltype1='unsigned __int64';;
19868          esac
19869          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h.  */
19871
19872   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19873      included before <wchar.h>.  */
19874   #include <stddef.h>
19875   #include <signal.h>
19876   #if HAVE_WCHAR_H
19877   # include <stdio.h>
19878   # include <time.h>
19879   # include <wchar.h>
19880   #endif
19881
19882               extern $gltype foo;
19883               extern $gltype1 foo;
19884 int
19885 main ()
19886 {
19887
19888   ;
19889   return 0;
19890 }
19891 _ACEOF
19892 if ac_fn_c_try_compile "$LINENO"; then :
19893   eval gl_cv_type_${gltype}_suffix=\$glsuf
19894 fi
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896          eval result=\$gl_cv_type_${gltype}_suffix
19897          test "$result" != no && break
19898        done
19899 fi
19900 eval ac_res=\$gl_cv_type_${gltype}_suffix
19901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19902 $as_echo "$ac_res" >&6; }
19903     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19904     eval result=\$gl_cv_type_${gltype}_suffix
19905     test "$result" = no && result=
19906     eval ${GLTYPE}_SUFFIX=\$result
19907     cat >>confdefs.h <<_ACEOF
19908 #define ${GLTYPE}_SUFFIX $result
19909 _ACEOF
19910
19911   done
19912
19913
19914   fi
19915
19916
19917   for gltype in sig_atomic_t wchar_t wint_t ; do
19918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19919 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19920 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19921   $as_echo_n "(cached) " >&6
19922 else
19923   eval gl_cv_type_${gltype}_suffix=no
19924        eval result=\$gl_cv_type_${gltype}_signed
19925        if test "$result" = yes; then
19926          glsufu=
19927        else
19928          glsufu=u
19929        fi
19930        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19931          case $glsuf in
19932            '')  gltype1='int';;
19933            l)   gltype1='long int';;
19934            ll)  gltype1='long long int';;
19935            i64) gltype1='__int64';;
19936            u)   gltype1='unsigned int';;
19937            ul)  gltype1='unsigned long int';;
19938            ull) gltype1='unsigned long long int';;
19939            ui64)gltype1='unsigned __int64';;
19940          esac
19941          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h.  */
19943
19944   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19945      included before <wchar.h>.  */
19946   #include <stddef.h>
19947   #include <signal.h>
19948   #if HAVE_WCHAR_H
19949   # include <stdio.h>
19950   # include <time.h>
19951   # include <wchar.h>
19952   #endif
19953
19954               extern $gltype foo;
19955               extern $gltype1 foo;
19956 int
19957 main ()
19958 {
19959
19960   ;
19961   return 0;
19962 }
19963 _ACEOF
19964 if ac_fn_c_try_compile "$LINENO"; then :
19965   eval gl_cv_type_${gltype}_suffix=\$glsuf
19966 fi
19967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968          eval result=\$gl_cv_type_${gltype}_suffix
19969          test "$result" != no && break
19970        done
19971 fi
19972 eval ac_res=\$gl_cv_type_${gltype}_suffix
19973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19974 $as_echo "$ac_res" >&6; }
19975     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19976     eval result=\$gl_cv_type_${gltype}_suffix
19977     test "$result" = no && result=
19978     eval ${GLTYPE}_SUFFIX=\$result
19979     cat >>confdefs.h <<_ACEOF
19980 #define ${GLTYPE}_SUFFIX $result
19981 _ACEOF
19982
19983   done
19984
19985
19986
19987           if test $BITSIZEOF_WINT_T -lt 32; then
19988     BITSIZEOF_WINT_T=32
19989   fi
19990
19991     STDINT_H=stdint.h
19992   fi
19993
19994    if test -n "$STDINT_H"; then
19995   GL_GENERATE_STDINT_H_TRUE=
19996   GL_GENERATE_STDINT_H_FALSE='#'
19997 else
19998   GL_GENERATE_STDINT_H_TRUE='#'
19999   GL_GENERATE_STDINT_H_FALSE=
20000 fi
20001
20002
20003
20004      REPLACE_STRERROR_0=0
20005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
20006 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
20007 if ${gl_cv_func_strerror_0_works+:} false; then :
20008   $as_echo_n "(cached) " >&6
20009 else
20010   if test "$cross_compiling" = yes; then :
20011   case "$host_os" in
20012                  # Guess yes on glibc systems.
20013          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
20014                  # If we don't know, assume the worst.
20015          *)      gl_cv_func_strerror_0_works="guessing no" ;;
20016        esac
20017
20018 else
20019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h.  */
20021 #include <string.h>
20022            #include <errno.h>
20023
20024 int
20025 main ()
20026 {
20027 int result = 0;
20028            char *str;
20029            errno = 0;
20030            str = strerror (0);
20031            if (!*str) result |= 1;
20032            if (errno) result |= 2;
20033            if (strstr (str, "nknown") || strstr (str, "ndefined"))
20034              result |= 4;
20035            return result;
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 if ac_fn_c_try_run "$LINENO"; then :
20041   gl_cv_func_strerror_0_works=yes
20042 else
20043   gl_cv_func_strerror_0_works=no
20044 fi
20045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20046   conftest.$ac_objext conftest.beam conftest.$ac_ext
20047 fi
20048
20049
20050 fi
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
20052 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
20053   case "$gl_cv_func_strerror_0_works" in
20054     *yes) ;;
20055     *)
20056       REPLACE_STRERROR_0=1
20057
20058 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
20059
20060       ;;
20061   esac
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074      if test $gl_cv_have_include_next = yes; then
20075        gl_cv_next_string_h='<'string.h'>'
20076      else
20077        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20078 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20079 if ${gl_cv_next_string_h+:} false; then :
20080   $as_echo_n "(cached) " >&6
20081 else
20082
20083
20084
20085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h.  */
20087 #include <string.h>
20088 _ACEOF
20089                 case "$host_os" in
20090     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20091     *)    gl_absname_cpp="$ac_cpp" ;;
20092   esac
20093
20094   case "$host_os" in
20095     mingw*)
20096                                           gl_dirsep_regex='[/\\]'
20097       ;;
20098     *)
20099       gl_dirsep_regex='\/'
20100       ;;
20101   esac
20102       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20103   gl_header_literal_regex=`echo 'string.h' \
20104                            | sed -e "$gl_make_literal_regex_sed"`
20105   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20106       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20107       s|^/[^/]|//&|
20108       p
20109       q
20110     }'
20111
20112         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20113   sed -n "$gl_absolute_header_sed"`
20114
20115            gl_header=$gl_cv_absolute_string_h
20116            gl_cv_next_string_h='"'$gl_header'"'
20117
20118
20119 fi
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20121 $as_echo "$gl_cv_next_string_h" >&6; }
20122      fi
20123      NEXT_STRING_H=$gl_cv_next_string_h
20124
20125      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20126        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20127        gl_next_as_first_directive='<'string.h'>'
20128      else
20129        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20130        gl_next_as_first_directive=$gl_cv_next_string_h
20131      fi
20132      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20133
20134
20135
20136
20137
20138
20139     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
20140     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20142 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20143 if eval \${$as_gl_Symbol+:} false; then :
20144   $as_echo_n "(cached) " >&6
20145 else
20146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h.  */
20148 #include <string.h>
20149
20150 int
20151 main ()
20152 {
20153 #undef $gl_func
20154   (void) $gl_func;
20155   ;
20156   return 0;
20157 }
20158 _ACEOF
20159 if ac_fn_c_try_compile "$LINENO"; then :
20160   eval "$as_gl_Symbol=yes"
20161 else
20162   eval "$as_gl_Symbol=no"
20163 fi
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 fi
20166 eval ac_res=\$$as_gl_Symbol
20167                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20168 $as_echo "$ac_res" >&6; }
20169     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20170   cat >>confdefs.h <<_ACEOF
20171 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20172 _ACEOF
20173
20174                      eval ac_cv_have_decl_$gl_func=yes
20175 fi
20176       done
20177
20178
20179
20180       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
20181 if test "x$ac_cv_have_decl_strndup" = xyes; then :
20182   ac_have_decl=1
20183 else
20184   ac_have_decl=0
20185 fi
20186
20187 cat >>confdefs.h <<_ACEOF
20188 #define HAVE_DECL_STRNDUP $ac_have_decl
20189 _ACEOF
20190
20191
20192
20193
20194
20195
20196
20197
20198       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
20199 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
20200   ac_have_decl=1
20201 else
20202   ac_have_decl=0
20203 fi
20204
20205 cat >>confdefs.h <<_ACEOF
20206 #define HAVE_DECL_STRNLEN $ac_have_decl
20207 _ACEOF
20208
20209
20210
20211       ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
20212 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
20213   ac_have_decl=1
20214 else
20215   ac_have_decl=0
20216 fi
20217
20218 cat >>confdefs.h <<_ACEOF
20219 #define HAVE_DECL_STRSIGNAL $ac_have_decl
20220 _ACEOF
20221
20222
20223 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
20224 /* NetBSD declares sys_siglist in unistd.h.  */
20225 #ifdef HAVE_UNISTD_H
20226 # include <unistd.h>
20227 #endif
20228
20229 "
20230 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
20231   ac_have_decl=1
20232 else
20233   ac_have_decl=0
20234 fi
20235
20236 cat >>confdefs.h <<_ACEOF
20237 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
20238 _ACEOF
20239
20240
20241
20242   GNULIB_PSELECT=0;
20243   GNULIB_SELECT=0;
20244     HAVE_PSELECT=1;
20245   REPLACE_PSELECT=0;
20246   REPLACE_SELECT=0;
20247
20248
20249
20250
20251
20252
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20254 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20255 if ${ac_cv_header_stat_broken+:} false; then :
20256   $as_echo_n "(cached) " >&6
20257 else
20258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20259 /* end confdefs.h.  */
20260 #include <sys/types.h>
20261 #include <sys/stat.h>
20262
20263 #if defined S_ISBLK && defined S_IFDIR
20264 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20265 #endif
20266
20267 #if defined S_ISBLK && defined S_IFCHR
20268 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20269 #endif
20270
20271 #if defined S_ISLNK && defined S_IFREG
20272 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20273 #endif
20274
20275 #if defined S_ISSOCK && defined S_IFREG
20276 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20277 #endif
20278
20279 _ACEOF
20280 if ac_fn_c_try_compile "$LINENO"; then :
20281   ac_cv_header_stat_broken=no
20282 else
20283   ac_cv_header_stat_broken=yes
20284 fi
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 fi
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20288 $as_echo "$ac_cv_header_stat_broken" >&6; }
20289 if test $ac_cv_header_stat_broken = yes; then
20290
20291 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20292
20293 fi
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318      if test $gl_cv_have_include_next = yes; then
20319        gl_cv_next_sys_types_h='<'sys/types.h'>'
20320      else
20321        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20322 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20323 if ${gl_cv_next_sys_types_h+:} false; then :
20324   $as_echo_n "(cached) " >&6
20325 else
20326
20327
20328
20329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20330 /* end confdefs.h.  */
20331 #include <sys/types.h>
20332 _ACEOF
20333                 case "$host_os" in
20334     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20335     *)    gl_absname_cpp="$ac_cpp" ;;
20336   esac
20337
20338   case "$host_os" in
20339     mingw*)
20340                                           gl_dirsep_regex='[/\\]'
20341       ;;
20342     *)
20343       gl_dirsep_regex='\/'
20344       ;;
20345   esac
20346       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20347   gl_header_literal_regex=`echo 'sys/types.h' \
20348                            | sed -e "$gl_make_literal_regex_sed"`
20349   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20350       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20351       s|^/[^/]|//&|
20352       p
20353       q
20354     }'
20355
20356         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20357   sed -n "$gl_absolute_header_sed"`
20358
20359            gl_header=$gl_cv_absolute_sys_types_h
20360            gl_cv_next_sys_types_h='"'$gl_header'"'
20361
20362
20363 fi
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20365 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20366      fi
20367      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20368
20369      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20370        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20371        gl_next_as_first_directive='<'sys/types.h'>'
20372      else
20373        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20374        gl_next_as_first_directive=$gl_cv_next_sys_types_h
20375      fi
20376      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389   GNULIB_WAITPID=0;
20390
20391
20392
20393
20394
20395
20396
20397   GNULIB_MKTIME=0;
20398   GNULIB_NANOSLEEP=0;
20399   GNULIB_STRPTIME=0;
20400   GNULIB_TIMEGM=0;
20401   GNULIB_TIME_R=0;
20402     HAVE_DECL_LOCALTIME_R=1;
20403   HAVE_NANOSLEEP=1;
20404   HAVE_STRPTIME=1;
20405   HAVE_TIMEGM=1;
20406         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20407   REPLACE_MKTIME=GNULIB_PORTCHECK;
20408   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20409   REPLACE_TIMEGM=GNULIB_PORTCHECK;
20410
20411       : ${GNULIB_GETTIMEOFDAY=0};
20412         REPLACE_GMTIME=0;
20413   REPLACE_LOCALTIME=0;
20414
20415
20416
20417   :
20418
20419
20420
20421
20422
20423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20424 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20425 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
20426   $as_echo_n "(cached) " >&6
20427 else
20428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20429 /* end confdefs.h.  */
20430 #include <time.h>
20431
20432 int
20433 main ()
20434 {
20435 static struct timespec x; x.tv_sec = x.tv_nsec;
20436   ;
20437   return 0;
20438 }
20439 _ACEOF
20440 if ac_fn_c_try_compile "$LINENO"; then :
20441   gl_cv_sys_struct_timespec_in_time_h=yes
20442 else
20443   gl_cv_sys_struct_timespec_in_time_h=no
20444 fi
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446 fi
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20448 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20449
20450   TIME_H_DEFINES_STRUCT_TIMESPEC=0
20451   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20452   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20453   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20454     TIME_H_DEFINES_STRUCT_TIMESPEC=1
20455   else
20456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20457 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20458 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
20459   $as_echo_n "(cached) " >&6
20460 else
20461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h.  */
20463 #include <sys/time.h>
20464
20465 int
20466 main ()
20467 {
20468 static struct timespec x; x.tv_sec = x.tv_nsec;
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 if ac_fn_c_try_compile "$LINENO"; then :
20474   gl_cv_sys_struct_timespec_in_sys_time_h=yes
20475 else
20476   gl_cv_sys_struct_timespec_in_sys_time_h=no
20477 fi
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479 fi
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20481 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20482     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20483       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20484     else
20485       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20486 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20487 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
20488   $as_echo_n "(cached) " >&6
20489 else
20490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h.  */
20492 #include <pthread.h>
20493
20494 int
20495 main ()
20496 {
20497 static struct timespec x; x.tv_sec = x.tv_nsec;
20498   ;
20499   return 0;
20500 }
20501 _ACEOF
20502 if ac_fn_c_try_compile "$LINENO"; then :
20503   gl_cv_sys_struct_timespec_in_pthread_h=yes
20504 else
20505   gl_cv_sys_struct_timespec_in_pthread_h=no
20506 fi
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 fi
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20510 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20511       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20512         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20513       fi
20514     fi
20515   fi
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531      if test $gl_cv_have_include_next = yes; then
20532        gl_cv_next_time_h='<'time.h'>'
20533      else
20534        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20535 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20536 if ${gl_cv_next_time_h+:} false; then :
20537   $as_echo_n "(cached) " >&6
20538 else
20539
20540
20541
20542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h.  */
20544 #include <time.h>
20545 _ACEOF
20546                 case "$host_os" in
20547     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20548     *)    gl_absname_cpp="$ac_cpp" ;;
20549   esac
20550
20551   case "$host_os" in
20552     mingw*)
20553                                           gl_dirsep_regex='[/\\]'
20554       ;;
20555     *)
20556       gl_dirsep_regex='\/'
20557       ;;
20558   esac
20559       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20560   gl_header_literal_regex=`echo 'time.h' \
20561                            | sed -e "$gl_make_literal_regex_sed"`
20562   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20563       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20564       s|^/[^/]|//&|
20565       p
20566       q
20567     }'
20568
20569         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20570   sed -n "$gl_absolute_header_sed"`
20571
20572            gl_header=$gl_cv_absolute_time_h
20573            gl_cv_next_time_h='"'$gl_header'"'
20574
20575
20576 fi
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20578 $as_echo "$gl_cv_next_time_h" >&6; }
20579      fi
20580      NEXT_TIME_H=$gl_cv_next_time_h
20581
20582      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20583        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20584        gl_next_as_first_directive='<'time.h'>'
20585      else
20586        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20587        gl_next_as_first_directive=$gl_cv_next_time_h
20588      fi
20589      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20590
20591
20592
20593
20594
20595
20596
20597       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20598 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
20599   ac_have_decl=1
20600 else
20601   ac_have_decl=0
20602 fi
20603
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_DECL_UNSETENV $ac_have_decl
20606 _ACEOF
20607
20608
20609
20610
20611
20612
20613
20614
20615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20616 $as_echo_n "checking for wint_t... " >&6; }
20617 if ${gt_cv_c_wint_t+:} false; then :
20618   $as_echo_n "(cached) " >&6
20619 else
20620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h.  */
20622
20623 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20624    <wchar.h>.
20625    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20626    before <wchar.h>.  */
20627 #include <stddef.h>
20628 #include <stdio.h>
20629 #include <time.h>
20630 #include <wchar.h>
20631             wint_t foo = (wchar_t)'\0';
20632 int
20633 main ()
20634 {
20635
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 if ac_fn_c_try_compile "$LINENO"; then :
20641   gt_cv_c_wint_t=yes
20642 else
20643   gt_cv_c_wint_t=no
20644 fi
20645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20646 fi
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20648 $as_echo "$gt_cv_c_wint_t" >&6; }
20649   if test $gt_cv_c_wint_t = yes; then
20650
20651 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20652
20653   fi
20654
20655
20656
20657
20658
20659
20660
20661
20662   :
20663
20664
20665
20666
20667
20668   if test $ac_cv_header_features_h = yes; then
20669     HAVE_FEATURES_H=1
20670   else
20671     HAVE_FEATURES_H=0
20672   fi
20673
20674
20675
20676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20677 $as_echo_n "checking for inttypes.h... " >&6; }
20678 if ${gl_cv_header_inttypes_h+:} false; then :
20679   $as_echo_n "(cached) " >&6
20680 else
20681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h.  */
20683
20684 #include <sys/types.h>
20685 #include <inttypes.h>
20686
20687 int
20688 main ()
20689 {
20690 uintmax_t i = (uintmax_t) -1; return !i;
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 if ac_fn_c_try_compile "$LINENO"; then :
20696   gl_cv_header_inttypes_h=yes
20697 else
20698   gl_cv_header_inttypes_h=no
20699 fi
20700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 fi
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20703 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20704   if test $gl_cv_header_inttypes_h = yes; then
20705
20706 cat >>confdefs.h <<_ACEOF
20707 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20708 _ACEOF
20709
20710   fi
20711
20712
20713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20714 $as_echo_n "checking for stdint.h... " >&6; }
20715 if ${gl_cv_header_stdint_h+:} false; then :
20716   $as_echo_n "(cached) " >&6
20717 else
20718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h.  */
20720 #include <sys/types.h>
20721             #include <stdint.h>
20722 int
20723 main ()
20724 {
20725 uintmax_t i = (uintmax_t) -1; return !i;
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 if ac_fn_c_try_compile "$LINENO"; then :
20731   gl_cv_header_stdint_h=yes
20732 else
20733   gl_cv_header_stdint_h=no
20734 fi
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 fi
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20738 $as_echo "$gl_cv_header_stdint_h" >&6; }
20739   if test $gl_cv_header_stdint_h = yes; then
20740
20741 cat >>confdefs.h <<_ACEOF
20742 #define HAVE_STDINT_H_WITH_UINTMAX 1
20743 _ACEOF
20744
20745   fi
20746
20747
20748
20749
20750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20751 $as_echo_n "checking for intmax_t... " >&6; }
20752 if ${gt_cv_c_intmax_t+:} false; then :
20753   $as_echo_n "(cached) " >&6
20754 else
20755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20756 /* end confdefs.h.  */
20757
20758 #include <stddef.h>
20759 #include <stdlib.h>
20760 #if HAVE_STDINT_H_WITH_UINTMAX
20761 #include <stdint.h>
20762 #endif
20763 #if HAVE_INTTYPES_H_WITH_UINTMAX
20764 #include <inttypes.h>
20765 #endif
20766
20767 int
20768 main ()
20769 {
20770 intmax_t x = -1; return !x;
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 if ac_fn_c_try_compile "$LINENO"; then :
20776   gt_cv_c_intmax_t=yes
20777 else
20778   gt_cv_c_intmax_t=no
20779 fi
20780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20781 fi
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20783 $as_echo "$gt_cv_c_intmax_t" >&6; }
20784   if test $gt_cv_c_intmax_t = yes; then
20785
20786 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20787
20788   else
20789
20790     test $ac_cv_type_long_long_int = yes \
20791       && ac_type='long long' \
20792       || ac_type='long'
20793
20794 cat >>confdefs.h <<_ACEOF
20795 #define intmax_t $ac_type
20796 _ACEOF
20797
20798   fi
20799
20800
20801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20802 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20803 if ${gl_cv_cc_double_expbit0+:} false; then :
20804   $as_echo_n "(cached) " >&6
20805 else
20806
20807       if test "$cross_compiling" = yes; then :
20808
20809                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20810 /* end confdefs.h.  */
20811
20812 #if defined arm || defined __arm || defined __arm__
20813   mixed_endianness
20814 #endif
20815
20816 _ACEOF
20817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20818   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20819   gl_cv_cc_double_expbit0="unknown"
20820 else
20821
20822                                                          :
20823 if ${ac_cv_c_bigendian+:} false; then :
20824   $as_echo_n "(cached) " >&6
20825 else
20826   ac_cv_c_bigendian=unknown
20827     # See if we're dealing with a universal compiler.
20828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829 /* end confdefs.h.  */
20830 #ifndef __APPLE_CC__
20831                not a universal capable compiler
20832              #endif
20833              typedef int dummy;
20834
20835 _ACEOF
20836 if ac_fn_c_try_compile "$LINENO"; then :
20837
20838         # Check for potential -arch flags.  It is not universal unless
20839         # there are at least two -arch flags with different values.
20840         ac_arch=
20841         ac_prev=
20842         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20843          if test -n "$ac_prev"; then
20844            case $ac_word in
20845              i?86 | x86_64 | ppc | ppc64)
20846                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20847                  ac_arch=$ac_word
20848                else
20849                  ac_cv_c_bigendian=universal
20850                  break
20851                fi
20852                ;;
20853            esac
20854            ac_prev=
20855          elif test "x$ac_word" = "x-arch"; then
20856            ac_prev=arch
20857          fi
20858        done
20859 fi
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861     if test $ac_cv_c_bigendian = unknown; then
20862       # See if sys/param.h defines the BYTE_ORDER macro.
20863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20864 /* end confdefs.h.  */
20865 #include <sys/types.h>
20866              #include <sys/param.h>
20867
20868 int
20869 main ()
20870 {
20871 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20872                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20873                      && LITTLE_ENDIAN)
20874               bogus endian macros
20875              #endif
20876
20877   ;
20878   return 0;
20879 }
20880 _ACEOF
20881 if ac_fn_c_try_compile "$LINENO"; then :
20882   # It does; now see whether it defined to BIG_ENDIAN or not.
20883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20884 /* end confdefs.h.  */
20885 #include <sys/types.h>
20886                 #include <sys/param.h>
20887
20888 int
20889 main ()
20890 {
20891 #if BYTE_ORDER != BIG_ENDIAN
20892                  not big endian
20893                 #endif
20894
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 if ac_fn_c_try_compile "$LINENO"; then :
20900   ac_cv_c_bigendian=yes
20901 else
20902   ac_cv_c_bigendian=no
20903 fi
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 fi
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907     fi
20908     if test $ac_cv_c_bigendian = unknown; then
20909       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20910       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911 /* end confdefs.h.  */
20912 #include <limits.h>
20913
20914 int
20915 main ()
20916 {
20917 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20918               bogus endian macros
20919              #endif
20920
20921   ;
20922   return 0;
20923 }
20924 _ACEOF
20925 if ac_fn_c_try_compile "$LINENO"; then :
20926   # It does; now see whether it defined to _BIG_ENDIAN or not.
20927          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h.  */
20929 #include <limits.h>
20930
20931 int
20932 main ()
20933 {
20934 #ifndef _BIG_ENDIAN
20935                  not big endian
20936                 #endif
20937
20938   ;
20939   return 0;
20940 }
20941 _ACEOF
20942 if ac_fn_c_try_compile "$LINENO"; then :
20943   ac_cv_c_bigendian=yes
20944 else
20945   ac_cv_c_bigendian=no
20946 fi
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 fi
20949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950     fi
20951     if test $ac_cv_c_bigendian = unknown; then
20952       # Compile a test program.
20953       if test "$cross_compiling" = yes; then :
20954   # Try to guess by grepping values from an object file.
20955          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h.  */
20957 short int ascii_mm[] =
20958                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20959                 short int ascii_ii[] =
20960                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20961                 int use_ascii (int i) {
20962                   return ascii_mm[i] + ascii_ii[i];
20963                 }
20964                 short int ebcdic_ii[] =
20965                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20966                 short int ebcdic_mm[] =
20967                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20968                 int use_ebcdic (int i) {
20969                   return ebcdic_mm[i] + ebcdic_ii[i];
20970                 }
20971                 extern int foo;
20972
20973 int
20974 main ()
20975 {
20976 return use_ascii (foo) == use_ebcdic (foo);
20977   ;
20978   return 0;
20979 }
20980 _ACEOF
20981 if ac_fn_c_try_compile "$LINENO"; then :
20982   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20983               ac_cv_c_bigendian=yes
20984             fi
20985             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20986               if test "$ac_cv_c_bigendian" = unknown; then
20987                 ac_cv_c_bigendian=no
20988               else
20989                 # finding both strings is unlikely to happen, but who knows?
20990                 ac_cv_c_bigendian=unknown
20991               fi
20992             fi
20993 fi
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 else
20996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20997 /* end confdefs.h.  */
20998 $ac_includes_default
20999 int
21000 main ()
21001 {
21002
21003              /* Are we little or big endian?  From Harbison&Steele.  */
21004              union
21005              {
21006                long int l;
21007                char c[sizeof (long int)];
21008              } u;
21009              u.l = 1;
21010              return u.c[sizeof (long int) - 1] == 1;
21011
21012   ;
21013   return 0;
21014 }
21015 _ACEOF
21016 if ac_fn_c_try_run "$LINENO"; then :
21017   ac_cv_c_bigendian=no
21018 else
21019   ac_cv_c_bigendian=yes
21020 fi
21021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21022   conftest.$ac_objext conftest.beam conftest.$ac_ext
21023 fi
21024
21025     fi
21026 fi
21027 :
21028  case $ac_cv_c_bigendian in #(
21029    yes)
21030      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
21031    no)
21032      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
21033    universal)
21034
21035 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21036
21037      ;; #(
21038    *)
21039      gl_cv_cc_double_expbit0="unknown" ;;
21040  esac
21041
21042
21043 fi
21044 rm -f conftest*
21045
21046
21047 else
21048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h.  */
21050
21051 #include <float.h>
21052 #include <stddef.h>
21053 #include <stdio.h>
21054 #include <string.h>
21055 #define NWORDS \
21056   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21057 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
21058 static unsigned int ored_words[NWORDS];
21059 static unsigned int anded_words[NWORDS];
21060 static void add_to_ored_words (double x)
21061 {
21062   memory_double m;
21063   size_t i;
21064   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
21065   memset (&m, 0, sizeof (memory_double));
21066   m.value = x;
21067   for (i = 0; i < NWORDS; i++)
21068     {
21069       ored_words[i] |= m.word[i];
21070       anded_words[i] &= m.word[i];
21071     }
21072 }
21073 int main ()
21074 {
21075   size_t j;
21076   FILE *fp = fopen ("conftest.out", "w");
21077   if (fp == NULL)
21078     return 1;
21079   for (j = 0; j < NWORDS; j++)
21080     anded_words[j] = ~ (unsigned int) 0;
21081   add_to_ored_words (0.25);
21082   add_to_ored_words (0.5);
21083   add_to_ored_words (1.0);
21084   add_to_ored_words (2.0);
21085   add_to_ored_words (4.0);
21086   /* Remove bits that are common (e.g. if representation of the first mantissa
21087      bit is explicit).  */
21088   for (j = 0; j < NWORDS; j++)
21089     ored_words[j] &= ~anded_words[j];
21090   /* Now find the nonzero word.  */
21091   for (j = 0; j < NWORDS; j++)
21092     if (ored_words[j] != 0)
21093       break;
21094   if (j < NWORDS)
21095     {
21096       size_t i;
21097       for (i = j + 1; i < NWORDS; i++)
21098         if (ored_words[i] != 0)
21099           {
21100             fprintf (fp, "unknown");
21101             return (fclose (fp) != 0);
21102           }
21103       for (i = 0; ; i++)
21104         if ((ored_words[j] >> i) & 1)
21105           {
21106             fprintf (fp, "word %d bit %d", (int) j, (int) i);
21107             return (fclose (fp) != 0);
21108           }
21109     }
21110   fprintf (fp, "unknown");
21111   return (fclose (fp) != 0);
21112 }
21113
21114 _ACEOF
21115 if ac_fn_c_try_run "$LINENO"; then :
21116   gl_cv_cc_double_expbit0=`cat conftest.out`
21117 else
21118   gl_cv_cc_double_expbit0="unknown"
21119 fi
21120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21121   conftest.$ac_objext conftest.beam conftest.$ac_ext
21122 fi
21123
21124       rm -f conftest.out
21125
21126 fi
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
21128 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
21129   case "$gl_cv_cc_double_expbit0" in
21130     word*bit*)
21131       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21132       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
21133
21134 cat >>confdefs.h <<_ACEOF
21135 #define DBL_EXPBIT0_WORD $word
21136 _ACEOF
21137
21138
21139 cat >>confdefs.h <<_ACEOF
21140 #define DBL_EXPBIT0_BIT $bit
21141 _ACEOF
21142
21143       ;;
21144   esac
21145
21146
21147
21148
21149
21150
21151   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
21152 do :
21153   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21154 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21155 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21156   cat >>confdefs.h <<_ACEOF
21157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21158 _ACEOF
21159
21160 fi
21161 done
21162
21163       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
21164 "
21165 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
21166   ac_have_decl=1
21167 else
21168   ac_have_decl=0
21169 fi
21170
21171 cat >>confdefs.h <<_ACEOF
21172 #define HAVE_DECL__SNPRINTF $ac_have_decl
21173 _ACEOF
21174
21175
21176
21177   case "$gl_cv_func_snprintf_retval_c99" in
21178     *yes)
21179
21180 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
21181
21182       ;;
21183   esac
21184
21185
21186   GNULIB_BTOWC=0;
21187   GNULIB_WCTOB=0;
21188   GNULIB_MBSINIT=0;
21189   GNULIB_MBRTOWC=0;
21190   GNULIB_MBRLEN=0;
21191   GNULIB_MBSRTOWCS=0;
21192   GNULIB_MBSNRTOWCS=0;
21193   GNULIB_WCRTOMB=0;
21194   GNULIB_WCSRTOMBS=0;
21195   GNULIB_WCSNRTOMBS=0;
21196   GNULIB_WCWIDTH=0;
21197   GNULIB_WMEMCHR=0;
21198   GNULIB_WMEMCMP=0;
21199   GNULIB_WMEMCPY=0;
21200   GNULIB_WMEMMOVE=0;
21201   GNULIB_WMEMSET=0;
21202   GNULIB_WCSLEN=0;
21203   GNULIB_WCSNLEN=0;
21204   GNULIB_WCSCPY=0;
21205   GNULIB_WCPCPY=0;
21206   GNULIB_WCSNCPY=0;
21207   GNULIB_WCPNCPY=0;
21208   GNULIB_WCSCAT=0;
21209   GNULIB_WCSNCAT=0;
21210   GNULIB_WCSCMP=0;
21211   GNULIB_WCSNCMP=0;
21212   GNULIB_WCSCASECMP=0;
21213   GNULIB_WCSNCASECMP=0;
21214   GNULIB_WCSCOLL=0;
21215   GNULIB_WCSXFRM=0;
21216   GNULIB_WCSDUP=0;
21217   GNULIB_WCSCHR=0;
21218   GNULIB_WCSRCHR=0;
21219   GNULIB_WCSCSPN=0;
21220   GNULIB_WCSSPN=0;
21221   GNULIB_WCSPBRK=0;
21222   GNULIB_WCSSTR=0;
21223   GNULIB_WCSTOK=0;
21224   GNULIB_WCSWIDTH=0;
21225     HAVE_BTOWC=1;
21226   HAVE_MBSINIT=1;
21227   HAVE_MBRTOWC=1;
21228   HAVE_MBRLEN=1;
21229   HAVE_MBSRTOWCS=1;
21230   HAVE_MBSNRTOWCS=1;
21231   HAVE_WCRTOMB=1;
21232   HAVE_WCSRTOMBS=1;
21233   HAVE_WCSNRTOMBS=1;
21234   HAVE_WMEMCHR=1;
21235   HAVE_WMEMCMP=1;
21236   HAVE_WMEMCPY=1;
21237   HAVE_WMEMMOVE=1;
21238   HAVE_WMEMSET=1;
21239   HAVE_WCSLEN=1;
21240   HAVE_WCSNLEN=1;
21241   HAVE_WCSCPY=1;
21242   HAVE_WCPCPY=1;
21243   HAVE_WCSNCPY=1;
21244   HAVE_WCPNCPY=1;
21245   HAVE_WCSCAT=1;
21246   HAVE_WCSNCAT=1;
21247   HAVE_WCSCMP=1;
21248   HAVE_WCSNCMP=1;
21249   HAVE_WCSCASECMP=1;
21250   HAVE_WCSNCASECMP=1;
21251   HAVE_WCSCOLL=1;
21252   HAVE_WCSXFRM=1;
21253   HAVE_WCSDUP=1;
21254   HAVE_WCSCHR=1;
21255   HAVE_WCSRCHR=1;
21256   HAVE_WCSCSPN=1;
21257   HAVE_WCSSPN=1;
21258   HAVE_WCSPBRK=1;
21259   HAVE_WCSSTR=1;
21260   HAVE_WCSTOK=1;
21261   HAVE_WCSWIDTH=1;
21262   HAVE_DECL_WCTOB=1;
21263   HAVE_DECL_WCWIDTH=1;
21264   REPLACE_MBSTATE_T=0;
21265   REPLACE_BTOWC=0;
21266   REPLACE_WCTOB=0;
21267   REPLACE_MBSINIT=0;
21268   REPLACE_MBRTOWC=0;
21269   REPLACE_MBRLEN=0;
21270   REPLACE_MBSRTOWCS=0;
21271   REPLACE_MBSNRTOWCS=0;
21272   REPLACE_WCRTOMB=0;
21273   REPLACE_WCSRTOMBS=0;
21274   REPLACE_WCSNRTOMBS=0;
21275   REPLACE_WCWIDTH=0;
21276   REPLACE_WCSWIDTH=0;
21277
21278
21279             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
21280 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
21281 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
21282   $as_echo_n "(cached) " >&6
21283 else
21284   gl_cv_header_wchar_h_correct_inline=yes
21285      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h.  */
21287
21288        #define wcstod renamed_wcstod
21289 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21290    <wchar.h>.
21291    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21292    included before <wchar.h>.  */
21293 #include <stddef.h>
21294 #include <stdio.h>
21295 #include <time.h>
21296 #include <wchar.h>
21297 extern int zero (void);
21298 int main () { return zero(); }
21299
21300 _ACEOF
21301      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21302   (eval $ac_compile) 2>&5
21303   ac_status=$?
21304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21305   test $ac_status = 0; }; then
21306        mv conftest.$ac_objext conftest1.$ac_objext
21307        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21308 /* end confdefs.h.  */
21309
21310          #define wcstod renamed_wcstod
21311 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21312    <wchar.h>.
21313    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21314    included before <wchar.h>.  */
21315 #include <stddef.h>
21316 #include <stdio.h>
21317 #include <time.h>
21318 #include <wchar.h>
21319 int zero (void) { return 0; }
21320
21321 _ACEOF
21322        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21323   (eval $ac_compile) 2>&5
21324   ac_status=$?
21325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21326   test $ac_status = 0; }; then
21327          mv conftest.$ac_objext conftest2.$ac_objext
21328          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
21329            :
21330          else
21331            gl_cv_header_wchar_h_correct_inline=no
21332          fi
21333        fi
21334      fi
21335      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
21336
21337 fi
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21339 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21340   if test $gl_cv_header_wchar_h_correct_inline = no; then
21341     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21342 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21343 C99 mode. You have four options:
21344   - Add the flag -fgnu89-inline to CC and reconfigure, or
21345   - Fix your include files, using parts of
21346     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21347   - Use a gcc version older than 4.3, or
21348   - Don't use the flags -std=c99 or -std=gnu99.
21349 Configuration aborted." "$LINENO" 5
21350   fi
21351
21352
21353    if true; then
21354   GL_COND_LIBTOOL_TRUE=
21355   GL_COND_LIBTOOL_FALSE='#'
21356 else
21357   GL_COND_LIBTOOL_TRUE='#'
21358   GL_COND_LIBTOOL_FALSE=
21359 fi
21360
21361   gl_cond_libtool=true
21362   gl_m4_base='gnulib/m4'
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372   gl_source_base='gnulib/lib'
21373
21374
21375   if test $ac_cv_func_alloca_works = no; then
21376     :
21377   fi
21378
21379   # Define an additional variable used in the Makefile substitution.
21380   if test $ac_cv_working_alloca_h = yes; then
21381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21382 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21383 if ${gl_cv_rpl_alloca+:} false; then :
21384   $as_echo_n "(cached) " >&6
21385 else
21386
21387       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388 /* end confdefs.h.  */
21389
21390 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21391         Need own alloca
21392 #endif
21393
21394 _ACEOF
21395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21396   $EGREP "Need own alloca" >/dev/null 2>&1; then :
21397   gl_cv_rpl_alloca=yes
21398 else
21399   gl_cv_rpl_alloca=no
21400 fi
21401 rm -f conftest*
21402
21403
21404 fi
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21406 $as_echo "$gl_cv_rpl_alloca" >&6; }
21407     if test $gl_cv_rpl_alloca = yes; then
21408
21409 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21410
21411       ALLOCA_H=alloca.h
21412     else
21413                   ALLOCA_H=
21414     fi
21415   else
21416     ALLOCA_H=alloca.h
21417   fi
21418
21419    if test -n "$ALLOCA_H"; then
21420   GL_GENERATE_ALLOCA_H_TRUE=
21421   GL_GENERATE_ALLOCA_H_FALSE='#'
21422 else
21423   GL_GENERATE_ALLOCA_H_TRUE='#'
21424   GL_GENERATE_ALLOCA_H_FALSE=
21425 fi
21426
21427
21428
21429
21430
21431
21432
21433 cat >>confdefs.h <<_ACEOF
21434 #define GNULIB_DIRNAME 1
21435 _ACEOF
21436
21437
21438
21439
21440
21441
21442
21443
21444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21445 $as_echo_n "checking whether // is distinct from /... " >&6; }
21446 if ${gl_cv_double_slash_root+:} false; then :
21447   $as_echo_n "(cached) " >&6
21448 else
21449    if test x"$cross_compiling" = xyes ; then
21450         # When cross-compiling, there is no way to tell whether // is special
21451         # short of a list of hosts.  However, the only known hosts to date
21452         # that have a distinct // are Apollo DomainOS (too old to port to),
21453         # Cygwin, and z/OS.  If anyone knows of another system for which // has
21454         # special semantics and is distinct from /, please report it to
21455         # <bug-gnulib@gnu.org>.
21456         case $host in
21457           *-cygwin | i370-ibm-openedition)
21458             gl_cv_double_slash_root=yes ;;
21459           *)
21460             # Be optimistic and assume that / and // are the same when we
21461             # don't know.
21462             gl_cv_double_slash_root='unknown, assuming no' ;;
21463         esac
21464       else
21465         set x `ls -di / // 2>/dev/null`
21466         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
21467           gl_cv_double_slash_root=no
21468         else
21469           gl_cv_double_slash_root=yes
21470         fi
21471       fi
21472 fi
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21474 $as_echo "$gl_cv_double_slash_root" >&6; }
21475   if test "$gl_cv_double_slash_root" = yes; then
21476
21477 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
21478
21479   fi
21480
21481
21482
21483
21484
21485
21486
21487           GNULIB_ENVIRON=1
21488
21489
21490
21491
21492
21493 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
21494
21495
21496
21497
21498
21499       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21500 $as_echo_n "checking for error_at_line... " >&6; }
21501 if ${ac_cv_lib_error_at_line+:} false; then :
21502   $as_echo_n "(cached) " >&6
21503 else
21504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h.  */
21506 #include <error.h>
21507 int
21508 main ()
21509 {
21510 error_at_line (0, 0, "", 0, "an error occurred");
21511   ;
21512   return 0;
21513 }
21514 _ACEOF
21515 if ac_fn_c_try_link "$LINENO"; then :
21516   ac_cv_lib_error_at_line=yes
21517 else
21518   ac_cv_lib_error_at_line=no
21519 fi
21520 rm -f core conftest.err conftest.$ac_objext \
21521     conftest$ac_exeext conftest.$ac_ext
21522 fi
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21524 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21525
21526   if test $ac_cv_lib_error_at_line = no; then
21527
21528
21529
21530
21531
21532
21533
21534
21535   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
21536
21537
21538
21539   :
21540
21541   fi
21542
21543
21544   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
21545
21546
21547
21548   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562      if test $gl_cv_have_include_next = yes; then
21563        gl_cv_next_fcntl_h='<'fcntl.h'>'
21564      else
21565        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21566 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21567 if ${gl_cv_next_fcntl_h+:} false; then :
21568   $as_echo_n "(cached) " >&6
21569 else
21570
21571
21572
21573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h.  */
21575 #include <fcntl.h>
21576 _ACEOF
21577                 case "$host_os" in
21578     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21579     *)    gl_absname_cpp="$ac_cpp" ;;
21580   esac
21581
21582   case "$host_os" in
21583     mingw*)
21584                                           gl_dirsep_regex='[/\\]'
21585       ;;
21586     *)
21587       gl_dirsep_regex='\/'
21588       ;;
21589   esac
21590       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21591   gl_header_literal_regex=`echo 'fcntl.h' \
21592                            | sed -e "$gl_make_literal_regex_sed"`
21593   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21594       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21595       s|^/[^/]|//&|
21596       p
21597       q
21598     }'
21599
21600         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21601   sed -n "$gl_absolute_header_sed"`
21602
21603            gl_header=$gl_cv_absolute_fcntl_h
21604            gl_cv_next_fcntl_h='"'$gl_header'"'
21605
21606
21607 fi
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21609 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21610      fi
21611      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21612
21613      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21614        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21615        gl_next_as_first_directive='<'fcntl.h'>'
21616      else
21617        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21618        gl_next_as_first_directive=$gl_cv_next_fcntl_h
21619      fi
21620      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631     for gl_func in fcntl openat; do
21632     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21634 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21635 if eval \${$as_gl_Symbol+:} false; then :
21636   $as_echo_n "(cached) " >&6
21637 else
21638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639 /* end confdefs.h.  */
21640 #include <fcntl.h>
21641
21642 int
21643 main ()
21644 {
21645 #undef $gl_func
21646   (void) $gl_func;
21647   ;
21648   return 0;
21649 }
21650 _ACEOF
21651 if ac_fn_c_try_compile "$LINENO"; then :
21652   eval "$as_gl_Symbol=yes"
21653 else
21654   eval "$as_gl_Symbol=no"
21655 fi
21656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21657 fi
21658 eval ac_res=\$$as_gl_Symbol
21659                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21660 $as_echo "$ac_res" >&6; }
21661     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21662   cat >>confdefs.h <<_ACEOF
21663 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21664 _ACEOF
21665
21666                      eval ac_cv_have_decl_$gl_func=yes
21667 fi
21668       done
21669
21670
21671
21672
21673
21674   FLOAT_H=
21675   REPLACE_FLOAT_LDBL=0
21676   case "$host_os" in
21677     aix* | beos* | openbsd* | mirbsd* | irix*)
21678       FLOAT_H=float.h
21679       ;;
21680     freebsd*)
21681       case "$host_cpu" in
21682         i[34567]86 )
21683           FLOAT_H=float.h
21684           ;;
21685         x86_64 )
21686           # On x86_64 systems, the C compiler may still be generating
21687           # 32-bit code.
21688           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689 /* end confdefs.h.  */
21690 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
21691              yes
21692              #endif
21693 _ACEOF
21694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21695   $EGREP "yes" >/dev/null 2>&1; then :
21696
21697 else
21698   FLOAT_H=float.h
21699 fi
21700 rm -f conftest*
21701
21702           ;;
21703       esac
21704       ;;
21705     linux*)
21706       case "$host_cpu" in
21707         powerpc*)
21708           FLOAT_H=float.h
21709           ;;
21710       esac
21711       ;;
21712   esac
21713   case "$host_os" in
21714     aix* | freebsd* | linux*)
21715       if test -n "$FLOAT_H"; then
21716         REPLACE_FLOAT_LDBL=1
21717       fi
21718       ;;
21719   esac
21720
21721     REPLACE_ITOLD=0
21722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
21723 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
21724 if ${gl_cv_func_itold_works+:} false; then :
21725   $as_echo_n "(cached) " >&6
21726 else
21727
21728       if test "$cross_compiling" = yes; then :
21729   case "$host" in
21730            sparc*-*-linux*)
21731              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21732 /* end confdefs.h.  */
21733 #if defined __LP64__ || defined __arch64__
21734                 yes
21735                 #endif
21736 _ACEOF
21737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21738   $EGREP "yes" >/dev/null 2>&1; then :
21739   gl_cv_func_itold_works="guessing no"
21740 else
21741   gl_cv_func_itold_works="guessing yes"
21742 fi
21743 rm -f conftest*
21744
21745              ;;
21746            *) gl_cv_func_itold_works="guessing yes" ;;
21747          esac
21748
21749 else
21750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21751 /* end confdefs.h.  */
21752
21753 int i = -1;
21754 volatile long double ld;
21755 int main ()
21756 {
21757   ld += i * 1.0L;
21758   if (ld > 0)
21759     return 1;
21760   return 0;
21761 }
21762 _ACEOF
21763 if ac_fn_c_try_run "$LINENO"; then :
21764   gl_cv_func_itold_works=yes
21765 else
21766   gl_cv_func_itold_works=no
21767 fi
21768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21769   conftest.$ac_objext conftest.beam conftest.$ac_ext
21770 fi
21771
21772
21773 fi
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21775 $as_echo "$gl_cv_func_itold_works" >&6; }
21776   case "$gl_cv_func_itold_works" in
21777     *no)
21778       REPLACE_ITOLD=1
21779                   FLOAT_H=float.h
21780       ;;
21781   esac
21782
21783   if test -n "$FLOAT_H"; then
21784
21785
21786
21787
21788
21789
21790
21791
21792      if test $gl_cv_have_include_next = yes; then
21793        gl_cv_next_float_h='<'float.h'>'
21794      else
21795        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21796 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21797 if ${gl_cv_next_float_h+:} false; then :
21798   $as_echo_n "(cached) " >&6
21799 else
21800
21801
21802
21803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h.  */
21805 #include <float.h>
21806 _ACEOF
21807                 case "$host_os" in
21808     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21809     *)    gl_absname_cpp="$ac_cpp" ;;
21810   esac
21811
21812   case "$host_os" in
21813     mingw*)
21814                                           gl_dirsep_regex='[/\\]'
21815       ;;
21816     *)
21817       gl_dirsep_regex='\/'
21818       ;;
21819   esac
21820       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21821   gl_header_literal_regex=`echo 'float.h' \
21822                            | sed -e "$gl_make_literal_regex_sed"`
21823   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21824       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21825       s|^/[^/]|//&|
21826       p
21827       q
21828     }'
21829
21830         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21831   sed -n "$gl_absolute_header_sed"`
21832
21833            gl_header=$gl_cv_absolute_float_h
21834            gl_cv_next_float_h='"'$gl_header'"'
21835
21836
21837 fi
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21839 $as_echo "$gl_cv_next_float_h" >&6; }
21840      fi
21841      NEXT_FLOAT_H=$gl_cv_next_float_h
21842
21843      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21844        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21845        gl_next_as_first_directive='<'float.h'>'
21846      else
21847        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21848        gl_next_as_first_directive=$gl_cv_next_float_h
21849      fi
21850      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21851
21852
21853
21854
21855   fi
21856
21857    if test -n "$FLOAT_H"; then
21858   GL_GENERATE_FLOAT_H_TRUE=
21859   GL_GENERATE_FLOAT_H_FALSE='#'
21860 else
21861   GL_GENERATE_FLOAT_H_TRUE='#'
21862   GL_GENERATE_FLOAT_H_FALSE=
21863 fi
21864
21865
21866
21867   if test $REPLACE_FLOAT_LDBL = 1; then
21868
21869
21870
21871
21872
21873
21874
21875
21876   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21877
21878   fi
21879   if test $REPLACE_ITOLD = 1; then
21880
21881
21882
21883
21884
21885
21886
21887
21888   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21889
21890   fi
21891
21892
21893
21894
21895
21896
21897
21898   :
21899
21900
21901
21902
21903
21904
21905   gl_gettimeofday_timezone=void
21906   if test $ac_cv_func_gettimeofday != yes; then
21907     HAVE_GETTIMEOFDAY=0
21908   else
21909
21910
21911
21912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21913 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21914 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
21915   $as_echo_n "(cached) " >&6
21916 else
21917   if test "$cross_compiling" = yes; then :
21918   # When cross-compiling:
21919       case "$host_os" in
21920                 # Guess all is fine on glibc systems.
21921         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21922                 # If we don't know, assume the worst.
21923         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21924       esac
21925
21926 else
21927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21928 /* end confdefs.h.  */
21929 #include <string.h>
21930           #include <sys/time.h>
21931           #include <time.h>
21932           #include <stdlib.h>
21933
21934 int
21935 main ()
21936 {
21937
21938           time_t t = 0;
21939           struct tm *lt;
21940           struct tm saved_lt;
21941           struct timeval tv;
21942           lt = localtime (&t);
21943           saved_lt = *lt;
21944           gettimeofday (&tv, NULL);
21945           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21946
21947   ;
21948   return 0;
21949 }
21950 _ACEOF
21951 if ac_fn_c_try_run "$LINENO"; then :
21952   gl_cv_func_gettimeofday_clobber=no
21953 else
21954   gl_cv_func_gettimeofday_clobber=yes
21955 fi
21956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21957   conftest.$ac_objext conftest.beam conftest.$ac_ext
21958 fi
21959
21960 fi
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21962 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21963
21964  case "$gl_cv_func_gettimeofday_clobber" in
21965    *yes)
21966      REPLACE_GETTIMEOFDAY=1
21967
21968   REPLACE_GMTIME=1
21969   REPLACE_LOCALTIME=1
21970
21971
21972 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21973
21974      ;;
21975  esac
21976
21977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21978 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21979 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
21980   $as_echo_n "(cached) " >&6
21981 else
21982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h.  */
21984 #include <sys/time.h>
21985               struct timeval c;
21986               int gettimeofday (struct timeval *restrict, void *restrict);
21987
21988 int
21989 main ()
21990 {
21991 /* glibc uses struct timezone * rather than the POSIX void *
21992                  if _GNU_SOURCE is defined.  However, since the only portable
21993                  use of gettimeofday uses NULL as the second parameter, and
21994                  since the glibc definition is actually more typesafe, it is
21995                  not worth wrapping this to get a compliant signature.  */
21996               int (*f) (struct timeval *restrict, void *restrict)
21997                 = gettimeofday;
21998               int x = f (&c, 0);
21999               return !(x | c.tv_sec | c.tv_usec);
22000
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 if ac_fn_c_try_compile "$LINENO"; then :
22006   gl_cv_func_gettimeofday_posix_signature=yes
22007 else
22008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22009 /* end confdefs.h.  */
22010 #include <sys/time.h>
22011 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22012
22013 int
22014 main ()
22015 {
22016
22017   ;
22018   return 0;
22019 }
22020 _ACEOF
22021 if ac_fn_c_try_compile "$LINENO"; then :
22022   gl_cv_func_gettimeofday_posix_signature=almost
22023 else
22024   gl_cv_func_gettimeofday_posix_signature=no
22025 fi
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027 fi
22028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029 fi
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22031 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22032     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22033       gl_gettimeofday_timezone='struct timezone'
22034     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22035       REPLACE_GETTIMEOFDAY=1
22036     fi
22037         if test $REPLACE_STRUCT_TIMEVAL = 1; then
22038       REPLACE_GETTIMEOFDAY=1
22039     fi
22040
22041   fi
22042
22043 cat >>confdefs.h <<_ACEOF
22044 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22045 _ACEOF
22046
22047
22048   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22049
22050
22051
22052
22053
22054
22055
22056
22057   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22058
22059
22060   for ac_header in sys/timeb.h
22061 do :
22062   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22063 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
22064   cat >>confdefs.h <<_ACEOF
22065 #define HAVE_SYS_TIMEB_H 1
22066 _ACEOF
22067
22068 fi
22069
22070 done
22071
22072   for ac_func in _ftime
22073 do :
22074   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22075 if test "x$ac_cv_func__ftime" = xyes; then :
22076   cat >>confdefs.h <<_ACEOF
22077 #define HAVE__FTIME 1
22078 _ACEOF
22079
22080 fi
22081 done
22082
22083
22084   fi
22085
22086
22087
22088
22089
22090           GNULIB_GETTIMEOFDAY=1
22091
22092
22093
22094
22095
22096 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
22097
22098
22099
22100
22101
22102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
22103 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
22104 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
22105   $as_echo_n "(cached) " >&6
22106 else
22107   gl_cv_prog_c_ignore_unused_libraries=none
22108      gl_saved_ldflags=$LDFLAGS
22109      gl_saved_libs=$LIBS
22110      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
22111      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
22112      LIBS="$LIBS -lm"
22113      # Use long option sequences like '-z ignore' to test for the feature,
22114      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
22115      # GCC + binutils likes '-Wl,--as-needed'.
22116      # GCC + Solaris ld likes '-Wl,-z,ignore'.
22117      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
22118      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
22119      # native cc issues annoying warnings and then ignores it,
22120      # which would cause us to incorrectly conclude that it worked.
22121      for gl_flags in  '-Wl,--as-needed' \
22122   '-Wl,-z,ignore' \
22123   '-z ignore'
22124
22125      do
22126        LDFLAGS="$gl_flags $LDFLAGS"
22127        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h.  */
22129
22130 int
22131 main ()
22132 {
22133
22134   ;
22135   return 0;
22136 }
22137 _ACEOF
22138 if ac_fn_c_try_link "$LINENO"; then :
22139   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
22140 fi
22141 rm -f core conftest.err conftest.$ac_objext \
22142     conftest$ac_exeext conftest.$ac_ext
22143        LDFLAGS=$gl_saved_ldflags
22144        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
22145          break
22146      done
22147      LIBS=$gl_saved_libs
22148
22149 fi
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
22151 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
22152   IGNORE_UNUSED_LIBRARIES_CFLAGS=
22153   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
22154     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
22155   fi
22156
22157
22158
22159
22160   if test "$gl_threads_api" = posix; then
22161     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
22162     # pthread_rwlock_* functions.
22163     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
22164 "
22165 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
22166
22167 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
22168
22169 fi
22170
22171     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h.  */
22174
22175       #include <pthread.h>
22176 int
22177 main ()
22178 {
22179
22180 #if __FreeBSD__ == 4
22181 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22182 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
22183        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
22184 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
22185 #else
22186 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22187 return !x;
22188 #endif
22189
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 if ac_fn_c_try_compile "$LINENO"; then :
22195
22196 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
22197
22198 fi
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200   fi
22201   :
22202
22203
22204
22205 cat >>confdefs.h <<_ACEOF
22206 #define GNULIB_LOCK 1
22207 _ACEOF
22208
22209
22210
22211
22212
22213   :
22214
22215
22216
22217
22218
22219   if test $ac_cv_func_lstat = yes; then
22220
22221     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22222       *no)
22223         REPLACE_LSTAT=1
22224         ;;
22225     esac
22226   else
22227     HAVE_LSTAT=0
22228   fi
22229
22230   if test $REPLACE_LSTAT = 1; then
22231
22232
22233
22234
22235
22236
22237
22238
22239   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22240
22241     :
22242   fi
22243
22244
22245
22246
22247
22248           GNULIB_LSTAT=1
22249
22250
22251
22252
22253
22254 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22255
22256
22257
22258
22259
22260
22261   if test $gl_cv_func_malloc_posix = yes; then
22262
22263 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22264
22265   else
22266     REPLACE_MALLOC=1
22267   fi
22268
22269   if test $REPLACE_MALLOC = 1; then
22270
22271
22272
22273
22274
22275
22276
22277
22278   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
22279
22280   fi
22281
22282
22283
22284
22285
22286           GNULIB_MALLOC_POSIX=1
22287
22288
22289
22290
22291
22292 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22293
22294
22295
22296
22297
22298
22299
22300
22301   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
22302
22303
22304
22305
22306
22307
22308
22309
22310   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
22311
22312
22313   for ac_header in bp-sym.h
22314 do :
22315   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
22316 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
22317   cat >>confdefs.h <<_ACEOF
22318 #define HAVE_BP_SYM_H 1
22319 _ACEOF
22320
22321 fi
22322
22323 done
22324
22325
22326   fi
22327
22328
22329
22330
22331
22332           GNULIB_MEMCHR=1
22333
22334
22335
22336
22337
22338 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22339
22340
22341
22342
22343
22344   for ac_func in mkdtemp
22345 do :
22346   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
22347 if test "x$ac_cv_func_mkdtemp" = xyes; then :
22348   cat >>confdefs.h <<_ACEOF
22349 #define HAVE_MKDTEMP 1
22350 _ACEOF
22351
22352 fi
22353 done
22354
22355   if test $ac_cv_func_mkdtemp = no; then
22356     HAVE_MKDTEMP=0
22357   fi
22358
22359   if test $HAVE_MKDTEMP = 0; then
22360
22361
22362
22363
22364
22365
22366
22367
22368   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
22369
22370     :
22371
22372   fi
22373
22374
22375
22376
22377
22378           GNULIB_MKDTEMP=1
22379
22380
22381
22382
22383
22384 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
22385
22386
22387
22388
22389
22390   :
22391
22392
22393
22394
22395
22396   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22397     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22398
22399 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22400
22401   else
22402     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22403   fi
22404
22405
22406   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22407
22408
22409
22410
22411
22412
22413
22414
22415   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
22416
22417   fi
22418
22419
22420
22421   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22422
22423
22424
22425
22426
22427
22428
22429
22430   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22431
22432   fi
22433
22434
22435
22436   :
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447   for ac_func in raise
22448 do :
22449   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
22450 if test "x$ac_cv_func_raise" = xyes; then :
22451   cat >>confdefs.h <<_ACEOF
22452 #define HAVE_RAISE 1
22453 _ACEOF
22454
22455 fi
22456 done
22457
22458   if test $ac_cv_func_raise = no; then
22459     HAVE_RAISE=0
22460   else
22461     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22462       REPLACE_RAISE=1
22463     fi
22464
22465
22466
22467
22468   if test $gl_cv_type_sigset_t = yes; then
22469     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22470 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22471   gl_cv_func_sigprocmask=1
22472 fi
22473
22474   fi
22475   if test -z "$gl_cv_func_sigprocmask"; then
22476     HAVE_POSIX_SIGNALBLOCKING=0
22477   fi
22478
22479       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22480         :
22481       fi
22482
22483   fi
22484
22485   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
22486
22487
22488
22489
22490
22491
22492
22493
22494   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
22495
22496     :
22497   fi
22498
22499
22500
22501
22502
22503           GNULIB_RAISE=1
22504
22505
22506
22507
22508
22509 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
22510
22511
22512
22513
22514
22515
22516   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22517     REPLACE_READ=1
22518   fi
22519
22520
22521   if test $REPLACE_READ = 1; then
22522
22523
22524
22525
22526
22527
22528
22529
22530   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
22531
22532     :
22533   fi
22534
22535
22536
22537
22538
22539           GNULIB_READ=1
22540
22541
22542
22543
22544
22545 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562   :
22563
22564
22565
22566
22567
22568   if test $ac_cv_func_secure_getenv = no; then
22569     HAVE_SECURE_GETENV=0
22570   fi
22571
22572   if test $HAVE_SECURE_GETENV = 0; then
22573
22574
22575
22576
22577
22578
22579
22580
22581   gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
22582
22583
22584   for ac_func in __secure_getenv
22585 do :
22586   ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
22587 if test "x$ac_cv_func___secure_getenv" = xyes; then :
22588   cat >>confdefs.h <<_ACEOF
22589 #define HAVE___SECURE_GETENV 1
22590 _ACEOF
22591
22592 fi
22593 done
22594
22595   if test $ac_cv_func___secure_getenv = no; then
22596     for ac_func in issetugid
22597 do :
22598   ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
22599 if test "x$ac_cv_func_issetugid" = xyes; then :
22600   cat >>confdefs.h <<_ACEOF
22601 #define HAVE_ISSETUGID 1
22602 _ACEOF
22603
22604 fi
22605 done
22606
22607   fi
22608
22609   fi
22610
22611
22612
22613
22614
22615           GNULIB_SECURE_GETENV=1
22616
22617
22618
22619
22620
22621 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
22622
22623
22624
22625
22626
22627      if test $ac_cv_func_setenv = no; then
22628     HAVE_SETENV=0
22629   else
22630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
22631 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22632 if ${gl_cv_func_setenv_works+:} false; then :
22633   $as_echo_n "(cached) " >&6
22634 else
22635   if test "$cross_compiling" = yes; then :
22636   case "$host_os" in
22637                  # Guess yes on glibc systems.
22638          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
22639                  # If we don't know, assume the worst.
22640          *)      gl_cv_func_setenv_works="guessing no" ;;
22641        esac
22642
22643 else
22644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645 /* end confdefs.h.  */
22646
22647        #include <stdlib.h>
22648        #include <errno.h>
22649        #include <string.h>
22650
22651 int
22652 main ()
22653 {
22654
22655        int result = 0;
22656        {
22657          if (setenv ("", "", 0) != -1)
22658            result |= 1;
22659          else if (errno != EINVAL)
22660            result |= 2;
22661        }
22662        {
22663          if (setenv ("a", "=", 1) != 0)
22664            result |= 4;
22665          else if (strcmp (getenv ("a"), "=") != 0)
22666            result |= 8;
22667        }
22668        return result;
22669
22670   ;
22671   return 0;
22672 }
22673 _ACEOF
22674 if ac_fn_c_try_run "$LINENO"; then :
22675   gl_cv_func_setenv_works=yes
22676 else
22677   gl_cv_func_setenv_works=no
22678 fi
22679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22680   conftest.$ac_objext conftest.beam conftest.$ac_ext
22681 fi
22682
22683 fi
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
22685 $as_echo "$gl_cv_func_setenv_works" >&6; }
22686     case "$gl_cv_func_setenv_works" in
22687       *yes) ;;
22688       *)
22689         REPLACE_SETENV=1
22690         ;;
22691     esac
22692   fi
22693
22694   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
22695
22696
22697
22698
22699
22700
22701
22702
22703   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
22704
22705   fi
22706
22707
22708
22709
22710
22711           GNULIB_SETENV=1
22712
22713
22714
22715
22716
22717 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
22718
22719
22720
22721
22722
22723
22724   :
22725
22726
22727
22728
22729
22730   if test $ac_cv_func_sigaction = yes; then
22731     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
22732 "
22733 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
22734
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
22737 _ACEOF
22738
22739
22740 fi
22741
22742     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
22743       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
22744     fi
22745   else
22746     HAVE_SIGACTION=0
22747   fi
22748
22749   if test $HAVE_SIGACTION = 0; then
22750
22751
22752
22753
22754
22755
22756
22757
22758   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
22759
22760
22761
22762
22763
22764
22765
22766   :
22767
22768
22769
22770
22771
22772
22773
22774
22775   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
22776 #include <signal.h>
22777
22778 "
22779 if test "x$ac_cv_type_siginfo_t" = xyes; then :
22780
22781 cat >>confdefs.h <<_ACEOF
22782 #define HAVE_SIGINFO_T 1
22783 _ACEOF
22784
22785
22786 fi
22787
22788   if test $ac_cv_type_siginfo_t = no; then
22789     HAVE_SIGINFO_T=0
22790   fi
22791
22792   fi
22793
22794
22795
22796
22797
22798           GNULIB_SIGACTION=1
22799
22800
22801
22802
22803
22804 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819      if test $gl_cv_have_include_next = yes; then
22820        gl_cv_next_signal_h='<'signal.h'>'
22821      else
22822        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22823 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22824 if ${gl_cv_next_signal_h+:} false; then :
22825   $as_echo_n "(cached) " >&6
22826 else
22827
22828
22829
22830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h.  */
22832 #include <signal.h>
22833 _ACEOF
22834                 case "$host_os" in
22835     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22836     *)    gl_absname_cpp="$ac_cpp" ;;
22837   esac
22838
22839   case "$host_os" in
22840     mingw*)
22841                                           gl_dirsep_regex='[/\\]'
22842       ;;
22843     *)
22844       gl_dirsep_regex='\/'
22845       ;;
22846   esac
22847       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22848   gl_header_literal_regex=`echo 'signal.h' \
22849                            | sed -e "$gl_make_literal_regex_sed"`
22850   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22851       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22852       s|^/[^/]|//&|
22853       p
22854       q
22855     }'
22856
22857         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22858   sed -n "$gl_absolute_header_sed"`
22859
22860            gl_header=$gl_cv_absolute_signal_h
22861            gl_cv_next_signal_h='"'$gl_header'"'
22862
22863
22864 fi
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22866 $as_echo "$gl_cv_next_signal_h" >&6; }
22867      fi
22868      NEXT_SIGNAL_H=$gl_cv_next_signal_h
22869
22870      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22871        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22872        gl_next_as_first_directive='<'signal.h'>'
22873      else
22874        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22875        gl_next_as_first_directive=$gl_cv_next_signal_h
22876      fi
22877      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22878
22879
22880
22881
22882
22883 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22884 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
22885   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22886 #include <signal.h>
22887
22888 "
22889 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
22890
22891 else
22892   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22893 fi
22894
22895
22896
22897
22898
22899
22900
22901   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22902 #include <signal.h>
22903
22904 "
22905 if test "x$ac_cv_type_sighandler_t" = xyes; then :
22906
22907 else
22908   HAVE_SIGHANDLER_T=0
22909 fi
22910
22911
22912
22913     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
22914     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22916 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22917 if eval \${$as_gl_Symbol+:} false; then :
22918   $as_echo_n "(cached) " >&6
22919 else
22920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22921 /* end confdefs.h.  */
22922 #include <signal.h>
22923
22924 int
22925 main ()
22926 {
22927 #undef $gl_func
22928   (void) $gl_func;
22929   ;
22930   return 0;
22931 }
22932 _ACEOF
22933 if ac_fn_c_try_compile "$LINENO"; then :
22934   eval "$as_gl_Symbol=yes"
22935 else
22936   eval "$as_gl_Symbol=no"
22937 fi
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 fi
22940 eval ac_res=\$$as_gl_Symbol
22941                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22942 $as_echo "$ac_res" >&6; }
22943     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22944   cat >>confdefs.h <<_ACEOF
22945 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22946 _ACEOF
22947
22948                      eval ac_cv_have_decl_$gl_func=yes
22949 fi
22950       done
22951
22952
22953
22954
22955
22956   if test $gl_cv_type_sigset_t = yes; then
22957     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22958 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22959   gl_cv_func_sigprocmask=1
22960 fi
22961
22962   fi
22963   if test -z "$gl_cv_func_sigprocmask"; then
22964     HAVE_POSIX_SIGNALBLOCKING=0
22965   fi
22966
22967   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22968
22969
22970
22971
22972
22973
22974
22975
22976   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22977
22978     :
22979   fi
22980
22981
22982
22983
22984
22985           GNULIB_SIGPROCMASK=1
22986
22987
22988
22989
22990
22991 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
22992
22993
22994
22995
22996   for ac_header in stdint.h
22997 do :
22998   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22999 if test "x$ac_cv_header_stdint_h" = xyes; then :
23000   cat >>confdefs.h <<_ACEOF
23001 #define HAVE_STDINT_H 1
23002 _ACEOF
23003
23004 fi
23005
23006 done
23007
23008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
23009 $as_echo_n "checking for SIZE_MAX... " >&6; }
23010 if ${gl_cv_size_max+:} false; then :
23011   $as_echo_n "(cached) " >&6
23012 else
23013
23014     gl_cv_size_max=
23015     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23016 /* end confdefs.h.  */
23017
23018 #include <limits.h>
23019 #if HAVE_STDINT_H
23020 #include <stdint.h>
23021 #endif
23022 #ifdef SIZE_MAX
23023 Found it
23024 #endif
23025
23026 _ACEOF
23027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23028   $EGREP "Found it" >/dev/null 2>&1; then :
23029   gl_cv_size_max=yes
23030 fi
23031 rm -f conftest*
23032
23033     if test -z "$gl_cv_size_max"; then
23034                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
23035 #include <limits.h>"; then :
23036
23037 else
23038   size_t_bits_minus_1=
23039 fi
23040
23041       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
23042
23043 else
23044   fits_in_uint=
23045 fi
23046
23047       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23048         if test $fits_in_uint = 1; then
23049                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23050 /* end confdefs.h.  */
23051 #include <stddef.h>
23052                  extern size_t foo;
23053                  extern unsigned long foo;
23054
23055 int
23056 main ()
23057 {
23058
23059   ;
23060   return 0;
23061 }
23062 _ACEOF
23063 if ac_fn_c_try_compile "$LINENO"; then :
23064   fits_in_uint=0
23065 fi
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067         fi
23068                                 if test $fits_in_uint = 1; then
23069           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23070         else
23071           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23072         fi
23073       else
23074                 gl_cv_size_max='((size_t)~(size_t)0)'
23075       fi
23076     fi
23077
23078 fi
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
23080 $as_echo "$gl_cv_size_max" >&6; }
23081   if test "$gl_cv_size_max" != yes; then
23082
23083 cat >>confdefs.h <<_ACEOF
23084 #define SIZE_MAX $gl_cv_size_max
23085 _ACEOF
23086
23087   fi
23088
23089
23090
23091
23092   gl_cv_func_snprintf_usable=no
23093   for ac_func in snprintf
23094 do :
23095   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
23096 if test "x$ac_cv_func_snprintf" = xyes; then :
23097   cat >>confdefs.h <<_ACEOF
23098 #define HAVE_SNPRINTF 1
23099 _ACEOF
23100
23101 fi
23102 done
23103
23104   if test $ac_cv_func_snprintf = yes; then
23105
23106
23107
23108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
23109 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
23110 if ${gl_cv_func_snprintf_size1+:} false; then :
23111   $as_echo_n "(cached) " >&6
23112 else
23113
23114       if test "$cross_compiling" = yes; then :
23115   gl_cv_func_snprintf_size1="guessing yes"
23116 else
23117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h.  */
23119
23120 #include <stdio.h>
23121 #if HAVE_SNPRINTF
23122 # define my_snprintf snprintf
23123 #else
23124 # include <stdarg.h>
23125 static int my_snprintf (char *buf, int size, const char *format, ...)
23126 {
23127   va_list args;
23128   int ret;
23129   va_start (args, format);
23130   ret = vsnprintf (buf, size, format, args);
23131   va_end (args);
23132   return ret;
23133 }
23134 #endif
23135 int main()
23136 {
23137   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
23138   my_snprintf (buf, 1, "%d", 12345);
23139   return buf[1] != 'E';
23140 }
23141 _ACEOF
23142 if ac_fn_c_try_run "$LINENO"; then :
23143   gl_cv_func_snprintf_size1=yes
23144 else
23145   gl_cv_func_snprintf_size1=no
23146 fi
23147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23148   conftest.$ac_objext conftest.beam conftest.$ac_ext
23149 fi
23150
23151
23152 fi
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
23154 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
23155
23156     case "$gl_cv_func_snprintf_size1" in
23157       *yes)
23158
23159         case "$gl_cv_func_snprintf_retval_c99" in
23160           *yes)
23161
23162
23163      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
23164 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
23165 if ${gl_cv_func_printf_positions+:} false; then :
23166   $as_echo_n "(cached) " >&6
23167 else
23168
23169       if test "$cross_compiling" = yes; then :
23170
23171          case "$host_os" in
23172            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
23173                          gl_cv_func_printf_positions="guessing no";;
23174            beos*)        gl_cv_func_printf_positions="guessing no";;
23175            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
23176            *)            gl_cv_func_printf_positions="guessing yes";;
23177          esac
23178
23179 else
23180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h.  */
23182
23183 #include <stdio.h>
23184 #include <string.h>
23185 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23186    dollar expansion (possibly an autoconf bug).  */
23187 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23188 static char buf[100];
23189 int main ()
23190 {
23191   sprintf (buf, format, 33, 55);
23192   return (strcmp (buf, "55 33") != 0);
23193 }
23194 _ACEOF
23195 if ac_fn_c_try_run "$LINENO"; then :
23196   gl_cv_func_printf_positions=yes
23197 else
23198   gl_cv_func_printf_positions=no
23199 fi
23200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23201   conftest.$ac_objext conftest.beam conftest.$ac_ext
23202 fi
23203
23204
23205 fi
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
23207 $as_echo "$gl_cv_func_printf_positions" >&6; }
23208
23209             case "$gl_cv_func_printf_positions" in
23210               *yes)
23211                 gl_cv_func_snprintf_usable=yes
23212                 ;;
23213             esac
23214             ;;
23215         esac
23216         ;;
23217     esac
23218   fi
23219   if test $gl_cv_func_snprintf_usable = no; then
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
23231
23232   if test $ac_cv_func_snprintf = yes; then
23233     REPLACE_SNPRINTF=1
23234   fi
23235   :
23236
23237   fi
23238
23239   :
23240
23241
23242
23243
23244
23245   if test $ac_cv_have_decl_snprintf = no; then
23246     HAVE_DECL_SNPRINTF=0
23247   fi
23248
23249
23250
23251
23252
23253
23254           GNULIB_SNPRINTF=1
23255
23256
23257
23258
23259
23260 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
23261
23262
23263
23264
23265
23266 cat >>confdefs.h <<_ACEOF
23267 #define GNULIB_SNPRINTF 1
23268 _ACEOF
23269
23270
23271
23272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23273 $as_echo_n "checking for ssize_t... " >&6; }
23274 if ${gt_cv_ssize_t+:} false; then :
23275   $as_echo_n "(cached) " >&6
23276 else
23277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278 /* end confdefs.h.  */
23279 #include <sys/types.h>
23280 int
23281 main ()
23282 {
23283 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23284             return !x;
23285   ;
23286   return 0;
23287 }
23288 _ACEOF
23289 if ac_fn_c_try_compile "$LINENO"; then :
23290   gt_cv_ssize_t=yes
23291 else
23292   gt_cv_ssize_t=no
23293 fi
23294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23295 fi
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23297 $as_echo "$gt_cv_ssize_t" >&6; }
23298   if test $gt_cv_ssize_t = no; then
23299
23300 $as_echo "#define ssize_t int" >>confdefs.h
23301
23302   fi
23303
23304
23305
23306
23307   :
23308
23309
23310
23311
23312
23313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23314 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23315 if ${gl_cv_func_stat_dir_slash+:} false; then :
23316   $as_echo_n "(cached) " >&6
23317 else
23318   if test "$cross_compiling" = yes; then :
23319   case $host_os in
23320             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23321             *) gl_cv_func_stat_dir_slash="guessing yes";;
23322           esac
23323 else
23324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23325 /* end confdefs.h.  */
23326 #include <sys/stat.h>
23327
23328 int
23329 main ()
23330 {
23331 struct stat st; return stat (".", &st) != stat ("./", &st);
23332   ;
23333   return 0;
23334 }
23335 _ACEOF
23336 if ac_fn_c_try_run "$LINENO"; then :
23337   gl_cv_func_stat_dir_slash=yes
23338 else
23339   gl_cv_func_stat_dir_slash=no
23340 fi
23341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23342   conftest.$ac_objext conftest.beam conftest.$ac_ext
23343 fi
23344
23345 fi
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23347 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23349 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23350 if ${gl_cv_func_stat_file_slash+:} false; then :
23351   $as_echo_n "(cached) " >&6
23352 else
23353   touch conftest.tmp
23354        # Assume that if we have lstat, we can also check symlinks.
23355        if test $ac_cv_func_lstat = yes; then
23356          ln -s conftest.tmp conftest.lnk
23357        fi
23358        if test "$cross_compiling" = yes; then :
23359   case "$host_os" in
23360                     # Guess yes on glibc systems.
23361             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23362                     # If we don't know, assume the worst.
23363             *)      gl_cv_func_stat_file_slash="guessing no" ;;
23364           esac
23365
23366 else
23367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23368 /* end confdefs.h.  */
23369 #include <sys/stat.h>
23370
23371 int
23372 main ()
23373 {
23374 int result = 0;
23375       struct stat st;
23376       if (!stat ("conftest.tmp/", &st))
23377         result |= 1;
23378 #if HAVE_LSTAT
23379       if (!stat ("conftest.lnk/", &st))
23380         result |= 2;
23381 #endif
23382       return result;
23383
23384   ;
23385   return 0;
23386 }
23387 _ACEOF
23388 if ac_fn_c_try_run "$LINENO"; then :
23389   gl_cv_func_stat_file_slash=yes
23390 else
23391   gl_cv_func_stat_file_slash=no
23392 fi
23393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23394   conftest.$ac_objext conftest.beam conftest.$ac_ext
23395 fi
23396
23397        rm -f conftest.tmp conftest.lnk
23398 fi
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23400 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23401   case $gl_cv_func_stat_dir_slash in
23402     *no) REPLACE_STAT=1
23403
23404 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23405 ;;
23406   esac
23407   case $gl_cv_func_stat_file_slash in
23408     *no) REPLACE_STAT=1
23409
23410 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23411 ;;
23412   esac
23413
23414   if test $REPLACE_STAT = 1; then
23415
23416
23417
23418
23419
23420
23421
23422
23423   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23424
23425     :
23426   fi
23427
23428
23429
23430
23431
23432           GNULIB_STAT=1
23433
23434
23435
23436
23437
23438 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23439
23440
23441
23442
23443   STDARG_H=''
23444   NEXT_STDARG_H='<stdarg.h>'
23445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23446 $as_echo_n "checking for va_copy... " >&6; }
23447   if ${gl_cv_func_va_copy+:} false; then :
23448   $as_echo_n "(cached) " >&6
23449 else
23450
23451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h.  */
23453 #include <stdarg.h>
23454 int
23455 main ()
23456 {
23457
23458 #ifndef va_copy
23459 void (*func) (va_list, va_list) = va_copy;
23460 #endif
23461
23462   ;
23463   return 0;
23464 }
23465 _ACEOF
23466 if ac_fn_c_try_compile "$LINENO"; then :
23467   gl_cv_func_va_copy=yes
23468 else
23469   gl_cv_func_va_copy=no
23470 fi
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 fi
23473
23474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23475 $as_echo "$gl_cv_func_va_copy" >&6; }
23476   if test $gl_cv_func_va_copy = no; then
23477                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478 /* end confdefs.h.  */
23479 #if defined _AIX && !defined __GNUC__
23480         AIX vaccine
23481        #endif
23482
23483 _ACEOF
23484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23485   $EGREP "vaccine" >/dev/null 2>&1; then :
23486   gl_aixcc=yes
23487 else
23488   gl_aixcc=no
23489 fi
23490 rm -f conftest*
23491
23492     if test $gl_aixcc = yes; then
23493             STDARG_H=stdarg.h
23494
23495
23496
23497
23498
23499
23500
23501
23502      if test $gl_cv_have_include_next = yes; then
23503        gl_cv_next_stdarg_h='<'stdarg.h'>'
23504      else
23505        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23506 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23507 if ${gl_cv_next_stdarg_h+:} false; then :
23508   $as_echo_n "(cached) " >&6
23509 else
23510
23511
23512
23513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h.  */
23515 #include <stdarg.h>
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   gl_header_literal_regex=`echo 'stdarg.h' \
23532                            | sed -e "$gl_make_literal_regex_sed"`
23533   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23534       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23535       s|^/[^/]|//&|
23536       p
23537       q
23538     }'
23539
23540         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23541   sed -n "$gl_absolute_header_sed"`
23542
23543            gl_header=$gl_cv_absolute_stdarg_h
23544            gl_cv_next_stdarg_h='"'$gl_header'"'
23545
23546
23547 fi
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23549 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23550      fi
23551      NEXT_STDARG_H=$gl_cv_next_stdarg_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='<'stdarg.h'>'
23556      else
23557        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23558        gl_next_as_first_directive=$gl_cv_next_stdarg_h
23559      fi
23560      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23561
23562
23563
23564
23565             if test "$gl_cv_next_stdarg_h" = '""'; then
23566         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23567         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23568       fi
23569     else
23570
23571   saved_as_echo_n="$as_echo_n"
23572   as_echo_n=':'
23573   if ${gl_cv_func___va_copy+:} false; then :
23574   $as_echo_n "(cached) " >&6
23575 else
23576
23577         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h.  */
23579 #include <stdarg.h>
23580 int
23581 main ()
23582 {
23583
23584 #ifndef __va_copy
23585 error, bail out
23586 #endif
23587
23588   ;
23589   return 0;
23590 }
23591 _ACEOF
23592 if ac_fn_c_try_compile "$LINENO"; then :
23593   gl_cv_func___va_copy=yes
23594 else
23595   gl_cv_func___va_copy=no
23596 fi
23597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598 fi
23599
23600   as_echo_n="$saved_as_echo_n"
23601
23602       if test $gl_cv_func___va_copy = yes; then
23603
23604 $as_echo "#define va_copy __va_copy" >>confdefs.h
23605
23606       else
23607
23608
23609 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23610
23611       fi
23612     fi
23613   fi
23614
23615    if test -n "$STDARG_H"; then
23616   GL_GENERATE_STDARG_H_TRUE=
23617   GL_GENERATE_STDARG_H_FALSE='#'
23618 else
23619   GL_GENERATE_STDARG_H_TRUE='#'
23620   GL_GENERATE_STDARG_H_FALSE=
23621 fi
23622
23623
23624
23625
23626
23627
23628   # Define two additional variables used in the Makefile substitution.
23629
23630   if test "$ac_cv_header_stdbool_h" = yes; then
23631     STDBOOL_H=''
23632   else
23633     STDBOOL_H='stdbool.h'
23634   fi
23635
23636    if test -n "$STDBOOL_H"; then
23637   GL_GENERATE_STDBOOL_H_TRUE=
23638   GL_GENERATE_STDBOOL_H_FALSE='#'
23639 else
23640   GL_GENERATE_STDBOOL_H_TRUE='#'
23641   GL_GENERATE_STDBOOL_H_FALSE=
23642 fi
23643
23644
23645   if test "$ac_cv_type__Bool" = yes; then
23646     HAVE__BOOL=1
23647   else
23648     HAVE__BOOL=0
23649   fi
23650
23651
23652
23653
23654
23655   STDDEF_H=
23656   if test $gt_cv_c_wchar_t = no; then
23657     HAVE_WCHAR_T=0
23658     STDDEF_H=stddef.h
23659   fi
23660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23661 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23662 if ${gl_cv_decl_null_works+:} false; then :
23663   $as_echo_n "(cached) " >&6
23664 else
23665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23666 /* end confdefs.h.  */
23667 #include <stddef.h>
23668       int test[2 * (sizeof NULL == sizeof (void *)) -1];
23669
23670 int
23671 main ()
23672 {
23673
23674   ;
23675   return 0;
23676 }
23677 _ACEOF
23678 if ac_fn_c_try_compile "$LINENO"; then :
23679   gl_cv_decl_null_works=yes
23680 else
23681   gl_cv_decl_null_works=no
23682 fi
23683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684 fi
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23686 $as_echo "$gl_cv_decl_null_works" >&6; }
23687   if test $gl_cv_decl_null_works = no; then
23688     REPLACE_NULL=1
23689     STDDEF_H=stddef.h
23690   fi
23691
23692    if test -n "$STDDEF_H"; then
23693   GL_GENERATE_STDDEF_H_TRUE=
23694   GL_GENERATE_STDDEF_H_FALSE='#'
23695 else
23696   GL_GENERATE_STDDEF_H_TRUE='#'
23697   GL_GENERATE_STDDEF_H_FALSE=
23698 fi
23699
23700   if test -n "$STDDEF_H"; then
23701
23702
23703
23704
23705
23706
23707
23708
23709      if test $gl_cv_have_include_next = yes; then
23710        gl_cv_next_stddef_h='<'stddef.h'>'
23711      else
23712        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23713 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23714 if ${gl_cv_next_stddef_h+:} false; then :
23715   $as_echo_n "(cached) " >&6
23716 else
23717
23718
23719
23720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h.  */
23722 #include <stddef.h>
23723 _ACEOF
23724                 case "$host_os" in
23725     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23726     *)    gl_absname_cpp="$ac_cpp" ;;
23727   esac
23728
23729   case "$host_os" in
23730     mingw*)
23731                                           gl_dirsep_regex='[/\\]'
23732       ;;
23733     *)
23734       gl_dirsep_regex='\/'
23735       ;;
23736   esac
23737       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23738   gl_header_literal_regex=`echo 'stddef.h' \
23739                            | sed -e "$gl_make_literal_regex_sed"`
23740   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23741       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23742       s|^/[^/]|//&|
23743       p
23744       q
23745     }'
23746
23747         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23748   sed -n "$gl_absolute_header_sed"`
23749
23750            gl_header=$gl_cv_absolute_stddef_h
23751            gl_cv_next_stddef_h='"'$gl_header'"'
23752
23753
23754 fi
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23756 $as_echo "$gl_cv_next_stddef_h" >&6; }
23757      fi
23758      NEXT_STDDEF_H=$gl_cv_next_stddef_h
23759
23760      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23761        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23762        gl_next_as_first_directive='<'stddef.h'>'
23763      else
23764        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23765        gl_next_as_first_directive=$gl_cv_next_stddef_h
23766      fi
23767      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23768
23769
23770
23771
23772   fi
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785      if test $gl_cv_have_include_next = yes; then
23786        gl_cv_next_stdio_h='<'stdio.h'>'
23787      else
23788        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23789 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23790 if ${gl_cv_next_stdio_h+:} false; then :
23791   $as_echo_n "(cached) " >&6
23792 else
23793
23794
23795
23796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h.  */
23798 #include <stdio.h>
23799 _ACEOF
23800                 case "$host_os" in
23801     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23802     *)    gl_absname_cpp="$ac_cpp" ;;
23803   esac
23804
23805   case "$host_os" in
23806     mingw*)
23807                                           gl_dirsep_regex='[/\\]'
23808       ;;
23809     *)
23810       gl_dirsep_regex='\/'
23811       ;;
23812   esac
23813       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23814   gl_header_literal_regex=`echo 'stdio.h' \
23815                            | sed -e "$gl_make_literal_regex_sed"`
23816   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23817       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23818       s|^/[^/]|//&|
23819       p
23820       q
23821     }'
23822
23823         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23824   sed -n "$gl_absolute_header_sed"`
23825
23826            gl_header=$gl_cv_absolute_stdio_h
23827            gl_cv_next_stdio_h='"'$gl_header'"'
23828
23829
23830 fi
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23832 $as_echo "$gl_cv_next_stdio_h" >&6; }
23833      fi
23834      NEXT_STDIO_H=$gl_cv_next_stdio_h
23835
23836      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23837        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23838        gl_next_as_first_directive='<'stdio.h'>'
23839      else
23840        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23841        gl_next_as_first_directive=$gl_cv_next_stdio_h
23842      fi
23843      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23844
23845
23846
23847
23848
23849       GNULIB_FSCANF=1
23850
23851
23852 cat >>confdefs.h <<_ACEOF
23853 #define GNULIB_FSCANF 1
23854 _ACEOF
23855
23856
23857   GNULIB_SCANF=1
23858
23859
23860 cat >>confdefs.h <<_ACEOF
23861 #define GNULIB_SCANF 1
23862 _ACEOF
23863
23864
23865   GNULIB_FGETC=1
23866   GNULIB_GETC=1
23867   GNULIB_GETCHAR=1
23868   GNULIB_FGETS=1
23869   GNULIB_FREAD=1
23870
23871
23872       GNULIB_FPRINTF=1
23873   GNULIB_PRINTF=1
23874   GNULIB_VFPRINTF=1
23875   GNULIB_VPRINTF=1
23876   GNULIB_FPUTC=1
23877   GNULIB_PUTC=1
23878   GNULIB_PUTCHAR=1
23879   GNULIB_FPUTS=1
23880   GNULIB_PUTS=1
23881   GNULIB_FWRITE=1
23882
23883
23884
23885
23886     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
23887     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23889 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23890 if eval \${$as_gl_Symbol+:} false; then :
23891   $as_echo_n "(cached) " >&6
23892 else
23893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23894 /* end confdefs.h.  */
23895 #include <stdio.h>
23896
23897 int
23898 main ()
23899 {
23900 #undef $gl_func
23901   (void) $gl_func;
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 if ac_fn_c_try_compile "$LINENO"; then :
23907   eval "$as_gl_Symbol=yes"
23908 else
23909   eval "$as_gl_Symbol=no"
23910 fi
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912 fi
23913 eval ac_res=\$$as_gl_Symbol
23914                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23915 $as_echo "$ac_res" >&6; }
23916     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23917   cat >>confdefs.h <<_ACEOF
23918 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23919 _ACEOF
23920
23921                      eval ac_cv_have_decl_$gl_func=yes
23922 fi
23923       done
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936      if test $gl_cv_have_include_next = yes; then
23937        gl_cv_next_stdlib_h='<'stdlib.h'>'
23938      else
23939        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23940 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23941 if ${gl_cv_next_stdlib_h+:} false; then :
23942   $as_echo_n "(cached) " >&6
23943 else
23944
23945
23946
23947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948 /* end confdefs.h.  */
23949 #include <stdlib.h>
23950 _ACEOF
23951                 case "$host_os" in
23952     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23953     *)    gl_absname_cpp="$ac_cpp" ;;
23954   esac
23955
23956   case "$host_os" in
23957     mingw*)
23958                                           gl_dirsep_regex='[/\\]'
23959       ;;
23960     *)
23961       gl_dirsep_regex='\/'
23962       ;;
23963   esac
23964       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23965   gl_header_literal_regex=`echo 'stdlib.h' \
23966                            | sed -e "$gl_make_literal_regex_sed"`
23967   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23968       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23969       s|^/[^/]|//&|
23970       p
23971       q
23972     }'
23973
23974         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23975   sed -n "$gl_absolute_header_sed"`
23976
23977            gl_header=$gl_cv_absolute_stdlib_h
23978            gl_cv_next_stdlib_h='"'$gl_header'"'
23979
23980
23981 fi
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23983 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23984      fi
23985      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23986
23987      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23988        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23989        gl_next_as_first_directive='<'stdlib.h'>'
23990      else
23991        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23992        gl_next_as_first_directive=$gl_cv_next_stdlib_h
23993      fi
23994      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23995
23996
23997
23998
23999
24000
24001     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
24002     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24004 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24005 if eval \${$as_gl_Symbol+:} false; then :
24006   $as_echo_n "(cached) " >&6
24007 else
24008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h.  */
24010 #include <stdlib.h>
24011 #if HAVE_SYS_LOADAVG_H
24012 # include <sys/loadavg.h>
24013 #endif
24014 #if HAVE_RANDOM_H
24015 # include <random.h>
24016 #endif
24017
24018 int
24019 main ()
24020 {
24021 #undef $gl_func
24022   (void) $gl_func;
24023   ;
24024   return 0;
24025 }
24026 _ACEOF
24027 if ac_fn_c_try_compile "$LINENO"; then :
24028   eval "$as_gl_Symbol=yes"
24029 else
24030   eval "$as_gl_Symbol=no"
24031 fi
24032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24033 fi
24034 eval ac_res=\$$as_gl_Symbol
24035                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24036 $as_echo "$ac_res" >&6; }
24037     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24038   cat >>confdefs.h <<_ACEOF
24039 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24040 _ACEOF
24041
24042                      eval ac_cv_have_decl_$gl_func=yes
24043 fi
24044       done
24045
24046
24047
24048
24049
24050
24051
24052   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24054 $as_echo_n "checking for working strerror function... " >&6; }
24055 if ${gl_cv_func_working_strerror+:} false; then :
24056   $as_echo_n "(cached) " >&6
24057 else
24058   if test "$cross_compiling" = yes; then :
24059   case "$host_os" in
24060                    # Guess yes on glibc systems.
24061            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
24062                    # If we don't know, assume the worst.
24063            *)      gl_cv_func_working_strerror="guessing no" ;;
24064          esac
24065
24066 else
24067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h.  */
24069 #include <string.h>
24070
24071 int
24072 main ()
24073 {
24074 if (!*strerror (-2)) return 1;
24075   ;
24076   return 0;
24077 }
24078 _ACEOF
24079 if ac_fn_c_try_run "$LINENO"; then :
24080   gl_cv_func_working_strerror=yes
24081 else
24082   gl_cv_func_working_strerror=no
24083 fi
24084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24085   conftest.$ac_objext conftest.beam conftest.$ac_ext
24086 fi
24087
24088
24089 fi
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24091 $as_echo "$gl_cv_func_working_strerror" >&6; }
24092     case "$gl_cv_func_working_strerror" in
24093       *yes) ;;
24094       *)
24095                         REPLACE_STRERROR=1
24096         ;;
24097     esac
24098
24099   else
24100             REPLACE_STRERROR=1
24101   fi
24102
24103   if test $REPLACE_STRERROR = 1; then
24104
24105
24106
24107
24108
24109
24110
24111
24112   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24113
24114   fi
24115
24116
24117 cat >>confdefs.h <<_ACEOF
24118 #define GNULIB_STRERROR 1
24119 _ACEOF
24120
24121
24122
24123
24124
24125
24126
24127           GNULIB_STRERROR=1
24128
24129
24130
24131
24132
24133 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24134
24135
24136
24137
24138
24139   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
24140
24141
24142
24143
24144
24145
24146
24147
24148   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
24149
24150
24151
24152
24153
24154   :
24155
24156
24157
24158
24159
24160   if test $ac_cv_header_sys_socket_h != yes; then
24161                     for ac_header in winsock2.h
24162 do :
24163   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24164 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24165   cat >>confdefs.h <<_ACEOF
24166 #define HAVE_WINSOCK2_H 1
24167 _ACEOF
24168
24169 fi
24170
24171 done
24172
24173   fi
24174   if test "$ac_cv_header_winsock2_h" = yes; then
24175     HAVE_WINSOCK2_H=1
24176     UNISTD_H_HAVE_WINSOCK2_H=1
24177     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24178   else
24179     HAVE_WINSOCK2_H=0
24180   fi
24181
24182
24183   fi
24184
24185
24186
24187
24188
24189
24190
24191
24192   :
24193
24194
24195
24196
24197
24198
24199   :
24200
24201
24202
24203
24204
24205   if test $ac_cv_have_decl_strndup = no; then
24206     HAVE_DECL_STRNDUP=0
24207   fi
24208
24209   if test $ac_cv_func_strndup = yes; then
24210     HAVE_STRNDUP=1
24211     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
24212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
24213 $as_echo_n "checking for working strndup... " >&6; }
24214 if ${gl_cv_func_strndup_works+:} false; then :
24215   $as_echo_n "(cached) " >&6
24216 else
24217   if test "$cross_compiling" = yes; then :
24218
24219           case $host_os in
24220             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
24221             *)               gl_cv_func_strndup_works="guessing yes";;
24222           esac
24223
24224 else
24225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24226 /* end confdefs.h.  */
24227
24228          #include <string.h>
24229                            #include <stdlib.h>
24230 int
24231 main ()
24232 {
24233
24234 #if !HAVE_DECL_STRNDUP
24235   extern
24236   #ifdef __cplusplus
24237   "C"
24238   #endif
24239   char *strndup (const char *, size_t);
24240 #endif
24241   char *s;
24242   s = strndup ("some longer string", 15);
24243   free (s);
24244   s = strndup ("shorter string", 13);
24245   return s[13] != '\0';
24246   ;
24247   return 0;
24248 }
24249 _ACEOF
24250 if ac_fn_c_try_run "$LINENO"; then :
24251   gl_cv_func_strndup_works=yes
24252 else
24253   gl_cv_func_strndup_works=no
24254 fi
24255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24256   conftest.$ac_objext conftest.beam conftest.$ac_ext
24257 fi
24258
24259 fi
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
24261 $as_echo "$gl_cv_func_strndup_works" >&6; }
24262     case $gl_cv_func_strndup_works in
24263       *no) REPLACE_STRNDUP=1 ;;
24264     esac
24265   else
24266     HAVE_STRNDUP=0
24267   fi
24268
24269   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
24270
24271
24272
24273
24274
24275
24276
24277
24278   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
24279
24280   fi
24281
24282
24283
24284
24285
24286           GNULIB_STRNDUP=1
24287
24288
24289
24290
24291
24292 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302   :
24303
24304
24305
24306
24307
24308   if test $ac_cv_have_decl_strnlen = no; then
24309     HAVE_DECL_STRNLEN=0
24310   else
24311
24312          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24313 $as_echo_n "checking for working strnlen... " >&6; }
24314 if ${ac_cv_func_strnlen_working+:} false; then :
24315   $as_echo_n "(cached) " >&6
24316 else
24317   if test "$cross_compiling" = yes; then :
24318   # Guess no on AIX systems, yes otherwise.
24319                 case "$host_os" in
24320                   aix*) ac_cv_func_strnlen_working=no;;
24321                   *)    ac_cv_func_strnlen_working=yes;;
24322                 esac
24323 else
24324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h.  */
24326 $ac_includes_default
24327 int
24328 main ()
24329 {
24330
24331 #define S "foobar"
24332 #define S_LEN (sizeof S - 1)
24333
24334   /* At least one implementation is buggy: that of AIX 4.3 would
24335      give strnlen (S, 1) == 3.  */
24336
24337   int i;
24338   for (i = 0; i < S_LEN + 1; ++i)
24339     {
24340       int expected = i <= S_LEN ? i : S_LEN;
24341       if (strnlen (S, i) != expected)
24342         return 1;
24343     }
24344   return 0;
24345
24346   ;
24347   return 0;
24348 }
24349 _ACEOF
24350 if ac_fn_c_try_run "$LINENO"; then :
24351   ac_cv_func_strnlen_working=yes
24352 else
24353   ac_cv_func_strnlen_working=no
24354 fi
24355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24356   conftest.$ac_objext conftest.beam conftest.$ac_ext
24357 fi
24358
24359 fi
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24361 $as_echo "$ac_cv_func_strnlen_working" >&6; }
24362 test $ac_cv_func_strnlen_working = no && :
24363
24364
24365     if test $ac_cv_func_strnlen_working = no; then
24366       REPLACE_STRNLEN=1
24367     fi
24368   fi
24369
24370   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
24371
24372
24373
24374
24375
24376
24377
24378
24379   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
24380
24381     :
24382   fi
24383
24384
24385
24386
24387
24388           GNULIB_STRNLEN=1
24389
24390
24391
24392
24393
24394 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404   :
24405
24406
24407
24408
24409
24410   if test $ac_cv_have_decl_strsignal = no; then
24411     HAVE_DECL_STRSIGNAL=0
24412   fi
24413
24414   for ac_func in strsignal
24415 do :
24416   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
24417 if test "x$ac_cv_func_strsignal" = xyes; then :
24418   cat >>confdefs.h <<_ACEOF
24419 #define HAVE_STRSIGNAL 1
24420 _ACEOF
24421
24422 fi
24423 done
24424
24425   if test $ac_cv_func_strsignal = yes; then
24426     HAVE_STRSIGNAL=1
24427             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
24428 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
24429 if ${gl_cv_func_working_strsignal+:} false; then :
24430   $as_echo_n "(cached) " >&6
24431 else
24432   if test "$cross_compiling" = yes; then :
24433   case "$host_os" in
24434             solaris* | aix*) gl_cv_func_working_strsignal=no;;
24435             *)               gl_cv_func_working_strsignal="guessing yes";;
24436           esac
24437 else
24438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24439 /* end confdefs.h.  */
24440 #include <string.h>
24441 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
24442
24443 int
24444 main ()
24445 {
24446 int result = 0;
24447               char *s = strsignal (-1);
24448               if (s == (char *) 0)
24449                 result |= 1;
24450               if (s == (char *) -1)
24451                 result |= 2;
24452               return result;
24453
24454   ;
24455   return 0;
24456 }
24457 _ACEOF
24458 if ac_fn_c_try_run "$LINENO"; then :
24459   gl_cv_func_working_strsignal=yes
24460 else
24461   gl_cv_func_working_strsignal=no
24462 fi
24463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24464   conftest.$ac_objext conftest.beam conftest.$ac_ext
24465 fi
24466
24467 fi
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
24469 $as_echo "$gl_cv_func_working_strsignal" >&6; }
24470     if test "$gl_cv_func_working_strsignal" = no; then
24471       REPLACE_STRSIGNAL=1
24472     fi
24473   else
24474     HAVE_STRSIGNAL=0
24475   fi
24476
24477   if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
24478
24479
24480
24481
24482
24483
24484
24485
24486   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
24487
24488
24489
24490   :
24491
24492
24493
24494
24495
24496
24497   ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
24498 "
24499 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
24500   ac_have_decl=1
24501 else
24502   ac_have_decl=0
24503 fi
24504
24505 cat >>confdefs.h <<_ACEOF
24506 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
24507 _ACEOF
24508
24509
24510   fi
24511
24512
24513
24514
24515
24516           GNULIB_STRSIGNAL=1
24517
24518
24519
24520
24521
24522 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
24523
24524
24525
24526
24527
24528
24529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24530 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24531 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
24532   $as_echo_n "(cached) " >&6
24533 else
24534
24535                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h.  */
24537 #include <sys/select.h>
24538 int
24539 main ()
24540 {
24541 struct timeval b;
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 if ac_fn_c_try_compile "$LINENO"; then :
24547   gl_cv_header_sys_select_h_selfcontained=yes
24548 else
24549   gl_cv_header_sys_select_h_selfcontained=no
24550 fi
24551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24552                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24553         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24554 /* end confdefs.h.  */
24555 #include <sys/select.h>
24556 int
24557 main ()
24558 {
24559 int memset; int bzero;
24560   ;
24561   return 0;
24562 }
24563
24564 _ACEOF
24565 if ac_fn_c_try_compile "$LINENO"; then :
24566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24567 /* end confdefs.h.  */
24568 #include <sys/select.h>
24569 int
24570 main ()
24571 {
24572
24573                   #undef memset
24574                   #define memset nonexistent_memset
24575                   extern
24576                   #ifdef __cplusplus
24577                   "C"
24578                   #endif
24579                   void *memset (void *, int, unsigned long);
24580                   #undef bzero
24581                   #define bzero nonexistent_bzero
24582                   extern
24583                   #ifdef __cplusplus
24584                   "C"
24585                   #endif
24586                   void bzero (void *, unsigned long);
24587                   fd_set fds;
24588                   FD_ZERO (&fds);
24589
24590   ;
24591   return 0;
24592 }
24593
24594 _ACEOF
24595 if ac_fn_c_try_link "$LINENO"; then :
24596
24597 else
24598   gl_cv_header_sys_select_h_selfcontained=no
24599 fi
24600 rm -f core conftest.err conftest.$ac_objext \
24601     conftest$ac_exeext conftest.$ac_ext
24602
24603 fi
24604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24605       fi
24606
24607 fi
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24609 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24610
24611
24612
24613
24614
24615
24616   :
24617
24618
24619
24620
24621
24622
24623
24624
24625      if test $gl_cv_have_include_next = yes; then
24626        gl_cv_next_sys_select_h='<'sys/select.h'>'
24627      else
24628        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24629 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24630 if ${gl_cv_next_sys_select_h+:} false; then :
24631   $as_echo_n "(cached) " >&6
24632 else
24633
24634              if test $ac_cv_header_sys_select_h = yes; then
24635
24636
24637
24638
24639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24640 /* end confdefs.h.  */
24641 #include <sys/select.h>
24642 _ACEOF
24643                 case "$host_os" in
24644     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24645     *)    gl_absname_cpp="$ac_cpp" ;;
24646   esac
24647
24648   case "$host_os" in
24649     mingw*)
24650                                           gl_dirsep_regex='[/\\]'
24651       ;;
24652     *)
24653       gl_dirsep_regex='\/'
24654       ;;
24655   esac
24656       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24657   gl_header_literal_regex=`echo 'sys/select.h' \
24658                            | sed -e "$gl_make_literal_regex_sed"`
24659   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24660       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24661       s|^/[^/]|//&|
24662       p
24663       q
24664     }'
24665
24666         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24667   sed -n "$gl_absolute_header_sed"`
24668
24669            gl_header=$gl_cv_absolute_sys_select_h
24670            gl_cv_next_sys_select_h='"'$gl_header'"'
24671           else
24672                gl_cv_next_sys_select_h='<'sys/select.h'>'
24673              fi
24674
24675
24676 fi
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24678 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24679      fi
24680      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24681
24682      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24683        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24684        gl_next_as_first_directive='<'sys/select.h'>'
24685      else
24686        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24687        gl_next_as_first_directive=$gl_cv_next_sys_select_h
24688      fi
24689      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
24690
24691
24692
24693
24694   if test $ac_cv_header_sys_select_h = yes; then
24695     HAVE_SYS_SELECT_H=1
24696   else
24697     HAVE_SYS_SELECT_H=0
24698   fi
24699
24700
24701
24702
24703
24704   :
24705
24706
24707
24708
24709
24710   if test $ac_cv_header_sys_socket_h != yes; then
24711                     for ac_header in winsock2.h
24712 do :
24713   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24714 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24715   cat >>confdefs.h <<_ACEOF
24716 #define HAVE_WINSOCK2_H 1
24717 _ACEOF
24718
24719 fi
24720
24721 done
24722
24723   fi
24724   if test "$ac_cv_header_winsock2_h" = yes; then
24725     HAVE_WINSOCK2_H=1
24726     UNISTD_H_HAVE_WINSOCK2_H=1
24727     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24728   else
24729     HAVE_WINSOCK2_H=0
24730   fi
24731
24732
24733
24734
24735     for gl_func in pselect select; do
24736     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24738 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24739 if eval \${$as_gl_Symbol+:} false; then :
24740   $as_echo_n "(cached) " >&6
24741 else
24742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24743 /* end confdefs.h.  */
24744
24745 /* Some systems require prerequisite headers.  */
24746 #include <sys/types.h>
24747 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
24748 # include <sys/time.h>
24749 #endif
24750 #include <sys/select.h>
24751
24752 int
24753 main ()
24754 {
24755 #undef $gl_func
24756   (void) $gl_func;
24757   ;
24758   return 0;
24759 }
24760 _ACEOF
24761 if ac_fn_c_try_compile "$LINENO"; then :
24762   eval "$as_gl_Symbol=yes"
24763 else
24764   eval "$as_gl_Symbol=no"
24765 fi
24766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24767 fi
24768 eval ac_res=\$$as_gl_Symbol
24769                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24770 $as_echo "$ac_res" >&6; }
24771     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24772   cat >>confdefs.h <<_ACEOF
24773 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24774 _ACEOF
24775
24776                      eval ac_cv_have_decl_$gl_func=yes
24777 fi
24778       done
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793   :
24794
24795
24796
24797
24798
24799
24800
24801
24802      if test $gl_cv_have_include_next = yes; then
24803        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24804      else
24805        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24806 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24807 if ${gl_cv_next_sys_stat_h+:} false; then :
24808   $as_echo_n "(cached) " >&6
24809 else
24810
24811              if test $ac_cv_header_sys_stat_h = yes; then
24812
24813
24814
24815
24816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24817 /* end confdefs.h.  */
24818 #include <sys/stat.h>
24819 _ACEOF
24820                 case "$host_os" in
24821     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24822     *)    gl_absname_cpp="$ac_cpp" ;;
24823   esac
24824
24825   case "$host_os" in
24826     mingw*)
24827                                           gl_dirsep_regex='[/\\]'
24828       ;;
24829     *)
24830       gl_dirsep_regex='\/'
24831       ;;
24832   esac
24833       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24834   gl_header_literal_regex=`echo 'sys/stat.h' \
24835                            | sed -e "$gl_make_literal_regex_sed"`
24836   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24837       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24838       s|^/[^/]|//&|
24839       p
24840       q
24841     }'
24842
24843         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24844   sed -n "$gl_absolute_header_sed"`
24845
24846            gl_header=$gl_cv_absolute_sys_stat_h
24847            gl_cv_next_sys_stat_h='"'$gl_header'"'
24848           else
24849                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24850              fi
24851
24852
24853 fi
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24855 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24856      fi
24857      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24858
24859      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24860        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24861        gl_next_as_first_directive='<'sys/stat.h'>'
24862      else
24863        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24864        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24865      fi
24866      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24879
24880 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24881
24882   fi
24883
24884       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24885      #include <sys/stat.h>
24886 "
24887 if test "x$ac_cv_type_nlink_t" = xyes; then :
24888
24889 else
24890
24891 $as_echo "#define nlink_t int" >>confdefs.h
24892
24893 fi
24894
24895
24896
24897     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
24898     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24900 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24901 if eval \${$as_gl_Symbol+:} false; then :
24902   $as_echo_n "(cached) " >&6
24903 else
24904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24905 /* end confdefs.h.  */
24906 #include <sys/stat.h>
24907
24908 int
24909 main ()
24910 {
24911 #undef $gl_func
24912   (void) $gl_func;
24913   ;
24914   return 0;
24915 }
24916 _ACEOF
24917 if ac_fn_c_try_compile "$LINENO"; then :
24918   eval "$as_gl_Symbol=yes"
24919 else
24920   eval "$as_gl_Symbol=no"
24921 fi
24922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24923 fi
24924 eval ac_res=\$$as_gl_Symbol
24925                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24926 $as_echo "$ac_res" >&6; }
24927     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24928   cat >>confdefs.h <<_ACEOF
24929 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24930 _ACEOF
24931
24932                      eval ac_cv_have_decl_$gl_func=yes
24933 fi
24934       done
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953   :
24954
24955
24956
24957
24958
24959
24960
24961
24962      if test $gl_cv_have_include_next = yes; then
24963        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
24964      else
24965        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
24966 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
24967 if ${gl_cv_next_sys_wait_h+:} false; then :
24968   $as_echo_n "(cached) " >&6
24969 else
24970
24971              if test $ac_cv_header_sys_wait_h = yes; then
24972
24973
24974
24975
24976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h.  */
24978 #include <sys/wait.h>
24979 _ACEOF
24980                 case "$host_os" in
24981     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24982     *)    gl_absname_cpp="$ac_cpp" ;;
24983   esac
24984
24985   case "$host_os" in
24986     mingw*)
24987                                           gl_dirsep_regex='[/\\]'
24988       ;;
24989     *)
24990       gl_dirsep_regex='\/'
24991       ;;
24992   esac
24993       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24994   gl_header_literal_regex=`echo 'sys/wait.h' \
24995                            | sed -e "$gl_make_literal_regex_sed"`
24996   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24997       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24998       s|^/[^/]|//&|
24999       p
25000       q
25001     }'
25002
25003         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25004   sed -n "$gl_absolute_header_sed"`
25005
25006            gl_header=$gl_cv_absolute_sys_wait_h
25007            gl_cv_next_sys_wait_h='"'$gl_header'"'
25008           else
25009                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
25010              fi
25011
25012
25013 fi
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
25015 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
25016      fi
25017      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
25018
25019      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25020        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25021        gl_next_as_first_directive='<'sys/wait.h'>'
25022      else
25023        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25024        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
25025      fi
25026      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
25027
25028
25029
25030
25031
25032
25033
25034
25035     for gl_func in waitpid; do
25036     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25038 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25039 if eval \${$as_gl_Symbol+:} false; then :
25040   $as_echo_n "(cached) " >&6
25041 else
25042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25043 /* end confdefs.h.  */
25044 #include <sys/wait.h>
25045 int
25046 main ()
25047 {
25048 #undef $gl_func
25049   (void) $gl_func;
25050   ;
25051   return 0;
25052 }
25053 _ACEOF
25054 if ac_fn_c_try_compile "$LINENO"; then :
25055   eval "$as_gl_Symbol=yes"
25056 else
25057   eval "$as_gl_Symbol=no"
25058 fi
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 fi
25061 eval ac_res=\$$as_gl_Symbol
25062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25063 $as_echo "$ac_res" >&6; }
25064     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25065   cat >>confdefs.h <<_ACEOF
25066 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25067 _ACEOF
25068
25069                      eval ac_cv_have_decl_$gl_func=yes
25070 fi
25071       done
25072
25073
25074
25075
25076
25077   :
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099   :
25100
25101
25102
25103
25104
25105
25106
25107
25108      if test $gl_cv_have_include_next = yes; then
25109        gl_cv_next_unistd_h='<'unistd.h'>'
25110      else
25111        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25112 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25113 if ${gl_cv_next_unistd_h+:} false; then :
25114   $as_echo_n "(cached) " >&6
25115 else
25116
25117              if test $ac_cv_header_unistd_h = yes; then
25118
25119
25120
25121
25122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25123 /* end confdefs.h.  */
25124 #include <unistd.h>
25125 _ACEOF
25126                 case "$host_os" in
25127     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25128     *)    gl_absname_cpp="$ac_cpp" ;;
25129   esac
25130
25131   case "$host_os" in
25132     mingw*)
25133                                           gl_dirsep_regex='[/\\]'
25134       ;;
25135     *)
25136       gl_dirsep_regex='\/'
25137       ;;
25138   esac
25139       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25140   gl_header_literal_regex=`echo 'unistd.h' \
25141                            | sed -e "$gl_make_literal_regex_sed"`
25142   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25143       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25144       s|^/[^/]|//&|
25145       p
25146       q
25147     }'
25148
25149         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25150   sed -n "$gl_absolute_header_sed"`
25151
25152            gl_header=$gl_cv_absolute_unistd_h
25153            gl_cv_next_unistd_h='"'$gl_header'"'
25154           else
25155                gl_cv_next_unistd_h='<'unistd.h'>'
25156              fi
25157
25158
25159 fi
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25161 $as_echo "$gl_cv_next_unistd_h" >&6; }
25162      fi
25163      NEXT_UNISTD_H=$gl_cv_next_unistd_h
25164
25165      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25166        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25167        gl_next_as_first_directive='<'unistd.h'>'
25168      else
25169        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25170        gl_next_as_first_directive=$gl_cv_next_unistd_h
25171      fi
25172      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25173
25174
25175
25176
25177   if test $ac_cv_header_unistd_h = yes; then
25178     HAVE_UNISTD_H=1
25179   else
25180     HAVE_UNISTD_H=0
25181   fi
25182
25183
25184
25185
25186
25187
25188
25189     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
25190     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25192 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25193 if eval \${$as_gl_Symbol+:} false; then :
25194   $as_echo_n "(cached) " >&6
25195 else
25196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25197 /* end confdefs.h.  */
25198
25199 #if HAVE_UNISTD_H
25200 # include <unistd.h>
25201 #endif
25202 /* Some systems declare various items in the wrong headers.  */
25203 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25204 # include <fcntl.h>
25205 # include <stdio.h>
25206 # include <stdlib.h>
25207 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25208 #  include <io.h>
25209 # endif
25210 #endif
25211
25212 int
25213 main ()
25214 {
25215 #undef $gl_func
25216   (void) $gl_func;
25217   ;
25218   return 0;
25219 }
25220 _ACEOF
25221 if ac_fn_c_try_compile "$LINENO"; then :
25222   eval "$as_gl_Symbol=yes"
25223 else
25224   eval "$as_gl_Symbol=no"
25225 fi
25226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25227 fi
25228 eval ac_res=\$$as_gl_Symbol
25229                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25230 $as_echo "$ac_res" >&6; }
25231     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25232   cat >>confdefs.h <<_ACEOF
25233 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25234 _ACEOF
25235
25236                      eval ac_cv_have_decl_$gl_func=yes
25237 fi
25238       done
25239
25240
25241
25242
25243
25244   :
25245
25246
25247
25248
25249
25250   if test $ac_cv_have_decl_unsetenv = no; then
25251     HAVE_DECL_UNSETENV=0
25252   fi
25253   for ac_func in unsetenv
25254 do :
25255   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25256 if test "x$ac_cv_func_unsetenv" = xyes; then :
25257   cat >>confdefs.h <<_ACEOF
25258 #define HAVE_UNSETENV 1
25259 _ACEOF
25260
25261 fi
25262 done
25263
25264   if test $ac_cv_func_unsetenv = no; then
25265     HAVE_UNSETENV=0
25266   else
25267     HAVE_UNSETENV=1
25268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25269 $as_echo_n "checking for unsetenv() return type... " >&6; }
25270 if ${gt_cv_func_unsetenv_ret+:} false; then :
25271   $as_echo_n "(cached) " >&6
25272 else
25273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25274 /* end confdefs.h.  */
25275
25276 #undef _BSD
25277 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25278 #include <stdlib.h>
25279 extern
25280 #ifdef __cplusplus
25281 "C"
25282 #endif
25283 int unsetenv (const char *name);
25284
25285 int
25286 main ()
25287 {
25288
25289   ;
25290   return 0;
25291 }
25292 _ACEOF
25293 if ac_fn_c_try_compile "$LINENO"; then :
25294   gt_cv_func_unsetenv_ret='int'
25295 else
25296   gt_cv_func_unsetenv_ret='void'
25297 fi
25298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25299 fi
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25301 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25302     if test $gt_cv_func_unsetenv_ret = 'void'; then
25303
25304 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25305
25306       REPLACE_UNSETENV=1
25307     fi
25308
25309                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25310 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25311 if ${gl_cv_func_unsetenv_works+:} false; then :
25312   $as_echo_n "(cached) " >&6
25313 else
25314   if test "$cross_compiling" = yes; then :
25315   case "$host_os" in
25316                  # Guess yes on glibc systems.
25317          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25318                  # If we don't know, assume the worst.
25319          *)      gl_cv_func_unsetenv_works="guessing no" ;;
25320        esac
25321
25322 else
25323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h.  */
25325
25326        #include <stdlib.h>
25327        #include <errno.h>
25328        extern char **environ;
25329
25330 int
25331 main ()
25332 {
25333
25334        char entry1[] = "a=1";
25335        char entry2[] = "b=2";
25336        char *env[] = { entry1, entry2, NULL };
25337        if (putenv ((char *) "a=1")) return 1;
25338        if (putenv (entry2)) return 2;
25339        entry2[0] = 'a';
25340        unsetenv ("a");
25341        if (getenv ("a")) return 3;
25342        if (!unsetenv ("") || errno != EINVAL) return 4;
25343        entry2[0] = 'b';
25344        environ = env;
25345        if (!getenv ("a")) return 5;
25346        entry2[0] = 'a';
25347        unsetenv ("a");
25348        if (getenv ("a")) return 6;
25349
25350   ;
25351   return 0;
25352 }
25353 _ACEOF
25354 if ac_fn_c_try_run "$LINENO"; then :
25355   gl_cv_func_unsetenv_works=yes
25356 else
25357   gl_cv_func_unsetenv_works=no
25358 fi
25359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25360   conftest.$ac_objext conftest.beam conftest.$ac_ext
25361 fi
25362
25363 fi
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25365 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25366     case "$gl_cv_func_unsetenv_works" in
25367       *yes) ;;
25368       *)
25369         REPLACE_UNSETENV=1
25370         ;;
25371     esac
25372   fi
25373
25374   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25375
25376
25377
25378
25379
25380
25381
25382
25383   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25384
25385
25386
25387
25388   :
25389
25390
25391
25392
25393
25394
25395   fi
25396
25397
25398
25399
25400
25401           GNULIB_UNSETENV=1
25402
25403
25404
25405
25406
25407 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25408
25409
25410
25411
25412
25413   :
25414
25415
25416
25417
25418
25419   if test $ac_cv_func_vasnprintf = no; then
25420
25421
25422   :
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
25467
25468   if test $ac_cv_func_vasnprintf = yes; then
25469
25470 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
25471
25472   fi
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25485 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25486
25487 else
25488
25489 $as_echo "#define ptrdiff_t long" >>confdefs.h
25490
25491
25492 fi
25493
25494
25495
25496
25497
25498
25499
25500   fi
25501
25502
25503   for ac_func in vasprintf
25504 do :
25505   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
25506 if test "x$ac_cv_func_vasprintf" = xyes; then :
25507   cat >>confdefs.h <<_ACEOF
25508 #define HAVE_VASPRINTF 1
25509 _ACEOF
25510
25511 fi
25512 done
25513
25514   if test $ac_cv_func_vasprintf = no; then
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
25535
25536
25537   if test $ac_cv_func_vasprintf = yes; then
25538     REPLACE_VASPRINTF=1
25539   else
25540     HAVE_VASPRINTF=0
25541   fi
25542
25543
25544
25545
25546
25547
25548
25549
25550   fi
25551
25552
25553
25554
25555
25556
25557           GNULIB_VASPRINTF=1
25558
25559
25560
25561
25562
25563 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
25564
25565
25566
25567
25568
25569   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
25570
25571
25572
25573   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
25574
25575
25576
25577   HAVE_WAITPID=1
25578   case $host_os in
25579     mingw*) HAVE_WAITPID=0 ;;
25580   esac
25581
25582   if test $HAVE_WAITPID = 0; then
25583
25584
25585
25586
25587
25588
25589
25590
25591   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
25592
25593   fi
25594
25595
25596
25597
25598
25599           GNULIB_WAITPID=1
25600
25601
25602
25603
25604
25605 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618   :
25619
25620
25621
25622
25623
25624
25625
25626
25627      if test $gl_cv_have_include_next = yes; then
25628        gl_cv_next_wchar_h='<'wchar.h'>'
25629      else
25630        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25631 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25632 if ${gl_cv_next_wchar_h+:} false; then :
25633   $as_echo_n "(cached) " >&6
25634 else
25635
25636              if test $ac_cv_header_wchar_h = yes; then
25637
25638
25639
25640
25641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642 /* end confdefs.h.  */
25643 #include <wchar.h>
25644 _ACEOF
25645                 case "$host_os" in
25646     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25647     *)    gl_absname_cpp="$ac_cpp" ;;
25648   esac
25649
25650   case "$host_os" in
25651     mingw*)
25652                                           gl_dirsep_regex='[/\\]'
25653       ;;
25654     *)
25655       gl_dirsep_regex='\/'
25656       ;;
25657   esac
25658       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25659   gl_header_literal_regex=`echo 'wchar.h' \
25660                            | sed -e "$gl_make_literal_regex_sed"`
25661   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25662       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25663       s|^/[^/]|//&|
25664       p
25665       q
25666     }'
25667
25668         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25669   sed -n "$gl_absolute_header_sed"`
25670
25671            gl_header=$gl_cv_absolute_wchar_h
25672            gl_cv_next_wchar_h='"'$gl_header'"'
25673           else
25674                gl_cv_next_wchar_h='<'wchar.h'>'
25675              fi
25676
25677
25678 fi
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25680 $as_echo "$gl_cv_next_wchar_h" >&6; }
25681      fi
25682      NEXT_WCHAR_H=$gl_cv_next_wchar_h
25683
25684      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25685        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25686        gl_next_as_first_directive='<'wchar.h'>'
25687      else
25688        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25689        gl_next_as_first_directive=$gl_cv_next_wchar_h
25690      fi
25691      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25692
25693
25694
25695
25696   if test $ac_cv_header_wchar_h = yes; then
25697     HAVE_WCHAR_H=1
25698   else
25699     HAVE_WCHAR_H=0
25700   fi
25701
25702
25703
25704
25705
25706   if test $gt_cv_c_wint_t = yes; then
25707     HAVE_WINT_T=1
25708   else
25709     HAVE_WINT_T=0
25710   fi
25711
25712
25713
25714     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
25715     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25717 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25718 if eval \${$as_gl_Symbol+:} false; then :
25719   $as_echo_n "(cached) " >&6
25720 else
25721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25722 /* end confdefs.h.  */
25723
25724 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25725    <wchar.h>.
25726    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25727    included before <wchar.h>.  */
25728 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25729 # include <stddef.h>
25730 # include <stdio.h>
25731 # include <time.h>
25732 #endif
25733 #include <wchar.h>
25734
25735 int
25736 main ()
25737 {
25738 #undef $gl_func
25739   (void) $gl_func;
25740   ;
25741   return 0;
25742 }
25743 _ACEOF
25744 if ac_fn_c_try_compile "$LINENO"; then :
25745   eval "$as_gl_Symbol=yes"
25746 else
25747   eval "$as_gl_Symbol=no"
25748 fi
25749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750 fi
25751 eval ac_res=\$$as_gl_Symbol
25752                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25753 $as_echo "$ac_res" >&6; }
25754     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25755   cat >>confdefs.h <<_ACEOF
25756 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25757 _ACEOF
25758
25759                      eval ac_cv_have_decl_$gl_func=yes
25760 fi
25761       done
25762
25763
25764
25765
25766
25767   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25768     REPLACE_WRITE=1
25769   fi
25770
25771
25772
25773   if test $REPLACE_WRITE = 1; then
25774
25775
25776
25777
25778
25779
25780
25781
25782   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
25783
25784     :
25785   fi
25786
25787
25788
25789
25790
25791           GNULIB_WRITE=1
25792
25793
25794
25795
25796
25797 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
25798
25799
25800
25801   :
25802
25803
25804   for ac_header in stdint.h
25805 do :
25806   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25807 if test "x$ac_cv_header_stdint_h" = xyes; then :
25808   cat >>confdefs.h <<_ACEOF
25809 #define HAVE_STDINT_H 1
25810 _ACEOF
25811
25812 fi
25813
25814 done
25815
25816
25817
25818
25819   :
25820
25821
25822   :
25823
25824
25825   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
25826
25827   # End of code from modules
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837   gltests_libdeps=
25838   gltests_ltlibdeps=
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848   gl_source_base='tests'
25849   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
25850
25851   gl_module_indicator_condition=$gltests_WITNESS
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862 for ac_header in fcntl.h
25863 do :
25864   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
25865 if test "x$ac_cv_header_fcntl_h" = xyes; then :
25866   cat >>confdefs.h <<_ACEOF
25867 #define HAVE_FCNTL_H 1
25868 _ACEOF
25869
25870 fi
25871
25872 done
25873
25874 for ac_func in clearenv
25875 do :
25876   ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
25877 if test "x$ac_cv_func_clearenv" = xyes; then :
25878   cat >>confdefs.h <<_ACEOF
25879 #define HAVE_CLEARENV 1
25880 _ACEOF
25881
25882 fi
25883 done
25884
25885
25886 # Checks for structures and compiler characteristics.
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25888 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25889 if ${ac_cv_c_const+:} false; then :
25890   $as_echo_n "(cached) " >&6
25891 else
25892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h.  */
25894
25895 int
25896 main ()
25897 {
25898
25899 #ifndef __cplusplus
25900   /* Ultrix mips cc rejects this sort of thing.  */
25901   typedef int charset[2];
25902   const charset cs = { 0, 0 };
25903   /* SunOS 4.1.1 cc rejects this.  */
25904   char const *const *pcpcc;
25905   char **ppc;
25906   /* NEC SVR4.0.2 mips cc rejects this.  */
25907   struct point {int x, y;};
25908   static struct point const zero = {0,0};
25909   /* AIX XL C 1.02.0.0 rejects this.
25910      It does not let you subtract one const X* pointer from another in
25911      an arm of an if-expression whose if-part is not a constant
25912      expression */
25913   const char *g = "string";
25914   pcpcc = &g + (g ? g-g : 0);
25915   /* HPUX 7.0 cc rejects these. */
25916   ++pcpcc;
25917   ppc = (char**) pcpcc;
25918   pcpcc = (char const *const *) ppc;
25919   { /* SCO 3.2v4 cc rejects this sort of thing.  */
25920     char tx;
25921     char *t = &tx;
25922     char const *s = 0 ? (char *) 0 : (char const *) 0;
25923
25924     *t++ = 0;
25925     if (s) return 0;
25926   }
25927   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25928     int x[] = {25, 17};
25929     const int *foo = &x[0];
25930     ++foo;
25931   }
25932   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25933     typedef const int *iptr;
25934     iptr p = 0;
25935     ++p;
25936   }
25937   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
25938        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25939     struct s { int j; const int *ap[3]; } bx;
25940     struct s *b = &bx; b->j = 5;
25941   }
25942   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25943     const int foo = 10;
25944     if (!foo) return 0;
25945   }
25946   return !cs[0] && !zero.x;
25947 #endif
25948
25949   ;
25950   return 0;
25951 }
25952 _ACEOF
25953 if ac_fn_c_try_compile "$LINENO"; then :
25954   ac_cv_c_const=yes
25955 else
25956   ac_cv_c_const=no
25957 fi
25958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25959 fi
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25961 $as_echo "$ac_cv_c_const" >&6; }
25962 if test $ac_cv_c_const = no; then
25963
25964 $as_echo "#define const /**/" >>confdefs.h
25965
25966 fi
25967
25968 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25969 if test "x$ac_cv_type_pid_t" = xyes; then :
25970
25971 else
25972
25973 cat >>confdefs.h <<_ACEOF
25974 #define pid_t int
25975 _ACEOF
25976
25977 fi
25978
25979 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25980 if test "x$ac_cv_type_size_t" = xyes; then :
25981
25982 else
25983
25984 cat >>confdefs.h <<_ACEOF
25985 #define size_t unsigned int
25986 _ACEOF
25987
25988 fi
25989
25990
25991 # We must have fork(2) support.
25992 for ac_header in vfork.h
25993 do :
25994   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25995 if test "x$ac_cv_header_vfork_h" = xyes; then :
25996   cat >>confdefs.h <<_ACEOF
25997 #define HAVE_VFORK_H 1
25998 _ACEOF
25999
26000 fi
26001
26002 done
26003
26004 for ac_func in fork vfork
26005 do :
26006   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26007 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26008 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26009   cat >>confdefs.h <<_ACEOF
26010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26011 _ACEOF
26012
26013 fi
26014 done
26015
26016 if test "x$ac_cv_func_fork" = xyes; then
26017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
26018 $as_echo_n "checking for working fork... " >&6; }
26019 if ${ac_cv_func_fork_works+:} false; then :
26020   $as_echo_n "(cached) " >&6
26021 else
26022   if test "$cross_compiling" = yes; then :
26023   ac_cv_func_fork_works=cross
26024 else
26025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026 /* end confdefs.h.  */
26027 $ac_includes_default
26028 int
26029 main ()
26030 {
26031
26032           /* By Ruediger Kuhlmann. */
26033           return fork () < 0;
26034
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 if ac_fn_c_try_run "$LINENO"; then :
26040   ac_cv_func_fork_works=yes
26041 else
26042   ac_cv_func_fork_works=no
26043 fi
26044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26045   conftest.$ac_objext conftest.beam conftest.$ac_ext
26046 fi
26047
26048 fi
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
26050 $as_echo "$ac_cv_func_fork_works" >&6; }
26051
26052 else
26053   ac_cv_func_fork_works=$ac_cv_func_fork
26054 fi
26055 if test "x$ac_cv_func_fork_works" = xcross; then
26056   case $host in
26057     *-*-amigaos* | *-*-msdosdjgpp*)
26058       # Override, as these systems have only a dummy fork() stub
26059       ac_cv_func_fork_works=no
26060       ;;
26061     *)
26062       ac_cv_func_fork_works=yes
26063       ;;
26064   esac
26065   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26066 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26067 fi
26068 ac_cv_func_vfork_works=$ac_cv_func_vfork
26069 if test "x$ac_cv_func_vfork" = xyes; then
26070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
26071 $as_echo_n "checking for working vfork... " >&6; }
26072 if ${ac_cv_func_vfork_works+:} false; then :
26073   $as_echo_n "(cached) " >&6
26074 else
26075   if test "$cross_compiling" = yes; then :
26076   ac_cv_func_vfork_works=cross
26077 else
26078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079 /* end confdefs.h.  */
26080 /* Thanks to Paul Eggert for this test.  */
26081 $ac_includes_default
26082 #include <sys/wait.h>
26083 #ifdef HAVE_VFORK_H
26084 # include <vfork.h>
26085 #endif
26086 /* On some sparc systems, changes by the child to local and incoming
26087    argument registers are propagated back to the parent.  The compiler
26088    is told about this with #include <vfork.h>, but some compilers
26089    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
26090    static variable whose address is put into a register that is
26091    clobbered by the vfork.  */
26092 static void
26093 #ifdef __cplusplus
26094 sparc_address_test (int arg)
26095 # else
26096 sparc_address_test (arg) int arg;
26097 #endif
26098 {
26099   static pid_t child;
26100   if (!child) {
26101     child = vfork ();
26102     if (child < 0) {
26103       perror ("vfork");
26104       _exit(2);
26105     }
26106     if (!child) {
26107       arg = getpid();
26108       write(-1, "", 0);
26109       _exit (arg);
26110     }
26111   }
26112 }
26113
26114 int
26115 main ()
26116 {
26117   pid_t parent = getpid ();
26118   pid_t child;
26119
26120   sparc_address_test (0);
26121
26122   child = vfork ();
26123
26124   if (child == 0) {
26125     /* Here is another test for sparc vfork register problems.  This
26126        test uses lots of local variables, at least as many local
26127        variables as main has allocated so far including compiler
26128        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
26129        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
26130        reuse the register of parent for one of the local variables,
26131        since it will think that parent can't possibly be used any more
26132        in this routine.  Assigning to the local variable will thus
26133        munge parent in the parent process.  */
26134     pid_t
26135       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26136       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26137     /* Convince the compiler that p..p7 are live; otherwise, it might
26138        use the same hardware register for all 8 local variables.  */
26139     if (p != p1 || p != p2 || p != p3 || p != p4
26140         || p != p5 || p != p6 || p != p7)
26141       _exit(1);
26142
26143     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26144        from child file descriptors.  If the child closes a descriptor
26145        before it execs or exits, this munges the parent's descriptor
26146        as well.  Test for this by closing stdout in the child.  */
26147     _exit(close(fileno(stdout)) != 0);
26148   } else {
26149     int status;
26150     struct stat st;
26151
26152     while (wait(&status) != child)
26153       ;
26154     return (
26155          /* Was there some problem with vforking?  */
26156          child < 0
26157
26158          /* Did the child fail?  (This shouldn't happen.)  */
26159          || status
26160
26161          /* Did the vfork/compiler bug occur?  */
26162          || parent != getpid()
26163
26164          /* Did the file descriptor bug occur?  */
26165          || fstat(fileno(stdout), &st) != 0
26166          );
26167   }
26168 }
26169 _ACEOF
26170 if ac_fn_c_try_run "$LINENO"; then :
26171   ac_cv_func_vfork_works=yes
26172 else
26173   ac_cv_func_vfork_works=no
26174 fi
26175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26176   conftest.$ac_objext conftest.beam conftest.$ac_ext
26177 fi
26178
26179 fi
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
26181 $as_echo "$ac_cv_func_vfork_works" >&6; }
26182
26183 fi;
26184 if test "x$ac_cv_func_fork_works" = xcross; then
26185   ac_cv_func_vfork_works=$ac_cv_func_vfork
26186   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26187 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26188 fi
26189
26190 if test "x$ac_cv_func_vfork_works" = xyes; then
26191
26192 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
26193
26194 else
26195
26196 $as_echo "#define vfork fork" >>confdefs.h
26197
26198 fi
26199 if test "x$ac_cv_func_fork_works" = xyes; then
26200
26201 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
26202
26203 fi
26204
26205 if test "x$ac_cv_func_fork_works" != xyes; then
26206   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26208 as_fn_error $? "cannot use libpipeline on systems without fork
26209 See \`config.log' for more details" "$LINENO" 5; }
26210 fi
26211
26212 # Check for socketpair(2) as fast replacement for pipe(2).
26213 # Check whether --enable-socketpair-pipe was given.
26214 if test "${enable_socketpair_pipe+set}" = set; then :
26215   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
26216     then
26217        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
26218 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
26219   if ${pipeline_cv_socketpair_pipe+:} false; then :
26220   $as_echo_n "(cached) " >&6
26221 else
26222
26223     if test "$cross_compiling" = yes; then :
26224   pipeline_cv_socketpair_pipe=no
26225 else
26226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26227 /* end confdefs.h.  */
26228
26229 #include <netdb.h>
26230 #include <netinet/in.h>
26231 #include <signal.h>
26232 #include <sys/socket.h>
26233 #include <sys/types.h>
26234 #include <sys/wait.h>
26235 #include <unistd.h>
26236 #ifndef SHUT_RD
26237 #       define SHUT_RD  0
26238 #endif
26239 #ifndef SHUT_WR
26240 #       define SHUT_WR  1
26241 #endif
26242
26243 static void sigpipe(int sig)
26244 {
26245         _exit(0);
26246 }
26247
26248 int main()
26249 {
26250         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
26251         char buf[256];
26252         int sfd[2], s;
26253         pid_t pid;
26254         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26255                 return 1;
26256         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26257                 return 1;
26258         if ((pid = fork()) < 0)
26259                 return 1;
26260         if (pid) {
26261                 close(sfd[1]);
26262                 waitpid(-1,&s,0);
26263                 if (read(sfd[0],buf,sizeof(buf)) < 0)
26264                         return 1;
26265         } else {
26266                 close(sfd[0]);
26267                 write(sfd[1],test,sizeof(test) - 1);
26268                 return 0;
26269         }
26270         close(sfd[0]);
26271         signal(SIGPIPE, sigpipe);
26272         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26273                 return 1;
26274         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26275                 return 1;
26276         close(sfd[0]);
26277         write(sfd[1],test,sizeof(test) - 1);
26278         return 1;
26279 }
26280 _ACEOF
26281 if ac_fn_c_try_run "$LINENO"; then :
26282   pipeline_cv_socketpair_pipe=yes
26283 else
26284   pipeline_cv_socketpair_pipe=no
26285 fi
26286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26287   conftest.$ac_objext conftest.beam conftest.$ac_ext
26288 fi
26289
26290
26291 fi
26292
26293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
26294 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
26295   if test "$pipeline_cv_socketpair_pipe" = yes; then
26296
26297 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
26298
26299   fi
26300
26301       if test "$pipeline_cv_socketpair_pipe" = yes; then
26302          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
26303 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
26304   if ${pipeline_cv_socketpair_mode+:} false; then :
26305   $as_echo_n "(cached) " >&6
26306 else
26307
26308     if test "$cross_compiling" = yes; then :
26309   pipeline_cv_socketpair_mode=no
26310 else
26311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h.  */
26313
26314 #include <netdb.h>
26315 #include <netinet/in.h>
26316 #include <sys/stat.h>
26317 #include <sys/socket.h>
26318 #include <sys/types.h>
26319 #include <unistd.h>
26320 #ifndef SHUT_RD
26321 #       define SHUT_RD  0
26322 #endif
26323 #ifndef SHUT_WR
26324 #       define SHUT_WR  1
26325 #endif
26326
26327 int main()
26328 {
26329         int sfd[2];
26330         struct stat st[2];
26331         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26332                 return 1;
26333         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26334                 return 1;
26335         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
26336                 return 1;
26337         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
26338                 return 1;
26339         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
26340                 return 1;
26341         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
26342                 return 1;
26343         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
26344                 return 1;
26345         return 0;
26346 }
26347 _ACEOF
26348 if ac_fn_c_try_run "$LINENO"; then :
26349   pipeline_cv_socketpair_mode=yes
26350 else
26351   pipeline_cv_socketpair_mode=no
26352 fi
26353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26354   conftest.$ac_objext conftest.beam conftest.$ac_ext
26355 fi
26356
26357
26358 fi
26359
26360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
26361 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
26362   if test "$pipeline_cv_socketpair_mode" = yes; then
26363
26364 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
26365
26366   fi
26367
26368       fi
26369     fi
26370
26371 fi
26372
26373
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
26375 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
26377 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
26379 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
26381 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
26383 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
26385 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
26386
26387 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
26388
26389 cat >confcache <<\_ACEOF
26390 # This file is a shell script that caches the results of configure
26391 # tests run on this system so they can be shared between configure
26392 # scripts and configure runs, see configure's option --config-cache.
26393 # It is not useful on other systems.  If it contains results you don't
26394 # want to keep, you may remove or edit it.
26395 #
26396 # config.status only pays attention to the cache file if you give it
26397 # the --recheck option to rerun configure.
26398 #
26399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26401 # following values.
26402
26403 _ACEOF
26404
26405 # The following way of writing the cache mishandles newlines in values,
26406 # but we know of no workaround that is simple, portable, and efficient.
26407 # So, we kill variables containing newlines.
26408 # Ultrix sh set writes to stderr and can't be redirected directly,
26409 # and sets the high bit in the cache file unless we assign to the vars.
26410 (
26411   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26412     eval ac_val=\$$ac_var
26413     case $ac_val in #(
26414     *${as_nl}*)
26415       case $ac_var in #(
26416       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26418       esac
26419       case $ac_var in #(
26420       _ | IFS | as_nl) ;; #(
26421       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26422       *) { eval $ac_var=; unset $ac_var;} ;;
26423       esac ;;
26424     esac
26425   done
26426
26427   (set) 2>&1 |
26428     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26429     *${as_nl}ac_space=\ *)
26430       # `set' does not quote correctly, so add quotes: double-quote
26431       # substitution turns \\\\ into \\, and sed turns \\ into \.
26432       sed -n \
26433         "s/'/'\\\\''/g;
26434           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26435       ;; #(
26436     *)
26437       # `set' quotes correctly as required by POSIX, so do not add quotes.
26438       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26439       ;;
26440     esac |
26441     sort
26442 ) |
26443   sed '
26444      /^ac_cv_env_/b end
26445      t clear
26446      :clear
26447      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26448      t end
26449      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26450      :end' >>confcache
26451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26452   if test -w "$cache_file"; then
26453     if test "x$cache_file" != "x/dev/null"; then
26454       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26455 $as_echo "$as_me: updating cache $cache_file" >&6;}
26456       if test ! -f "$cache_file" || test -h "$cache_file"; then
26457         cat confcache >"$cache_file"
26458       else
26459         case $cache_file in #(
26460         */* | ?:*)
26461           mv -f confcache "$cache_file"$$ &&
26462           mv -f "$cache_file"$$ "$cache_file" ;; #(
26463         *)
26464           mv -f confcache "$cache_file" ;;
26465         esac
26466       fi
26467     fi
26468   else
26469     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26470 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26471   fi
26472 fi
26473 rm -f confcache
26474
26475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26476 # Let make expand exec_prefix.
26477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26478
26479 DEFS=-DHAVE_CONFIG_H
26480
26481 ac_libobjs=
26482 ac_ltlibobjs=
26483 U=
26484 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26485   # 1. Remove the extension, and $U if already installed.
26486   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26487   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26488   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26489   #    will be set to the directory where LIBOBJS objects are built.
26490   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26491   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26492 done
26493 LIBOBJS=$ac_libobjs
26494
26495 LTLIBOBJS=$ac_ltlibobjs
26496
26497
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26499 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26500    if test -n "$am_sleep_pid"; then
26501      # Hide warnings about reused PIDs.
26502      wait $am_sleep_pid 2>/dev/null
26503    fi
26504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26505 $as_echo "done" >&6; }
26506  if test -n "$EXEEXT"; then
26507   am__EXEEXT_TRUE=
26508   am__EXEEXT_FALSE='#'
26509 else
26510   am__EXEEXT_TRUE='#'
26511   am__EXEEXT_FALSE=
26512 fi
26513
26514 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26515   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26517 fi
26518 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26519   as_fn_error $? "conditional \"AMDEP\" was never defined.
26520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26521 fi
26522 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26523   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26525 fi
26526 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26527   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26529 fi
26530 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
26531   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
26532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26533 fi
26534 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26535   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
26536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26537 fi
26538 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
26539   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
26540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26541 fi
26542 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
26543   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
26544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26545 fi
26546 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
26547   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
26548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26549 fi
26550 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
26551   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
26552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26553 fi
26554 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26555   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26557 fi
26558 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26559   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26561 fi
26562 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26563   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
26564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26565 fi
26566
26567
26568     gl_libobjs=
26569     gl_ltlibobjs=
26570     if test -n "$gl_LIBOBJS"; then
26571       # Remove the extension.
26572       sed_drop_objext='s/\.o$//;s/\.obj$//'
26573       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26574         gl_libobjs="$gl_libobjs $i.$ac_objext"
26575         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26576       done
26577     fi
26578     gl_LIBOBJS=$gl_libobjs
26579
26580     gl_LTLIBOBJS=$gl_ltlibobjs
26581
26582
26583
26584     gltests_libobjs=
26585     gltests_ltlibobjs=
26586     if test -n "$gltests_LIBOBJS"; then
26587       # Remove the extension.
26588       sed_drop_objext='s/\.o$//;s/\.obj$//'
26589       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26590         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26591         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26592       done
26593     fi
26594     gltests_LIBOBJS=$gltests_libobjs
26595
26596     gltests_LTLIBOBJS=$gltests_ltlibobjs
26597
26598
26599
26600 : "${CONFIG_STATUS=./config.status}"
26601 ac_write_fail=0
26602 ac_clean_files_save=$ac_clean_files
26603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26605 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26606 as_write_fail=0
26607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26608 #! $SHELL
26609 # Generated by $as_me.
26610 # Run this file to recreate the current configuration.
26611 # Compiler output produced by configure, useful for debugging
26612 # configure, is in config.log if it exists.
26613
26614 debug=false
26615 ac_cs_recheck=false
26616 ac_cs_silent=false
26617
26618 SHELL=\${CONFIG_SHELL-$SHELL}
26619 export SHELL
26620 _ASEOF
26621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26622 ## -------------------- ##
26623 ## M4sh Initialization. ##
26624 ## -------------------- ##
26625
26626 # Be more Bourne compatible
26627 DUALCASE=1; export DUALCASE # for MKS sh
26628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26629   emulate sh
26630   NULLCMD=:
26631   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26632   # is contrary to our usage.  Disable this feature.
26633   alias -g '${1+"$@"}'='"$@"'
26634   setopt NO_GLOB_SUBST
26635 else
26636   case `(set -o) 2>/dev/null` in #(
26637   *posix*) :
26638     set -o posix ;; #(
26639   *) :
26640      ;;
26641 esac
26642 fi
26643
26644
26645 as_nl='
26646 '
26647 export as_nl
26648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26649 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26652 # Prefer a ksh shell builtin over an external printf program on Solaris,
26653 # but without wasting forks for bash or zsh.
26654 if test -z "$BASH_VERSION$ZSH_VERSION" \
26655     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26656   as_echo='print -r --'
26657   as_echo_n='print -rn --'
26658 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26659   as_echo='printf %s\n'
26660   as_echo_n='printf %s'
26661 else
26662   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26663     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26664     as_echo_n='/usr/ucb/echo -n'
26665   else
26666     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26667     as_echo_n_body='eval
26668       arg=$1;
26669       case $arg in #(
26670       *"$as_nl"*)
26671         expr "X$arg" : "X\\(.*\\)$as_nl";
26672         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26673       esac;
26674       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26675     '
26676     export as_echo_n_body
26677     as_echo_n='sh -c $as_echo_n_body as_echo'
26678   fi
26679   export as_echo_body
26680   as_echo='sh -c $as_echo_body as_echo'
26681 fi
26682
26683 # The user is always right.
26684 if test "${PATH_SEPARATOR+set}" != set; then
26685   PATH_SEPARATOR=:
26686   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26687     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26688       PATH_SEPARATOR=';'
26689   }
26690 fi
26691
26692
26693 # IFS
26694 # We need space, tab and new line, in precisely that order.  Quoting is
26695 # there to prevent editors from complaining about space-tab.
26696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26697 # splitting by setting IFS to empty value.)
26698 IFS=" ""        $as_nl"
26699
26700 # Find who we are.  Look in the path if we contain no directory separator.
26701 as_myself=
26702 case $0 in #((
26703   *[\\/]* ) as_myself=$0 ;;
26704   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26705 for as_dir in $PATH
26706 do
26707   IFS=$as_save_IFS
26708   test -z "$as_dir" && as_dir=.
26709     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26710   done
26711 IFS=$as_save_IFS
26712
26713      ;;
26714 esac
26715 # We did not find ourselves, most probably we were run as `sh COMMAND'
26716 # in which case we are not to be found in the path.
26717 if test "x$as_myself" = x; then
26718   as_myself=$0
26719 fi
26720 if test ! -f "$as_myself"; then
26721   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26722   exit 1
26723 fi
26724
26725 # Unset variables that we do not need and which cause bugs (e.g. in
26726 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26727 # suppresses any "Segmentation fault" message there.  '((' could
26728 # trigger a bug in pdksh 5.2.14.
26729 for as_var in BASH_ENV ENV MAIL MAILPATH
26730 do eval test x\${$as_var+set} = xset \
26731   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26732 done
26733 PS1='$ '
26734 PS2='> '
26735 PS4='+ '
26736
26737 # NLS nuisances.
26738 LC_ALL=C
26739 export LC_ALL
26740 LANGUAGE=C
26741 export LANGUAGE
26742
26743 # CDPATH.
26744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26745
26746
26747 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26748 # ----------------------------------------
26749 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26750 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26751 # script with STATUS, using 1 if that was 0.
26752 as_fn_error ()
26753 {
26754   as_status=$1; test $as_status -eq 0 && as_status=1
26755   if test "$4"; then
26756     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26757     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26758   fi
26759   $as_echo "$as_me: error: $2" >&2
26760   as_fn_exit $as_status
26761 } # as_fn_error
26762
26763
26764 # as_fn_set_status STATUS
26765 # -----------------------
26766 # Set $? to STATUS, without forking.
26767 as_fn_set_status ()
26768 {
26769   return $1
26770 } # as_fn_set_status
26771
26772 # as_fn_exit STATUS
26773 # -----------------
26774 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26775 as_fn_exit ()
26776 {
26777   set +e
26778   as_fn_set_status $1
26779   exit $1
26780 } # as_fn_exit
26781
26782 # as_fn_unset VAR
26783 # ---------------
26784 # Portably unset VAR.
26785 as_fn_unset ()
26786 {
26787   { eval $1=; unset $1;}
26788 }
26789 as_unset=as_fn_unset
26790 # as_fn_append VAR VALUE
26791 # ----------------------
26792 # Append the text in VALUE to the end of the definition contained in VAR. Take
26793 # advantage of any shell optimizations that allow amortized linear growth over
26794 # repeated appends, instead of the typical quadratic growth present in naive
26795 # implementations.
26796 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26797   eval 'as_fn_append ()
26798   {
26799     eval $1+=\$2
26800   }'
26801 else
26802   as_fn_append ()
26803   {
26804     eval $1=\$$1\$2
26805   }
26806 fi # as_fn_append
26807
26808 # as_fn_arith ARG...
26809 # ------------------
26810 # Perform arithmetic evaluation on the ARGs, and store the result in the
26811 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26812 # must be portable across $(()) and expr.
26813 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26814   eval 'as_fn_arith ()
26815   {
26816     as_val=$(( $* ))
26817   }'
26818 else
26819   as_fn_arith ()
26820   {
26821     as_val=`expr "$@" || test $? -eq 1`
26822   }
26823 fi # as_fn_arith
26824
26825
26826 if expr a : '\(a\)' >/dev/null 2>&1 &&
26827    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26828   as_expr=expr
26829 else
26830   as_expr=false
26831 fi
26832
26833 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26834   as_basename=basename
26835 else
26836   as_basename=false
26837 fi
26838
26839 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26840   as_dirname=dirname
26841 else
26842   as_dirname=false
26843 fi
26844
26845 as_me=`$as_basename -- "$0" ||
26846 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26847          X"$0" : 'X\(//\)$' \| \
26848          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26849 $as_echo X/"$0" |
26850     sed '/^.*\/\([^/][^/]*\)\/*$/{
26851             s//\1/
26852             q
26853           }
26854           /^X\/\(\/\/\)$/{
26855             s//\1/
26856             q
26857           }
26858           /^X\/\(\/\).*/{
26859             s//\1/
26860             q
26861           }
26862           s/.*/./; q'`
26863
26864 # Avoid depending upon Character Ranges.
26865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26868 as_cr_digits='0123456789'
26869 as_cr_alnum=$as_cr_Letters$as_cr_digits
26870
26871 ECHO_C= ECHO_N= ECHO_T=
26872 case `echo -n x` in #(((((
26873 -n*)
26874   case `echo 'xy\c'` in
26875   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26876   xy)  ECHO_C='\c';;
26877   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26878        ECHO_T=' ';;
26879   esac;;
26880 *)
26881   ECHO_N='-n';;
26882 esac
26883
26884 rm -f conf$$ conf$$.exe conf$$.file
26885 if test -d conf$$.dir; then
26886   rm -f conf$$.dir/conf$$.file
26887 else
26888   rm -f conf$$.dir
26889   mkdir conf$$.dir 2>/dev/null
26890 fi
26891 if (echo >conf$$.file) 2>/dev/null; then
26892   if ln -s conf$$.file conf$$ 2>/dev/null; then
26893     as_ln_s='ln -s'
26894     # ... but there are two gotchas:
26895     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26896     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26897     # In both cases, we have to default to `cp -pR'.
26898     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26899       as_ln_s='cp -pR'
26900   elif ln conf$$.file conf$$ 2>/dev/null; then
26901     as_ln_s=ln
26902   else
26903     as_ln_s='cp -pR'
26904   fi
26905 else
26906   as_ln_s='cp -pR'
26907 fi
26908 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26909 rmdir conf$$.dir 2>/dev/null
26910
26911
26912 # as_fn_mkdir_p
26913 # -------------
26914 # Create "$as_dir" as a directory, including parents if necessary.
26915 as_fn_mkdir_p ()
26916 {
26917
26918   case $as_dir in #(
26919   -*) as_dir=./$as_dir;;
26920   esac
26921   test -d "$as_dir" || eval $as_mkdir_p || {
26922     as_dirs=
26923     while :; do
26924       case $as_dir in #(
26925       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26926       *) as_qdir=$as_dir;;
26927       esac
26928       as_dirs="'$as_qdir' $as_dirs"
26929       as_dir=`$as_dirname -- "$as_dir" ||
26930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26931          X"$as_dir" : 'X\(//\)[^/]' \| \
26932          X"$as_dir" : 'X\(//\)$' \| \
26933          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26934 $as_echo X"$as_dir" |
26935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26936             s//\1/
26937             q
26938           }
26939           /^X\(\/\/\)[^/].*/{
26940             s//\1/
26941             q
26942           }
26943           /^X\(\/\/\)$/{
26944             s//\1/
26945             q
26946           }
26947           /^X\(\/\).*/{
26948             s//\1/
26949             q
26950           }
26951           s/.*/./; q'`
26952       test -d "$as_dir" && break
26953     done
26954     test -z "$as_dirs" || eval "mkdir $as_dirs"
26955   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26956
26957
26958 } # as_fn_mkdir_p
26959 if mkdir -p . 2>/dev/null; then
26960   as_mkdir_p='mkdir -p "$as_dir"'
26961 else
26962   test -d ./-p && rmdir ./-p
26963   as_mkdir_p=false
26964 fi
26965
26966
26967 # as_fn_executable_p FILE
26968 # -----------------------
26969 # Test if FILE is an executable regular file.
26970 as_fn_executable_p ()
26971 {
26972   test -f "$1" && test -x "$1"
26973 } # as_fn_executable_p
26974 as_test_x='test -x'
26975 as_executable_p=as_fn_executable_p
26976
26977 # Sed expression to map a string onto a valid CPP name.
26978 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26979
26980 # Sed expression to map a string onto a valid variable name.
26981 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26982
26983
26984 exec 6>&1
26985 ## ----------------------------------- ##
26986 ## Main body of $CONFIG_STATUS script. ##
26987 ## ----------------------------------- ##
26988 _ASEOF
26989 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26990
26991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26992 # Save the log message, to keep $0 and so on meaningful, and to
26993 # report actual input values of CONFIG_FILES etc. instead of their
26994 # values after options handling.
26995 ac_log="
26996 This file was extended by libpipeline $as_me 1.4.0, which was
26997 generated by GNU Autoconf 2.69.  Invocation command line was
26998
26999   CONFIG_FILES    = $CONFIG_FILES
27000   CONFIG_HEADERS  = $CONFIG_HEADERS
27001   CONFIG_LINKS    = $CONFIG_LINKS
27002   CONFIG_COMMANDS = $CONFIG_COMMANDS
27003   $ $0 $@
27004
27005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27006 "
27007
27008 _ACEOF
27009
27010 case $ac_config_files in *"
27011 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27012 esac
27013
27014 case $ac_config_headers in *"
27015 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27016 esac
27017
27018
27019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27020 # Files that config.status was made for.
27021 config_files="$ac_config_files"
27022 config_headers="$ac_config_headers"
27023 config_commands="$ac_config_commands"
27024
27025 _ACEOF
27026
27027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27028 ac_cs_usage="\
27029 \`$as_me' instantiates files and other configuration actions
27030 from templates according to the current configuration.  Unless the files
27031 and actions are specified as TAGs, all are instantiated by default.
27032
27033 Usage: $0 [OPTION]... [TAG]...
27034
27035   -h, --help       print this help, then exit
27036   -V, --version    print version number and configuration settings, then exit
27037       --config     print configuration, then exit
27038   -q, --quiet, --silent
27039                    do not print progress messages
27040   -d, --debug      don't remove temporary files
27041       --recheck    update $as_me by reconfiguring in the same conditions
27042       --file=FILE[:TEMPLATE]
27043                    instantiate the configuration file FILE
27044       --header=FILE[:TEMPLATE]
27045                    instantiate the configuration header FILE
27046
27047 Configuration files:
27048 $config_files
27049
27050 Configuration headers:
27051 $config_headers
27052
27053 Configuration commands:
27054 $config_commands
27055
27056 Report bugs to <cjwatson@debian.org>."
27057
27058 _ACEOF
27059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27060 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27061 ac_cs_version="\\
27062 libpipeline config.status 1.4.0
27063 configured by $0, generated by GNU Autoconf 2.69,
27064   with options \\"\$ac_cs_config\\"
27065
27066 Copyright (C) 2012 Free Software Foundation, Inc.
27067 This config.status script is free software; the Free Software Foundation
27068 gives unlimited permission to copy, distribute and modify it."
27069
27070 ac_pwd='$ac_pwd'
27071 srcdir='$srcdir'
27072 INSTALL='$INSTALL'
27073 MKDIR_P='$MKDIR_P'
27074 AWK='$AWK'
27075 test -n "\$AWK" || AWK=awk
27076 _ACEOF
27077
27078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27079 # The default lists apply if the user does not specify any file.
27080 ac_need_defaults=:
27081 while test $# != 0
27082 do
27083   case $1 in
27084   --*=?*)
27085     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27086     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27087     ac_shift=:
27088     ;;
27089   --*=)
27090     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27091     ac_optarg=
27092     ac_shift=:
27093     ;;
27094   *)
27095     ac_option=$1
27096     ac_optarg=$2
27097     ac_shift=shift
27098     ;;
27099   esac
27100
27101   case $ac_option in
27102   # Handling of the options.
27103   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27104     ac_cs_recheck=: ;;
27105   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27106     $as_echo "$ac_cs_version"; exit ;;
27107   --config | --confi | --conf | --con | --co | --c )
27108     $as_echo "$ac_cs_config"; exit ;;
27109   --debug | --debu | --deb | --de | --d | -d )
27110     debug=: ;;
27111   --file | --fil | --fi | --f )
27112     $ac_shift
27113     case $ac_optarg in
27114     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27115     '') as_fn_error $? "missing file argument" ;;
27116     esac
27117     as_fn_append CONFIG_FILES " '$ac_optarg'"
27118     ac_need_defaults=false;;
27119   --header | --heade | --head | --hea )
27120     $ac_shift
27121     case $ac_optarg in
27122     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27123     esac
27124     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27125     ac_need_defaults=false;;
27126   --he | --h)
27127     # Conflict between --help and --header
27128     as_fn_error $? "ambiguous option: \`$1'
27129 Try \`$0 --help' for more information.";;
27130   --help | --hel | -h )
27131     $as_echo "$ac_cs_usage"; exit ;;
27132   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27133   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27134     ac_cs_silent=: ;;
27135
27136   # This is an error.
27137   -*) as_fn_error $? "unrecognized option: \`$1'
27138 Try \`$0 --help' for more information." ;;
27139
27140   *) as_fn_append ac_config_targets " $1"
27141      ac_need_defaults=false ;;
27142
27143   esac
27144   shift
27145 done
27146
27147 ac_configure_extra_args=
27148
27149 if $ac_cs_silent; then
27150   exec 6>/dev/null
27151   ac_configure_extra_args="$ac_configure_extra_args --silent"
27152 fi
27153
27154 _ACEOF
27155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27156 if \$ac_cs_recheck; then
27157   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27158   shift
27159   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27160   CONFIG_SHELL='$SHELL'
27161   export CONFIG_SHELL
27162   exec "\$@"
27163 fi
27164
27165 _ACEOF
27166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27167 exec 5>>config.log
27168 {
27169   echo
27170   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27171 ## Running $as_me. ##
27172 _ASBOX
27173   $as_echo "$ac_log"
27174 } >&5
27175
27176 _ACEOF
27177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27178 #
27179 # INIT-COMMANDS
27180 #
27181 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27182
27183
27184 # The HP-UX ksh and POSIX shell print the target directory to stdout
27185 # if CDPATH is set.
27186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27187
27188 sed_quote_subst='$sed_quote_subst'
27189 double_quote_subst='$double_quote_subst'
27190 delay_variable_subst='$delay_variable_subst'
27191 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27192 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27193 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27194 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27195 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27196 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27197 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27198 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27199 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27200 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27201 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27202 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27203 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27204 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27205 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27206 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27207 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27208 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27209 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27210 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27211 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27212 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27213 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27214 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27215 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27216 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27217 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27218 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27219 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27220 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27221 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27222 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27223 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27224 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27225 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27226 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27227 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27228 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27229 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27230 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27231 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27232 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27233 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27234 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27235 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27236 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27237 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27238 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27239 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27240 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27241 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27242 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27243 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27244 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27245 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27246 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27247 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"`'
27248 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27249 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27250 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27251 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27252 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27253 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27254 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27255 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27256 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27257 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27258 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27259 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27260 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27261 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27262 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27263 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27264 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27265 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27266 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27267 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27268 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27269 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27270 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27271 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27272 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27273 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27274 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27275 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27276 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27277 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27278 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27279 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27280 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27281 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27282 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27283 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27284 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27285 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27286 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27287 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27288 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27289 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27290 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27291 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27292 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27293 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27294 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27295 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27296 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27297 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27298 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27299 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27300 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27301 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27302 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27303 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27304 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27305 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27306 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27307 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27308 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27309 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27310 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27311 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27312 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27313 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27314 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27315 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27316 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27317 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27318 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27319 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27320 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27321
27322 LTCC='$LTCC'
27323 LTCFLAGS='$LTCFLAGS'
27324 compiler='$compiler_DEFAULT'
27325
27326 # A function that is used when there is no print builtin or printf.
27327 func_fallback_echo ()
27328 {
27329   eval 'cat <<_LTECHO_EOF
27330 \$1
27331 _LTECHO_EOF'
27332 }
27333
27334 # Quote evaled strings.
27335 for var in SHELL \
27336 ECHO \
27337 PATH_SEPARATOR \
27338 SED \
27339 GREP \
27340 EGREP \
27341 FGREP \
27342 LD \
27343 NM \
27344 LN_S \
27345 lt_SP2NL \
27346 lt_NL2SP \
27347 reload_flag \
27348 OBJDUMP \
27349 deplibs_check_method \
27350 file_magic_cmd \
27351 file_magic_glob \
27352 want_nocaseglob \
27353 DLLTOOL \
27354 sharedlib_from_linklib_cmd \
27355 AR \
27356 AR_FLAGS \
27357 archiver_list_spec \
27358 STRIP \
27359 RANLIB \
27360 CC \
27361 CFLAGS \
27362 compiler \
27363 lt_cv_sys_global_symbol_pipe \
27364 lt_cv_sys_global_symbol_to_cdecl \
27365 lt_cv_sys_global_symbol_to_c_name_address \
27366 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27367 nm_file_list_spec \
27368 lt_prog_compiler_no_builtin_flag \
27369 lt_prog_compiler_pic \
27370 lt_prog_compiler_wl \
27371 lt_prog_compiler_static \
27372 lt_cv_prog_compiler_c_o \
27373 need_locks \
27374 MANIFEST_TOOL \
27375 DSYMUTIL \
27376 NMEDIT \
27377 LIPO \
27378 OTOOL \
27379 OTOOL64 \
27380 shrext_cmds \
27381 export_dynamic_flag_spec \
27382 whole_archive_flag_spec \
27383 compiler_needs_object \
27384 with_gnu_ld \
27385 allow_undefined_flag \
27386 no_undefined_flag \
27387 hardcode_libdir_flag_spec \
27388 hardcode_libdir_separator \
27389 exclude_expsyms \
27390 include_expsyms \
27391 file_list_spec \
27392 variables_saved_for_relink \
27393 libname_spec \
27394 library_names_spec \
27395 soname_spec \
27396 install_override_mode \
27397 finish_eval \
27398 old_striplib \
27399 striplib; do
27400     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27401     *[\\\\\\\`\\"\\\$]*)
27402       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27403       ;;
27404     *)
27405       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27406       ;;
27407     esac
27408 done
27409
27410 # Double-quote double-evaled strings.
27411 for var in reload_cmds \
27412 old_postinstall_cmds \
27413 old_postuninstall_cmds \
27414 old_archive_cmds \
27415 extract_expsyms_cmds \
27416 old_archive_from_new_cmds \
27417 old_archive_from_expsyms_cmds \
27418 archive_cmds \
27419 archive_expsym_cmds \
27420 module_cmds \
27421 module_expsym_cmds \
27422 export_symbols_cmds \
27423 prelink_cmds \
27424 postlink_cmds \
27425 postinstall_cmds \
27426 postuninstall_cmds \
27427 finish_cmds \
27428 sys_lib_search_path_spec \
27429 sys_lib_dlsearch_path_spec; do
27430     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27431     *[\\\\\\\`\\"\\\$]*)
27432       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27433       ;;
27434     *)
27435       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27436       ;;
27437     esac
27438 done
27439
27440 ac_aux_dir='$ac_aux_dir'
27441 xsi_shell='$xsi_shell'
27442 lt_shell_append='$lt_shell_append'
27443
27444 # See if we are running on zsh, and set the options which allow our
27445 # commands through without removal of \ escapes INIT.
27446 if test -n "\${ZSH_VERSION+set}" ; then
27447    setopt NO_GLOB_SUBST
27448 fi
27449
27450
27451     PACKAGE='$PACKAGE'
27452     VERSION='$VERSION'
27453     TIMESTAMP='$TIMESTAMP'
27454     RM='$RM'
27455     ofile='$ofile'
27456
27457
27458
27459
27460 _ACEOF
27461
27462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27463
27464 # Handling of arguments.
27465 for ac_config_target in $ac_config_targets
27466 do
27467   case $ac_config_target in
27468     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27469     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27470     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27471     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27472     "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
27473     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27474     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
27475     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27476     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27477
27478   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27479   esac
27480 done
27481
27482
27483 # If the user did not use the arguments to specify the items to instantiate,
27484 # then the envvar interface is used.  Set only those that are not.
27485 # We use the long form for the default assignment because of an extremely
27486 # bizarre bug on SunOS 4.1.3.
27487 if $ac_need_defaults; then
27488   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27489   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27490   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27491 fi
27492
27493 # Have a temporary directory for convenience.  Make it in the build tree
27494 # simply because there is no reason against having it here, and in addition,
27495 # creating and moving files from /tmp can sometimes cause problems.
27496 # Hook for its removal unless debugging.
27497 # Note that there is a small window in which the directory will not be cleaned:
27498 # after its creation but before its name has been assigned to `$tmp'.
27499 $debug ||
27500 {
27501   tmp= ac_tmp=
27502   trap 'exit_status=$?
27503   : "${ac_tmp:=$tmp}"
27504   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27505 ' 0
27506   trap 'as_fn_exit 1' 1 2 13 15
27507 }
27508 # Create a (secure) tmp directory for tmp files.
27509
27510 {
27511   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27512   test -d "$tmp"
27513 }  ||
27514 {
27515   tmp=./conf$$-$RANDOM
27516   (umask 077 && mkdir "$tmp")
27517 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27518 ac_tmp=$tmp
27519
27520 # Set up the scripts for CONFIG_FILES section.
27521 # No need to generate them if there are no CONFIG_FILES.
27522 # This happens for instance with `./config.status config.h'.
27523 if test -n "$CONFIG_FILES"; then
27524
27525
27526 ac_cr=`echo X | tr X '\015'`
27527 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27528 # But we know of no other shell where ac_cr would be empty at this
27529 # point, so we can use a bashism as a fallback.
27530 if test "x$ac_cr" = x; then
27531   eval ac_cr=\$\'\\r\'
27532 fi
27533 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27534 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27535   ac_cs_awk_cr='\\r'
27536 else
27537   ac_cs_awk_cr=$ac_cr
27538 fi
27539
27540 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27541 _ACEOF
27542
27543
27544 {
27545   echo "cat >conf$$subs.awk <<_ACEOF" &&
27546   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27547   echo "_ACEOF"
27548 } >conf$$subs.sh ||
27549   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27550 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27551 ac_delim='%!_!# '
27552 for ac_last_try in false false false false false :; do
27553   . ./conf$$subs.sh ||
27554     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27555
27556   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27557   if test $ac_delim_n = $ac_delim_num; then
27558     break
27559   elif $ac_last_try; then
27560     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27561   else
27562     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27563   fi
27564 done
27565 rm -f conf$$subs.sh
27566
27567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27568 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27569 _ACEOF
27570 sed -n '
27571 h
27572 s/^/S["/; s/!.*/"]=/
27573 p
27574 g
27575 s/^[^!]*!//
27576 :repl
27577 t repl
27578 s/'"$ac_delim"'$//
27579 t delim
27580 :nl
27581 h
27582 s/\(.\{148\}\)..*/\1/
27583 t more1
27584 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27585 p
27586 n
27587 b repl
27588 :more1
27589 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27590 p
27591 g
27592 s/.\{148\}//
27593 t nl
27594 :delim
27595 h
27596 s/\(.\{148\}\)..*/\1/
27597 t more2
27598 s/["\\]/\\&/g; s/^/"/; s/$/"/
27599 p
27600 b
27601 :more2
27602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27603 p
27604 g
27605 s/.\{148\}//
27606 t delim
27607 ' <conf$$subs.awk | sed '
27608 /^[^""]/{
27609   N
27610   s/\n//
27611 }
27612 ' >>$CONFIG_STATUS || ac_write_fail=1
27613 rm -f conf$$subs.awk
27614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27615 _ACAWK
27616 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27617   for (key in S) S_is_set[key] = 1
27618   FS = "\a"
27619
27620 }
27621 {
27622   line = $ 0
27623   nfields = split(line, field, "@")
27624   substed = 0
27625   len = length(field[1])
27626   for (i = 2; i < nfields; i++) {
27627     key = field[i]
27628     keylen = length(key)
27629     if (S_is_set[key]) {
27630       value = S[key]
27631       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27632       len += length(value) + length(field[++i])
27633       substed = 1
27634     } else
27635       len += 1 + keylen
27636   }
27637
27638   print line
27639 }
27640
27641 _ACAWK
27642 _ACEOF
27643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27644 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27645   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27646 else
27647   cat
27648 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27649   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27650 _ACEOF
27651
27652 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27653 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27654 # trailing colons and then remove the whole line if VPATH becomes empty
27655 # (actually we leave an empty line to preserve line numbers).
27656 if test "x$srcdir" = x.; then
27657   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27658 h
27659 s///
27660 s/^/:/
27661 s/[      ]*$/:/
27662 s/:\$(srcdir):/:/g
27663 s/:\${srcdir}:/:/g
27664 s/:@srcdir@:/:/g
27665 s/^:*//
27666 s/:*$//
27667 x
27668 s/\(=[   ]*\).*/\1/
27669 G
27670 s/\n//
27671 s/^[^=]*=[       ]*$//
27672 }'
27673 fi
27674
27675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27676 fi # test -n "$CONFIG_FILES"
27677
27678 # Set up the scripts for CONFIG_HEADERS section.
27679 # No need to generate them if there are no CONFIG_HEADERS.
27680 # This happens for instance with `./config.status Makefile'.
27681 if test -n "$CONFIG_HEADERS"; then
27682 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27683 BEGIN {
27684 _ACEOF
27685
27686 # Transform confdefs.h into an awk script `defines.awk', embedded as
27687 # here-document in config.status, that substitutes the proper values into
27688 # config.h.in to produce config.h.
27689
27690 # Create a delimiter string that does not exist in confdefs.h, to ease
27691 # handling of long lines.
27692 ac_delim='%!_!# '
27693 for ac_last_try in false false :; do
27694   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27695   if test -z "$ac_tt"; then
27696     break
27697   elif $ac_last_try; then
27698     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27699   else
27700     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27701   fi
27702 done
27703
27704 # For the awk script, D is an array of macro values keyed by name,
27705 # likewise P contains macro parameters if any.  Preserve backslash
27706 # newline sequences.
27707
27708 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27709 sed -n '
27710 s/.\{148\}/&'"$ac_delim"'/g
27711 t rset
27712 :rset
27713 s/^[     ]*#[    ]*define[       ][      ]*/ /
27714 t def
27715 d
27716 :def
27717 s/\\$//
27718 t bsnl
27719 s/["\\]/\\&/g
27720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27721 D["\1"]=" \3"/p
27722 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27723 d
27724 :bsnl
27725 s/["\\]/\\&/g
27726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27727 D["\1"]=" \3\\\\\\n"\\/p
27728 t cont
27729 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27730 t cont
27731 d
27732 :cont
27733 n
27734 s/.\{148\}/&'"$ac_delim"'/g
27735 t clear
27736 :clear
27737 s/\\$//
27738 t bsnlc
27739 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27740 d
27741 :bsnlc
27742 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27743 b cont
27744 ' <confdefs.h | sed '
27745 s/'"$ac_delim"'/"\\\
27746 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27747
27748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27749   for (key in D) D_is_set[key] = 1
27750   FS = "\a"
27751 }
27752 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27753   line = \$ 0
27754   split(line, arg, " ")
27755   if (arg[1] == "#") {
27756     defundef = arg[2]
27757     mac1 = arg[3]
27758   } else {
27759     defundef = substr(arg[1], 2)
27760     mac1 = arg[2]
27761   }
27762   split(mac1, mac2, "(") #)
27763   macro = mac2[1]
27764   prefix = substr(line, 1, index(line, defundef) - 1)
27765   if (D_is_set[macro]) {
27766     # Preserve the white space surrounding the "#".
27767     print prefix "define", macro P[macro] D[macro]
27768     next
27769   } else {
27770     # Replace #undef with comments.  This is necessary, for example,
27771     # in the case of _POSIX_SOURCE, which is predefined and required
27772     # on some systems where configure will not decide to define it.
27773     if (defundef == "undef") {
27774       print "/*", prefix defundef, macro, "*/"
27775       next
27776     }
27777   }
27778 }
27779 { print }
27780 _ACAWK
27781 _ACEOF
27782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27783   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27784 fi # test -n "$CONFIG_HEADERS"
27785
27786
27787 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27788 shift
27789 for ac_tag
27790 do
27791   case $ac_tag in
27792   :[FHLC]) ac_mode=$ac_tag; continue;;
27793   esac
27794   case $ac_mode$ac_tag in
27795   :[FHL]*:*);;
27796   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27797   :[FH]-) ac_tag=-:-;;
27798   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27799   esac
27800   ac_save_IFS=$IFS
27801   IFS=:
27802   set x $ac_tag
27803   IFS=$ac_save_IFS
27804   shift
27805   ac_file=$1
27806   shift
27807
27808   case $ac_mode in
27809   :L) ac_source=$1;;
27810   :[FH])
27811     ac_file_inputs=
27812     for ac_f
27813     do
27814       case $ac_f in
27815       -) ac_f="$ac_tmp/stdin";;
27816       *) # Look for the file first in the build tree, then in the source tree
27817          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27818          # because $ac_f cannot contain `:'.
27819          test -f "$ac_f" ||
27820            case $ac_f in
27821            [\\/$]*) false;;
27822            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27823            esac ||
27824            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27825       esac
27826       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27827       as_fn_append ac_file_inputs " '$ac_f'"
27828     done
27829
27830     # Let's still pretend it is `configure' which instantiates (i.e., don't
27831     # use $as_me), people would be surprised to read:
27832     #    /* config.h.  Generated by config.status.  */
27833     configure_input='Generated from '`
27834           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27835         `' by configure.'
27836     if test x"$ac_file" != x-; then
27837       configure_input="$ac_file.  $configure_input"
27838       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27839 $as_echo "$as_me: creating $ac_file" >&6;}
27840     fi
27841     # Neutralize special characters interpreted by sed in replacement strings.
27842     case $configure_input in #(
27843     *\&* | *\|* | *\\* )
27844        ac_sed_conf_input=`$as_echo "$configure_input" |
27845        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27846     *) ac_sed_conf_input=$configure_input;;
27847     esac
27848
27849     case $ac_tag in
27850     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27851       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27852     esac
27853     ;;
27854   esac
27855
27856   ac_dir=`$as_dirname -- "$ac_file" ||
27857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27858          X"$ac_file" : 'X\(//\)[^/]' \| \
27859          X"$ac_file" : 'X\(//\)$' \| \
27860          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27861 $as_echo X"$ac_file" |
27862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27863             s//\1/
27864             q
27865           }
27866           /^X\(\/\/\)[^/].*/{
27867             s//\1/
27868             q
27869           }
27870           /^X\(\/\/\)$/{
27871             s//\1/
27872             q
27873           }
27874           /^X\(\/\).*/{
27875             s//\1/
27876             q
27877           }
27878           s/.*/./; q'`
27879   as_dir="$ac_dir"; as_fn_mkdir_p
27880   ac_builddir=.
27881
27882 case "$ac_dir" in
27883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27884 *)
27885   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27886   # A ".." for each directory in $ac_dir_suffix.
27887   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27888   case $ac_top_builddir_sub in
27889   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27890   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27891   esac ;;
27892 esac
27893 ac_abs_top_builddir=$ac_pwd
27894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27895 # for backward compatibility:
27896 ac_top_builddir=$ac_top_build_prefix
27897
27898 case $srcdir in
27899   .)  # We are building in place.
27900     ac_srcdir=.
27901     ac_top_srcdir=$ac_top_builddir_sub
27902     ac_abs_top_srcdir=$ac_pwd ;;
27903   [\\/]* | ?:[\\/]* )  # Absolute name.
27904     ac_srcdir=$srcdir$ac_dir_suffix;
27905     ac_top_srcdir=$srcdir
27906     ac_abs_top_srcdir=$srcdir ;;
27907   *) # Relative name.
27908     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27909     ac_top_srcdir=$ac_top_build_prefix$srcdir
27910     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27911 esac
27912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27913
27914
27915   case $ac_mode in
27916   :F)
27917   #
27918   # CONFIG_FILE
27919   #
27920
27921   case $INSTALL in
27922   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27923   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27924   esac
27925   ac_MKDIR_P=$MKDIR_P
27926   case $MKDIR_P in
27927   [\\/$]* | ?:[\\/]* ) ;;
27928   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27929   esac
27930 _ACEOF
27931
27932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27933 # If the template does not know about datarootdir, expand it.
27934 # FIXME: This hack should be removed a few years after 2.60.
27935 ac_datarootdir_hack=; ac_datarootdir_seen=
27936 ac_sed_dataroot='
27937 /datarootdir/ {
27938   p
27939   q
27940 }
27941 /@datadir@/p
27942 /@docdir@/p
27943 /@infodir@/p
27944 /@localedir@/p
27945 /@mandir@/p'
27946 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27947 *datarootdir*) ac_datarootdir_seen=yes;;
27948 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27949   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27950 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27951 _ACEOF
27952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27953   ac_datarootdir_hack='
27954   s&@datadir@&$datadir&g
27955   s&@docdir@&$docdir&g
27956   s&@infodir@&$infodir&g
27957   s&@localedir@&$localedir&g
27958   s&@mandir@&$mandir&g
27959   s&\\\${datarootdir}&$datarootdir&g' ;;
27960 esac
27961 _ACEOF
27962
27963 # Neutralize VPATH when `$srcdir' = `.'.
27964 # Shell code in configure.ac might set extrasub.
27965 # FIXME: do we really want to maintain this feature?
27966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27967 ac_sed_extra="$ac_vpsub
27968 $extrasub
27969 _ACEOF
27970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27971 :t
27972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27973 s|@configure_input@|$ac_sed_conf_input|;t t
27974 s&@top_builddir@&$ac_top_builddir_sub&;t t
27975 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27976 s&@srcdir@&$ac_srcdir&;t t
27977 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27978 s&@top_srcdir@&$ac_top_srcdir&;t t
27979 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27980 s&@builddir@&$ac_builddir&;t t
27981 s&@abs_builddir@&$ac_abs_builddir&;t t
27982 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27983 s&@INSTALL@&$ac_INSTALL&;t t
27984 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27985 $ac_datarootdir_hack
27986 "
27987 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27988   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27989
27990 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27991   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27992   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27993       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27994   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27995 which seems to be undefined.  Please make sure it is defined" >&5
27996 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27997 which seems to be undefined.  Please make sure it is defined" >&2;}
27998
27999   rm -f "$ac_tmp/stdin"
28000   case $ac_file in
28001   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28002   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28003   esac \
28004   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28005  ;;
28006   :H)
28007   #
28008   # CONFIG_HEADER
28009   #
28010   if test x"$ac_file" != x-; then
28011     {
28012       $as_echo "/* $configure_input  */" \
28013       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28014     } >"$ac_tmp/config.h" \
28015       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28016     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28017       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28018 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28019     else
28020       rm -f "$ac_file"
28021       mv "$ac_tmp/config.h" "$ac_file" \
28022         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28023     fi
28024   else
28025     $as_echo "/* $configure_input  */" \
28026       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28027       || as_fn_error $? "could not create -" "$LINENO" 5
28028   fi
28029 # Compute "$ac_file"'s index in $config_headers.
28030 _am_arg="$ac_file"
28031 _am_stamp_count=1
28032 for _am_header in $config_headers :; do
28033   case $_am_header in
28034     $_am_arg | $_am_arg:* )
28035       break ;;
28036     * )
28037       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28038   esac
28039 done
28040 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28041 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28042          X"$_am_arg" : 'X\(//\)[^/]' \| \
28043          X"$_am_arg" : 'X\(//\)$' \| \
28044          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28045 $as_echo X"$_am_arg" |
28046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28047             s//\1/
28048             q
28049           }
28050           /^X\(\/\/\)[^/].*/{
28051             s//\1/
28052             q
28053           }
28054           /^X\(\/\/\)$/{
28055             s//\1/
28056             q
28057           }
28058           /^X\(\/\).*/{
28059             s//\1/
28060             q
28061           }
28062           s/.*/./; q'`/stamp-h$_am_stamp_count
28063  ;;
28064
28065   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28066 $as_echo "$as_me: executing $ac_file commands" >&6;}
28067  ;;
28068   esac
28069
28070
28071   case $ac_file$ac_mode in
28072     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28073   # Older Autoconf quotes --file arguments for eval, but not when files
28074   # are listed without --file.  Let's play safe and only enable the eval
28075   # if we detect the quoting.
28076   case $CONFIG_FILES in
28077   *\'*) eval set x "$CONFIG_FILES" ;;
28078   *)   set x $CONFIG_FILES ;;
28079   esac
28080   shift
28081   for mf
28082   do
28083     # Strip MF so we end up with the name of the file.
28084     mf=`echo "$mf" | sed -e 's/:.*$//'`
28085     # Check whether this is an Automake generated Makefile or not.
28086     # We used to match only the files named 'Makefile.in', but
28087     # some people rename them; so instead we look at the file content.
28088     # Grep'ing the first line is not enough: some people post-process
28089     # each Makefile.in and add a new line on top of each file to say so.
28090     # Grep'ing the whole file is not good either: AIX grep has a line
28091     # limit of 2048, but all sed's we know have understand at least 4000.
28092     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28093       dirpart=`$as_dirname -- "$mf" ||
28094 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28095          X"$mf" : 'X\(//\)[^/]' \| \
28096          X"$mf" : 'X\(//\)$' \| \
28097          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28098 $as_echo X"$mf" |
28099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28100             s//\1/
28101             q
28102           }
28103           /^X\(\/\/\)[^/].*/{
28104             s//\1/
28105             q
28106           }
28107           /^X\(\/\/\)$/{
28108             s//\1/
28109             q
28110           }
28111           /^X\(\/\).*/{
28112             s//\1/
28113             q
28114           }
28115           s/.*/./; q'`
28116     else
28117       continue
28118     fi
28119     # Extract the definition of DEPDIR, am__include, and am__quote
28120     # from the Makefile without running 'make'.
28121     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28122     test -z "$DEPDIR" && continue
28123     am__include=`sed -n 's/^am__include = //p' < "$mf"`
28124     test -z "$am__include" && continue
28125     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28126     # Find all dependency output files, they are included files with
28127     # $(DEPDIR) in their names.  We invoke sed twice because it is the
28128     # simplest approach to changing $(DEPDIR) to its actual value in the
28129     # expansion.
28130     for file in `sed -n "
28131       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28132          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28133       # Make sure the directory exists.
28134       test -f "$dirpart/$file" && continue
28135       fdir=`$as_dirname -- "$file" ||
28136 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28137          X"$file" : 'X\(//\)[^/]' \| \
28138          X"$file" : 'X\(//\)$' \| \
28139          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28140 $as_echo X"$file" |
28141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28142             s//\1/
28143             q
28144           }
28145           /^X\(\/\/\)[^/].*/{
28146             s//\1/
28147             q
28148           }
28149           /^X\(\/\/\)$/{
28150             s//\1/
28151             q
28152           }
28153           /^X\(\/\).*/{
28154             s//\1/
28155             q
28156           }
28157           s/.*/./; q'`
28158       as_dir=$dirpart/$fdir; as_fn_mkdir_p
28159       # echo "creating $dirpart/$file"
28160       echo '# dummy' > "$dirpart/$file"
28161     done
28162   done
28163 }
28164  ;;
28165     "libtool":C)
28166
28167     # See if we are running on zsh, and set the options which allow our
28168     # commands through without removal of \ escapes.
28169     if test -n "${ZSH_VERSION+set}" ; then
28170       setopt NO_GLOB_SUBST
28171     fi
28172
28173     cfgfile="${ofile}T"
28174     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28175     $RM "$cfgfile"
28176
28177     cat <<_LT_EOF >> "$cfgfile"
28178 #! $SHELL
28179
28180 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28181 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28183 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28184 #
28185 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28186 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28187 #                 Foundation, Inc.
28188 #   Written by Gordon Matzigkeit, 1996
28189 #
28190 #   This file is part of GNU Libtool.
28191 #
28192 # GNU Libtool is free software; you can redistribute it and/or
28193 # modify it under the terms of the GNU General Public License as
28194 # published by the Free Software Foundation; either version 2 of
28195 # the License, or (at your option) any later version.
28196 #
28197 # As a special exception to the GNU General Public License,
28198 # if you distribute this file as part of a program or library that
28199 # is built using GNU Libtool, you may include this file under the
28200 # same distribution terms that you use for the rest of that program.
28201 #
28202 # GNU Libtool is distributed in the hope that it will be useful,
28203 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28204 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28205 # GNU General Public License for more details.
28206 #
28207 # You should have received a copy of the GNU General Public License
28208 # along with GNU Libtool; see the file COPYING.  If not, a copy
28209 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28210 # obtained by writing to the Free Software Foundation, Inc.,
28211 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28212
28213
28214 # The names of the tagged configurations supported by this script.
28215 available_tags=""
28216
28217 # ### BEGIN LIBTOOL CONFIG
28218
28219 # Which release of libtool.m4 was used?
28220 macro_version=$macro_version
28221 macro_revision=$macro_revision
28222
28223 # Whether or not to build static libraries.
28224 build_old_libs=$enable_static
28225
28226 # Whether or not to build shared libraries.
28227 build_libtool_libs=$enable_shared
28228
28229 # What type of objects to build.
28230 pic_mode=$pic_mode
28231
28232 # Whether or not to optimize for fast installation.
28233 fast_install=$enable_fast_install
28234
28235 # Shell to use when invoking shell scripts.
28236 SHELL=$lt_SHELL
28237
28238 # An echo program that protects backslashes.
28239 ECHO=$lt_ECHO
28240
28241 # The PATH separator for the build system.
28242 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28243
28244 # The host system.
28245 host_alias=$host_alias
28246 host=$host
28247 host_os=$host_os
28248
28249 # The build system.
28250 build_alias=$build_alias
28251 build=$build
28252 build_os=$build_os
28253
28254 # A sed program that does not truncate output.
28255 SED=$lt_SED
28256
28257 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28258 Xsed="\$SED -e 1s/^X//"
28259
28260 # A grep program that handles long lines.
28261 GREP=$lt_GREP
28262
28263 # An ERE matcher.
28264 EGREP=$lt_EGREP
28265
28266 # A literal string matcher.
28267 FGREP=$lt_FGREP
28268
28269 # A BSD- or MS-compatible name lister.
28270 NM=$lt_NM
28271
28272 # Whether we need soft or hard links.
28273 LN_S=$lt_LN_S
28274
28275 # What is the maximum length of a command?
28276 max_cmd_len=$max_cmd_len
28277
28278 # Object file suffix (normally "o").
28279 objext=$ac_objext
28280
28281 # Executable file suffix (normally "").
28282 exeext=$exeext
28283
28284 # whether the shell understands "unset".
28285 lt_unset=$lt_unset
28286
28287 # turn spaces into newlines.
28288 SP2NL=$lt_lt_SP2NL
28289
28290 # turn newlines into spaces.
28291 NL2SP=$lt_lt_NL2SP
28292
28293 # convert \$build file names to \$host format.
28294 to_host_file_cmd=$lt_cv_to_host_file_cmd
28295
28296 # convert \$build files to toolchain format.
28297 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28298
28299 # An object symbol dumper.
28300 OBJDUMP=$lt_OBJDUMP
28301
28302 # Method to check whether dependent libraries are shared objects.
28303 deplibs_check_method=$lt_deplibs_check_method
28304
28305 # Command to use when deplibs_check_method = "file_magic".
28306 file_magic_cmd=$lt_file_magic_cmd
28307
28308 # How to find potential files when deplibs_check_method = "file_magic".
28309 file_magic_glob=$lt_file_magic_glob
28310
28311 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28312 want_nocaseglob=$lt_want_nocaseglob
28313
28314 # DLL creation program.
28315 DLLTOOL=$lt_DLLTOOL
28316
28317 # Command to associate shared and link libraries.
28318 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28319
28320 # The archiver.
28321 AR=$lt_AR
28322
28323 # Flags to create an archive.
28324 AR_FLAGS=$lt_AR_FLAGS
28325
28326 # How to feed a file listing to the archiver.
28327 archiver_list_spec=$lt_archiver_list_spec
28328
28329 # A symbol stripping program.
28330 STRIP=$lt_STRIP
28331
28332 # Commands used to install an old-style archive.
28333 RANLIB=$lt_RANLIB
28334 old_postinstall_cmds=$lt_old_postinstall_cmds
28335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28336
28337 # Whether to use a lock for old archive extraction.
28338 lock_old_archive_extraction=$lock_old_archive_extraction
28339
28340 # A C compiler.
28341 LTCC=$lt_CC
28342
28343 # LTCC compiler flags.
28344 LTCFLAGS=$lt_CFLAGS
28345
28346 # Take the output of nm and produce a listing of raw symbols and C names.
28347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28348
28349 # Transform the output of nm in a proper C declaration.
28350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28351
28352 # Transform the output of nm in a C name address pair.
28353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28354
28355 # Transform the output of nm in a C name address pair when lib prefix is needed.
28356 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28357
28358 # Specify filename containing input files for \$NM.
28359 nm_file_list_spec=$lt_nm_file_list_spec
28360
28361 # The root where to search for dependent libraries,and in which our libraries should be installed.
28362 lt_sysroot=$lt_sysroot
28363
28364 # The name of the directory that contains temporary libtool files.
28365 objdir=$objdir
28366
28367 # Used to examine libraries when file_magic_cmd begins with "file".
28368 MAGIC_CMD=$MAGIC_CMD
28369
28370 # Must we lock files when doing compilation?
28371 need_locks=$lt_need_locks
28372
28373 # Manifest tool.
28374 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28375
28376 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28377 DSYMUTIL=$lt_DSYMUTIL
28378
28379 # Tool to change global to local symbols on Mac OS X.
28380 NMEDIT=$lt_NMEDIT
28381
28382 # Tool to manipulate fat objects and archives on Mac OS X.
28383 LIPO=$lt_LIPO
28384
28385 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28386 OTOOL=$lt_OTOOL
28387
28388 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28389 OTOOL64=$lt_OTOOL64
28390
28391 # Old archive suffix (normally "a").
28392 libext=$libext
28393
28394 # Shared library suffix (normally ".so").
28395 shrext_cmds=$lt_shrext_cmds
28396
28397 # The commands to extract the exported symbol list from a shared archive.
28398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28399
28400 # Variables whose values should be saved in libtool wrapper scripts and
28401 # restored at link time.
28402 variables_saved_for_relink=$lt_variables_saved_for_relink
28403
28404 # Do we need the "lib" prefix for modules?
28405 need_lib_prefix=$need_lib_prefix
28406
28407 # Do we need a version for libraries?
28408 need_version=$need_version
28409
28410 # Library versioning type.
28411 version_type=$version_type
28412
28413 # Shared library runtime path variable.
28414 runpath_var=$runpath_var
28415
28416 # Shared library path variable.
28417 shlibpath_var=$shlibpath_var
28418
28419 # Is shlibpath searched before the hard-coded library search path?
28420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28421
28422 # Format of library name prefix.
28423 libname_spec=$lt_libname_spec
28424
28425 # List of archive names.  First name is the real one, the rest are links.
28426 # The last name is the one that the linker finds with -lNAME
28427 library_names_spec=$lt_library_names_spec
28428
28429 # The coded name of the library, if different from the real name.
28430 soname_spec=$lt_soname_spec
28431
28432 # Permission mode override for installation of shared libraries.
28433 install_override_mode=$lt_install_override_mode
28434
28435 # Command to use after installation of a shared archive.
28436 postinstall_cmds=$lt_postinstall_cmds
28437
28438 # Command to use after uninstallation of a shared archive.
28439 postuninstall_cmds=$lt_postuninstall_cmds
28440
28441 # Commands used to finish a libtool library installation in a directory.
28442 finish_cmds=$lt_finish_cmds
28443
28444 # As "finish_cmds", except a single script fragment to be evaled but
28445 # not shown.
28446 finish_eval=$lt_finish_eval
28447
28448 # Whether we should hardcode library paths into libraries.
28449 hardcode_into_libs=$hardcode_into_libs
28450
28451 # Compile-time system search path for libraries.
28452 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28453
28454 # Run-time system search path for libraries.
28455 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28456
28457 # Whether dlopen is supported.
28458 dlopen_support=$enable_dlopen
28459
28460 # Whether dlopen of programs is supported.
28461 dlopen_self=$enable_dlopen_self
28462
28463 # Whether dlopen of statically linked programs is supported.
28464 dlopen_self_static=$enable_dlopen_self_static
28465
28466 # Commands to strip libraries.
28467 old_striplib=$lt_old_striplib
28468 striplib=$lt_striplib
28469
28470
28471 # The linker used to build libraries.
28472 LD=$lt_LD
28473
28474 # How to create reloadable object files.
28475 reload_flag=$lt_reload_flag
28476 reload_cmds=$lt_reload_cmds
28477
28478 # Commands used to build an old-style archive.
28479 old_archive_cmds=$lt_old_archive_cmds
28480
28481 # A language specific compiler.
28482 CC=$lt_compiler
28483
28484 # Is the compiler the GNU compiler?
28485 with_gcc=$GCC
28486
28487 # Compiler flag to turn off builtin functions.
28488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28489
28490 # Additional compiler flags for building library objects.
28491 pic_flag=$lt_lt_prog_compiler_pic
28492
28493 # How to pass a linker flag through the compiler.
28494 wl=$lt_lt_prog_compiler_wl
28495
28496 # Compiler flag to prevent dynamic linking.
28497 link_static_flag=$lt_lt_prog_compiler_static
28498
28499 # Does compiler simultaneously support -c and -o options?
28500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28501
28502 # Whether or not to add -lc for building shared libraries.
28503 build_libtool_need_lc=$archive_cmds_need_lc
28504
28505 # Whether or not to disallow shared libs when runtime libs are static.
28506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28507
28508 # Compiler flag to allow reflexive dlopens.
28509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28510
28511 # Compiler flag to generate shared objects directly from archives.
28512 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28513
28514 # Whether the compiler copes with passing no objects directly.
28515 compiler_needs_object=$lt_compiler_needs_object
28516
28517 # Create an old-style archive from a shared archive.
28518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28519
28520 # Create a temporary old-style archive to link instead of a shared archive.
28521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28522
28523 # Commands used to build a shared archive.
28524 archive_cmds=$lt_archive_cmds
28525 archive_expsym_cmds=$lt_archive_expsym_cmds
28526
28527 # Commands used to build a loadable module if different from building
28528 # a shared archive.
28529 module_cmds=$lt_module_cmds
28530 module_expsym_cmds=$lt_module_expsym_cmds
28531
28532 # Whether we are building with GNU ld or not.
28533 with_gnu_ld=$lt_with_gnu_ld
28534
28535 # Flag that allows shared libraries with undefined symbols to be built.
28536 allow_undefined_flag=$lt_allow_undefined_flag
28537
28538 # Flag that enforces no undefined symbols.
28539 no_undefined_flag=$lt_no_undefined_flag
28540
28541 # Flag to hardcode \$libdir into a binary during linking.
28542 # This must work even if \$libdir does not exist
28543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28544
28545 # Whether we need a single "-rpath" flag with a separated argument.
28546 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28547
28548 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28549 # DIR into the resulting binary.
28550 hardcode_direct=$hardcode_direct
28551
28552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28553 # DIR into the resulting binary and the resulting library dependency is
28554 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28555 # library is relocated.
28556 hardcode_direct_absolute=$hardcode_direct_absolute
28557
28558 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28559 # into the resulting binary.
28560 hardcode_minus_L=$hardcode_minus_L
28561
28562 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28563 # into the resulting binary.
28564 hardcode_shlibpath_var=$hardcode_shlibpath_var
28565
28566 # Set to "yes" if building a shared library automatically hardcodes DIR
28567 # into the library and all subsequent libraries and executables linked
28568 # against it.
28569 hardcode_automatic=$hardcode_automatic
28570
28571 # Set to yes if linker adds runtime paths of dependent libraries
28572 # to runtime path list.
28573 inherit_rpath=$inherit_rpath
28574
28575 # Whether libtool must link a program against all its dependency libraries.
28576 link_all_deplibs=$link_all_deplibs
28577
28578 # Set to "yes" if exported symbols are required.
28579 always_export_symbols=$always_export_symbols
28580
28581 # The commands to list exported symbols.
28582 export_symbols_cmds=$lt_export_symbols_cmds
28583
28584 # Symbols that should not be listed in the preloaded symbols.
28585 exclude_expsyms=$lt_exclude_expsyms
28586
28587 # Symbols that must always be exported.
28588 include_expsyms=$lt_include_expsyms
28589
28590 # Commands necessary for linking programs (against libraries) with templates.
28591 prelink_cmds=$lt_prelink_cmds
28592
28593 # Commands necessary for finishing linking programs.
28594 postlink_cmds=$lt_postlink_cmds
28595
28596 # Specify filename containing input files.
28597 file_list_spec=$lt_file_list_spec
28598
28599 # How to hardcode a shared library path into an executable.
28600 hardcode_action=$hardcode_action
28601
28602 # ### END LIBTOOL CONFIG
28603
28604 _LT_EOF
28605
28606   case $host_os in
28607   aix3*)
28608     cat <<\_LT_EOF >> "$cfgfile"
28609 # AIX sometimes has problems with the GCC collect2 program.  For some
28610 # reason, if we set the COLLECT_NAMES environment variable, the problems
28611 # vanish in a puff of smoke.
28612 if test "X${COLLECT_NAMES+set}" != Xset; then
28613   COLLECT_NAMES=
28614   export COLLECT_NAMES
28615 fi
28616 _LT_EOF
28617     ;;
28618   esac
28619
28620
28621 ltmain="$ac_aux_dir/ltmain.sh"
28622
28623
28624   # We use sed instead of cat because bash on DJGPP gets confused if
28625   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28626   # text mode, it properly converts lines to CR/LF.  This bash problem
28627   # is reportedly fixed, but why not run on old versions too?
28628   sed '$q' "$ltmain" >> "$cfgfile" \
28629      || (rm -f "$cfgfile"; exit 1)
28630
28631   if test x"$xsi_shell" = xyes; then
28632   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28633 func_dirname ()\
28634 {\
28635 \    case ${1} in\
28636 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28637 \      *  ) func_dirname_result="${3}" ;;\
28638 \    esac\
28639 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28640   && mv -f "$cfgfile.tmp" "$cfgfile" \
28641     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28642 test 0 -eq $? || _lt_function_replace_fail=:
28643
28644
28645   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28646 func_basename ()\
28647 {\
28648 \    func_basename_result="${1##*/}"\
28649 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28650   && mv -f "$cfgfile.tmp" "$cfgfile" \
28651     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28652 test 0 -eq $? || _lt_function_replace_fail=:
28653
28654
28655   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28656 func_dirname_and_basename ()\
28657 {\
28658 \    case ${1} in\
28659 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28660 \      *  ) func_dirname_result="${3}" ;;\
28661 \    esac\
28662 \    func_basename_result="${1##*/}"\
28663 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28664   && mv -f "$cfgfile.tmp" "$cfgfile" \
28665     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28666 test 0 -eq $? || _lt_function_replace_fail=:
28667
28668
28669   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28670 func_stripname ()\
28671 {\
28672 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28673 \    # positional parameters, so assign one to ordinary parameter first.\
28674 \    func_stripname_result=${3}\
28675 \    func_stripname_result=${func_stripname_result#"${1}"}\
28676 \    func_stripname_result=${func_stripname_result%"${2}"}\
28677 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28678   && mv -f "$cfgfile.tmp" "$cfgfile" \
28679     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28680 test 0 -eq $? || _lt_function_replace_fail=:
28681
28682
28683   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28684 func_split_long_opt ()\
28685 {\
28686 \    func_split_long_opt_name=${1%%=*}\
28687 \    func_split_long_opt_arg=${1#*=}\
28688 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28689   && mv -f "$cfgfile.tmp" "$cfgfile" \
28690     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28691 test 0 -eq $? || _lt_function_replace_fail=:
28692
28693
28694   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28695 func_split_short_opt ()\
28696 {\
28697 \    func_split_short_opt_arg=${1#??}\
28698 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28699 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28700   && mv -f "$cfgfile.tmp" "$cfgfile" \
28701     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28702 test 0 -eq $? || _lt_function_replace_fail=:
28703
28704
28705   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28706 func_lo2o ()\
28707 {\
28708 \    case ${1} in\
28709 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28710 \      *)    func_lo2o_result=${1} ;;\
28711 \    esac\
28712 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28713   && mv -f "$cfgfile.tmp" "$cfgfile" \
28714     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28715 test 0 -eq $? || _lt_function_replace_fail=:
28716
28717
28718   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28719 func_xform ()\
28720 {\
28721     func_xform_result=${1%.*}.lo\
28722 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28723   && mv -f "$cfgfile.tmp" "$cfgfile" \
28724     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28725 test 0 -eq $? || _lt_function_replace_fail=:
28726
28727
28728   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28729 func_arith ()\
28730 {\
28731     func_arith_result=$(( $* ))\
28732 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28733   && mv -f "$cfgfile.tmp" "$cfgfile" \
28734     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28735 test 0 -eq $? || _lt_function_replace_fail=:
28736
28737
28738   sed -e '/^func_len ()$/,/^} # func_len /c\
28739 func_len ()\
28740 {\
28741     func_len_result=${#1}\
28742 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28743   && mv -f "$cfgfile.tmp" "$cfgfile" \
28744     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28745 test 0 -eq $? || _lt_function_replace_fail=:
28746
28747 fi
28748
28749 if test x"$lt_shell_append" = xyes; then
28750   sed -e '/^func_append ()$/,/^} # func_append /c\
28751 func_append ()\
28752 {\
28753     eval "${1}+=\\${2}"\
28754 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28755   && mv -f "$cfgfile.tmp" "$cfgfile" \
28756     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28757 test 0 -eq $? || _lt_function_replace_fail=:
28758
28759
28760   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28761 func_append_quoted ()\
28762 {\
28763 \    func_quote_for_eval "${2}"\
28764 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28765 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28766   && mv -f "$cfgfile.tmp" "$cfgfile" \
28767     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28768 test 0 -eq $? || _lt_function_replace_fail=:
28769
28770
28771   # Save a `func_append' function call where possible by direct use of '+='
28772   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28773     && mv -f "$cfgfile.tmp" "$cfgfile" \
28774       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28775   test 0 -eq $? || _lt_function_replace_fail=:
28776 else
28777   # Save a `func_append' function call even when '+=' is not available
28778   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28779     && mv -f "$cfgfile.tmp" "$cfgfile" \
28780       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28781   test 0 -eq $? || _lt_function_replace_fail=:
28782 fi
28783
28784 if test x"$_lt_function_replace_fail" = x":"; then
28785   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28786 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28787 fi
28788
28789
28790    mv -f "$cfgfile" "$ofile" ||
28791     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28792   chmod +x "$ofile"
28793
28794  ;;
28795
28796   esac
28797 done # for ac_tag
28798
28799
28800 as_fn_exit 0
28801 _ACEOF
28802 ac_clean_files=$ac_clean_files_save
28803
28804 test $ac_write_fail = 0 ||
28805   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28806
28807
28808 # configure is writing to config.log, and then calls config.status.
28809 # config.status does its own redirection, appending to config.log.
28810 # Unfortunately, on DOS this fails, as config.log is still kept open
28811 # by configure, so config.status won't be able to write to it; its
28812 # output is simply discarded.  So we exec the FD to /dev/null,
28813 # effectively closing config.log, so it can be properly (re)opened and
28814 # appended to by config.status.  When coming back to configure, we
28815 # need to make the FD available again.
28816 if test "$no_create" != yes; then
28817   ac_cs_success=:
28818   ac_config_status_args=
28819   test "$silent" = yes &&
28820     ac_config_status_args="$ac_config_status_args --quiet"
28821   exec 5>/dev/null
28822   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28823   exec 5>>config.log
28824   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28825   # would make configure fail if this is the last instruction.
28826   $ac_cs_success || as_fn_exit 1
28827 fi
28828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28829   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28831 fi
28832