Imported Upstream version 1.4.2
[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.2.
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.2'
594 PACKAGE_STRING='libpipeline 1.4.2'
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 LT_SYS_LIBRARY_PATH
1321 OTOOL64
1322 OTOOL
1323 LIPO
1324 NMEDIT
1325 DSYMUTIL
1326 MANIFEST_TOOL
1327 RANLIB
1328 DLLTOOL
1329 OBJDUMP
1330 LN_S
1331 NM
1332 ac_ct_DUMPBIN
1333 DUMPBIN
1334 LD
1335 FGREP
1336 SED
1337 host_os
1338 host_vendor
1339 host_cpu
1340 host
1341 build_os
1342 build_vendor
1343 build_cpu
1344 build
1345 LIBTOOL
1346 ac_ct_AR
1347 AR
1348 EGREP
1349 GREP
1350 CPP
1351 am__fastdepCC_FALSE
1352 am__fastdepCC_TRUE
1353 CCDEPMODE
1354 am__nodep
1355 AMDEPBACKSLASH
1356 AMDEP_FALSE
1357 AMDEP_TRUE
1358 am__quote
1359 am__include
1360 DEPDIR
1361 OBJEXT
1362 EXEEXT
1363 ac_ct_CC
1364 CPPFLAGS
1365 LDFLAGS
1366 CFLAGS
1367 CC
1368 MAINT
1369 MAINTAINER_MODE_FALSE
1370 MAINTAINER_MODE_TRUE
1371 AM_BACKSLASH
1372 AM_DEFAULT_VERBOSITY
1373 AM_DEFAULT_V
1374 AM_V
1375 am__untar
1376 am__tar
1377 AMTAR
1378 am__leading_dot
1379 SET_MAKE
1380 AWK
1381 mkdir_p
1382 MKDIR_P
1383 INSTALL_STRIP_PROGRAM
1384 STRIP
1385 install_sh
1386 MAKEINFO
1387 AUTOHEADER
1388 AUTOMAKE
1389 AUTOCONF
1390 ACLOCAL
1391 VERSION
1392 PACKAGE
1393 CYGPATH_W
1394 am__isrc
1395 INSTALL_DATA
1396 INSTALL_SCRIPT
1397 INSTALL_PROGRAM
1398 target_alias
1399 host_alias
1400 build_alias
1401 LIBS
1402 ECHO_T
1403 ECHO_N
1404 ECHO_C
1405 DEFS
1406 mandir
1407 localedir
1408 libdir
1409 psdir
1410 pdfdir
1411 dvidir
1412 htmldir
1413 infodir
1414 docdir
1415 oldincludedir
1416 includedir
1417 runstatedir
1418 localstatedir
1419 sharedstatedir
1420 sysconfdir
1421 datadir
1422 datarootdir
1423 libexecdir
1424 sbindir
1425 bindir
1426 program_transform_name
1427 prefix
1428 exec_prefix
1429 PACKAGE_URL
1430 PACKAGE_BUGREPORT
1431 PACKAGE_STRING
1432 PACKAGE_VERSION
1433 PACKAGE_TARNAME
1434 PACKAGE_NAME
1435 PATH_SEPARATOR
1436 SHELL'
1437 ac_subst_files=''
1438 ac_user_opts='
1439 enable_option_checking
1440 enable_silent_rules
1441 enable_maintainer_mode
1442 enable_dependency_tracking
1443 enable_static
1444 enable_shared
1445 with_pic
1446 enable_fast_install
1447 with_aix_soname
1448 with_gnu_ld
1449 with_sysroot
1450 enable_libtool_lock
1451 enable_largefile
1452 enable_threads
1453 enable_rpath
1454 with_libpth_prefix
1455 enable_socketpair_pipe
1456 '
1457       ac_precious_vars='build_alias
1458 host_alias
1459 target_alias
1460 CC
1461 CFLAGS
1462 LDFLAGS
1463 LIBS
1464 CPPFLAGS
1465 CPP
1466 LT_SYS_LIBRARY_PATH
1467 PKG_CONFIG
1468 PKG_CONFIG_PATH
1469 PKG_CONFIG_LIBDIR
1470 CHECK_CFLAGS
1471 CHECK_LIBS'
1472
1473
1474 # Initialize some variables set by options.
1475 ac_init_help=
1476 ac_init_version=false
1477 ac_unrecognized_opts=
1478 ac_unrecognized_sep=
1479 # The variables have the same names as the options, with
1480 # dashes changed to underlines.
1481 cache_file=/dev/null
1482 exec_prefix=NONE
1483 no_create=
1484 no_recursion=
1485 prefix=NONE
1486 program_prefix=NONE
1487 program_suffix=NONE
1488 program_transform_name=s,x,x,
1489 silent=
1490 site=
1491 srcdir=
1492 verbose=
1493 x_includes=NONE
1494 x_libraries=NONE
1495
1496 # Installation directory options.
1497 # These are left unexpanded so users can "make install exec_prefix=/foo"
1498 # and all the variables that are supposed to be based on exec_prefix
1499 # by default will actually change.
1500 # Use braces instead of parens because sh, perl, etc. also accept them.
1501 # (The list follows the same order as the GNU Coding Standards.)
1502 bindir='${exec_prefix}/bin'
1503 sbindir='${exec_prefix}/sbin'
1504 libexecdir='${exec_prefix}/libexec'
1505 datarootdir='${prefix}/share'
1506 datadir='${datarootdir}'
1507 sysconfdir='${prefix}/etc'
1508 sharedstatedir='${prefix}/com'
1509 localstatedir='${prefix}/var'
1510 runstatedir='${localstatedir}/run'
1511 includedir='${prefix}/include'
1512 oldincludedir='/usr/include'
1513 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1514 infodir='${datarootdir}/info'
1515 htmldir='${docdir}'
1516 dvidir='${docdir}'
1517 pdfdir='${docdir}'
1518 psdir='${docdir}'
1519 libdir='${exec_prefix}/lib'
1520 localedir='${datarootdir}/locale'
1521 mandir='${datarootdir}/man'
1522
1523 ac_prev=
1524 ac_dashdash=
1525 for ac_option
1526 do
1527   # If the previous option needs an argument, assign it.
1528   if test -n "$ac_prev"; then
1529     eval $ac_prev=\$ac_option
1530     ac_prev=
1531     continue
1532   fi
1533
1534   case $ac_option in
1535   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1536   *=)   ac_optarg= ;;
1537   *)    ac_optarg=yes ;;
1538   esac
1539
1540   # Accept the important Cygnus configure options, so we can diagnose typos.
1541
1542   case $ac_dashdash$ac_option in
1543   --)
1544     ac_dashdash=yes ;;
1545
1546   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1547     ac_prev=bindir ;;
1548   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1549     bindir=$ac_optarg ;;
1550
1551   -build | --build | --buil | --bui | --bu)
1552     ac_prev=build_alias ;;
1553   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1554     build_alias=$ac_optarg ;;
1555
1556   -cache-file | --cache-file | --cache-fil | --cache-fi \
1557   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1558     ac_prev=cache_file ;;
1559   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1560   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1561     cache_file=$ac_optarg ;;
1562
1563   --config-cache | -C)
1564     cache_file=config.cache ;;
1565
1566   -datadir | --datadir | --datadi | --datad)
1567     ac_prev=datadir ;;
1568   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1569     datadir=$ac_optarg ;;
1570
1571   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1572   | --dataroo | --dataro | --datar)
1573     ac_prev=datarootdir ;;
1574   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1575   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1576     datarootdir=$ac_optarg ;;
1577
1578   -disable-* | --disable-*)
1579     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1580     # Reject names that are not valid shell variable names.
1581     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1582       as_fn_error $? "invalid feature name: $ac_useropt"
1583     ac_useropt_orig=$ac_useropt
1584     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1585     case $ac_user_opts in
1586       *"
1587 "enable_$ac_useropt"
1588 "*) ;;
1589       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1590          ac_unrecognized_sep=', ';;
1591     esac
1592     eval enable_$ac_useropt=no ;;
1593
1594   -docdir | --docdir | --docdi | --doc | --do)
1595     ac_prev=docdir ;;
1596   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1597     docdir=$ac_optarg ;;
1598
1599   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1600     ac_prev=dvidir ;;
1601   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1602     dvidir=$ac_optarg ;;
1603
1604   -enable-* | --enable-*)
1605     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1606     # Reject names that are not valid shell variable names.
1607     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1608       as_fn_error $? "invalid feature name: $ac_useropt"
1609     ac_useropt_orig=$ac_useropt
1610     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611     case $ac_user_opts in
1612       *"
1613 "enable_$ac_useropt"
1614 "*) ;;
1615       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1616          ac_unrecognized_sep=', ';;
1617     esac
1618     eval enable_$ac_useropt=\$ac_optarg ;;
1619
1620   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1621   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1622   | --exec | --exe | --ex)
1623     ac_prev=exec_prefix ;;
1624   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1625   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1626   | --exec=* | --exe=* | --ex=*)
1627     exec_prefix=$ac_optarg ;;
1628
1629   -gas | --gas | --ga | --g)
1630     # Obsolete; use --with-gas.
1631     with_gas=yes ;;
1632
1633   -help | --help | --hel | --he | -h)
1634     ac_init_help=long ;;
1635   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1636     ac_init_help=recursive ;;
1637   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1638     ac_init_help=short ;;
1639
1640   -host | --host | --hos | --ho)
1641     ac_prev=host_alias ;;
1642   -host=* | --host=* | --hos=* | --ho=*)
1643     host_alias=$ac_optarg ;;
1644
1645   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1646     ac_prev=htmldir ;;
1647   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1648   | --ht=*)
1649     htmldir=$ac_optarg ;;
1650
1651   -includedir | --includedir | --includedi | --included | --include \
1652   | --includ | --inclu | --incl | --inc)
1653     ac_prev=includedir ;;
1654   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1655   | --includ=* | --inclu=* | --incl=* | --inc=*)
1656     includedir=$ac_optarg ;;
1657
1658   -infodir | --infodir | --infodi | --infod | --info | --inf)
1659     ac_prev=infodir ;;
1660   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1661     infodir=$ac_optarg ;;
1662
1663   -libdir | --libdir | --libdi | --libd)
1664     ac_prev=libdir ;;
1665   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1666     libdir=$ac_optarg ;;
1667
1668   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1669   | --libexe | --libex | --libe)
1670     ac_prev=libexecdir ;;
1671   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1672   | --libexe=* | --libex=* | --libe=*)
1673     libexecdir=$ac_optarg ;;
1674
1675   -localedir | --localedir | --localedi | --localed | --locale)
1676     ac_prev=localedir ;;
1677   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1678     localedir=$ac_optarg ;;
1679
1680   -localstatedir | --localstatedir | --localstatedi | --localstated \
1681   | --localstate | --localstat | --localsta | --localst | --locals)
1682     ac_prev=localstatedir ;;
1683   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1684   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1685     localstatedir=$ac_optarg ;;
1686
1687   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1688     ac_prev=mandir ;;
1689   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1690     mandir=$ac_optarg ;;
1691
1692   -nfp | --nfp | --nf)
1693     # Obsolete; use --without-fp.
1694     with_fp=no ;;
1695
1696   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1697   | --no-cr | --no-c | -n)
1698     no_create=yes ;;
1699
1700   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1701   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1702     no_recursion=yes ;;
1703
1704   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1705   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1706   | --oldin | --oldi | --old | --ol | --o)
1707     ac_prev=oldincludedir ;;
1708   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1709   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1710   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1711     oldincludedir=$ac_optarg ;;
1712
1713   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1714     ac_prev=prefix ;;
1715   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1716     prefix=$ac_optarg ;;
1717
1718   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1719   | --program-pre | --program-pr | --program-p)
1720     ac_prev=program_prefix ;;
1721   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1722   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1723     program_prefix=$ac_optarg ;;
1724
1725   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1726   | --program-suf | --program-su | --program-s)
1727     ac_prev=program_suffix ;;
1728   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1729   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1730     program_suffix=$ac_optarg ;;
1731
1732   -program-transform-name | --program-transform-name \
1733   | --program-transform-nam | --program-transform-na \
1734   | --program-transform-n | --program-transform- \
1735   | --program-transform | --program-transfor \
1736   | --program-transfo | --program-transf \
1737   | --program-trans | --program-tran \
1738   | --progr-tra | --program-tr | --program-t)
1739     ac_prev=program_transform_name ;;
1740   -program-transform-name=* | --program-transform-name=* \
1741   | --program-transform-nam=* | --program-transform-na=* \
1742   | --program-transform-n=* | --program-transform-=* \
1743   | --program-transform=* | --program-transfor=* \
1744   | --program-transfo=* | --program-transf=* \
1745   | --program-trans=* | --program-tran=* \
1746   | --progr-tra=* | --program-tr=* | --program-t=*)
1747     program_transform_name=$ac_optarg ;;
1748
1749   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1750     ac_prev=pdfdir ;;
1751   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1752     pdfdir=$ac_optarg ;;
1753
1754   -psdir | --psdir | --psdi | --psd | --ps)
1755     ac_prev=psdir ;;
1756   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1757     psdir=$ac_optarg ;;
1758
1759   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760   | -silent | --silent | --silen | --sile | --sil)
1761     silent=yes ;;
1762
1763   -runstatedir | --runstatedir | --runstatedi | --runstated \
1764   | --runstate | --runstat | --runsta | --runst | --runs \
1765   | --run | --ru | --r)
1766     ac_prev=runstatedir ;;
1767   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1768   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1769   | --run=* | --ru=* | --r=*)
1770     runstatedir=$ac_optarg ;;
1771
1772   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1773     ac_prev=sbindir ;;
1774   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1775   | --sbi=* | --sb=*)
1776     sbindir=$ac_optarg ;;
1777
1778   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1779   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1780   | --sharedst | --shareds | --shared | --share | --shar \
1781   | --sha | --sh)
1782     ac_prev=sharedstatedir ;;
1783   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1784   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1785   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1786   | --sha=* | --sh=*)
1787     sharedstatedir=$ac_optarg ;;
1788
1789   -site | --site | --sit)
1790     ac_prev=site ;;
1791   -site=* | --site=* | --sit=*)
1792     site=$ac_optarg ;;
1793
1794   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1795     ac_prev=srcdir ;;
1796   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1797     srcdir=$ac_optarg ;;
1798
1799   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1800   | --syscon | --sysco | --sysc | --sys | --sy)
1801     ac_prev=sysconfdir ;;
1802   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1803   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1804     sysconfdir=$ac_optarg ;;
1805
1806   -target | --target | --targe | --targ | --tar | --ta | --t)
1807     ac_prev=target_alias ;;
1808   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1809     target_alias=$ac_optarg ;;
1810
1811   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1812     verbose=yes ;;
1813
1814   -version | --version | --versio | --versi | --vers | -V)
1815     ac_init_version=: ;;
1816
1817   -with-* | --with-*)
1818     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1819     # Reject names that are not valid shell variable names.
1820     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1821       as_fn_error $? "invalid package name: $ac_useropt"
1822     ac_useropt_orig=$ac_useropt
1823     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1824     case $ac_user_opts in
1825       *"
1826 "with_$ac_useropt"
1827 "*) ;;
1828       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1829          ac_unrecognized_sep=', ';;
1830     esac
1831     eval with_$ac_useropt=\$ac_optarg ;;
1832
1833   -without-* | --without-*)
1834     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1835     # Reject names that are not valid shell variable names.
1836     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1837       as_fn_error $? "invalid package name: $ac_useropt"
1838     ac_useropt_orig=$ac_useropt
1839     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1840     case $ac_user_opts in
1841       *"
1842 "with_$ac_useropt"
1843 "*) ;;
1844       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1845          ac_unrecognized_sep=', ';;
1846     esac
1847     eval with_$ac_useropt=no ;;
1848
1849   --x)
1850     # Obsolete; use --with-x.
1851     with_x=yes ;;
1852
1853   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1854   | --x-incl | --x-inc | --x-in | --x-i)
1855     ac_prev=x_includes ;;
1856   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1857   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1858     x_includes=$ac_optarg ;;
1859
1860   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1861   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1862     ac_prev=x_libraries ;;
1863   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1864   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1865     x_libraries=$ac_optarg ;;
1866
1867   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1868 Try \`$0 --help' for more information"
1869     ;;
1870
1871   *=*)
1872     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1873     # Reject names that are not valid shell variable names.
1874     case $ac_envvar in #(
1875       '' | [0-9]* | *[!_$as_cr_alnum]* )
1876       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1877     esac
1878     eval $ac_envvar=\$ac_optarg
1879     export $ac_envvar ;;
1880
1881   *)
1882     # FIXME: should be removed in autoconf 3.0.
1883     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1884     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1885       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1886     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1887     ;;
1888
1889   esac
1890 done
1891
1892 if test -n "$ac_prev"; then
1893   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1894   as_fn_error $? "missing argument to $ac_option"
1895 fi
1896
1897 if test -n "$ac_unrecognized_opts"; then
1898   case $enable_option_checking in
1899     no) ;;
1900     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1901     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1902   esac
1903 fi
1904
1905 # Check all directory arguments for consistency.
1906 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1907                 datadir sysconfdir sharedstatedir localstatedir includedir \
1908                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1909                 libdir localedir mandir runstatedir
1910 do
1911   eval ac_val=\$$ac_var
1912   # Remove trailing slashes.
1913   case $ac_val in
1914     */ )
1915       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1916       eval $ac_var=\$ac_val;;
1917   esac
1918   # Be sure to have absolute directory names.
1919   case $ac_val in
1920     [\\/$]* | ?:[\\/]* )  continue;;
1921     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1922   esac
1923   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1924 done
1925
1926 # There might be people who depend on the old broken behavior: `$host'
1927 # used to hold the argument of --host etc.
1928 # FIXME: To remove some day.
1929 build=$build_alias
1930 host=$host_alias
1931 target=$target_alias
1932
1933 # FIXME: To remove some day.
1934 if test "x$host_alias" != x; then
1935   if test "x$build_alias" = x; then
1936     cross_compiling=maybe
1937   elif test "x$build_alias" != "x$host_alias"; then
1938     cross_compiling=yes
1939   fi
1940 fi
1941
1942 ac_tool_prefix=
1943 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1944
1945 test "$silent" = yes && exec 6>/dev/null
1946
1947
1948 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1949 ac_ls_di=`ls -di .` &&
1950 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1951   as_fn_error $? "working directory cannot be determined"
1952 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1953   as_fn_error $? "pwd does not report name of working directory"
1954
1955
1956 # Find the source files, if location was not specified.
1957 if test -z "$srcdir"; then
1958   ac_srcdir_defaulted=yes
1959   # Try the directory containing this script, then the parent directory.
1960   ac_confdir=`$as_dirname -- "$as_myself" ||
1961 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1962          X"$as_myself" : 'X\(//\)[^/]' \| \
1963          X"$as_myself" : 'X\(//\)$' \| \
1964          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1965 $as_echo X"$as_myself" |
1966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1967             s//\1/
1968             q
1969           }
1970           /^X\(\/\/\)[^/].*/{
1971             s//\1/
1972             q
1973           }
1974           /^X\(\/\/\)$/{
1975             s//\1/
1976             q
1977           }
1978           /^X\(\/\).*/{
1979             s//\1/
1980             q
1981           }
1982           s/.*/./; q'`
1983   srcdir=$ac_confdir
1984   if test ! -r "$srcdir/$ac_unique_file"; then
1985     srcdir=..
1986   fi
1987 else
1988   ac_srcdir_defaulted=no
1989 fi
1990 if test ! -r "$srcdir/$ac_unique_file"; then
1991   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1992   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1993 fi
1994 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1995 ac_abs_confdir=`(
1996         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1997         pwd)`
1998 # When building in place, set srcdir=.
1999 if test "$ac_abs_confdir" = "$ac_pwd"; then
2000   srcdir=.
2001 fi
2002 # Remove unnecessary trailing slashes from srcdir.
2003 # Double slashes in file names in object file debugging info
2004 # mess up M-x gdb in Emacs.
2005 case $srcdir in
2006 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2007 esac
2008 for ac_var in $ac_precious_vars; do
2009   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2010   eval ac_env_${ac_var}_value=\$${ac_var}
2011   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2012   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2013 done
2014
2015 #
2016 # Report the --help message.
2017 #
2018 if test "$ac_init_help" = "long"; then
2019   # Omit some internal or obsolete options to make the list less imposing.
2020   # This message is too long to be a string in the A/UX 3.1 sh.
2021   cat <<_ACEOF
2022 \`configure' configures libpipeline 1.4.2 to adapt to many kinds of systems.
2023
2024 Usage: $0 [OPTION]... [VAR=VALUE]...
2025
2026 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2027 VAR=VALUE.  See below for descriptions of some of the useful variables.
2028
2029 Defaults for the options are specified in brackets.
2030
2031 Configuration:
2032   -h, --help              display this help and exit
2033       --help=short        display options specific to this package
2034       --help=recursive    display the short help of all the included packages
2035   -V, --version           display version information and exit
2036   -q, --quiet, --silent   do not print \`checking ...' messages
2037       --cache-file=FILE   cache test results in FILE [disabled]
2038   -C, --config-cache      alias for \`--cache-file=config.cache'
2039   -n, --no-create         do not create output files
2040       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2041
2042 Installation directories:
2043   --prefix=PREFIX         install architecture-independent files in PREFIX
2044                           [$ac_default_prefix]
2045   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2046                           [PREFIX]
2047
2048 By default, \`make install' will install all the files in
2049 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2050 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2051 for instance \`--prefix=\$HOME'.
2052
2053 For better control, use the options below.
2054
2055 Fine tuning of the installation directories:
2056   --bindir=DIR            user executables [EPREFIX/bin]
2057   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2058   --libexecdir=DIR        program executables [EPREFIX/libexec]
2059   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2060   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2061   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2062   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2063   --libdir=DIR            object code libraries [EPREFIX/lib]
2064   --includedir=DIR        C header files [PREFIX/include]
2065   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2066   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2067   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2068   --infodir=DIR           info documentation [DATAROOTDIR/info]
2069   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2070   --mandir=DIR            man documentation [DATAROOTDIR/man]
2071   --docdir=DIR            documentation root [DATAROOTDIR/doc/libpipeline]
2072   --htmldir=DIR           html documentation [DOCDIR]
2073   --dvidir=DIR            dvi documentation [DOCDIR]
2074   --pdfdir=DIR            pdf documentation [DOCDIR]
2075   --psdir=DIR             ps documentation [DOCDIR]
2076 _ACEOF
2077
2078   cat <<\_ACEOF
2079
2080 Program names:
2081   --program-prefix=PREFIX            prepend PREFIX to installed program names
2082   --program-suffix=SUFFIX            append SUFFIX to installed program names
2083   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2084
2085 System types:
2086   --build=BUILD     configure for building on BUILD [guessed]
2087   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2088 _ACEOF
2089 fi
2090
2091 if test -n "$ac_init_help"; then
2092   case $ac_init_help in
2093      short | recursive ) echo "Configuration of libpipeline 1.4.2:";;
2094    esac
2095   cat <<\_ACEOF
2096
2097 Optional Features:
2098   --disable-option-checking  ignore unrecognized --enable/--with options
2099   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2100   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2101   --enable-silent-rules   less verbose build output (undo: "make V=1")
2102   --disable-silent-rules  verbose build output (undo: "make V=0")
2103   --enable-maintainer-mode
2104                           enable make rules and dependencies not useful (and
2105                           sometimes confusing) to the casual installer
2106   --enable-dependency-tracking
2107                           do not reject slow dependency extractors
2108   --disable-dependency-tracking
2109                           speeds up one-time build
2110   --enable-static[=PKGS]  build static libraries [default=no]
2111   --enable-shared[=PKGS]  build shared libraries [default=yes]
2112   --enable-fast-install[=PKGS]
2113                           optimize for fast installation [default=yes]
2114   --disable-libtool-lock  avoid locking (might break parallel builds)
2115   --disable-largefile     omit support for large files
2116   --enable-threads={posix|solaris|pth|windows}
2117                           specify multithreading API
2118   --disable-threads       build without multithread safety
2119   --disable-rpath         do not hardcode runtime library paths
2120   --enable-socketpair-pipe
2121                           Use socketpair(2) as fast replacement for pipe(2)
2122
2123 Optional Packages:
2124   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2125   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2126   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2127                           both]
2128   --with-aix-soname=aix|svr4|both
2129                           shared library versioning (aka "SONAME") variant to
2130                           provide on AIX, [default=aix].
2131   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2132   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2133                           compiler's sysroot if not specified).
2134   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2135   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2136   --without-libpth-prefix     don't search for libpth in includedir and libdir
2137
2138 Some influential environment variables:
2139   CC          C compiler command
2140   CFLAGS      C compiler flags
2141   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2142               nonstandard directory <lib dir>
2143   LIBS        libraries to pass to the linker, e.g. -l<library>
2144   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2145               you have headers in a nonstandard directory <include dir>
2146   CPP         C preprocessor
2147   LT_SYS_LIBRARY_PATH
2148               User-defined run-time library search path.
2149   PKG_CONFIG  path to pkg-config utility
2150   PKG_CONFIG_PATH
2151               directories to add to pkg-config's search path
2152   PKG_CONFIG_LIBDIR
2153               path overriding pkg-config's built-in search path
2154   CHECK_CFLAGS
2155               C compiler flags for CHECK, overriding pkg-config
2156   CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2157
2158 Use these variables to override the choices made by `configure' or to help
2159 it to find libraries and programs with nonstandard names/locations.
2160
2161 Report bugs to <cjwatson@debian.org>.
2162 _ACEOF
2163 ac_status=$?
2164 fi
2165
2166 if test "$ac_init_help" = "recursive"; then
2167   # If there are subdirs, report their specific --help.
2168   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2169     test -d "$ac_dir" ||
2170       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2171       continue
2172     ac_builddir=.
2173
2174 case "$ac_dir" in
2175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2176 *)
2177   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2178   # A ".." for each directory in $ac_dir_suffix.
2179   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2180   case $ac_top_builddir_sub in
2181   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2182   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2183   esac ;;
2184 esac
2185 ac_abs_top_builddir=$ac_pwd
2186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2187 # for backward compatibility:
2188 ac_top_builddir=$ac_top_build_prefix
2189
2190 case $srcdir in
2191   .)  # We are building in place.
2192     ac_srcdir=.
2193     ac_top_srcdir=$ac_top_builddir_sub
2194     ac_abs_top_srcdir=$ac_pwd ;;
2195   [\\/]* | ?:[\\/]* )  # Absolute name.
2196     ac_srcdir=$srcdir$ac_dir_suffix;
2197     ac_top_srcdir=$srcdir
2198     ac_abs_top_srcdir=$srcdir ;;
2199   *) # Relative name.
2200     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2201     ac_top_srcdir=$ac_top_build_prefix$srcdir
2202     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2203 esac
2204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2205
2206     cd "$ac_dir" || { ac_status=$?; continue; }
2207     # Check for guested configure.
2208     if test -f "$ac_srcdir/configure.gnu"; then
2209       echo &&
2210       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2211     elif test -f "$ac_srcdir/configure"; then
2212       echo &&
2213       $SHELL "$ac_srcdir/configure" --help=recursive
2214     else
2215       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2216     fi || ac_status=$?
2217     cd "$ac_pwd" || { ac_status=$?; break; }
2218   done
2219 fi
2220
2221 test -n "$ac_init_help" && exit $ac_status
2222 if $ac_init_version; then
2223   cat <<\_ACEOF
2224 libpipeline configure 1.4.2
2225 generated by GNU Autoconf 2.69
2226
2227 Copyright (C) 2012 Free Software Foundation, Inc.
2228 This configure script is free software; the Free Software Foundation
2229 gives unlimited permission to copy, distribute and modify it.
2230 _ACEOF
2231   exit
2232 fi
2233
2234 ## ------------------------ ##
2235 ## Autoconf initialization. ##
2236 ## ------------------------ ##
2237
2238 # ac_fn_c_try_compile LINENO
2239 # --------------------------
2240 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2241 ac_fn_c_try_compile ()
2242 {
2243   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244   rm -f conftest.$ac_objext
2245   if { { ac_try="$ac_compile"
2246 case "(($ac_try" in
2247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248   *) ac_try_echo=$ac_try;;
2249 esac
2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251 $as_echo "$ac_try_echo"; } >&5
2252   (eval "$ac_compile") 2>conftest.err
2253   ac_status=$?
2254   if test -s conftest.err; then
2255     grep -v '^ *+' conftest.err >conftest.er1
2256     cat conftest.er1 >&5
2257     mv -f conftest.er1 conftest.err
2258   fi
2259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260   test $ac_status = 0; } && {
2261          test -z "$ac_c_werror_flag" ||
2262          test ! -s conftest.err
2263        } && test -s conftest.$ac_objext; then :
2264   ac_retval=0
2265 else
2266   $as_echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268
2269         ac_retval=1
2270 fi
2271   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272   as_fn_set_status $ac_retval
2273
2274 } # ac_fn_c_try_compile
2275
2276 # ac_fn_c_try_cpp LINENO
2277 # ----------------------
2278 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_c_try_cpp ()
2280 {
2281   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282   if { { ac_try="$ac_cpp conftest.$ac_ext"
2283 case "(($ac_try" in
2284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285   *) ac_try_echo=$ac_try;;
2286 esac
2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288 $as_echo "$ac_try_echo"; } >&5
2289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2290   ac_status=$?
2291   if test -s conftest.err; then
2292     grep -v '^ *+' conftest.err >conftest.er1
2293     cat conftest.er1 >&5
2294     mv -f conftest.er1 conftest.err
2295   fi
2296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297   test $ac_status = 0; } > conftest.i && {
2298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2299          test ! -s conftest.err
2300        }; then :
2301   ac_retval=0
2302 else
2303   $as_echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305
2306     ac_retval=1
2307 fi
2308   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309   as_fn_set_status $ac_retval
2310
2311 } # ac_fn_c_try_cpp
2312
2313 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2314 # -------------------------------------------------------
2315 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2316 # the include files in INCLUDES and setting the cache variable VAR
2317 # accordingly.
2318 ac_fn_c_check_header_mongrel ()
2319 {
2320   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321   if eval \${$3+:} false; then :
2322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323 $as_echo_n "checking for $2... " >&6; }
2324 if eval \${$3+:} false; then :
2325   $as_echo_n "(cached) " >&6
2326 fi
2327 eval ac_res=\$$3
2328                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 else
2331   # Is the header compilable?
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2333 $as_echo_n "checking $2 usability... " >&6; }
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h.  */
2336 $4
2337 #include <$2>
2338 _ACEOF
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340   ac_header_compiler=yes
2341 else
2342   ac_header_compiler=no
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2346 $as_echo "$ac_header_compiler" >&6; }
2347
2348 # Is the header present?
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2350 $as_echo_n "checking $2 presence... " >&6; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 #include <$2>
2354 _ACEOF
2355 if ac_fn_c_try_cpp "$LINENO"; then :
2356   ac_header_preproc=yes
2357 else
2358   ac_header_preproc=no
2359 fi
2360 rm -f conftest.err conftest.i conftest.$ac_ext
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2362 $as_echo "$ac_header_preproc" >&6; }
2363
2364 # So?  What about this header?
2365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2366   yes:no: )
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2368 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2370 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2371     ;;
2372   no:yes:* )
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2374 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2376 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2378 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2380 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2382 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2383 ( $as_echo "## ---------------------------------- ##
2384 ## Report this to cjwatson@debian.org ##
2385 ## ---------------------------------- ##"
2386      ) | sed "s/^/$as_me: WARNING:     /" >&2
2387     ;;
2388 esac
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2390 $as_echo_n "checking for $2... " >&6; }
2391 if eval \${$3+:} false; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   eval "$3=\$ac_header_compiler"
2395 fi
2396 eval ac_res=\$$3
2397                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398 $as_echo "$ac_res" >&6; }
2399 fi
2400   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401
2402 } # ac_fn_c_check_header_mongrel
2403
2404 # ac_fn_c_try_run LINENO
2405 # ----------------------
2406 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2407 # that executables *can* be run.
2408 ac_fn_c_try_run ()
2409 {
2410   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411   if { { ac_try="$ac_link"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418   (eval "$ac_link") 2>&5
2419   ac_status=$?
2420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2421   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2422   { { case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428   (eval "$ac_try") 2>&5
2429   ac_status=$?
2430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431   test $ac_status = 0; }; }; then :
2432   ac_retval=0
2433 else
2434   $as_echo "$as_me: program exited with status $ac_status" >&5
2435        $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438        ac_retval=$ac_status
2439 fi
2440   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442   as_fn_set_status $ac_retval
2443
2444 } # ac_fn_c_try_run
2445
2446 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2447 # -------------------------------------------------------
2448 # Tests whether HEADER exists and can be compiled using the include files in
2449 # INCLUDES, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_compile ()
2451 {
2452   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if eval \${$3+:} false; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h.  */
2460 $4
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_compile "$LINENO"; then :
2464   eval "$3=yes"
2465 else
2466   eval "$3=no"
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 fi
2470 eval ac_res=\$$3
2471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474
2475 } # ac_fn_c_check_header_compile
2476
2477 # ac_fn_c_try_link LINENO
2478 # -----------------------
2479 # Try to link conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_c_try_link ()
2481 {
2482   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483   rm -f conftest.$ac_objext conftest$ac_exeext
2484   if { { ac_try="$ac_link"
2485 case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491   (eval "$ac_link") 2>conftest.err
2492   ac_status=$?
2493   if test -s conftest.err; then
2494     grep -v '^ *+' conftest.err >conftest.er1
2495     cat conftest.er1 >&5
2496     mv -f conftest.er1 conftest.err
2497   fi
2498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499   test $ac_status = 0; } && {
2500          test -z "$ac_c_werror_flag" ||
2501          test ! -s conftest.err
2502        } && test -s conftest$ac_exeext && {
2503          test "$cross_compiling" = yes ||
2504          test -x conftest$ac_exeext
2505        }; then :
2506   ac_retval=0
2507 else
2508   $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511         ac_retval=1
2512 fi
2513   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2514   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2515   # interfere with the next link command; also delete a directory that is
2516   # left behind by Apple's compiler.  We do this before executing the actions.
2517   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519   as_fn_set_status $ac_retval
2520
2521 } # ac_fn_c_try_link
2522
2523 # ac_fn_c_check_func LINENO FUNC VAR
2524 # ----------------------------------
2525 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2526 ac_fn_c_check_func ()
2527 {
2528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530 $as_echo_n "checking for $2... " >&6; }
2531 if eval \${$3+:} false; then :
2532   $as_echo_n "(cached) " >&6
2533 else
2534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h.  */
2536 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2538 #define $2 innocuous_$2
2539
2540 /* System header to define __stub macros and hopefully few prototypes,
2541     which can conflict with char $2 (); below.
2542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2543     <limits.h> exists even on freestanding compilers.  */
2544
2545 #ifdef __STDC__
2546 # include <limits.h>
2547 #else
2548 # include <assert.h>
2549 #endif
2550
2551 #undef $2
2552
2553 /* Override any GCC internal prototype to avoid an error.
2554    Use char because int might match the return type of a GCC
2555    builtin and then its argument prototype would still apply.  */
2556 #ifdef __cplusplus
2557 extern "C"
2558 #endif
2559 char $2 ();
2560 /* The GNU C library defines this for functions which it implements
2561     to always fail with ENOSYS.  Some functions are actually named
2562     something starting with __ and the normal name is an alias.  */
2563 #if defined __stub_$2 || defined __stub___$2
2564 choke me
2565 #endif
2566
2567 int
2568 main ()
2569 {
2570 return $2 ();
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 if ac_fn_c_try_link "$LINENO"; then :
2576   eval "$3=yes"
2577 else
2578   eval "$3=no"
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext \
2581     conftest$ac_exeext conftest.$ac_ext
2582 fi
2583 eval ac_res=\$$3
2584                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585 $as_echo "$ac_res" >&6; }
2586   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2587
2588 } # ac_fn_c_check_func
2589
2590 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2591 # -------------------------------------------
2592 # Tests whether TYPE exists after having included INCLUDES, setting cache
2593 # variable VAR accordingly.
2594 ac_fn_c_check_type ()
2595 {
2596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2598 $as_echo_n "checking for $2... " >&6; }
2599 if eval \${$3+:} false; then :
2600   $as_echo_n "(cached) " >&6
2601 else
2602   eval "$3=no"
2603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 int
2607 main ()
2608 {
2609 if (sizeof ($2))
2610          return 0;
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 if ac_fn_c_try_compile "$LINENO"; then :
2616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h.  */
2618 $4
2619 int
2620 main ()
2621 {
2622 if (sizeof (($2)))
2623             return 0;
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_c_try_compile "$LINENO"; then :
2629
2630 else
2631   eval "$3=yes"
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2637 eval ac_res=\$$3
2638                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2641
2642 } # ac_fn_c_check_type
2643
2644 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2645 # --------------------------------------------
2646 # Tries to find the compile-time value of EXPR in a program that includes
2647 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2648 # computed
2649 ac_fn_c_compute_int ()
2650 {
2651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652   if test "$cross_compiling" = yes; then
2653     # Depending upon the size, compute the lo and hi bounds.
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h.  */
2656 $4
2657 int
2658 main ()
2659 {
2660 static int test_array [1 - 2 * !(($2) >= 0)];
2661 test_array [0] = 0;
2662 return test_array [0];
2663
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 if ac_fn_c_try_compile "$LINENO"; then :
2669   ac_lo=0 ac_mid=0
2670   while :; do
2671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h.  */
2673 $4
2674 int
2675 main ()
2676 {
2677 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2678 test_array [0] = 0;
2679 return test_array [0];
2680
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 if ac_fn_c_try_compile "$LINENO"; then :
2686   ac_hi=$ac_mid; break
2687 else
2688   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2689                         if test $ac_lo -le $ac_mid; then
2690                           ac_lo= ac_hi=
2691                           break
2692                         fi
2693                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2694 fi
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696   done
2697 else
2698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h.  */
2700 $4
2701 int
2702 main ()
2703 {
2704 static int test_array [1 - 2 * !(($2) < 0)];
2705 test_array [0] = 0;
2706 return test_array [0];
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 if ac_fn_c_try_compile "$LINENO"; then :
2713   ac_hi=-1 ac_mid=-1
2714   while :; do
2715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h.  */
2717 $4
2718 int
2719 main ()
2720 {
2721 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2722 test_array [0] = 0;
2723 return test_array [0];
2724
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 if ac_fn_c_try_compile "$LINENO"; then :
2730   ac_lo=$ac_mid; break
2731 else
2732   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2733                         if test $ac_mid -le $ac_hi; then
2734                           ac_lo= ac_hi=
2735                           break
2736                         fi
2737                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740   done
2741 else
2742   ac_lo= ac_hi=
2743 fi
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 fi
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 # Binary search between lo and hi bounds.
2748 while test "x$ac_lo" != "x$ac_hi"; do
2749   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h.  */
2752 $4
2753 int
2754 main ()
2755 {
2756 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2757 test_array [0] = 0;
2758 return test_array [0];
2759
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 if ac_fn_c_try_compile "$LINENO"; then :
2765   ac_hi=$ac_mid
2766 else
2767   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2768 fi
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 done
2771 case $ac_lo in #((
2772 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2773 '') ac_retval=1 ;;
2774 esac
2775   else
2776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h.  */
2778 $4
2779 static long int longval () { return $2; }
2780 static unsigned long int ulongval () { return $2; }
2781 #include <stdio.h>
2782 #include <stdlib.h>
2783 int
2784 main ()
2785 {
2786
2787   FILE *f = fopen ("conftest.val", "w");
2788   if (! f)
2789     return 1;
2790   if (($2) < 0)
2791     {
2792       long int i = longval ();
2793       if (i != ($2))
2794         return 1;
2795       fprintf (f, "%ld", i);
2796     }
2797   else
2798     {
2799       unsigned long int i = ulongval ();
2800       if (i != ($2))
2801         return 1;
2802       fprintf (f, "%lu", i);
2803     }
2804   /* Do not output a trailing newline, as this causes \r\n confusion
2805      on some platforms.  */
2806   return ferror (f) || fclose (f) != 0;
2807
2808   ;
2809   return 0;
2810 }
2811 _ACEOF
2812 if ac_fn_c_try_run "$LINENO"; then :
2813   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2814 else
2815   ac_retval=1
2816 fi
2817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2818   conftest.$ac_objext conftest.beam conftest.$ac_ext
2819 rm -f conftest.val
2820
2821   fi
2822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2823   as_fn_set_status $ac_retval
2824
2825 } # ac_fn_c_compute_int
2826
2827 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2828 # ---------------------------------------------
2829 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2830 # accordingly.
2831 ac_fn_c_check_decl ()
2832 {
2833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2834   as_decl_name=`echo $2|sed 's/ *(.*//'`
2835   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2837 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2838 if eval \${$3+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h.  */
2843 $4
2844 int
2845 main ()
2846 {
2847 #ifndef $as_decl_name
2848 #ifdef __cplusplus
2849   (void) $as_decl_use;
2850 #else
2851   (void) $as_decl_name;
2852 #endif
2853 #endif
2854
2855   ;
2856   return 0;
2857 }
2858 _ACEOF
2859 if ac_fn_c_try_compile "$LINENO"; then :
2860   eval "$3=yes"
2861 else
2862   eval "$3=no"
2863 fi
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 fi
2866 eval ac_res=\$$3
2867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2868 $as_echo "$ac_res" >&6; }
2869   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2870
2871 } # ac_fn_c_check_decl
2872
2873 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2874 # ----------------------------------------------------
2875 # Tries to find if the field MEMBER exists in type AGGR, after including
2876 # INCLUDES, setting cache variable VAR accordingly.
2877 ac_fn_c_check_member ()
2878 {
2879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2881 $as_echo_n "checking for $2.$3... " >&6; }
2882 if eval \${$4+:} false; then :
2883   $as_echo_n "(cached) " >&6
2884 else
2885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h.  */
2887 $5
2888 int
2889 main ()
2890 {
2891 static $2 ac_aggr;
2892 if (ac_aggr.$3)
2893 return 0;
2894   ;
2895   return 0;
2896 }
2897 _ACEOF
2898 if ac_fn_c_try_compile "$LINENO"; then :
2899   eval "$4=yes"
2900 else
2901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h.  */
2903 $5
2904 int
2905 main ()
2906 {
2907 static $2 ac_aggr;
2908 if (sizeof ac_aggr.$3)
2909 return 0;
2910   ;
2911   return 0;
2912 }
2913 _ACEOF
2914 if ac_fn_c_try_compile "$LINENO"; then :
2915   eval "$4=yes"
2916 else
2917   eval "$4=no"
2918 fi
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 fi
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 fi
2923 eval ac_res=\$$4
2924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2925 $as_echo "$ac_res" >&6; }
2926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2927
2928 } # ac_fn_c_check_member
2929 cat >config.log <<_ACEOF
2930 This file contains any messages produced by compilers while
2931 running configure, to aid debugging if configure makes a mistake.
2932
2933 It was created by libpipeline $as_me 1.4.2, which was
2934 generated by GNU Autoconf 2.69.  Invocation command line was
2935
2936   $ $0 $@
2937
2938 _ACEOF
2939 exec 5>>config.log
2940 {
2941 cat <<_ASUNAME
2942 ## --------- ##
2943 ## Platform. ##
2944 ## --------- ##
2945
2946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2951
2952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2953 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2954
2955 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2956 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2958 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2959 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2960 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2961 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2962
2963 _ASUNAME
2964
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     $as_echo "PATH: $as_dir"
2971   done
2972 IFS=$as_save_IFS
2973
2974 } >&5
2975
2976 cat >&5 <<_ACEOF
2977
2978
2979 ## ----------- ##
2980 ## Core tests. ##
2981 ## ----------- ##
2982
2983 _ACEOF
2984
2985
2986 # Keep a trace of the command line.
2987 # Strip out --no-create and --no-recursion so they do not pile up.
2988 # Strip out --silent because we don't want to record it for future runs.
2989 # Also quote any args containing shell meta-characters.
2990 # Make two passes to allow for proper duplicate-argument suppression.
2991 ac_configure_args=
2992 ac_configure_args0=
2993 ac_configure_args1=
2994 ac_must_keep_next=false
2995 for ac_pass in 1 2
2996 do
2997   for ac_arg
2998   do
2999     case $ac_arg in
3000     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3001     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3002     | -silent | --silent | --silen | --sile | --sil)
3003       continue ;;
3004     *\'*)
3005       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3006     esac
3007     case $ac_pass in
3008     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3009     2)
3010       as_fn_append ac_configure_args1 " '$ac_arg'"
3011       if test $ac_must_keep_next = true; then
3012         ac_must_keep_next=false # Got value, back to normal.
3013       else
3014         case $ac_arg in
3015           *=* | --config-cache | -C | -disable-* | --disable-* \
3016           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3017           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3018           | -with-* | --with-* | -without-* | --without-* | --x)
3019             case "$ac_configure_args0 " in
3020               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3021             esac
3022             ;;
3023           -* ) ac_must_keep_next=true ;;
3024         esac
3025       fi
3026       as_fn_append ac_configure_args " '$ac_arg'"
3027       ;;
3028     esac
3029   done
3030 done
3031 { ac_configure_args0=; unset ac_configure_args0;}
3032 { ac_configure_args1=; unset ac_configure_args1;}
3033
3034 # When interrupted or exit'd, cleanup temporary files, and complete
3035 # config.log.  We remove comments because anyway the quotes in there
3036 # would cause problems or look ugly.
3037 # WARNING: Use '\'' to represent an apostrophe within the trap.
3038 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3039 trap 'exit_status=$?
3040   # Save into config.log some information that might help in debugging.
3041   {
3042     echo
3043
3044     $as_echo "## ---------------- ##
3045 ## Cache variables. ##
3046 ## ---------------- ##"
3047     echo
3048     # The following way of writing the cache mishandles newlines in values,
3049 (
3050   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3051     eval ac_val=\$$ac_var
3052     case $ac_val in #(
3053     *${as_nl}*)
3054       case $ac_var in #(
3055       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3057       esac
3058       case $ac_var in #(
3059       _ | IFS | as_nl) ;; #(
3060       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3061       *) { eval $ac_var=; unset $ac_var;} ;;
3062       esac ;;
3063     esac
3064   done
3065   (set) 2>&1 |
3066     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3067     *${as_nl}ac_space=\ *)
3068       sed -n \
3069         "s/'\''/'\''\\\\'\'''\''/g;
3070           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3071       ;; #(
3072     *)
3073       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3074       ;;
3075     esac |
3076     sort
3077 )
3078     echo
3079
3080     $as_echo "## ----------------- ##
3081 ## Output variables. ##
3082 ## ----------------- ##"
3083     echo
3084     for ac_var in $ac_subst_vars
3085     do
3086       eval ac_val=\$$ac_var
3087       case $ac_val in
3088       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3089       esac
3090       $as_echo "$ac_var='\''$ac_val'\''"
3091     done | sort
3092     echo
3093
3094     if test -n "$ac_subst_files"; then
3095       $as_echo "## ------------------- ##
3096 ## File substitutions. ##
3097 ## ------------------- ##"
3098       echo
3099       for ac_var in $ac_subst_files
3100       do
3101         eval ac_val=\$$ac_var
3102         case $ac_val in
3103         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3104         esac
3105         $as_echo "$ac_var='\''$ac_val'\''"
3106       done | sort
3107       echo
3108     fi
3109
3110     if test -s confdefs.h; then
3111       $as_echo "## ----------- ##
3112 ## confdefs.h. ##
3113 ## ----------- ##"
3114       echo
3115       cat confdefs.h
3116       echo
3117     fi
3118     test "$ac_signal" != 0 &&
3119       $as_echo "$as_me: caught signal $ac_signal"
3120     $as_echo "$as_me: exit $exit_status"
3121   } >&5
3122   rm -f core *.core core.conftest.* &&
3123     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3124     exit $exit_status
3125 ' 0
3126 for ac_signal in 1 2 13 15; do
3127   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3128 done
3129 ac_signal=0
3130
3131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3132 rm -f -r conftest* confdefs.h
3133
3134 $as_echo "/* confdefs.h */" > confdefs.h
3135
3136 # Predefined preprocessor variables.
3137
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_NAME "$PACKAGE_NAME"
3140 _ACEOF
3141
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3144 _ACEOF
3145
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3148 _ACEOF
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_STRING "$PACKAGE_STRING"
3152 _ACEOF
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3156 _ACEOF
3157
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_URL "$PACKAGE_URL"
3160 _ACEOF
3161
3162
3163 # Let the site file select an alternate cache file if it wants to.
3164 # Prefer an explicitly selected file to automatically selected ones.
3165 ac_site_file1=NONE
3166 ac_site_file2=NONE
3167 if test -n "$CONFIG_SITE"; then
3168   # We do not want a PATH search for config.site.
3169   case $CONFIG_SITE in #((
3170     -*)  ac_site_file1=./$CONFIG_SITE;;
3171     */*) ac_site_file1=$CONFIG_SITE;;
3172     *)   ac_site_file1=./$CONFIG_SITE;;
3173   esac
3174 elif test "x$prefix" != xNONE; then
3175   ac_site_file1=$prefix/share/config.site
3176   ac_site_file2=$prefix/etc/config.site
3177 else
3178   ac_site_file1=$ac_default_prefix/share/config.site
3179   ac_site_file2=$ac_default_prefix/etc/config.site
3180 fi
3181 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3182 do
3183   test "x$ac_site_file" = xNONE && continue
3184   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3185     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3186 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3187     sed 's/^/| /' "$ac_site_file" >&5
3188     . "$ac_site_file" \
3189       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "failed to load site script $ac_site_file
3192 See \`config.log' for more details" "$LINENO" 5; }
3193   fi
3194 done
3195
3196 if test -r "$cache_file"; then
3197   # Some versions of bash will fail to source /dev/null (special files
3198   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3199   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3200     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3201 $as_echo "$as_me: loading cache $cache_file" >&6;}
3202     case $cache_file in
3203       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3204       *)                      . "./$cache_file";;
3205     esac
3206   fi
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3209 $as_echo "$as_me: creating cache $cache_file" >&6;}
3210   >$cache_file
3211 fi
3212
3213 gl_header_list="$gl_header_list unistd.h"
3214 gl_func_list="$gl_func_list symlink"
3215 gl_header_list="$gl_header_list sys/time.h"
3216 gl_header_list="$gl_header_list sys/socket.h"
3217 gl_func_list="$gl_func_list gettimeofday"
3218 gl_func_list="$gl_func_list lstat"
3219 gl_header_list="$gl_header_list sys/mman.h"
3220 gl_func_list="$gl_func_list mprotect"
3221 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3222 gl_header_list="$gl_header_list sys/param.h"
3223 gl_func_list="$gl_func_list secure_getenv"
3224 gl_func_list="$gl_func_list setenv"
3225 gl_func_list="$gl_func_list sigaction"
3226 gl_func_list="$gl_func_list sigaltstack"
3227 gl_func_list="$gl_func_list siginterrupt"
3228 gl_func_list="$gl_func_list snprintf"
3229 gl_header_list="$gl_header_list wchar.h"
3230 gl_header_list="$gl_header_list stdint.h"
3231 gl_func_list="$gl_func_list strndup"
3232 gl_header_list="$gl_header_list sys/select.h"
3233 gl_header_list="$gl_header_list sys/stat.h"
3234 gl_header_list="$gl_header_list sys/wait.h"
3235 gl_func_list="$gl_func_list vasnprintf"
3236 gl_header_list="$gl_header_list features.h"
3237 # Check that the precious variables saved in the cache have kept the same
3238 # value.
3239 ac_cache_corrupted=false
3240 for ac_var in $ac_precious_vars; do
3241   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3242   eval ac_new_set=\$ac_env_${ac_var}_set
3243   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3244   eval ac_new_val=\$ac_env_${ac_var}_value
3245   case $ac_old_set,$ac_new_set in
3246     set,)
3247       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3249       ac_cache_corrupted=: ;;
3250     ,set)
3251       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3253       ac_cache_corrupted=: ;;
3254     ,);;
3255     *)
3256       if test "x$ac_old_val" != "x$ac_new_val"; then
3257         # differences in whitespace do not lead to failure.
3258         ac_old_val_w=`echo x $ac_old_val`
3259         ac_new_val_w=`echo x $ac_new_val`
3260         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3261           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3263           ac_cache_corrupted=:
3264         else
3265           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3267           eval $ac_var=\$ac_old_val
3268         fi
3269         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3270 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3271         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3272 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3273       fi;;
3274   esac
3275   # Pass precious variables to config.status.
3276   if test "$ac_new_set" = set; then
3277     case $ac_new_val in
3278     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3279     *) ac_arg=$ac_var=$ac_new_val ;;
3280     esac
3281     case " $ac_configure_args " in
3282       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3283       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3284     esac
3285   fi
3286 done
3287 if $ac_cache_corrupted; then
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3292   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3293 fi
3294 ## -------------------- ##
3295 ## Main body of script. ##
3296 ## -------------------- ##
3297
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303
3304
3305 ac_aux_dir=
3306 for ac_dir in build-aux "$srcdir"/build-aux; do
3307   if test -f "$ac_dir/install-sh"; then
3308     ac_aux_dir=$ac_dir
3309     ac_install_sh="$ac_aux_dir/install-sh -c"
3310     break
3311   elif test -f "$ac_dir/install.sh"; then
3312     ac_aux_dir=$ac_dir
3313     ac_install_sh="$ac_aux_dir/install.sh -c"
3314     break
3315   elif test -f "$ac_dir/shtool"; then
3316     ac_aux_dir=$ac_dir
3317     ac_install_sh="$ac_aux_dir/shtool install -c"
3318     break
3319   fi
3320 done
3321 if test -z "$ac_aux_dir"; then
3322   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3323 fi
3324
3325 # These three variables are undocumented and unsupported,
3326 # and are intended to be withdrawn in a future Autoconf release.
3327 # They can cause serious problems if a builder's source tree is in a directory
3328 # whose full name contains unusual characters.
3329 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3330 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3331 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3332
3333
3334 am__api_version='1.15'
3335
3336 # Find a good install program.  We prefer a C program (faster),
3337 # so one script is as good as another.  But avoid the broken or
3338 # incompatible versions:
3339 # SysV /etc/install, /usr/sbin/install
3340 # SunOS /usr/etc/install
3341 # IRIX /sbin/install
3342 # AIX /bin/install
3343 # AmigaOS /C/install, which installs bootblocks on floppy discs
3344 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3345 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3346 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3347 # OS/2's system install, which has a completely different semantic
3348 # ./install, which can be erroneously created by make from ./install.sh.
3349 # Reject install programs that cannot install multiple files.
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3351 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3352 if test -z "$INSTALL"; then
3353 if ${ac_cv_path_install+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361     # Account for people who put trailing slashes in PATH elements.
3362 case $as_dir/ in #((
3363   ./ | .// | /[cC]/* | \
3364   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3365   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3366   /usr/ucb/* ) ;;
3367   *)
3368     # OSF1 and SCO ODT 3.0 have their own names for install.
3369     # Don't use installbsd from OSF since it installs stuff as root
3370     # by default.
3371     for ac_prog in ginstall scoinst install; do
3372       for ac_exec_ext in '' $ac_executable_extensions; do
3373         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3374           if test $ac_prog = install &&
3375             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3376             # AIX install.  It has an incompatible calling convention.
3377             :
3378           elif test $ac_prog = install &&
3379             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3380             # program-specific install script used by HP pwplus--don't use.
3381             :
3382           else
3383             rm -rf conftest.one conftest.two conftest.dir
3384             echo one > conftest.one
3385             echo two > conftest.two
3386             mkdir conftest.dir
3387             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3388               test -s conftest.one && test -s conftest.two &&
3389               test -s conftest.dir/conftest.one &&
3390               test -s conftest.dir/conftest.two
3391             then
3392               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3393               break 3
3394             fi
3395           fi
3396         fi
3397       done
3398     done
3399     ;;
3400 esac
3401
3402   done
3403 IFS=$as_save_IFS
3404
3405 rm -rf conftest.one conftest.two conftest.dir
3406
3407 fi
3408   if test "${ac_cv_path_install+set}" = set; then
3409     INSTALL=$ac_cv_path_install
3410   else
3411     # As a last resort, use the slow shell script.  Don't cache a
3412     # value for INSTALL within a source directory, because that will
3413     # break other packages using the cache if that directory is
3414     # removed, or if the value is a relative name.
3415     INSTALL=$ac_install_sh
3416   fi
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3419 $as_echo "$INSTALL" >&6; }
3420
3421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3422 # It thinks the first close brace ends the variable substitution.
3423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3424
3425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3426
3427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3428
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3430 $as_echo_n "checking whether build environment is sane... " >&6; }
3431 # Reject unsafe characters in $srcdir or the absolute working directory
3432 # name.  Accept space and tab only in the latter.
3433 am_lf='
3434 '
3435 case `pwd` in
3436   *[\\\"\#\$\&\'\`$am_lf]*)
3437     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3438 esac
3439 case $srcdir in
3440   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3441     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3442 esac
3443
3444 # Do 'set' in a subshell so we don't clobber the current shell's
3445 # arguments.  Must try -L first in case configure is actually a
3446 # symlink; some systems play weird games with the mod time of symlinks
3447 # (eg FreeBSD returns the mod time of the symlink's containing
3448 # directory).
3449 if (
3450    am_has_slept=no
3451    for am_try in 1 2; do
3452      echo "timestamp, slept: $am_has_slept" > conftest.file
3453      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3454      if test "$*" = "X"; then
3455         # -L didn't work.
3456         set X `ls -t "$srcdir/configure" conftest.file`
3457      fi
3458      if test "$*" != "X $srcdir/configure conftest.file" \
3459         && test "$*" != "X conftest.file $srcdir/configure"; then
3460
3461         # If neither matched, then we have a broken ls.  This can happen
3462         # if, for instance, CONFIG_SHELL is bash and it inherits a
3463         # broken ls alias from the environment.  This has actually
3464         # happened.  Such a system could not be considered "sane".
3465         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3466   alias in your environment" "$LINENO" 5
3467      fi
3468      if test "$2" = conftest.file || test $am_try -eq 2; then
3469        break
3470      fi
3471      # Just in case.
3472      sleep 1
3473      am_has_slept=yes
3474    done
3475    test "$2" = conftest.file
3476    )
3477 then
3478    # Ok.
3479    :
3480 else
3481    as_fn_error $? "newly created file is older than distributed files!
3482 Check your system clock" "$LINENO" 5
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 $as_echo "yes" >&6; }
3486 # If we didn't sleep, we still need to ensure time stamps of config.status and
3487 # generated files are strictly newer.
3488 am_sleep_pid=
3489 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3490   ( sleep 1 ) &
3491   am_sleep_pid=$!
3492 fi
3493
3494 rm -f conftest.file
3495
3496 test "$program_prefix" != NONE &&
3497   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3498 # Use a double $ so make ignores it.
3499 test "$program_suffix" != NONE &&
3500   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3501 # Double any \ or $.
3502 # By default was `s,x,x', remove it if useless.
3503 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3504 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3505
3506 # Expand $ac_aux_dir to an absolute path.
3507 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3508
3509 if test x"${MISSING+set}" != xset; then
3510   case $am_aux_dir in
3511   *\ * | *\     *)
3512     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3513   *)
3514     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3515   esac
3516 fi
3517 # Use eval to expand $SHELL
3518 if eval "$MISSING --is-lightweight"; then
3519   am_missing_run="$MISSING "
3520 else
3521   am_missing_run=
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3523 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3524 fi
3525
3526 if test x"${install_sh+set}" != xset; then
3527   case $am_aux_dir in
3528   *\ * | *\     *)
3529     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3530   *)
3531     install_sh="\${SHELL} $am_aux_dir/install-sh"
3532   esac
3533 fi
3534
3535 # Installed binaries are usually stripped using 'strip' when the user
3536 # run "make install-strip".  However 'strip' might not be the right
3537 # tool to use in cross-compilation environments, therefore Automake
3538 # will honor the 'STRIP' environment variable to overrule this program.
3539 if test "$cross_compiling" != no; then
3540   if test -n "$ac_tool_prefix"; then
3541   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}strip; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_STRIP+:} false; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   if test -n "$STRIP"; then
3549   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556     for ac_exec_ext in '' $ac_executable_extensions; do
3557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563   done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 STRIP=$ac_cv_prog_STRIP
3569 if test -n "$STRIP"; then
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3571 $as_echo "$STRIP" >&6; }
3572 else
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577
3578 fi
3579 if test -z "$ac_cv_prog_STRIP"; then
3580   ac_ct_STRIP=$STRIP
3581   # Extract the first word of "strip", so it can be a program name with args.
3582 set dummy strip; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   if test -n "$ac_ct_STRIP"; then
3589   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596     for ac_exec_ext in '' $ac_executable_extensions; do
3597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598     ac_cv_prog_ac_ct_STRIP="strip"
3599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603   done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3609 if test -n "$ac_ct_STRIP"; then
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3611 $as_echo "$ac_ct_STRIP" >&6; }
3612 else
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617   if test "x$ac_ct_STRIP" = x; then
3618     STRIP=":"
3619   else
3620     case $cross_compiling:$ac_tool_warned in
3621 yes:)
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3624 ac_tool_warned=yes ;;
3625 esac
3626     STRIP=$ac_ct_STRIP
3627   fi
3628 else
3629   STRIP="$ac_cv_prog_STRIP"
3630 fi
3631
3632 fi
3633 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3634
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3636 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3637 if test -z "$MKDIR_P"; then
3638   if ${ac_cv_path_mkdir+:} false; then :
3639   $as_echo_n "(cached) " >&6
3640 else
3641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646     for ac_prog in mkdir gmkdir; do
3647          for ac_exec_ext in '' $ac_executable_extensions; do
3648            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3649            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3650              'mkdir (GNU coreutils) '* | \
3651              'mkdir (coreutils) '* | \
3652              'mkdir (fileutils) '4.1*)
3653                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3654                break 3;;
3655            esac
3656          done
3657        done
3658   done
3659 IFS=$as_save_IFS
3660
3661 fi
3662
3663   test -d ./--version && rmdir ./--version
3664   if test "${ac_cv_path_mkdir+set}" = set; then
3665     MKDIR_P="$ac_cv_path_mkdir -p"
3666   else
3667     # As a last resort, use the slow shell script.  Don't cache a
3668     # value for MKDIR_P within a source directory, because that will
3669     # break other packages using the cache if that directory is
3670     # removed, or if the value is a relative name.
3671     MKDIR_P="$ac_install_sh -d"
3672   fi
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3675 $as_echo "$MKDIR_P" >&6; }
3676
3677 for ac_prog in gawk mawk nawk awk
3678 do
3679   # Extract the first word of "$ac_prog", so it can be a program name with args.
3680 set dummy $ac_prog; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if ${ac_cv_prog_AWK+:} false; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   if test -n "$AWK"; then
3687   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694     for ac_exec_ext in '' $ac_executable_extensions; do
3695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696     ac_cv_prog_AWK="$ac_prog"
3697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701   done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 AWK=$ac_cv_prog_AWK
3707 if test -n "$AWK"; then
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3709 $as_echo "$AWK" >&6; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715
3716   test -n "$AWK" && break
3717 done
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3721 set x ${MAKE-make}
3722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3723 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   cat >conftest.make <<\_ACEOF
3727 SHELL = /bin/sh
3728 all:
3729         @echo '@@@%%%=$(MAKE)=@@@%%%'
3730 _ACEOF
3731 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3733   *@@@%%%=?*=@@@%%%*)
3734     eval ac_cv_prog_make_${ac_make}_set=yes;;
3735   *)
3736     eval ac_cv_prog_make_${ac_make}_set=no;;
3737 esac
3738 rm -f conftest.make
3739 fi
3740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3742 $as_echo "yes" >&6; }
3743   SET_MAKE=
3744 else
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747   SET_MAKE="MAKE=${MAKE-make}"
3748 fi
3749
3750 rm -rf .tst 2>/dev/null
3751 mkdir .tst 2>/dev/null
3752 if test -d .tst; then
3753   am__leading_dot=.
3754 else
3755   am__leading_dot=_
3756 fi
3757 rmdir .tst 2>/dev/null
3758
3759 # Check whether --enable-silent-rules was given.
3760 if test "${enable_silent_rules+set}" = set; then :
3761   enableval=$enable_silent_rules;
3762 fi
3763
3764 case $enable_silent_rules in # (((
3765   yes) AM_DEFAULT_VERBOSITY=0;;
3766    no) AM_DEFAULT_VERBOSITY=1;;
3767     *) AM_DEFAULT_VERBOSITY=1;;
3768 esac
3769 am_make=${MAKE-make}
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3771 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3772 if ${am_cv_make_support_nested_variables+:} false; then :
3773   $as_echo_n "(cached) " >&6
3774 else
3775   if $as_echo 'TRUE=$(BAR$(V))
3776 BAR0=false
3777 BAR1=true
3778 V=1
3779 am__doit:
3780         @$(TRUE)
3781 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3782   am_cv_make_support_nested_variables=yes
3783 else
3784   am_cv_make_support_nested_variables=no
3785 fi
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3788 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3789 if test $am_cv_make_support_nested_variables = yes; then
3790     AM_V='$(V)'
3791   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3792 else
3793   AM_V=$AM_DEFAULT_VERBOSITY
3794   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3795 fi
3796 AM_BACKSLASH='\'
3797
3798 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3799   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3800   # is not polluted with repeated "-I."
3801   am__isrc=' -I$(srcdir)'
3802   # test to see if srcdir already configured
3803   if test -f $srcdir/config.status; then
3804     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3805   fi
3806 fi
3807
3808 # test whether we have cygpath
3809 if test -z "$CYGPATH_W"; then
3810   if (cygpath --version) >/dev/null 2>/dev/null; then
3811     CYGPATH_W='cygpath -w'
3812   else
3813     CYGPATH_W=echo
3814   fi
3815 fi
3816
3817
3818 # Define the identity of the package.
3819  PACKAGE='libpipeline'
3820  VERSION='1.4.2'
3821
3822
3823 cat >>confdefs.h <<_ACEOF
3824 #define PACKAGE "$PACKAGE"
3825 _ACEOF
3826
3827
3828 cat >>confdefs.h <<_ACEOF
3829 #define VERSION "$VERSION"
3830 _ACEOF
3831
3832 # Some tools Automake needs.
3833
3834 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3835
3836
3837 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3838
3839
3840 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3841
3842
3843 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3844
3845
3846 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3847
3848 # For better backward compatibility.  To be removed once Automake 1.9.x
3849 # dies out for good.  For more background, see:
3850 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3851 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3852 mkdir_p='$(MKDIR_P)'
3853
3854 # We need awk for the "check" target (and possibly the TAP driver).  The
3855 # system "awk" is bad on some platforms.
3856 # Always define AMTAR for backward compatibility.  Yes, it's still used
3857 # in the wild :-(  We should find a proper way to deprecate it ...
3858 AMTAR='$${TAR-tar}'
3859
3860
3861 # We'll loop over all known methods to create a tar archive until one works.
3862 _am_tools='gnutar  pax cpio none'
3863
3864 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3865
3866
3867
3868
3869
3870
3871 # POSIX will say in a future version that running "rm -f" with no argument
3872 # is OK; and we want to be able to make that assumption in our Makefile
3873 # recipes.  So use an aggressive probe to check that the usage we want is
3874 # actually supported "in the wild" to an acceptable degree.
3875 # See automake bug#10828.
3876 # To make any issue more visible, cause the running configure to be aborted
3877 # by default if the 'rm' program in use doesn't match our expectations; the
3878 # user can still override this though.
3879 if rm -f && rm -fr && rm -rf; then : OK; else
3880   cat >&2 <<'END'
3881 Oops!
3882
3883 Your 'rm' program seems unable to run without file operands specified
3884 on the command line, even when the '-f' option is present.  This is contrary
3885 to the behaviour of most rm programs out there, and not conforming with
3886 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3887
3888 Please tell bug-automake@gnu.org about your system, including the value
3889 of your $PATH and any error possibly output before this message.  This
3890 can help us improve future automake versions.
3891
3892 END
3893   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3894     echo 'Configuration will proceed anyway, since you have set the' >&2
3895     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3896     echo >&2
3897   else
3898     cat >&2 <<'END'
3899 Aborting the configuration process, to ensure you take notice of the issue.
3900
3901 You can download and install GNU coreutils to get an 'rm' implementation
3902 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3903
3904 If you want to complete the configuration process using your problematic
3905 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3906 to "yes", and re-run configure.
3907
3908 END
3909     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3910   fi
3911 fi
3912
3913
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3915 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3916     # Check whether --enable-maintainer-mode was given.
3917 if test "${enable_maintainer_mode+set}" = set; then :
3918   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3919 else
3920   USE_MAINTAINER_MODE=no
3921 fi
3922
3923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3924 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3925    if test $USE_MAINTAINER_MODE = yes; then
3926   MAINTAINER_MODE_TRUE=
3927   MAINTAINER_MODE_FALSE='#'
3928 else
3929   MAINTAINER_MODE_TRUE='#'
3930   MAINTAINER_MODE_FALSE=
3931 fi
3932
3933   MAINT=$MAINTAINER_MODE_TRUE
3934
3935
3936 # Check whether --enable-silent-rules was given.
3937 if test "${enable_silent_rules+set}" = set; then :
3938   enableval=$enable_silent_rules;
3939 fi
3940
3941 case $enable_silent_rules in # (((
3942   yes) AM_DEFAULT_VERBOSITY=0;;
3943    no) AM_DEFAULT_VERBOSITY=1;;
3944     *) AM_DEFAULT_VERBOSITY=0;;
3945 esac
3946 am_make=${MAKE-make}
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3948 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3949 if ${am_cv_make_support_nested_variables+:} false; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   if $as_echo 'TRUE=$(BAR$(V))
3953 BAR0=false
3954 BAR1=true
3955 V=1
3956 am__doit:
3957         @$(TRUE)
3958 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3959   am_cv_make_support_nested_variables=yes
3960 else
3961   am_cv_make_support_nested_variables=no
3962 fi
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3965 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3966 if test $am_cv_make_support_nested_variables = yes; then
3967     AM_V='$(V)'
3968   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3969 else
3970   AM_V=$AM_DEFAULT_VERBOSITY
3971   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3972 fi
3973 AM_BACKSLASH='\'
3974
3975
3976
3977 DEPDIR="${am__leading_dot}deps"
3978
3979 ac_config_commands="$ac_config_commands depfiles"
3980
3981
3982 am_make=${MAKE-make}
3983 cat > confinc << 'END'
3984 am__doit:
3985         @echo this is the am__doit target
3986 .PHONY: am__doit
3987 END
3988 # If we don't find an include directive, just comment out the code.
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3991 am__include="#"
3992 am__quote=
3993 _am_result=none
3994 # First try GNU make style include.
3995 echo "include confinc" > confmf
3996 # Ignore all kinds of additional output from 'make'.
3997 case `$am_make -s -f confmf 2> /dev/null` in #(
3998 *the\ am__doit\ target*)
3999   am__include=include
4000   am__quote=
4001   _am_result=GNU
4002   ;;
4003 esac
4004 # Now try BSD make style include.
4005 if test "$am__include" = "#"; then
4006    echo '.include "confinc"' > confmf
4007    case `$am_make -s -f confmf 2> /dev/null` in #(
4008    *the\ am__doit\ target*)
4009      am__include=.include
4010      am__quote="\""
4011      _am_result=BSD
4012      ;;
4013    esac
4014 fi
4015
4016
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4018 $as_echo "$_am_result" >&6; }
4019 rm -f confinc confmf
4020
4021 # Check whether --enable-dependency-tracking was given.
4022 if test "${enable_dependency_tracking+set}" = set; then :
4023   enableval=$enable_dependency_tracking;
4024 fi
4025
4026 if test "x$enable_dependency_tracking" != xno; then
4027   am_depcomp="$ac_aux_dir/depcomp"
4028   AMDEPBACKSLASH='\'
4029   am__nodep='_no'
4030 fi
4031  if test "x$enable_dependency_tracking" != xno; then
4032   AMDEP_TRUE=
4033   AMDEP_FALSE='#'
4034 else
4035   AMDEP_TRUE='#'
4036   AMDEP_FALSE=
4037 fi
4038
4039
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 if test -n "$ac_tool_prefix"; then
4046   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_CC+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   if test -n "$CC"; then
4054   ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061     for ac_exec_ext in '' $ac_executable_extensions; do
4062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068   done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4077 else
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 fi
4081
4082
4083 fi
4084 if test -z "$ac_cv_prog_CC"; then
4085   ac_ct_CC=$CC
4086   # Extract the first word of "gcc", so it can be a program name with args.
4087 set dummy gcc; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   if test -n "$ac_ct_CC"; then
4094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101     for ac_exec_ext in '' $ac_executable_extensions; do
4102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103     ac_cv_prog_ac_ct_CC="gcc"
4104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105     break 2
4106   fi
4107 done
4108   done
4109 IFS=$as_save_IFS
4110
4111 fi
4112 fi
4113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4114 if test -n "$ac_ct_CC"; then
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4116 $as_echo "$ac_ct_CC" >&6; }
4117 else
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 fi
4121
4122   if test "x$ac_ct_CC" = x; then
4123     CC=""
4124   else
4125     case $cross_compiling:$ac_tool_warned in
4126 yes:)
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4129 ac_tool_warned=yes ;;
4130 esac
4131     CC=$ac_ct_CC
4132   fi
4133 else
4134   CC="$ac_cv_prog_CC"
4135 fi
4136
4137 if test -z "$CC"; then
4138           if test -n "$ac_tool_prefix"; then
4139     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}cc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$CC"; then
4147   ac_cv_prog_CC="$CC" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156     ac_cv_prog_CC="${ac_tool_prefix}cc"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 CC=$ac_cv_prog_CC
4167 if test -n "$CC"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176   fi
4177 fi
4178 if test -z "$CC"; then
4179   # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   if test -n "$CC"; then
4187   ac_cv_prog_CC="$CC" # Let the user override the test.
4188 else
4189   ac_prog_rejected=no
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195     for ac_exec_ext in '' $ac_executable_extensions; do
4196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4198        ac_prog_rejected=yes
4199        continue
4200      fi
4201     ac_cv_prog_CC="cc"
4202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206   done
4207 IFS=$as_save_IFS
4208
4209 if test $ac_prog_rejected = yes; then
4210   # We found a bogon in the path, so make sure we never use it.
4211   set dummy $ac_cv_prog_CC
4212   shift
4213   if test $# != 0; then
4214     # We chose a different compiler from the bogus one.
4215     # However, it has the same basename, so the bogon will be chosen
4216     # first if we set CC to just the basename; use the full file name.
4217     shift
4218     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4219   fi
4220 fi
4221 fi
4222 fi
4223 CC=$ac_cv_prog_CC
4224 if test -n "$CC"; then
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4227 else
4228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233 fi
4234 if test -z "$CC"; then
4235   if test -n "$ac_tool_prefix"; then
4236   for ac_prog in cl.exe
4237   do
4238     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_CC+:} false; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   if test -n "$CC"; then
4246   ac_cv_prog_CC="$CC" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253     for ac_exec_ext in '' $ac_executable_extensions; do
4254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257     break 2
4258   fi
4259 done
4260   done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 CC=$ac_cv_prog_CC
4266 if test -n "$CC"; then
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268 $as_echo "$CC" >&6; }
4269 else
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274
4275     test -n "$CC" && break
4276   done
4277 fi
4278 if test -z "$CC"; then
4279   ac_ct_CC=$CC
4280   for ac_prog in cl.exe
4281 do
4282   # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy $ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   if test -n "$ac_ct_CC"; then
4290   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297     for ac_exec_ext in '' $ac_executable_extensions; do
4298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299     ac_cv_prog_ac_ct_CC="$ac_prog"
4300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304   done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312 $as_echo "$ac_ct_CC" >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319   test -n "$ac_ct_CC" && break
4320 done
4321
4322   if test "x$ac_ct_CC" = x; then
4323     CC=""
4324   else
4325     case $cross_compiling:$ac_tool_warned in
4326 yes:)
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329 ac_tool_warned=yes ;;
4330 esac
4331     CC=$ac_ct_CC
4332   fi
4333 fi
4334
4335 fi
4336
4337
4338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340 as_fn_error $? "no acceptable C compiler found in \$PATH
4341 See \`config.log' for more details" "$LINENO" 5; }
4342
4343 # Provide some information about the compiler.
4344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4345 set X $ac_compile
4346 ac_compiler=$2
4347 for ac_option in --version -v -V -qversion; do
4348   { { ac_try="$ac_compiler $ac_option >&5"
4349 case "(($ac_try" in
4350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351   *) ac_try_echo=$ac_try;;
4352 esac
4353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354 $as_echo "$ac_try_echo"; } >&5
4355   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4356   ac_status=$?
4357   if test -s conftest.err; then
4358     sed '10a\
4359 ... rest of stderr output deleted ...
4360          10q' conftest.err >conftest.er1
4361     cat conftest.er1 >&5
4362   fi
4363   rm -f conftest.er1 conftest.err
4364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365   test $ac_status = 0; }
4366 done
4367
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370
4371 int
4372 main ()
4373 {
4374
4375   ;
4376   return 0;
4377 }
4378 _ACEOF
4379 ac_clean_files_save=$ac_clean_files
4380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4381 # Try to create an executable without -o first, disregard a.out.
4382 # It will help us diagnose broken compilers, and finding out an intuition
4383 # of exeext.
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4385 $as_echo_n "checking whether the C compiler works... " >&6; }
4386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4387
4388 # The possible output files:
4389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4390
4391 ac_rmfiles=
4392 for ac_file in $ac_files
4393 do
4394   case $ac_file in
4395     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4396     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4397   esac
4398 done
4399 rm -f $ac_rmfiles
4400
4401 if { { ac_try="$ac_link_default"
4402 case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408   (eval "$ac_link_default") 2>&5
4409   ac_status=$?
4410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411   test $ac_status = 0; }; then :
4412   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4415 # so that the user can short-circuit this test for compilers unknown to
4416 # Autoconf.
4417 for ac_file in $ac_files ''
4418 do
4419   test -f "$ac_file" || continue
4420   case $ac_file in
4421     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4422         ;;
4423     [ab].out )
4424         # We found the default executable, but exeext='' is most
4425         # certainly right.
4426         break;;
4427     *.* )
4428         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4429         then :; else
4430            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4431         fi
4432         # We set ac_cv_exeext here because the later test for it is not
4433         # safe: cross compilers may not add the suffix if given an `-o'
4434         # argument, so we may need to know it at that point already.
4435         # Even if this section looks crufty: it has the advantage of
4436         # actually working.
4437         break;;
4438     * )
4439         break;;
4440   esac
4441 done
4442 test "$ac_cv_exeext" = no && ac_cv_exeext=
4443
4444 else
4445   ac_file=''
4446 fi
4447 if test -z "$ac_file"; then :
4448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error 77 "C compiler cannot create executables
4456 See \`config.log' for more details" "$LINENO" 5; }
4457 else
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459 $as_echo "yes" >&6; }
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4462 $as_echo_n "checking for C compiler default output file name... " >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4464 $as_echo "$ac_file" >&6; }
4465 ac_exeext=$ac_cv_exeext
4466
4467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4468 ac_clean_files=$ac_clean_files_save
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4470 $as_echo_n "checking for suffix of executables... " >&6; }
4471 if { { ac_try="$ac_link"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477 $as_echo "$ac_try_echo"; } >&5
4478   (eval "$ac_link") 2>&5
4479   ac_status=$?
4480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481   test $ac_status = 0; }; then :
4482   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4483 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4484 # work properly (i.e., refer to `conftest.exe'), while it won't with
4485 # `rm'.
4486 for ac_file in conftest.exe conftest conftest.*; do
4487   test -f "$ac_file" || continue
4488   case $ac_file in
4489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4490     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4491           break;;
4492     * ) break;;
4493   esac
4494 done
4495 else
4496   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4499 See \`config.log' for more details" "$LINENO" 5; }
4500 fi
4501 rm -f conftest conftest$ac_cv_exeext
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4503 $as_echo "$ac_cv_exeext" >&6; }
4504
4505 rm -f conftest.$ac_ext
4506 EXEEXT=$ac_cv_exeext
4507 ac_exeext=$EXEEXT
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510 #include <stdio.h>
4511 int
4512 main ()
4513 {
4514 FILE *f = fopen ("conftest.out", "w");
4515  return ferror (f) || fclose (f) != 0;
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 ac_clean_files="$ac_clean_files conftest.out"
4522 # Check that the compiler produces executables we can run.  If not, either
4523 # the compiler is broken, or we cross compile.
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4525 $as_echo_n "checking whether we are cross compiling... " >&6; }
4526 if test "$cross_compiling" != yes; then
4527   { { ac_try="$ac_link"
4528 case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 $as_echo "$ac_try_echo"; } >&5
4534   (eval "$ac_link") 2>&5
4535   ac_status=$?
4536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537   test $ac_status = 0; }
4538   if { ac_try='./conftest$ac_cv_exeext'
4539   { { case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545   (eval "$ac_try") 2>&5
4546   ac_status=$?
4547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548   test $ac_status = 0; }; }; then
4549     cross_compiling=no
4550   else
4551     if test "$cross_compiling" = maybe; then
4552         cross_compiling=yes
4553     else
4554         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error $? "cannot run C compiled programs.
4557 If you meant to cross compile, use \`--host'.
4558 See \`config.log' for more details" "$LINENO" 5; }
4559     fi
4560   fi
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4563 $as_echo "$cross_compiling" >&6; }
4564
4565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4566 ac_clean_files=$ac_clean_files_save
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4568 $as_echo_n "checking for suffix of object files... " >&6; }
4569 if ${ac_cv_objext+:} false; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h.  */
4574
4575 int
4576 main ()
4577 {
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.o conftest.obj
4584 if { { ac_try="$ac_compile"
4585 case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591   (eval "$ac_compile") 2>&5
4592   ac_status=$?
4593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594   test $ac_status = 0; }; then :
4595   for ac_file in conftest.o conftest.obj conftest.*; do
4596   test -f "$ac_file" || continue;
4597   case $ac_file in
4598     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4599     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4600        break;;
4601   esac
4602 done
4603 else
4604   $as_echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot compute suffix of object files: cannot compile
4610 See \`config.log' for more details" "$LINENO" 5; }
4611 fi
4612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4615 $as_echo "$ac_cv_objext" >&6; }
4616 OBJEXT=$ac_cv_objext
4617 ac_objext=$OBJEXT
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4620 if ${ac_cv_c_compiler_gnu+:} false; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625
4626 int
4627 main ()
4628 {
4629 #ifndef __GNUC__
4630        choke me
4631 #endif
4632
4633   ;
4634   return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638   ac_compiler_gnu=yes
4639 else
4640   ac_compiler_gnu=no
4641 fi
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4644
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4648 if test $ac_compiler_gnu = yes; then
4649   GCC=yes
4650 else
4651   GCC=
4652 fi
4653 ac_test_CFLAGS=${CFLAGS+set}
4654 ac_save_CFLAGS=$CFLAGS
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4657 if ${ac_cv_prog_cc_g+:} false; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   ac_save_c_werror_flag=$ac_c_werror_flag
4661    ac_c_werror_flag=yes
4662    ac_cv_prog_cc_g=no
4663    CFLAGS="-g"
4664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676   ac_cv_prog_cc_g=yes
4677 else
4678   CFLAGS=""
4679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681
4682 int
4683 main ()
4684 {
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691
4692 else
4693   ac_c_werror_flag=$ac_save_c_werror_flag
4694          CFLAGS="-g"
4695          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h.  */
4697
4698 int
4699 main ()
4700 {
4701
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707   ac_cv_prog_cc_g=yes
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714    ac_c_werror_flag=$ac_save_c_werror_flag
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4717 $as_echo "$ac_cv_prog_cc_g" >&6; }
4718 if test "$ac_test_CFLAGS" = set; then
4719   CFLAGS=$ac_save_CFLAGS
4720 elif test $ac_cv_prog_cc_g = yes; then
4721   if test "$GCC" = yes; then
4722     CFLAGS="-g -O2"
4723   else
4724     CFLAGS="-g"
4725   fi
4726 else
4727   if test "$GCC" = yes; then
4728     CFLAGS="-O2"
4729   else
4730     CFLAGS=
4731   fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4735 if ${ac_cv_prog_cc_c89+:} false; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   ac_cv_prog_cc_c89=no
4739 ac_save_CC=$CC
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h.  */
4742 #include <stdarg.h>
4743 #include <stdio.h>
4744 struct stat;
4745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4746 struct buf { int x; };
4747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4748 static char *e (p, i)
4749      char **p;
4750      int i;
4751 {
4752   return p[i];
4753 }
4754 static char *f (char * (*g) (char **, int), char **p, ...)
4755 {
4756   char *s;
4757   va_list v;
4758   va_start (v,p);
4759   s = g (p, va_arg (v,int));
4760   va_end (v);
4761   return s;
4762 }
4763
4764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4765    function prototypes and stuff, but not '\xHH' hex character constants.
4766    These don't provoke an error unfortunately, instead are silently treated
4767    as 'x'.  The following induces an error, until -std is added to get
4768    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4769    array size at least.  It's necessary to write '\x00'==0 to get something
4770    that's true only with -std.  */
4771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4772
4773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4774    inside strings and character constants.  */
4775 #define FOO(x) 'x'
4776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4777
4778 int test (int i, double x);
4779 struct s1 {int (*f) (int a);};
4780 struct s2 {int (*f) (double a);};
4781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4782 int argc;
4783 char **argv;
4784 int
4785 main ()
4786 {
4787 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4793         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4794 do
4795   CC="$ac_save_CC $ac_arg"
4796   if ac_fn_c_try_compile "$LINENO"; then :
4797   ac_cv_prog_cc_c89=$ac_arg
4798 fi
4799 rm -f core conftest.err conftest.$ac_objext
4800   test "x$ac_cv_prog_cc_c89" != "xno" && break
4801 done
4802 rm -f conftest.$ac_ext
4803 CC=$ac_save_CC
4804
4805 fi
4806 # AC_CACHE_VAL
4807 case "x$ac_cv_prog_cc_c89" in
4808   x)
4809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810 $as_echo "none needed" >&6; } ;;
4811   xno)
4812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4813 $as_echo "unsupported" >&6; } ;;
4814   *)
4815     CC="$CC $ac_cv_prog_cc_c89"
4816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4818 esac
4819 if test "x$ac_cv_prog_cc_c89" != xno; then :
4820
4821 fi
4822
4823 ac_ext=c
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828
4829 ac_ext=c
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4835 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4836 if ${am_cv_prog_cc_c_o+:} false; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h.  */
4841
4842 int
4843 main ()
4844 {
4845
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850   # Make sure it works both with $CC and with simple cc.
4851   # Following AC_PROG_CC_C_O, we do the test twice because some
4852   # compilers refuse to overwrite an existing .o file with -o,
4853   # though they will create one.
4854   am_cv_prog_cc_c_o=yes
4855   for am_i in 1 2; do
4856     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4857    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4858    ac_status=$?
4859    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860    (exit $ac_status); } \
4861          && test -f conftest2.$ac_objext; then
4862       : OK
4863     else
4864       am_cv_prog_cc_c_o=no
4865       break
4866     fi
4867   done
4868   rm -f core conftest*
4869   unset am_i
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4872 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4873 if test "$am_cv_prog_cc_c_o" != yes; then
4874    # Losing compiler, so override with the script.
4875    # FIXME: It is wrong to rewrite CC.
4876    # But if we don't then we get into trouble of one sort or another.
4877    # A longer-term fix would be to have automake use am__CC in this case,
4878    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4879    CC="$am_aux_dir/compile $CC"
4880 fi
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887
4888 depcc="$CC"   am_compiler_list=
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4891 $as_echo_n "checking dependency style of $depcc... " >&6; }
4892 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896   # We make a subdir and do the tests there.  Otherwise we can end up
4897   # making bogus files that we don't know about and never remove.  For
4898   # instance it was reported that on HP-UX the gcc test will end up
4899   # making a dummy file named 'D' -- because '-MD' means "put the output
4900   # in D".
4901   rm -rf conftest.dir
4902   mkdir conftest.dir
4903   # Copy depcomp to subdir because otherwise we won't find it if we're
4904   # using a relative directory.
4905   cp "$am_depcomp" conftest.dir
4906   cd conftest.dir
4907   # We will build objects and dependencies in a subdirectory because
4908   # it helps to detect inapplicable dependency modes.  For instance
4909   # both Tru64's cc and ICC support -MD to output dependencies as a
4910   # side effect of compilation, but ICC will put the dependencies in
4911   # the current directory while Tru64 will put them in the object
4912   # directory.
4913   mkdir sub
4914
4915   am_cv_CC_dependencies_compiler_type=none
4916   if test "$am_compiler_list" = ""; then
4917      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4918   fi
4919   am__universal=false
4920   case " $depcc " in #(
4921      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4922      esac
4923
4924   for depmode in $am_compiler_list; do
4925     # Setup a source with many dependencies, because some compilers
4926     # like to wrap large dependency lists on column 80 (with \), and
4927     # we should not choose a depcomp mode which is confused by this.
4928     #
4929     # We need to recreate these files for each test, as the compiler may
4930     # overwrite some of them when testing with obscure command lines.
4931     # This happens at least with the AIX C compiler.
4932     : > sub/conftest.c
4933     for i in 1 2 3 4 5 6; do
4934       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4935       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4936       # Solaris 10 /bin/sh.
4937       echo '/* dummy */' > sub/conftst$i.h
4938     done
4939     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4940
4941     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4942     # mode.  It turns out that the SunPro C++ compiler does not properly
4943     # handle '-M -o', and we need to detect this.  Also, some Intel
4944     # versions had trouble with output in subdirs.
4945     am__obj=sub/conftest.${OBJEXT-o}
4946     am__minus_obj="-o $am__obj"
4947     case $depmode in
4948     gcc)
4949       # This depmode causes a compiler race in universal mode.
4950       test "$am__universal" = false || continue
4951       ;;
4952     nosideeffect)
4953       # After this tag, mechanisms are not by side-effect, so they'll
4954       # only be used when explicitly requested.
4955       if test "x$enable_dependency_tracking" = xyes; then
4956         continue
4957       else
4958         break
4959       fi
4960       ;;
4961     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4962       # This compiler won't grok '-c -o', but also, the minuso test has
4963       # not run yet.  These depmodes are late enough in the game, and
4964       # so weak that their functioning should not be impacted.
4965       am__obj=conftest.${OBJEXT-o}
4966       am__minus_obj=
4967       ;;
4968     none) break ;;
4969     esac
4970     if depmode=$depmode \
4971        source=sub/conftest.c object=$am__obj \
4972        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4973        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4974          >/dev/null 2>conftest.err &&
4975        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4976        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4978        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979       # icc doesn't choke on unknown options, it will just issue warnings
4980       # or remarks (even with -Werror).  So we grep stderr for any message
4981       # that says an option was ignored or not supported.
4982       # When given -MP, icc 7.0 and 7.1 complain thusly:
4983       #   icc: Command line warning: ignoring option '-M'; no argument required
4984       # The diagnosis changed in icc 8.0:
4985       #   icc: Command line remark: option '-MP' not supported
4986       if (grep 'ignoring option' conftest.err ||
4987           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988         am_cv_CC_dependencies_compiler_type=$depmode
4989         break
4990       fi
4991     fi
4992   done
4993
4994   cd ..
4995   rm -rf conftest.dir
4996 else
4997   am_cv_CC_dependencies_compiler_type=none
4998 fi
4999
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5004
5005  if
5006   test "x$enable_dependency_tracking" != xno \
5007   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5008   am__fastdepCC_TRUE=
5009   am__fastdepCC_FALSE='#'
5010 else
5011   am__fastdepCC_TRUE='#'
5012   am__fastdepCC_FALSE=
5013 fi
5014
5015
5016
5017 ac_ext=c
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5024 # On Suns, sometimes $CPP names a directory.
5025 if test -n "$CPP" && test -d "$CPP"; then
5026   CPP=
5027 fi
5028 if test -z "$CPP"; then
5029   if ${ac_cv_prog_CPP+:} false; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032       # Double quotes because CPP needs to be expanded
5033     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5034     do
5035       ac_preproc_ok=false
5036 for ac_c_preproc_warn_flag in '' yes
5037 do
5038   # Use a header file that comes with gcc, so configuring glibc
5039   # with a fresh cross-compiler works.
5040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041   # <limits.h> exists even on freestanding compilers.
5042   # On the NeXT, cc -E runs the code through the compiler's parser,
5043   # not just through cpp. "Syntax error" is here to catch this case.
5044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h.  */
5046 #ifdef __STDC__
5047 # include <limits.h>
5048 #else
5049 # include <assert.h>
5050 #endif
5051                      Syntax error
5052 _ACEOF
5053 if ac_fn_c_try_cpp "$LINENO"; then :
5054
5055 else
5056   # Broken: fails on valid input.
5057 continue
5058 fi
5059 rm -f conftest.err conftest.i conftest.$ac_ext
5060
5061   # OK, works on sane cases.  Now check whether nonexistent headers
5062   # can be detected and how.
5063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h.  */
5065 #include <ac_nonexistent.h>
5066 _ACEOF
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5068   # Broken: success on invalid input.
5069 continue
5070 else
5071   # Passes both tests.
5072 ac_preproc_ok=:
5073 break
5074 fi
5075 rm -f conftest.err conftest.i conftest.$ac_ext
5076
5077 done
5078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079 rm -f conftest.i conftest.err conftest.$ac_ext
5080 if $ac_preproc_ok; then :
5081   break
5082 fi
5083
5084     done
5085     ac_cv_prog_CPP=$CPP
5086
5087 fi
5088   CPP=$ac_cv_prog_CPP
5089 else
5090   ac_cv_prog_CPP=$CPP
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5093 $as_echo "$CPP" >&6; }
5094 ac_preproc_ok=false
5095 for ac_c_preproc_warn_flag in '' yes
5096 do
5097   # Use a header file that comes with gcc, so configuring glibc
5098   # with a fresh cross-compiler works.
5099   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100   # <limits.h> exists even on freestanding compilers.
5101   # On the NeXT, cc -E runs the code through the compiler's parser,
5102   # not just through cpp. "Syntax error" is here to catch this case.
5103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h.  */
5105 #ifdef __STDC__
5106 # include <limits.h>
5107 #else
5108 # include <assert.h>
5109 #endif
5110                      Syntax error
5111 _ACEOF
5112 if ac_fn_c_try_cpp "$LINENO"; then :
5113
5114 else
5115   # Broken: fails on valid input.
5116 continue
5117 fi
5118 rm -f conftest.err conftest.i conftest.$ac_ext
5119
5120   # OK, works on sane cases.  Now check whether nonexistent headers
5121   # can be detected and how.
5122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124 #include <ac_nonexistent.h>
5125 _ACEOF
5126 if ac_fn_c_try_cpp "$LINENO"; then :
5127   # Broken: success on invalid input.
5128 continue
5129 else
5130   # Passes both tests.
5131 ac_preproc_ok=:
5132 break
5133 fi
5134 rm -f conftest.err conftest.i conftest.$ac_ext
5135
5136 done
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.i conftest.err conftest.$ac_ext
5139 if $ac_preproc_ok; then :
5140
5141 else
5142   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5145 See \`config.log' for more details" "$LINENO" 5; }
5146 fi
5147
5148 ac_ext=c
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5157 if ${ac_cv_path_GREP+:} false; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   if test -z "$GREP"; then
5161   ac_path_GREP_found=false
5162   # Loop through the user's path and test for each of PROGNAME-LIST
5163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168     for ac_prog in grep ggrep; do
5169     for ac_exec_ext in '' $ac_executable_extensions; do
5170       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5171       as_fn_executable_p "$ac_path_GREP" || continue
5172 # Check for GNU ac_path_GREP and select it if it is found.
5173   # Check for GNU $ac_path_GREP
5174 case `"$ac_path_GREP" --version 2>&1` in
5175 *GNU*)
5176   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5177 *)
5178   ac_count=0
5179   $as_echo_n 0123456789 >"conftest.in"
5180   while :
5181   do
5182     cat "conftest.in" "conftest.in" >"conftest.tmp"
5183     mv "conftest.tmp" "conftest.in"
5184     cp "conftest.in" "conftest.nl"
5185     $as_echo 'GREP' >> "conftest.nl"
5186     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188     as_fn_arith $ac_count + 1 && ac_count=$as_val
5189     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190       # Best one so far, save it but keep looking for a better one
5191       ac_cv_path_GREP="$ac_path_GREP"
5192       ac_path_GREP_max=$ac_count
5193     fi
5194     # 10*(2^10) chars as input seems more than enough
5195     test $ac_count -gt 10 && break
5196   done
5197   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198 esac
5199
5200       $ac_path_GREP_found && break 3
5201     done
5202   done
5203   done
5204 IFS=$as_save_IFS
5205   if test -z "$ac_cv_path_GREP"; then
5206     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207   fi
5208 else
5209   ac_cv_path_GREP=$GREP
5210 fi
5211
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5214 $as_echo "$ac_cv_path_GREP" >&6; }
5215  GREP="$ac_cv_path_GREP"
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5219 $as_echo_n "checking for egrep... " >&6; }
5220 if ${ac_cv_path_EGREP+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5224    then ac_cv_path_EGREP="$GREP -E"
5225    else
5226      if test -z "$EGREP"; then
5227   ac_path_EGREP_found=false
5228   # Loop through the user's path and test for each of PROGNAME-LIST
5229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234     for ac_prog in egrep; do
5235     for ac_exec_ext in '' $ac_executable_extensions; do
5236       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5237       as_fn_executable_p "$ac_path_EGREP" || continue
5238 # Check for GNU ac_path_EGREP and select it if it is found.
5239   # Check for GNU $ac_path_EGREP
5240 case `"$ac_path_EGREP" --version 2>&1` in
5241 *GNU*)
5242   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5243 *)
5244   ac_count=0
5245   $as_echo_n 0123456789 >"conftest.in"
5246   while :
5247   do
5248     cat "conftest.in" "conftest.in" >"conftest.tmp"
5249     mv "conftest.tmp" "conftest.in"
5250     cp "conftest.in" "conftest.nl"
5251     $as_echo 'EGREP' >> "conftest.nl"
5252     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5253     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5254     as_fn_arith $ac_count + 1 && ac_count=$as_val
5255     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5256       # Best one so far, save it but keep looking for a better one
5257       ac_cv_path_EGREP="$ac_path_EGREP"
5258       ac_path_EGREP_max=$ac_count
5259     fi
5260     # 10*(2^10) chars as input seems more than enough
5261     test $ac_count -gt 10 && break
5262   done
5263   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 esac
5265
5266       $ac_path_EGREP_found && break 3
5267     done
5268   done
5269   done
5270 IFS=$as_save_IFS
5271   if test -z "$ac_cv_path_EGREP"; then
5272     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273   fi
5274 else
5275   ac_cv_path_EGREP=$EGREP
5276 fi
5277
5278    fi
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5281 $as_echo "$ac_cv_path_EGREP" >&6; }
5282  EGREP="$ac_cv_path_EGREP"
5283
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5286 $as_echo_n "checking for ANSI C header files... " >&6; }
5287 if ${ac_cv_header_stdc+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292 #include <stdlib.h>
5293 #include <stdarg.h>
5294 #include <string.h>
5295 #include <float.h>
5296
5297 int
5298 main ()
5299 {
5300
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306   ac_cv_header_stdc=yes
5307 else
5308   ac_cv_header_stdc=no
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311
5312 if test $ac_cv_header_stdc = yes; then
5313   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h.  */
5316 #include <string.h>
5317
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320   $EGREP "memchr" >/dev/null 2>&1; then :
5321
5322 else
5323   ac_cv_header_stdc=no
5324 fi
5325 rm -f conftest*
5326
5327 fi
5328
5329 if test $ac_cv_header_stdc = yes; then
5330   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h.  */
5333 #include <stdlib.h>
5334
5335 _ACEOF
5336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5337   $EGREP "free" >/dev/null 2>&1; then :
5338
5339 else
5340   ac_cv_header_stdc=no
5341 fi
5342 rm -f conftest*
5343
5344 fi
5345
5346 if test $ac_cv_header_stdc = yes; then
5347   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5348   if test "$cross_compiling" = yes; then :
5349   :
5350 else
5351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h.  */
5353 #include <ctype.h>
5354 #include <stdlib.h>
5355 #if ((' ' & 0x0FF) == 0x020)
5356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5358 #else
5359 # define ISLOWER(c) \
5360                    (('a' <= (c) && (c) <= 'i') \
5361                      || ('j' <= (c) && (c) <= 'r') \
5362                      || ('s' <= (c) && (c) <= 'z'))
5363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5364 #endif
5365
5366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5367 int
5368 main ()
5369 {
5370   int i;
5371   for (i = 0; i < 256; i++)
5372     if (XOR (islower (i), ISLOWER (i))
5373         || toupper (i) != TOUPPER (i))
5374       return 2;
5375   return 0;
5376 }
5377 _ACEOF
5378 if ac_fn_c_try_run "$LINENO"; then :
5379
5380 else
5381   ac_cv_header_stdc=no
5382 fi
5383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5384   conftest.$ac_objext conftest.beam conftest.$ac_ext
5385 fi
5386
5387 fi
5388 fi
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5390 $as_echo "$ac_cv_header_stdc" >&6; }
5391 if test $ac_cv_header_stdc = yes; then
5392
5393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5394
5395 fi
5396
5397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5398 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5399                   inttypes.h stdint.h unistd.h
5400 do :
5401   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5403 "
5404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5405   cat >>confdefs.h <<_ACEOF
5406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 _ACEOF
5408
5409 fi
5410
5411 done
5412
5413
5414
5415   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5416 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5417   MINIX=yes
5418 else
5419   MINIX=
5420 fi
5421
5422
5423   if test "$MINIX" = yes; then
5424
5425 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5426
5427
5428 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5429
5430
5431 $as_echo "#define _MINIX 1" >>confdefs.h
5432
5433
5434 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5435
5436   fi
5437
5438
5439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5440 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5441 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h.  */
5446
5447 #         define __EXTENSIONS__ 1
5448           $ac_includes_default
5449 int
5450 main ()
5451 {
5452
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   ac_cv_safe_to_define___extensions__=yes
5459 else
5460   ac_cv_safe_to_define___extensions__=no
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5465 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5466   test $ac_cv_safe_to_define___extensions__ = yes &&
5467     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5468
5469   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5470
5471   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5472
5473   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5474
5475   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5476
5477   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5478
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5480 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5481 if ${ac_cv_should_define__xopen_source+:} false; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   ac_cv_should_define__xopen_source=no
5485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h.  */
5487
5488           #include <wchar.h>
5489           mbstate_t x;
5490 int
5491 main ()
5492 {
5493
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499
5500 else
5501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h.  */
5503
5504              #define _XOPEN_SOURCE 500
5505              #include <wchar.h>
5506              mbstate_t x;
5507 int
5508 main ()
5509 {
5510
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"; then :
5516   ac_cv_should_define__xopen_source=yes
5517 fi
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5523 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5524   test $ac_cv_should_define__xopen_source = yes &&
5525     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5526
5527
5528
5529 if test -n "$ac_tool_prefix"; then
5530   for ac_prog in ar lib "link -lib"
5531   do
5532     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_AR+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   if test -n "$AR"; then
5540   ac_cv_prog_AR="$AR" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 AR=$ac_cv_prog_AR
5560 if test -n "$AR"; then
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5562 $as_echo "$AR" >&6; }
5563 else
5564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568
5569     test -n "$AR" && break
5570   done
5571 fi
5572 if test -z "$AR"; then
5573   ac_ct_AR=$AR
5574   for ac_prog in ar lib "link -lib"
5575 do
5576   # Extract the first word of "$ac_prog", so it can be a program name with args.
5577 set dummy $ac_prog; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   if test -n "$ac_ct_AR"; then
5584   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591     for ac_exec_ext in '' $ac_executable_extensions; do
5592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_prog_ac_ct_AR="$ac_prog"
5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598   done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5604 if test -n "$ac_ct_AR"; then
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5606 $as_echo "$ac_ct_AR" >&6; }
5607 else
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612
5613   test -n "$ac_ct_AR" && break
5614 done
5615
5616   if test "x$ac_ct_AR" = x; then
5617     AR="false"
5618   else
5619     case $cross_compiling:$ac_tool_warned in
5620 yes:)
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623 ac_tool_warned=yes ;;
5624 esac
5625     AR=$ac_ct_AR
5626   fi
5627 fi
5628
5629 : ${AR=ar}
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5632 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5633 if ${am_cv_ar_interface+:} false; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   ac_ext=c
5637 ac_cpp='$CPP $CPPFLAGS'
5638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
5642    am_cv_ar_interface=ar
5643    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h.  */
5645 int some_variable = 0;
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5649       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5650   (eval $am_ar_try) 2>&5
5651   ac_status=$?
5652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653   test $ac_status = 0; }
5654       if test "$ac_status" -eq 0; then
5655         am_cv_ar_interface=ar
5656       else
5657         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5658         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5659   (eval $am_ar_try) 2>&5
5660   ac_status=$?
5661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662   test $ac_status = 0; }
5663         if test "$ac_status" -eq 0; then
5664           am_cv_ar_interface=lib
5665         else
5666           am_cv_ar_interface=unknown
5667         fi
5668       fi
5669       rm -f conftest.lib libconftest.a
5670
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673    ac_ext=c
5674 ac_cpp='$CPP $CPPFLAGS'
5675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5678
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5681 $as_echo "$am_cv_ar_interface" >&6; }
5682
5683 case $am_cv_ar_interface in
5684 ar)
5685   ;;
5686 lib)
5687   # Microsoft lib, so override with the ar-lib wrapper script.
5688   # FIXME: It is wrong to rewrite AR.
5689   # But if we don't then we get into trouble of one sort or another.
5690   # A longer-term fix would be to have automake use am__AR in this case,
5691   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5692   # similar.
5693   AR="$am_aux_dir/ar-lib $AR"
5694   ;;
5695 unknown)
5696   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5697   ;;
5698 esac
5699
5700 case `pwd` in
5701   *\ * | *\     *)
5702     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5703 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5704 esac
5705
5706
5707
5708 macro_version='2.4.6'
5709 macro_revision='2.4.6'
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 ltmain=$ac_aux_dir/ltmain.sh
5724
5725 # Make sure we can run config.sub.
5726 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5727   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5728
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5730 $as_echo_n "checking build system type... " >&6; }
5731 if ${ac_cv_build+:} false; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   ac_build_alias=$build_alias
5735 test "x$ac_build_alias" = x &&
5736   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5737 test "x$ac_build_alias" = x &&
5738   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5739 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5740   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5741
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5744 $as_echo "$ac_cv_build" >&6; }
5745 case $ac_cv_build in
5746 *-*-*) ;;
5747 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5748 esac
5749 build=$ac_cv_build
5750 ac_save_IFS=$IFS; IFS='-'
5751 set x $ac_cv_build
5752 shift
5753 build_cpu=$1
5754 build_vendor=$2
5755 shift; shift
5756 # Remember, the first character of IFS is used to create $*,
5757 # except with old shells:
5758 build_os=$*
5759 IFS=$ac_save_IFS
5760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5761
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5764 $as_echo_n "checking host system type... " >&6; }
5765 if ${ac_cv_host+:} false; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768   if test "x$host_alias" = x; then
5769   ac_cv_host=$ac_cv_build
5770 else
5771   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5772     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5773 fi
5774
5775 fi
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5777 $as_echo "$ac_cv_host" >&6; }
5778 case $ac_cv_host in
5779 *-*-*) ;;
5780 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5781 esac
5782 host=$ac_cv_host
5783 ac_save_IFS=$IFS; IFS='-'
5784 set x $ac_cv_host
5785 shift
5786 host_cpu=$1
5787 host_vendor=$2
5788 shift; shift
5789 # Remember, the first character of IFS is used to create $*,
5790 # except with old shells:
5791 host_os=$*
5792 IFS=$ac_save_IFS
5793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5794
5795
5796 # Backslashify metacharacters that are still active within
5797 # double-quoted strings.
5798 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5799
5800 # Same as above, but do not quote variable references.
5801 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5802
5803 # Sed substitution to delay expansion of an escaped shell variable in a
5804 # double_quote_subst'ed string.
5805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5806
5807 # Sed substitution to delay expansion of an escaped single quote.
5808 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5809
5810 # Sed substitution to avoid accidental globbing in evaled expressions
5811 no_glob_subst='s/\*/\\\*/g'
5812
5813 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5814 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5818 $as_echo_n "checking how to print strings... " >&6; }
5819 # Test print first, because it will be a builtin if present.
5820 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5821    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5822   ECHO='print -r --'
5823 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5824   ECHO='printf %s\n'
5825 else
5826   # Use this function as a fallback that always works.
5827   func_fallback_echo ()
5828   {
5829     eval 'cat <<_LTECHO_EOF
5830 $1
5831 _LTECHO_EOF'
5832   }
5833   ECHO='func_fallback_echo'
5834 fi
5835
5836 # func_echo_all arg...
5837 # Invoke $ECHO with all args, space-separated.
5838 func_echo_all ()
5839 {
5840     $ECHO ""
5841 }
5842
5843 case $ECHO in
5844   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5845 $as_echo "printf" >&6; } ;;
5846   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5847 $as_echo "print -r" >&6; } ;;
5848   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5849 $as_echo "cat" >&6; } ;;
5850 esac
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5866 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5867 if ${ac_cv_path_SED+:} false; then :
5868   $as_echo_n "(cached) " >&6
5869 else
5870             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5871      for ac_i in 1 2 3 4 5 6 7; do
5872        ac_script="$ac_script$as_nl$ac_script"
5873      done
5874      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5875      { ac_script=; unset ac_script;}
5876      if test -z "$SED"; then
5877   ac_path_SED_found=false
5878   # Loop through the user's path and test for each of PROGNAME-LIST
5879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884     for ac_prog in sed gsed; do
5885     for ac_exec_ext in '' $ac_executable_extensions; do
5886       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5887       as_fn_executable_p "$ac_path_SED" || continue
5888 # Check for GNU ac_path_SED and select it if it is found.
5889   # Check for GNU $ac_path_SED
5890 case `"$ac_path_SED" --version 2>&1` in
5891 *GNU*)
5892   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5893 *)
5894   ac_count=0
5895   $as_echo_n 0123456789 >"conftest.in"
5896   while :
5897   do
5898     cat "conftest.in" "conftest.in" >"conftest.tmp"
5899     mv "conftest.tmp" "conftest.in"
5900     cp "conftest.in" "conftest.nl"
5901     $as_echo '' >> "conftest.nl"
5902     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5903     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5904     as_fn_arith $ac_count + 1 && ac_count=$as_val
5905     if test $ac_count -gt ${ac_path_SED_max-0}; then
5906       # Best one so far, save it but keep looking for a better one
5907       ac_cv_path_SED="$ac_path_SED"
5908       ac_path_SED_max=$ac_count
5909     fi
5910     # 10*(2^10) chars as input seems more than enough
5911     test $ac_count -gt 10 && break
5912   done
5913   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5914 esac
5915
5916       $ac_path_SED_found && break 3
5917     done
5918   done
5919   done
5920 IFS=$as_save_IFS
5921   if test -z "$ac_cv_path_SED"; then
5922     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5923   fi
5924 else
5925   ac_cv_path_SED=$SED
5926 fi
5927
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5930 $as_echo "$ac_cv_path_SED" >&6; }
5931  SED="$ac_cv_path_SED"
5932   rm -f conftest.sed
5933
5934 test -z "$SED" && SED=sed
5935 Xsed="$SED -e 1s/^X//"
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5948 $as_echo_n "checking for fgrep... " >&6; }
5949 if ${ac_cv_path_FGREP+:} false; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5953    then ac_cv_path_FGREP="$GREP -F"
5954    else
5955      if test -z "$FGREP"; then
5956   ac_path_FGREP_found=false
5957   # Loop through the user's path and test for each of PROGNAME-LIST
5958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963     for ac_prog in fgrep; do
5964     for ac_exec_ext in '' $ac_executable_extensions; do
5965       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5966       as_fn_executable_p "$ac_path_FGREP" || continue
5967 # Check for GNU ac_path_FGREP and select it if it is found.
5968   # Check for GNU $ac_path_FGREP
5969 case `"$ac_path_FGREP" --version 2>&1` in
5970 *GNU*)
5971   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5972 *)
5973   ac_count=0
5974   $as_echo_n 0123456789 >"conftest.in"
5975   while :
5976   do
5977     cat "conftest.in" "conftest.in" >"conftest.tmp"
5978     mv "conftest.tmp" "conftest.in"
5979     cp "conftest.in" "conftest.nl"
5980     $as_echo 'FGREP' >> "conftest.nl"
5981     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5982     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5983     as_fn_arith $ac_count + 1 && ac_count=$as_val
5984     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5985       # Best one so far, save it but keep looking for a better one
5986       ac_cv_path_FGREP="$ac_path_FGREP"
5987       ac_path_FGREP_max=$ac_count
5988     fi
5989     # 10*(2^10) chars as input seems more than enough
5990     test $ac_count -gt 10 && break
5991   done
5992   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5993 esac
5994
5995       $ac_path_FGREP_found && break 3
5996     done
5997   done
5998   done
5999 IFS=$as_save_IFS
6000   if test -z "$ac_cv_path_FGREP"; then
6001     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6002   fi
6003 else
6004   ac_cv_path_FGREP=$FGREP
6005 fi
6006
6007    fi
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6010 $as_echo "$ac_cv_path_FGREP" >&6; }
6011  FGREP="$ac_cv_path_FGREP"
6012
6013
6014 test -z "$GREP" && GREP=grep
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034 # Check whether --with-gnu-ld was given.
6035 if test "${with_gnu_ld+set}" = set; then :
6036   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6037 else
6038   with_gnu_ld=no
6039 fi
6040
6041 ac_prog=ld
6042 if test yes = "$GCC"; then
6043   # Check if gcc -print-prog-name=ld gives a path.
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6045 $as_echo_n "checking for ld used by $CC... " >&6; }
6046   case $host in
6047   *-*-mingw*)
6048     # gcc leaves a trailing carriage return, which upsets mingw
6049     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6050   *)
6051     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6052   esac
6053   case $ac_prog in
6054     # Accept absolute paths.
6055     [\\/]* | ?:[\\/]*)
6056       re_direlt='/[^/][^/]*/\.\./'
6057       # Canonicalize the pathname of ld
6058       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6059       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6060         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6061       done
6062       test -z "$LD" && LD=$ac_prog
6063       ;;
6064   "")
6065     # If it fails, then pretend we aren't using GCC.
6066     ac_prog=ld
6067     ;;
6068   *)
6069     # If it is relative, then search for the first ld in PATH.
6070     with_gnu_ld=unknown
6071     ;;
6072   esac
6073 elif test yes = "$with_gnu_ld"; then
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6075 $as_echo_n "checking for GNU ld... " >&6; }
6076 else
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6078 $as_echo_n "checking for non-GNU ld... " >&6; }
6079 fi
6080 if ${lt_cv_path_LD+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   if test -z "$LD"; then
6084   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6085   for ac_dir in $PATH; do
6086     IFS=$lt_save_ifs
6087     test -z "$ac_dir" && ac_dir=.
6088     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6089       lt_cv_path_LD=$ac_dir/$ac_prog
6090       # Check to see if the program is GNU ld.  I'd rather use --version,
6091       # but apparently some variants of GNU ld only accept -v.
6092       # Break only if it was the GNU/non-GNU ld that we prefer.
6093       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6094       *GNU* | *'with BFD'*)
6095         test no != "$with_gnu_ld" && break
6096         ;;
6097       *)
6098         test yes != "$with_gnu_ld" && break
6099         ;;
6100       esac
6101     fi
6102   done
6103   IFS=$lt_save_ifs
6104 else
6105   lt_cv_path_LD=$LD # Let the user override the test with a path.
6106 fi
6107 fi
6108
6109 LD=$lt_cv_path_LD
6110 if test -n "$LD"; then
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6112 $as_echo "$LD" >&6; }
6113 else
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6116 fi
6117 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6120 if ${lt_cv_prog_gnu_ld+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6124 case `$LD -v 2>&1 </dev/null` in
6125 *GNU* | *'with BFD'*)
6126   lt_cv_prog_gnu_ld=yes
6127   ;;
6128 *)
6129   lt_cv_prog_gnu_ld=no
6130   ;;
6131 esac
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6135 with_gnu_ld=$lt_cv_prog_gnu_ld
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6146 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6147 if ${lt_cv_path_NM+:} false; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   if test -n "$NM"; then
6151   # Let the user override the test.
6152   lt_cv_path_NM=$NM
6153 else
6154   lt_nm_to_check=${ac_tool_prefix}nm
6155   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6156     lt_nm_to_check="$lt_nm_to_check nm"
6157   fi
6158   for lt_tmp_nm in $lt_nm_to_check; do
6159     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6160     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6161       IFS=$lt_save_ifs
6162       test -z "$ac_dir" && ac_dir=.
6163       tmp_nm=$ac_dir/$lt_tmp_nm
6164       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6165         # Check to see if the nm accepts a BSD-compat flag.
6166         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6167         #   nm: unknown option "B" ignored
6168         # Tru64's nm complains that /dev/null is an invalid object file
6169         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6170         case $build_os in
6171         mingw*) lt_bad_file=conftest.nm/nofile ;;
6172         *) lt_bad_file=/dev/null ;;
6173         esac
6174         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6175         *$lt_bad_file* | *'Invalid file or object type'*)
6176           lt_cv_path_NM="$tmp_nm -B"
6177           break 2
6178           ;;
6179         *)
6180           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6181           */dev/null*)
6182             lt_cv_path_NM="$tmp_nm -p"
6183             break 2
6184             ;;
6185           *)
6186             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6187             continue # so that we can try to find one that supports BSD flags
6188             ;;
6189           esac
6190           ;;
6191         esac
6192       fi
6193     done
6194     IFS=$lt_save_ifs
6195   done
6196   : ${lt_cv_path_NM=no}
6197 fi
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6200 $as_echo "$lt_cv_path_NM" >&6; }
6201 if test no != "$lt_cv_path_NM"; then
6202   NM=$lt_cv_path_NM
6203 else
6204   # Didn't find any BSD compatible name lister, look for dumpbin.
6205   if test -n "$DUMPBIN"; then :
6206     # Let the user override the test.
6207   else
6208     if test -n "$ac_tool_prefix"; then
6209   for ac_prog in dumpbin "link -dump"
6210   do
6211     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if ${ac_cv_prog_DUMPBIN+:} false; then :
6216   $as_echo_n "(cached) " >&6
6217 else
6218   if test -n "$DUMPBIN"; then
6219   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224   IFS=$as_save_IFS
6225   test -z "$as_dir" && as_dir=.
6226     for ac_exec_ext in '' $ac_executable_extensions; do
6227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230     break 2
6231   fi
6232 done
6233   done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 DUMPBIN=$ac_cv_prog_DUMPBIN
6239 if test -n "$DUMPBIN"; then
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6241 $as_echo "$DUMPBIN" >&6; }
6242 else
6243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6245 fi
6246
6247
6248     test -n "$DUMPBIN" && break
6249   done
6250 fi
6251 if test -z "$DUMPBIN"; then
6252   ac_ct_DUMPBIN=$DUMPBIN
6253   for ac_prog in dumpbin "link -dump"
6254 do
6255   # Extract the first word of "$ac_prog", so it can be a program name with args.
6256 set dummy $ac_prog; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6260   $as_echo_n "(cached) " >&6
6261 else
6262   if test -n "$ac_ct_DUMPBIN"; then
6263   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270     for ac_exec_ext in '' $ac_executable_extensions; do
6271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277   done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6283 if test -n "$ac_ct_DUMPBIN"; then
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6285 $as_echo "$ac_ct_DUMPBIN" >&6; }
6286 else
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6289 fi
6290
6291
6292   test -n "$ac_ct_DUMPBIN" && break
6293 done
6294
6295   if test "x$ac_ct_DUMPBIN" = x; then
6296     DUMPBIN=":"
6297   else
6298     case $cross_compiling:$ac_tool_warned in
6299 yes:)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6303 esac
6304     DUMPBIN=$ac_ct_DUMPBIN
6305   fi
6306 fi
6307
6308     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6309     *COFF*)
6310       DUMPBIN="$DUMPBIN -symbols -headers"
6311       ;;
6312     *)
6313       DUMPBIN=:
6314       ;;
6315     esac
6316   fi
6317
6318   if test : != "$DUMPBIN"; then
6319     NM=$DUMPBIN
6320   fi
6321 fi
6322 test -z "$NM" && NM=nm
6323
6324
6325
6326
6327
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6330 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6331 if ${lt_cv_nm_interface+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   lt_cv_nm_interface="BSD nm"
6335   echo "int some_variable = 0;" > conftest.$ac_ext
6336   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6337   (eval "$ac_compile" 2>conftest.err)
6338   cat conftest.err >&5
6339   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6340   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6341   cat conftest.err >&5
6342   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6343   cat conftest.out >&5
6344   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6345     lt_cv_nm_interface="MS dumpbin"
6346   fi
6347   rm -f conftest*
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6350 $as_echo "$lt_cv_nm_interface" >&6; }
6351
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6353 $as_echo_n "checking whether ln -s works... " >&6; }
6354 LN_S=$as_ln_s
6355 if test "$LN_S" = "ln -s"; then
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6357 $as_echo "yes" >&6; }
6358 else
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6360 $as_echo "no, using $LN_S" >&6; }
6361 fi
6362
6363 # find the maximum length of command line arguments
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6365 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6366 if ${lt_cv_sys_max_cmd_len+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369     i=0
6370   teststring=ABCD
6371
6372   case $build_os in
6373   msdosdjgpp*)
6374     # On DJGPP, this test can blow up pretty badly due to problems in libc
6375     # (any single argument exceeding 2000 bytes causes a buffer overrun
6376     # during glob expansion).  Even if it were fixed, the result of this
6377     # check would be larger than it should be.
6378     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6379     ;;
6380
6381   gnu*)
6382     # Under GNU Hurd, this test is not required because there is
6383     # no limit to the length of command line arguments.
6384     # Libtool will interpret -1 as no limit whatsoever
6385     lt_cv_sys_max_cmd_len=-1;
6386     ;;
6387
6388   cygwin* | mingw* | cegcc*)
6389     # On Win9x/ME, this test blows up -- it succeeds, but takes
6390     # about 5 minutes as the teststring grows exponentially.
6391     # Worse, since 9x/ME are not pre-emptively multitasking,
6392     # you end up with a "frozen" computer, even though with patience
6393     # the test eventually succeeds (with a max line length of 256k).
6394     # Instead, let's just punt: use the minimum linelength reported by
6395     # all of the supported platforms: 8192 (on NT/2K/XP).
6396     lt_cv_sys_max_cmd_len=8192;
6397     ;;
6398
6399   mint*)
6400     # On MiNT this can take a long time and run out of memory.
6401     lt_cv_sys_max_cmd_len=8192;
6402     ;;
6403
6404   amigaos*)
6405     # On AmigaOS with pdksh, this test takes hours, literally.
6406     # So we just punt and use a minimum line length of 8192.
6407     lt_cv_sys_max_cmd_len=8192;
6408     ;;
6409
6410   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6411     # This has been around since 386BSD, at least.  Likely further.
6412     if test -x /sbin/sysctl; then
6413       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6414     elif test -x /usr/sbin/sysctl; then
6415       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6416     else
6417       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6418     fi
6419     # And add a safety zone
6420     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6421     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6422     ;;
6423
6424   interix*)
6425     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6426     lt_cv_sys_max_cmd_len=196608
6427     ;;
6428
6429   os2*)
6430     # The test takes a long time on OS/2.
6431     lt_cv_sys_max_cmd_len=8192
6432     ;;
6433
6434   osf*)
6435     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6436     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6437     # nice to cause kernel panics so lets avoid the loop below.
6438     # First set a reasonable default.
6439     lt_cv_sys_max_cmd_len=16384
6440     #
6441     if test -x /sbin/sysconfig; then
6442       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6443         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6444       esac
6445     fi
6446     ;;
6447   sco3.2v5*)
6448     lt_cv_sys_max_cmd_len=102400
6449     ;;
6450   sysv5* | sco5v6* | sysv4.2uw2*)
6451     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6452     if test -n "$kargmax"; then
6453       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6454     else
6455       lt_cv_sys_max_cmd_len=32768
6456     fi
6457     ;;
6458   *)
6459     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6460     if test -n "$lt_cv_sys_max_cmd_len" && \
6461        test undefined != "$lt_cv_sys_max_cmd_len"; then
6462       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6463       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6464     else
6465       # Make teststring a little bigger before we do anything with it.
6466       # a 1K string should be a reasonable start.
6467       for i in 1 2 3 4 5 6 7 8; do
6468         teststring=$teststring$teststring
6469       done
6470       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6471       # If test is not a shell built-in, we'll probably end up computing a
6472       # maximum length that is only half of the actual maximum length, but
6473       # we can't tell.
6474       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6475                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6476               test 17 != "$i" # 1/2 MB should be enough
6477       do
6478         i=`expr $i + 1`
6479         teststring=$teststring$teststring
6480       done
6481       # Only check the string length outside the loop.
6482       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6483       teststring=
6484       # Add a significant safety factor because C++ compilers can tack on
6485       # massive amounts of additional arguments before passing them to the
6486       # linker.  It appears as though 1/2 is a usable value.
6487       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6488     fi
6489     ;;
6490   esac
6491
6492 fi
6493
6494 if test -n "$lt_cv_sys_max_cmd_len"; then
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6496 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6497 else
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6499 $as_echo "none" >&6; }
6500 fi
6501 max_cmd_len=$lt_cv_sys_max_cmd_len
6502
6503
6504
6505
6506
6507
6508 : ${CP="cp -f"}
6509 : ${MV="mv -f"}
6510 : ${RM="rm -f"}
6511
6512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6513   lt_unset=unset
6514 else
6515   lt_unset=false
6516 fi
6517
6518
6519
6520
6521
6522 # test EBCDIC or ASCII
6523 case `echo X|tr X '\101'` in
6524  A) # ASCII based system
6525     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6526   lt_SP2NL='tr \040 \012'
6527   lt_NL2SP='tr \015\012 \040\040'
6528   ;;
6529  *) # EBCDIC based system
6530   lt_SP2NL='tr \100 \n'
6531   lt_NL2SP='tr \r\n \100\100'
6532   ;;
6533 esac
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6544 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6545 if ${lt_cv_to_host_file_cmd+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   case $host in
6549   *-*-mingw* )
6550     case $build in
6551       *-*-mingw* ) # actually msys
6552         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6553         ;;
6554       *-*-cygwin* )
6555         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6556         ;;
6557       * ) # otherwise, assume *nix
6558         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6559         ;;
6560     esac
6561     ;;
6562   *-*-cygwin* )
6563     case $build in
6564       *-*-mingw* ) # actually msys
6565         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6566         ;;
6567       *-*-cygwin* )
6568         lt_cv_to_host_file_cmd=func_convert_file_noop
6569         ;;
6570       * ) # otherwise, assume *nix
6571         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6572         ;;
6573     esac
6574     ;;
6575   * ) # unhandled hosts (and "normal" native builds)
6576     lt_cv_to_host_file_cmd=func_convert_file_noop
6577     ;;
6578 esac
6579
6580 fi
6581
6582 to_host_file_cmd=$lt_cv_to_host_file_cmd
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6584 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6585
6586
6587
6588
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6591 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6592 if ${lt_cv_to_tool_file_cmd+:} false; then :
6593   $as_echo_n "(cached) " >&6
6594 else
6595   #assume ordinary cross tools, or native build.
6596 lt_cv_to_tool_file_cmd=func_convert_file_noop
6597 case $host in
6598   *-*-mingw* )
6599     case $build in
6600       *-*-mingw* ) # actually msys
6601         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6602         ;;
6603     esac
6604     ;;
6605 esac
6606
6607 fi
6608
6609 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6611 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6612
6613
6614
6615
6616
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6618 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6619 if ${lt_cv_ld_reload_flag+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   lt_cv_ld_reload_flag='-r'
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6625 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6626 reload_flag=$lt_cv_ld_reload_flag
6627 case $reload_flag in
6628 "" | " "*) ;;
6629 *) reload_flag=" $reload_flag" ;;
6630 esac
6631 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6632 case $host_os in
6633   cygwin* | mingw* | pw32* | cegcc*)
6634     if test yes != "$GCC"; then
6635       reload_cmds=false
6636     fi
6637     ;;
6638   darwin*)
6639     if test yes = "$GCC"; then
6640       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6641     else
6642       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6643     fi
6644     ;;
6645 esac
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655 if test -n "$ac_tool_prefix"; then
6656   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_OBJDUMP+:} false; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   if test -n "$OBJDUMP"; then
6664   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671     for ac_exec_ext in '' $ac_executable_extensions; do
6672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678   done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 OBJDUMP=$ac_cv_prog_OBJDUMP
6684 if test -n "$OBJDUMP"; then
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6686 $as_echo "$OBJDUMP" >&6; }
6687 else
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692
6693 fi
6694 if test -z "$ac_cv_prog_OBJDUMP"; then
6695   ac_ct_OBJDUMP=$OBJDUMP
6696   # Extract the first word of "objdump", so it can be a program name with args.
6697 set dummy objdump; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6701   $as_echo_n "(cached) " >&6
6702 else
6703   if test -n "$ac_ct_OBJDUMP"; then
6704   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711     for ac_exec_ext in '' $ac_executable_extensions; do
6712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718   done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6724 if test -n "$ac_ct_OBJDUMP"; then
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6726 $as_echo "$ac_ct_OBJDUMP" >&6; }
6727 else
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732   if test "x$ac_ct_OBJDUMP" = x; then
6733     OBJDUMP="false"
6734   else
6735     case $cross_compiling:$ac_tool_warned in
6736 yes:)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741     OBJDUMP=$ac_ct_OBJDUMP
6742   fi
6743 else
6744   OBJDUMP="$ac_cv_prog_OBJDUMP"
6745 fi
6746
6747 test -z "$OBJDUMP" && OBJDUMP=objdump
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6758 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6759 if ${lt_cv_deplibs_check_method+:} false; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   lt_cv_file_magic_cmd='$MAGIC_CMD'
6763 lt_cv_file_magic_test_file=
6764 lt_cv_deplibs_check_method='unknown'
6765 # Need to set the preceding variable on all platforms that support
6766 # interlibrary dependencies.
6767 # 'none' -- dependencies not supported.
6768 # 'unknown' -- same as none, but documents that we really don't know.
6769 # 'pass_all' -- all dependencies passed with no checks.
6770 # 'test_compile' -- check by making test program.
6771 # 'file_magic [[regex]]' -- check by looking for files in library path
6772 # that responds to the $file_magic_cmd with a given extended regex.
6773 # If you have 'file' or equivalent on your system and you're not sure
6774 # whether 'pass_all' will *always* work, you probably want this one.
6775
6776 case $host_os in
6777 aix[4-9]*)
6778   lt_cv_deplibs_check_method=pass_all
6779   ;;
6780
6781 beos*)
6782   lt_cv_deplibs_check_method=pass_all
6783   ;;
6784
6785 bsdi[45]*)
6786   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6787   lt_cv_file_magic_cmd='/usr/bin/file -L'
6788   lt_cv_file_magic_test_file=/shlib/libc.so
6789   ;;
6790
6791 cygwin*)
6792   # func_win32_libid is a shell function defined in ltmain.sh
6793   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6794   lt_cv_file_magic_cmd='func_win32_libid'
6795   ;;
6796
6797 mingw* | pw32*)
6798   # Base MSYS/MinGW do not provide the 'file' command needed by
6799   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6800   # unless we find 'file', for example because we are cross-compiling.
6801   if ( 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* | bitrig*)
6898   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; 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 os2*)
6952   lt_cv_deplibs_check_method=pass_all
6953   ;;
6954 esac
6955
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6958 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6959
6960 file_magic_glob=
6961 want_nocaseglob=no
6962 if test "$build" = "$host"; then
6963   case $host_os in
6964   mingw* | pw32*)
6965     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6966       want_nocaseglob=yes
6967     else
6968       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6969     fi
6970     ;;
6971   esac
6972 fi
6973
6974 file_magic_cmd=$lt_cv_file_magic_cmd
6975 deplibs_check_method=$lt_cv_deplibs_check_method
6976 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 if test -n "$ac_tool_prefix"; then
7000   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7001 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_DLLTOOL+:} false; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   if test -n "$DLLTOOL"; then
7008   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015     for ac_exec_ext in '' $ac_executable_extensions; do
7016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022   done
7023 IFS=$as_save_IFS
7024
7025 fi
7026 fi
7027 DLLTOOL=$ac_cv_prog_DLLTOOL
7028 if test -n "$DLLTOOL"; then
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7030 $as_echo "$DLLTOOL" >&6; }
7031 else
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7034 fi
7035
7036
7037 fi
7038 if test -z "$ac_cv_prog_DLLTOOL"; then
7039   ac_ct_DLLTOOL=$DLLTOOL
7040   # Extract the first word of "dlltool", so it can be a program name with args.
7041 set dummy dlltool; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7045   $as_echo_n "(cached) " >&6
7046 else
7047   if test -n "$ac_ct_DLLTOOL"; then
7048   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055     for ac_exec_ext in '' $ac_executable_extensions; do
7056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062   done
7063 IFS=$as_save_IFS
7064
7065 fi
7066 fi
7067 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7068 if test -n "$ac_ct_DLLTOOL"; then
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7070 $as_echo "$ac_ct_DLLTOOL" >&6; }
7071 else
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7074 fi
7075
7076   if test "x$ac_ct_DLLTOOL" = x; then
7077     DLLTOOL="false"
7078   else
7079     case $cross_compiling:$ac_tool_warned in
7080 yes:)
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned=yes ;;
7084 esac
7085     DLLTOOL=$ac_ct_DLLTOOL
7086   fi
7087 else
7088   DLLTOOL="$ac_cv_prog_DLLTOOL"
7089 fi
7090
7091 test -z "$DLLTOOL" && DLLTOOL=dlltool
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7103 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7104 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7105   $as_echo_n "(cached) " >&6
7106 else
7107   lt_cv_sharedlib_from_linklib_cmd='unknown'
7108
7109 case $host_os in
7110 cygwin* | mingw* | pw32* | cegcc*)
7111   # two different shell functions defined in ltmain.sh;
7112   # decide which one to use based on capabilities of $DLLTOOL
7113   case `$DLLTOOL --help 2>&1` in
7114   *--identify-strict*)
7115     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7116     ;;
7117   *)
7118     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7119     ;;
7120   esac
7121   ;;
7122 *)
7123   # fallback: assume linklib IS sharedlib
7124   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7125   ;;
7126 esac
7127
7128 fi
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7130 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7131 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7132 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7133
7134
7135
7136
7137
7138
7139
7140 if test -n "$ac_tool_prefix"; then
7141   for ac_prog in ar
7142   do
7143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_AR+:} false; then :
7148   $as_echo_n "(cached) " >&6
7149 else
7150   if test -n "$AR"; then
7151   ac_cv_prog_AR="$AR" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158     for ac_exec_ext in '' $ac_executable_extensions; do
7159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165   done
7166 IFS=$as_save_IFS
7167
7168 fi
7169 fi
7170 AR=$ac_cv_prog_AR
7171 if test -n "$AR"; then
7172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7173 $as_echo "$AR" >&6; }
7174 else
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7177 fi
7178
7179
7180     test -n "$AR" && break
7181   done
7182 fi
7183 if test -z "$AR"; then
7184   ac_ct_AR=$AR
7185   for ac_prog in ar
7186 do
7187   # Extract the first word of "$ac_prog", so it can be a program name with args.
7188 set dummy $ac_prog; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$ac_ct_AR"; then
7195   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204     ac_cv_prog_ac_ct_AR="$ac_prog"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7215 if test -n "$ac_ct_AR"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7217 $as_echo "$ac_ct_AR" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224   test -n "$ac_ct_AR" && break
7225 done
7226
7227   if test "x$ac_ct_AR" = x; then
7228     AR="false"
7229   else
7230     case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236     AR=$ac_ct_AR
7237   fi
7238 fi
7239
7240 : ${AR=ar}
7241 : ${AR_FLAGS=cru}
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7254 $as_echo_n "checking for archiver @FILE support... " >&6; }
7255 if ${lt_cv_ar_at_file+:} false; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258   lt_cv_ar_at_file=no
7259    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h.  */
7261
7262 int
7263 main ()
7264 {
7265
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_compile "$LINENO"; then :
7271   echo conftest.$ac_objext > conftest.lst
7272       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7273       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7274   (eval $lt_ar_try) 2>&5
7275   ac_status=$?
7276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7277   test $ac_status = 0; }
7278       if test 0 -eq "$ac_status"; then
7279         # Ensure the archiver fails upon bogus file names.
7280         rm -f conftest.$ac_objext libconftest.a
7281         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7282   (eval $lt_ar_try) 2>&5
7283   ac_status=$?
7284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7285   test $ac_status = 0; }
7286         if test 0 -ne "$ac_status"; then
7287           lt_cv_ar_at_file=@
7288         fi
7289       fi
7290       rm -f conftest.* libconftest.a
7291
7292 fi
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7297 $as_echo "$lt_cv_ar_at_file" >&6; }
7298
7299 if test no = "$lt_cv_ar_at_file"; then
7300   archiver_list_spec=
7301 else
7302   archiver_list_spec=$lt_cv_ar_at_file
7303 fi
7304
7305
7306
7307
7308
7309
7310
7311 if test -n "$ac_tool_prefix"; then
7312   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7313 set dummy ${ac_tool_prefix}strip; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_STRIP+:} false; then :
7317   $as_echo_n "(cached) " >&6
7318 else
7319   if test -n "$STRIP"; then
7320   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325   IFS=$as_save_IFS
7326   test -z "$as_dir" && as_dir=.
7327     for ac_exec_ext in '' $ac_executable_extensions; do
7328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331     break 2
7332   fi
7333 done
7334   done
7335 IFS=$as_save_IFS
7336
7337 fi
7338 fi
7339 STRIP=$ac_cv_prog_STRIP
7340 if test -n "$STRIP"; then
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7342 $as_echo "$STRIP" >&6; }
7343 else
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 fi
7347
7348
7349 fi
7350 if test -z "$ac_cv_prog_STRIP"; then
7351   ac_ct_STRIP=$STRIP
7352   # Extract the first word of "strip", so it can be a program name with args.
7353 set dummy strip; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7357   $as_echo_n "(cached) " >&6
7358 else
7359   if test -n "$ac_ct_STRIP"; then
7360   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_exec_ext in '' $ac_executable_extensions; do
7368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369     ac_cv_prog_ac_ct_STRIP="strip"
7370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374   done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7380 if test -n "$ac_ct_STRIP"; then
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7382 $as_echo "$ac_ct_STRIP" >&6; }
7383 else
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388   if test "x$ac_ct_STRIP" = x; then
7389     STRIP=":"
7390   else
7391     case $cross_compiling:$ac_tool_warned in
7392 yes:)
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395 ac_tool_warned=yes ;;
7396 esac
7397     STRIP=$ac_ct_STRIP
7398   fi
7399 else
7400   STRIP="$ac_cv_prog_STRIP"
7401 fi
7402
7403 test -z "$STRIP" && STRIP=:
7404
7405
7406
7407
7408
7409
7410 if test -n "$ac_tool_prefix"; then
7411   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_RANLIB+:} false; then :
7416   $as_echo_n "(cached) " >&6
7417 else
7418   if test -n "$RANLIB"; then
7419   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426     for ac_exec_ext in '' $ac_executable_extensions; do
7427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433   done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 RANLIB=$ac_cv_prog_RANLIB
7439 if test -n "$RANLIB"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7441 $as_echo "$RANLIB" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447
7448 fi
7449 if test -z "$ac_cv_prog_RANLIB"; then
7450   ac_ct_RANLIB=$RANLIB
7451   # Extract the first word of "ranlib", so it can be a program name with args.
7452 set dummy ranlib; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   if test -n "$ac_ct_RANLIB"; then
7459   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466     for ac_exec_ext in '' $ac_executable_extensions; do
7467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468     ac_cv_prog_ac_ct_RANLIB="ranlib"
7469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473   done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7479 if test -n "$ac_ct_RANLIB"; then
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7481 $as_echo "$ac_ct_RANLIB" >&6; }
7482 else
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487   if test "x$ac_ct_RANLIB" = x; then
7488     RANLIB=":"
7489   else
7490     case $cross_compiling:$ac_tool_warned in
7491 yes:)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496     RANLIB=$ac_ct_RANLIB
7497   fi
7498 else
7499   RANLIB="$ac_cv_prog_RANLIB"
7500 fi
7501
7502 test -z "$RANLIB" && RANLIB=:
7503
7504
7505
7506
7507
7508
7509 # Determine commands to create old-style static archives.
7510 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7511 old_postinstall_cmds='chmod 644 $oldlib'
7512 old_postuninstall_cmds=
7513
7514 if test -n "$RANLIB"; then
7515   case $host_os in
7516   bitrig* | openbsd*)
7517     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7518     ;;
7519   *)
7520     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7521     ;;
7522   esac
7523   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7524 fi
7525
7526 case $host_os in
7527   darwin*)
7528     lock_old_archive_extraction=yes ;;
7529   *)
7530     lock_old_archive_extraction=no ;;
7531 esac
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
7569
7570
7571 # If no C compiler was specified, use CC.
7572 LTCC=${LTCC-"$CC"}
7573
7574 # If no C compiler flags were specified, use CFLAGS.
7575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7576
7577 # Allow CC to be a program name with arguments.
7578 compiler=$CC
7579
7580
7581 # Check for command to grab the raw symbol name followed by C symbol from nm.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7583 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7584 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7585   $as_echo_n "(cached) " >&6
7586 else
7587
7588 # These are sane defaults that work on at least a few old systems.
7589 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7590
7591 # Character class describing NM global symbol codes.
7592 symcode='[BCDEGRST]'
7593
7594 # Regexp to match symbols that can be accessed directly from C.
7595 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7596
7597 # Define system-specific variables.
7598 case $host_os in
7599 aix*)
7600   symcode='[BCDT]'
7601   ;;
7602 cygwin* | mingw* | pw32* | cegcc*)
7603   symcode='[ABCDGISTW]'
7604   ;;
7605 hpux*)
7606   if test ia64 = "$host_cpu"; then
7607     symcode='[ABCDEGRST]'
7608   fi
7609   ;;
7610 irix* | nonstopux*)
7611   symcode='[BCDEGRST]'
7612   ;;
7613 osf*)
7614   symcode='[BCDEGQRST]'
7615   ;;
7616 solaris*)
7617   symcode='[BDRT]'
7618   ;;
7619 sco3.2v5*)
7620   symcode='[DT]'
7621   ;;
7622 sysv4.2uw2*)
7623   symcode='[DT]'
7624   ;;
7625 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7626   symcode='[ABDT]'
7627   ;;
7628 sysv4)
7629   symcode='[DFNSTU]'
7630   ;;
7631 esac
7632
7633 # If we're using GNU nm, then use its standard symbol codes.
7634 case `$NM -V 2>&1` in
7635 *GNU* | *'with BFD'*)
7636   symcode='[ABCDGIRSTW]' ;;
7637 esac
7638
7639 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7640   # Gets list of data symbols to import.
7641   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7642   # Adjust the below global symbol transforms to fixup imported variables.
7643   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7644   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7645   lt_c_name_lib_hook="\
7646   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7647   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7648 else
7649   # Disable hooks by default.
7650   lt_cv_sys_global_symbol_to_import=
7651   lt_cdecl_hook=
7652   lt_c_name_hook=
7653   lt_c_name_lib_hook=
7654 fi
7655
7656 # Transform an extracted symbol line into a proper C declaration.
7657 # Some systems (esp. on ia64) link data and code symbols differently,
7658 # so use this general approach.
7659 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7660 $lt_cdecl_hook\
7661 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7662 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7663
7664 # Transform an extracted symbol line into symbol name and symbol address
7665 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7666 $lt_c_name_hook\
7667 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7668 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7669
7670 # Transform an extracted symbol line into symbol name with lib prefix and
7671 # symbol address.
7672 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7673 $lt_c_name_lib_hook\
7674 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7675 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7676 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7677
7678 # Handle CRLF in mingw tool chain
7679 opt_cr=
7680 case $build_os in
7681 mingw*)
7682   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7683   ;;
7684 esac
7685
7686 # Try without a prefix underscore, then with it.
7687 for ac_symprfx in "" "_"; do
7688
7689   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7690   symxfrm="\\1 $ac_symprfx\\2 \\2"
7691
7692   # Write the raw and C identifiers.
7693   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7694     # Fake it for dumpbin and say T for any non-static function,
7695     # D for any global variable and I for any imported variable.
7696     # Also find C++ and __fastcall symbols from MSVC++,
7697     # which start with @ or ?.
7698     lt_cv_sys_global_symbol_pipe="$AWK '"\
7699 "     {last_section=section; section=\$ 3};"\
7700 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7701 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7702 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7703 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7704 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7705 "     \$ 0!~/External *\|/{next};"\
7706 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7707 "     {if(hide[section]) next};"\
7708 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7709 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7710 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7711 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7712 "     ' prfx=^$ac_symprfx"
7713   else
7714     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7715   fi
7716   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7717
7718   # Check to see that the pipe works correctly.
7719   pipe_works=no
7720
7721   rm -f conftest*
7722   cat > conftest.$ac_ext <<_LT_EOF
7723 #ifdef __cplusplus
7724 extern "C" {
7725 #endif
7726 char nm_test_var;
7727 void nm_test_func(void);
7728 void nm_test_func(void){}
7729 #ifdef __cplusplus
7730 }
7731 #endif
7732 int main(){nm_test_var='a';nm_test_func();return(0);}
7733 _LT_EOF
7734
7735   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736   (eval $ac_compile) 2>&5
7737   ac_status=$?
7738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739   test $ac_status = 0; }; then
7740     # Now try to grab the symbols.
7741     nlist=conftest.nm
7742     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7743   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7744   ac_status=$?
7745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746   test $ac_status = 0; } && test -s "$nlist"; then
7747       # Try sorting and uniquifying the output.
7748       if sort "$nlist" | uniq > "$nlist"T; then
7749         mv -f "$nlist"T "$nlist"
7750       else
7751         rm -f "$nlist"T
7752       fi
7753
7754       # Make sure that we snagged all the symbols we need.
7755       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7756         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7757           cat <<_LT_EOF > conftest.$ac_ext
7758 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7759 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7760 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7761    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7762 # define LT_DLSYM_CONST
7763 #elif defined __osf__
7764 /* This system does not cope well with relocations in const data.  */
7765 # define LT_DLSYM_CONST
7766 #else
7767 # define LT_DLSYM_CONST const
7768 #endif
7769
7770 #ifdef __cplusplus
7771 extern "C" {
7772 #endif
7773
7774 _LT_EOF
7775           # Now generate the symbol file.
7776           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7777
7778           cat <<_LT_EOF >> conftest.$ac_ext
7779
7780 /* The mapping between symbol names and symbols.  */
7781 LT_DLSYM_CONST struct {
7782   const char *name;
7783   void       *address;
7784 }
7785 lt__PROGRAM__LTX_preloaded_symbols[] =
7786 {
7787   { "@PROGRAM@", (void *) 0 },
7788 _LT_EOF
7789           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7790           cat <<\_LT_EOF >> conftest.$ac_ext
7791   {0, (void *) 0}
7792 };
7793
7794 /* This works around a problem in FreeBSD linker */
7795 #ifdef FREEBSD_WORKAROUND
7796 static const void *lt_preloaded_setup() {
7797   return lt__PROGRAM__LTX_preloaded_symbols;
7798 }
7799 #endif
7800
7801 #ifdef __cplusplus
7802 }
7803 #endif
7804 _LT_EOF
7805           # Now try linking the two files.
7806           mv conftest.$ac_objext conftstm.$ac_objext
7807           lt_globsym_save_LIBS=$LIBS
7808           lt_globsym_save_CFLAGS=$CFLAGS
7809           LIBS=conftstm.$ac_objext
7810           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7811           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7812   (eval $ac_link) 2>&5
7813   ac_status=$?
7814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7816             pipe_works=yes
7817           fi
7818           LIBS=$lt_globsym_save_LIBS
7819           CFLAGS=$lt_globsym_save_CFLAGS
7820         else
7821           echo "cannot find nm_test_func in $nlist" >&5
7822         fi
7823       else
7824         echo "cannot find nm_test_var in $nlist" >&5
7825       fi
7826     else
7827       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7828     fi
7829   else
7830     echo "$progname: failed program was:" >&5
7831     cat conftest.$ac_ext >&5
7832   fi
7833   rm -rf conftest* conftst*
7834
7835   # Do not use the global_symbol_pipe unless it works.
7836   if test yes = "$pipe_works"; then
7837     break
7838   else
7839     lt_cv_sys_global_symbol_pipe=
7840   fi
7841 done
7842
7843 fi
7844
7845 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7846   lt_cv_sys_global_symbol_to_cdecl=
7847 fi
7848 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7850 $as_echo "failed" >&6; }
7851 else
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7853 $as_echo "ok" >&6; }
7854 fi
7855
7856 # Response file support.
7857 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7858   nm_file_list_spec='@'
7859 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7860   nm_file_list_spec='@'
7861 fi
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7900 $as_echo_n "checking for sysroot... " >&6; }
7901
7902 # Check whether --with-sysroot was given.
7903 if test "${with_sysroot+set}" = set; then :
7904   withval=$with_sysroot;
7905 else
7906   with_sysroot=no
7907 fi
7908
7909
7910 lt_sysroot=
7911 case $with_sysroot in #(
7912  yes)
7913    if test yes = "$GCC"; then
7914      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7915    fi
7916    ;; #(
7917  /*)
7918    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7919    ;; #(
7920  no|'')
7921    ;; #(
7922  *)
7923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7924 $as_echo "$with_sysroot" >&6; }
7925    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7926    ;;
7927 esac
7928
7929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7930 $as_echo "${lt_sysroot:-no}" >&6; }
7931
7932
7933
7934
7935
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7937 $as_echo_n "checking for a working dd... " >&6; }
7938 if ${ac_cv_path_lt_DD+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   printf 0123456789abcdef0123456789abcdef >conftest.i
7942 cat conftest.i conftest.i >conftest2.i
7943 : ${lt_DD:=$DD}
7944 if test -z "$lt_DD"; then
7945   ac_path_lt_DD_found=false
7946   # Loop through the user's path and test for each of PROGNAME-LIST
7947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_prog in dd; do
7953     for ac_exec_ext in '' $ac_executable_extensions; do
7954       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7955       as_fn_executable_p "$ac_path_lt_DD" || continue
7956 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7957   cmp -s conftest.i conftest.out \
7958   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7959 fi
7960       $ac_path_lt_DD_found && break 3
7961     done
7962   done
7963   done
7964 IFS=$as_save_IFS
7965   if test -z "$ac_cv_path_lt_DD"; then
7966     :
7967   fi
7968 else
7969   ac_cv_path_lt_DD=$lt_DD
7970 fi
7971
7972 rm -f conftest.i conftest2.i conftest.out
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7975 $as_echo "$ac_cv_path_lt_DD" >&6; }
7976
7977
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7979 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7980 if ${lt_cv_truncate_bin+:} false; then :
7981   $as_echo_n "(cached) " >&6
7982 else
7983   printf 0123456789abcdef0123456789abcdef >conftest.i
7984 cat conftest.i conftest.i >conftest2.i
7985 lt_cv_truncate_bin=
7986 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7987   cmp -s conftest.i conftest.out \
7988   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7989 fi
7990 rm -f conftest.i conftest2.i conftest.out
7991 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7994 $as_echo "$lt_cv_truncate_bin" >&6; }
7995
7996
7997
7998
7999
8000
8001
8002 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8003 func_cc_basename ()
8004 {
8005     for cc_temp in $*""; do
8006       case $cc_temp in
8007         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8008         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8009         \-*) ;;
8010         *) break;;
8011       esac
8012     done
8013     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8014 }
8015
8016 # Check whether --enable-libtool-lock was given.
8017 if test "${enable_libtool_lock+set}" = set; then :
8018   enableval=$enable_libtool_lock;
8019 fi
8020
8021 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8022
8023 # Some flags need to be propagated to the compiler or linker for good
8024 # libtool support.
8025 case $host in
8026 ia64-*-hpux*)
8027   # Find out what ABI is being produced by ac_compile, and set mode
8028   # options accordingly.
8029   echo 'int i;' > conftest.$ac_ext
8030   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8031   (eval $ac_compile) 2>&5
8032   ac_status=$?
8033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034   test $ac_status = 0; }; then
8035     case `/usr/bin/file conftest.$ac_objext` in
8036       *ELF-32*)
8037         HPUX_IA64_MODE=32
8038         ;;
8039       *ELF-64*)
8040         HPUX_IA64_MODE=64
8041         ;;
8042     esac
8043   fi
8044   rm -rf conftest*
8045   ;;
8046 *-*-irix6*)
8047   # Find out what ABI is being produced by ac_compile, and set linker
8048   # options accordingly.
8049   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8051   (eval $ac_compile) 2>&5
8052   ac_status=$?
8053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054   test $ac_status = 0; }; then
8055     if test yes = "$lt_cv_prog_gnu_ld"; then
8056       case `/usr/bin/file conftest.$ac_objext` in
8057         *32-bit*)
8058           LD="${LD-ld} -melf32bsmip"
8059           ;;
8060         *N32*)
8061           LD="${LD-ld} -melf32bmipn32"
8062           ;;
8063         *64-bit*)
8064           LD="${LD-ld} -melf64bmip"
8065         ;;
8066       esac
8067     else
8068       case `/usr/bin/file conftest.$ac_objext` in
8069         *32-bit*)
8070           LD="${LD-ld} -32"
8071           ;;
8072         *N32*)
8073           LD="${LD-ld} -n32"
8074           ;;
8075         *64-bit*)
8076           LD="${LD-ld} -64"
8077           ;;
8078       esac
8079     fi
8080   fi
8081   rm -rf conftest*
8082   ;;
8083
8084 mips64*-*linux*)
8085   # Find out what ABI is being produced by ac_compile, and set linker
8086   # options accordingly.
8087   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8088   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8089   (eval $ac_compile) 2>&5
8090   ac_status=$?
8091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092   test $ac_status = 0; }; then
8093     emul=elf
8094     case `/usr/bin/file conftest.$ac_objext` in
8095       *32-bit*)
8096         emul="${emul}32"
8097         ;;
8098       *64-bit*)
8099         emul="${emul}64"
8100         ;;
8101     esac
8102     case `/usr/bin/file conftest.$ac_objext` in
8103       *MSB*)
8104         emul="${emul}btsmip"
8105         ;;
8106       *LSB*)
8107         emul="${emul}ltsmip"
8108         ;;
8109     esac
8110     case `/usr/bin/file conftest.$ac_objext` in
8111       *N32*)
8112         emul="${emul}n32"
8113         ;;
8114     esac
8115     LD="${LD-ld} -m $emul"
8116   fi
8117   rm -rf conftest*
8118   ;;
8119
8120 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8121 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8122   # Find out what ABI is being produced by ac_compile, and set linker
8123   # options accordingly.  Note that the listed cases only cover the
8124   # situations where additional linker options are needed (such as when
8125   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8126   # vice versa); the common cases where no linker options are needed do
8127   # not appear in the list.
8128   echo 'int i;' > conftest.$ac_ext
8129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8130   (eval $ac_compile) 2>&5
8131   ac_status=$?
8132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133   test $ac_status = 0; }; then
8134     case `/usr/bin/file conftest.o` in
8135       *32-bit*)
8136         case $host in
8137           x86_64-*kfreebsd*-gnu)
8138             LD="${LD-ld} -m elf_i386_fbsd"
8139             ;;
8140           x86_64-*linux*)
8141             case `/usr/bin/file conftest.o` in
8142               *x86-64*)
8143                 LD="${LD-ld} -m elf32_x86_64"
8144                 ;;
8145               *)
8146                 LD="${LD-ld} -m elf_i386"
8147                 ;;
8148             esac
8149             ;;
8150           powerpc64le-*linux*)
8151             LD="${LD-ld} -m elf32lppclinux"
8152             ;;
8153           powerpc64-*linux*)
8154             LD="${LD-ld} -m elf32ppclinux"
8155             ;;
8156           s390x-*linux*)
8157             LD="${LD-ld} -m elf_s390"
8158             ;;
8159           sparc64-*linux*)
8160             LD="${LD-ld} -m elf32_sparc"
8161             ;;
8162         esac
8163         ;;
8164       *64-bit*)
8165         case $host in
8166           x86_64-*kfreebsd*-gnu)
8167             LD="${LD-ld} -m elf_x86_64_fbsd"
8168             ;;
8169           x86_64-*linux*)
8170             LD="${LD-ld} -m elf_x86_64"
8171             ;;
8172           powerpcle-*linux*)
8173             LD="${LD-ld} -m elf64lppc"
8174             ;;
8175           powerpc-*linux*)
8176             LD="${LD-ld} -m elf64ppc"
8177             ;;
8178           s390*-*linux*|s390*-*tpf*)
8179             LD="${LD-ld} -m elf64_s390"
8180             ;;
8181           sparc*-*linux*)
8182             LD="${LD-ld} -m elf64_sparc"
8183             ;;
8184         esac
8185         ;;
8186     esac
8187   fi
8188   rm -rf conftest*
8189   ;;
8190
8191 *-*-sco3.2v5*)
8192   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8193   SAVE_CFLAGS=$CFLAGS
8194   CFLAGS="$CFLAGS -belf"
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8196 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8197 if ${lt_cv_cc_needs_belf+:} false; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   ac_ext=c
8201 ac_cpp='$CPP $CPPFLAGS'
8202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8205
8206      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h.  */
8208
8209 int
8210 main ()
8211 {
8212
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218   lt_cv_cc_needs_belf=yes
8219 else
8220   lt_cv_cc_needs_belf=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext \
8223     conftest$ac_exeext conftest.$ac_ext
8224      ac_ext=c
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8232 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8233   if test yes != "$lt_cv_cc_needs_belf"; then
8234     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8235     CFLAGS=$SAVE_CFLAGS
8236   fi
8237   ;;
8238 *-*solaris*)
8239   # Find out what ABI is being produced by ac_compile, and set linker
8240   # options accordingly.
8241   echo 'int i;' > conftest.$ac_ext
8242   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8243   (eval $ac_compile) 2>&5
8244   ac_status=$?
8245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8246   test $ac_status = 0; }; then
8247     case `/usr/bin/file conftest.o` in
8248     *64-bit*)
8249       case $lt_cv_prog_gnu_ld in
8250       yes*)
8251         case $host in
8252         i?86-*-solaris*|x86_64-*-solaris*)
8253           LD="${LD-ld} -m elf_x86_64"
8254           ;;
8255         sparc*-*-solaris*)
8256           LD="${LD-ld} -m elf64_sparc"
8257           ;;
8258         esac
8259         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8260         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8261           LD=${LD-ld}_sol2
8262         fi
8263         ;;
8264       *)
8265         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8266           LD="${LD-ld} -64"
8267         fi
8268         ;;
8269       esac
8270       ;;
8271     esac
8272   fi
8273   rm -rf conftest*
8274   ;;
8275 esac
8276
8277 need_locks=$enable_libtool_lock
8278
8279 if test -n "$ac_tool_prefix"; then
8280   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8281 set dummy ${ac_tool_prefix}mt; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   if test -n "$MANIFEST_TOOL"; then
8288   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295     for ac_exec_ext in '' $ac_executable_extensions; do
8296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302   done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8308 if test -n "$MANIFEST_TOOL"; then
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8310 $as_echo "$MANIFEST_TOOL" >&6; }
8311 else
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316
8317 fi
8318 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8319   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8320   # Extract the first word of "mt", so it can be a program name with args.
8321 set dummy mt; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8325   $as_echo_n "(cached) " >&6
8326 else
8327   if test -n "$ac_ct_MANIFEST_TOOL"; then
8328   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333   IFS=$as_save_IFS
8334   test -z "$as_dir" && as_dir=.
8335     for ac_exec_ext in '' $ac_executable_extensions; do
8336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339     break 2
8340   fi
8341 done
8342   done
8343 IFS=$as_save_IFS
8344
8345 fi
8346 fi
8347 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8348 if test -n "$ac_ct_MANIFEST_TOOL"; then
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8350 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8351 else
8352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 fi
8355
8356   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8357     MANIFEST_TOOL=":"
8358   else
8359     case $cross_compiling:$ac_tool_warned in
8360 yes:)
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8363 ac_tool_warned=yes ;;
8364 esac
8365     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8366   fi
8367 else
8368   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8369 fi
8370
8371 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8373 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8374 if ${lt_cv_path_mainfest_tool+:} false; then :
8375   $as_echo_n "(cached) " >&6
8376 else
8377   lt_cv_path_mainfest_tool=no
8378   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8379   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8380   cat conftest.err >&5
8381   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8382     lt_cv_path_mainfest_tool=yes
8383   fi
8384   rm -f conftest*
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8387 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8388 if test yes != "$lt_cv_path_mainfest_tool"; then
8389   MANIFEST_TOOL=:
8390 fi
8391
8392
8393
8394
8395
8396
8397   case $host_os in
8398     rhapsody* | darwin*)
8399     if test -n "$ac_tool_prefix"; then
8400   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8401 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   if test -n "$DSYMUTIL"; then
8408   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415     for ac_exec_ext in '' $ac_executable_extensions; do
8416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422   done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8428 if test -n "$DSYMUTIL"; then
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8430 $as_echo "$DSYMUTIL" >&6; }
8431 else
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436
8437 fi
8438 if test -z "$ac_cv_prog_DSYMUTIL"; then
8439   ac_ct_DSYMUTIL=$DSYMUTIL
8440   # Extract the first word of "dsymutil", so it can be a program name with args.
8441 set dummy dsymutil; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8445   $as_echo_n "(cached) " >&6
8446 else
8447   if test -n "$ac_ct_DSYMUTIL"; then
8448   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8449 else
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453   IFS=$as_save_IFS
8454   test -z "$as_dir" && as_dir=.
8455     for ac_exec_ext in '' $ac_executable_extensions; do
8456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8457     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459     break 2
8460   fi
8461 done
8462   done
8463 IFS=$as_save_IFS
8464
8465 fi
8466 fi
8467 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8468 if test -n "$ac_ct_DSYMUTIL"; then
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8470 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8471 else
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8474 fi
8475
8476   if test "x$ac_ct_DSYMUTIL" = x; then
8477     DSYMUTIL=":"
8478   else
8479     case $cross_compiling:$ac_tool_warned in
8480 yes:)
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8483 ac_tool_warned=yes ;;
8484 esac
8485     DSYMUTIL=$ac_ct_DSYMUTIL
8486   fi
8487 else
8488   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8489 fi
8490
8491     if test -n "$ac_tool_prefix"; then
8492   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8493 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_prog_NMEDIT+:} false; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   if test -n "$NMEDIT"; then
8500   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505   IFS=$as_save_IFS
8506   test -z "$as_dir" && as_dir=.
8507     for ac_exec_ext in '' $ac_executable_extensions; do
8508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511     break 2
8512   fi
8513 done
8514   done
8515 IFS=$as_save_IFS
8516
8517 fi
8518 fi
8519 NMEDIT=$ac_cv_prog_NMEDIT
8520 if test -n "$NMEDIT"; then
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8522 $as_echo "$NMEDIT" >&6; }
8523 else
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527
8528
8529 fi
8530 if test -z "$ac_cv_prog_NMEDIT"; then
8531   ac_ct_NMEDIT=$NMEDIT
8532   # Extract the first word of "nmedit", so it can be a program name with args.
8533 set dummy nmedit; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8537   $as_echo_n "(cached) " >&6
8538 else
8539   if test -n "$ac_ct_NMEDIT"; then
8540   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545   IFS=$as_save_IFS
8546   test -z "$as_dir" && as_dir=.
8547     for ac_exec_ext in '' $ac_executable_extensions; do
8548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551     break 2
8552   fi
8553 done
8554   done
8555 IFS=$as_save_IFS
8556
8557 fi
8558 fi
8559 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8560 if test -n "$ac_ct_NMEDIT"; then
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8562 $as_echo "$ac_ct_NMEDIT" >&6; }
8563 else
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8566 fi
8567
8568   if test "x$ac_ct_NMEDIT" = x; then
8569     NMEDIT=":"
8570   else
8571     case $cross_compiling:$ac_tool_warned in
8572 yes:)
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8575 ac_tool_warned=yes ;;
8576 esac
8577     NMEDIT=$ac_ct_NMEDIT
8578   fi
8579 else
8580   NMEDIT="$ac_cv_prog_NMEDIT"
8581 fi
8582
8583     if test -n "$ac_tool_prefix"; then
8584   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8585 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if ${ac_cv_prog_LIPO+:} false; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591   if test -n "$LIPO"; then
8592   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597   IFS=$as_save_IFS
8598   test -z "$as_dir" && as_dir=.
8599     for ac_exec_ext in '' $ac_executable_extensions; do
8600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603     break 2
8604   fi
8605 done
8606   done
8607 IFS=$as_save_IFS
8608
8609 fi
8610 fi
8611 LIPO=$ac_cv_prog_LIPO
8612 if test -n "$LIPO"; then
8613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8614 $as_echo "$LIPO" >&6; }
8615 else
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619
8620
8621 fi
8622 if test -z "$ac_cv_prog_LIPO"; then
8623   ac_ct_LIPO=$LIPO
8624   # Extract the first word of "lipo", so it can be a program name with args.
8625 set dummy lipo; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   if test -n "$ac_ct_LIPO"; then
8632   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8633 else
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in $PATH
8636 do
8637   IFS=$as_save_IFS
8638   test -z "$as_dir" && as_dir=.
8639     for ac_exec_ext in '' $ac_executable_extensions; do
8640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8641     ac_cv_prog_ac_ct_LIPO="lipo"
8642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643     break 2
8644   fi
8645 done
8646   done
8647 IFS=$as_save_IFS
8648
8649 fi
8650 fi
8651 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8652 if test -n "$ac_ct_LIPO"; then
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8654 $as_echo "$ac_ct_LIPO" >&6; }
8655 else
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8658 fi
8659
8660   if test "x$ac_ct_LIPO" = x; then
8661     LIPO=":"
8662   else
8663     case $cross_compiling:$ac_tool_warned in
8664 yes:)
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667 ac_tool_warned=yes ;;
8668 esac
8669     LIPO=$ac_ct_LIPO
8670   fi
8671 else
8672   LIPO="$ac_cv_prog_LIPO"
8673 fi
8674
8675     if test -n "$ac_tool_prefix"; then
8676   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8677 set dummy ${ac_tool_prefix}otool; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_OTOOL+:} false; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   if test -n "$OTOOL"; then
8684   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689   IFS=$as_save_IFS
8690   test -z "$as_dir" && as_dir=.
8691     for ac_exec_ext in '' $ac_executable_extensions; do
8692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695     break 2
8696   fi
8697 done
8698   done
8699 IFS=$as_save_IFS
8700
8701 fi
8702 fi
8703 OTOOL=$ac_cv_prog_OTOOL
8704 if test -n "$OTOOL"; then
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8706 $as_echo "$OTOOL" >&6; }
8707 else
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713 fi
8714 if test -z "$ac_cv_prog_OTOOL"; then
8715   ac_ct_OTOOL=$OTOOL
8716   # Extract the first word of "otool", so it can be a program name with args.
8717 set dummy otool; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   if test -n "$ac_ct_OTOOL"; then
8724   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729   IFS=$as_save_IFS
8730   test -z "$as_dir" && as_dir=.
8731     for ac_exec_ext in '' $ac_executable_extensions; do
8732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733     ac_cv_prog_ac_ct_OTOOL="otool"
8734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735     break 2
8736   fi
8737 done
8738   done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8744 if test -n "$ac_ct_OTOOL"; then
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8746 $as_echo "$ac_ct_OTOOL" >&6; }
8747 else
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752   if test "x$ac_ct_OTOOL" = x; then
8753     OTOOL=":"
8754   else
8755     case $cross_compiling:$ac_tool_warned in
8756 yes:)
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759 ac_tool_warned=yes ;;
8760 esac
8761     OTOOL=$ac_ct_OTOOL
8762   fi
8763 else
8764   OTOOL="$ac_cv_prog_OTOOL"
8765 fi
8766
8767     if test -n "$ac_tool_prefix"; then
8768   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8769 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if ${ac_cv_prog_OTOOL64+:} false; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   if test -n "$OTOOL64"; then
8776   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8777 else
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8780 do
8781   IFS=$as_save_IFS
8782   test -z "$as_dir" && as_dir=.
8783     for ac_exec_ext in '' $ac_executable_extensions; do
8784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787     break 2
8788   fi
8789 done
8790   done
8791 IFS=$as_save_IFS
8792
8793 fi
8794 fi
8795 OTOOL64=$ac_cv_prog_OTOOL64
8796 if test -n "$OTOOL64"; then
8797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8798 $as_echo "$OTOOL64" >&6; }
8799 else
8800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8802 fi
8803
8804
8805 fi
8806 if test -z "$ac_cv_prog_OTOOL64"; then
8807   ac_ct_OTOOL64=$OTOOL64
8808   # Extract the first word of "otool64", so it can be a program name with args.
8809 set dummy otool64; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815   if test -n "$ac_ct_OTOOL64"; then
8816   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8820 do
8821   IFS=$as_save_IFS
8822   test -z "$as_dir" && as_dir=.
8823     for ac_exec_ext in '' $ac_executable_extensions; do
8824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825     ac_cv_prog_ac_ct_OTOOL64="otool64"
8826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827     break 2
8828   fi
8829 done
8830   done
8831 IFS=$as_save_IFS
8832
8833 fi
8834 fi
8835 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8836 if test -n "$ac_ct_OTOOL64"; then
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8838 $as_echo "$ac_ct_OTOOL64" >&6; }
8839 else
8840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8842 fi
8843
8844   if test "x$ac_ct_OTOOL64" = x; then
8845     OTOOL64=":"
8846   else
8847     case $cross_compiling:$ac_tool_warned in
8848 yes:)
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851 ac_tool_warned=yes ;;
8852 esac
8853     OTOOL64=$ac_ct_OTOOL64
8854   fi
8855 else
8856   OTOOL64="$ac_cv_prog_OTOOL64"
8857 fi
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8886 $as_echo_n "checking for -single_module linker flag... " >&6; }
8887 if ${lt_cv_apple_cc_single_mod+:} false; then :
8888   $as_echo_n "(cached) " >&6
8889 else
8890   lt_cv_apple_cc_single_mod=no
8891       if test -z "$LT_MULTI_MODULE"; then
8892         # By default we will add the -single_module flag. You can override
8893         # by either setting the environment variable LT_MULTI_MODULE
8894         # non-empty at configure time, or by adding -multi_module to the
8895         # link flags.
8896         rm -rf libconftest.dylib*
8897         echo "int foo(void){return 1;}" > conftest.c
8898         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8899 -dynamiclib -Wl,-single_module conftest.c" >&5
8900         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8901           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8902         _lt_result=$?
8903         # If there is a non-empty error log, and "single_module"
8904         # appears in it, assume the flag caused a linker warning
8905         if test -s conftest.err && $GREP single_module conftest.err; then
8906           cat conftest.err >&5
8907         # Otherwise, if the output was created with a 0 exit code from
8908         # the compiler, it worked.
8909         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8910           lt_cv_apple_cc_single_mod=yes
8911         else
8912           cat conftest.err >&5
8913         fi
8914         rm -rf libconftest.dylib*
8915         rm -f conftest.*
8916       fi
8917 fi
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8919 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8920
8921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8922 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8923 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   lt_cv_ld_exported_symbols_list=no
8927       save_LDFLAGS=$LDFLAGS
8928       echo "_main" > conftest.sym
8929       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8930       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h.  */
8932
8933 int
8934 main ()
8935 {
8936
8937   ;
8938   return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8942   lt_cv_ld_exported_symbols_list=yes
8943 else
8944   lt_cv_ld_exported_symbols_list=no
8945 fi
8946 rm -f core conftest.err conftest.$ac_objext \
8947     conftest$ac_exeext conftest.$ac_ext
8948         LDFLAGS=$save_LDFLAGS
8949
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8952 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8953
8954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8955 $as_echo_n "checking for -force_load linker flag... " >&6; }
8956 if ${lt_cv_ld_force_load+:} false; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   lt_cv_ld_force_load=no
8960       cat > conftest.c << _LT_EOF
8961 int forced_loaded() { return 2;}
8962 _LT_EOF
8963       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8964       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8965       echo "$AR cru libconftest.a conftest.o" >&5
8966       $AR cru libconftest.a conftest.o 2>&5
8967       echo "$RANLIB libconftest.a" >&5
8968       $RANLIB libconftest.a 2>&5
8969       cat > conftest.c << _LT_EOF
8970 int main() { return 0;}
8971 _LT_EOF
8972       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8973       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8974       _lt_result=$?
8975       if test -s conftest.err && $GREP force_load conftest.err; then
8976         cat conftest.err >&5
8977       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8978         lt_cv_ld_force_load=yes
8979       else
8980         cat conftest.err >&5
8981       fi
8982         rm -f conftest.err libconftest.a conftest conftest.c
8983         rm -rf conftest.dSYM
8984
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8987 $as_echo "$lt_cv_ld_force_load" >&6; }
8988     case $host_os in
8989     rhapsody* | darwin1.[012])
8990       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8991     darwin1.*)
8992       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8993     darwin*) # darwin 5.x on
8994       # if running on 10.5 or later, the deployment target defaults
8995       # to the OS version, if on x86, and 10.4, the deployment
8996       # target defaults to 10.4. Don't you love it?
8997       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8998         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8999           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9000         10.[012][,.]*)
9001           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9002         10.*)
9003           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9004       esac
9005     ;;
9006   esac
9007     if test yes = "$lt_cv_apple_cc_single_mod"; then
9008       _lt_dar_single_mod='$single_module'
9009     fi
9010     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9011       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9012     else
9013       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9014     fi
9015     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9016       _lt_dsymutil='~$DSYMUTIL $lib || :'
9017     else
9018       _lt_dsymutil=
9019     fi
9020     ;;
9021   esac
9022
9023 # func_munge_path_list VARIABLE PATH
9024 # -----------------------------------
9025 # VARIABLE is name of variable containing _space_ separated list of
9026 # directories to be munged by the contents of PATH, which is string
9027 # having a format:
9028 # "DIR[:DIR]:"
9029 #       string "DIR[ DIR]" will be prepended to VARIABLE
9030 # ":DIR[:DIR]"
9031 #       string "DIR[ DIR]" will be appended to VARIABLE
9032 # "DIRP[:DIRP]::[DIRA:]DIRA"
9033 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9034 #       "DIRA[ DIRA]" will be appended to VARIABLE
9035 # "DIR[:DIR]"
9036 #       VARIABLE will be replaced by "DIR[ DIR]"
9037 func_munge_path_list ()
9038 {
9039     case x$2 in
9040     x)
9041         ;;
9042     *:)
9043         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9044         ;;
9045     x:*)
9046         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9047         ;;
9048     *::*)
9049         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9050         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9051         ;;
9052     *)
9053         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9054         ;;
9055     esac
9056 }
9057
9058 for ac_header in dlfcn.h
9059 do :
9060   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9061 "
9062 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9063   cat >>confdefs.h <<_ACEOF
9064 #define HAVE_DLFCN_H 1
9065 _ACEOF
9066
9067 fi
9068
9069 done
9070
9071
9072
9073
9074
9075 # Set options
9076 # Check whether --enable-static was given.
9077 if test "${enable_static+set}" = set; then :
9078   enableval=$enable_static; p=${PACKAGE-default}
9079     case $enableval in
9080     yes) enable_static=yes ;;
9081     no) enable_static=no ;;
9082     *)
9083      enable_static=no
9084       # Look at the argument we got.  We use all the common list separators.
9085       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9086       for pkg in $enableval; do
9087         IFS=$lt_save_ifs
9088         if test "X$pkg" = "X$p"; then
9089           enable_static=yes
9090         fi
9091       done
9092       IFS=$lt_save_ifs
9093       ;;
9094     esac
9095 else
9096   enable_static=no
9097 fi
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108         enable_dlopen=no
9109
9110
9111   enable_win32_dll=no
9112
9113
9114             # Check whether --enable-shared was given.
9115 if test "${enable_shared+set}" = set; then :
9116   enableval=$enable_shared; p=${PACKAGE-default}
9117     case $enableval in
9118     yes) enable_shared=yes ;;
9119     no) enable_shared=no ;;
9120     *)
9121       enable_shared=no
9122       # Look at the argument we got.  We use all the common list separators.
9123       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9124       for pkg in $enableval; do
9125         IFS=$lt_save_ifs
9126         if test "X$pkg" = "X$p"; then
9127           enable_shared=yes
9128         fi
9129       done
9130       IFS=$lt_save_ifs
9131       ;;
9132     esac
9133 else
9134   enable_shared=yes
9135 fi
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 # Check whether --with-pic was given.
9148 if test "${with_pic+set}" = set; then :
9149   withval=$with_pic; lt_p=${PACKAGE-default}
9150     case $withval in
9151     yes|no) pic_mode=$withval ;;
9152     *)
9153       pic_mode=default
9154       # Look at the argument we got.  We use all the common list separators.
9155       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9156       for lt_pkg in $withval; do
9157         IFS=$lt_save_ifs
9158         if test "X$lt_pkg" = "X$lt_p"; then
9159           pic_mode=yes
9160         fi
9161       done
9162       IFS=$lt_save_ifs
9163       ;;
9164     esac
9165 else
9166   pic_mode=default
9167 fi
9168
9169
9170
9171
9172
9173
9174
9175
9176   # Check whether --enable-fast-install was given.
9177 if test "${enable_fast_install+set}" = set; then :
9178   enableval=$enable_fast_install; p=${PACKAGE-default}
9179     case $enableval in
9180     yes) enable_fast_install=yes ;;
9181     no) enable_fast_install=no ;;
9182     *)
9183       enable_fast_install=no
9184       # Look at the argument we got.  We use all the common list separators.
9185       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9186       for pkg in $enableval; do
9187         IFS=$lt_save_ifs
9188         if test "X$pkg" = "X$p"; then
9189           enable_fast_install=yes
9190         fi
9191       done
9192       IFS=$lt_save_ifs
9193       ;;
9194     esac
9195 else
9196   enable_fast_install=yes
9197 fi
9198
9199
9200
9201
9202
9203
9204
9205
9206   shared_archive_member_spec=
9207 case $host,$enable_shared in
9208 power*-*-aix[5-9]*,yes)
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9210 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9211
9212 # Check whether --with-aix-soname was given.
9213 if test "${with_aix_soname+set}" = set; then :
9214   withval=$with_aix_soname; case $withval in
9215     aix|svr4|both)
9216       ;;
9217     *)
9218       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9219       ;;
9220     esac
9221     lt_cv_with_aix_soname=$with_aix_soname
9222 else
9223   if ${lt_cv_with_aix_soname+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   lt_cv_with_aix_soname=aix
9227 fi
9228
9229     with_aix_soname=$lt_cv_with_aix_soname
9230 fi
9231
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9233 $as_echo "$with_aix_soname" >&6; }
9234   if test aix != "$with_aix_soname"; then
9235     # For the AIX way of multilib, we name the shared archive member
9236     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9237     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9238     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9239     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9240     if test 64 = "${OBJECT_MODE-32}"; then
9241       shared_archive_member_spec=shr_64
9242     else
9243       shared_archive_member_spec=shr
9244     fi
9245   fi
9246   ;;
9247 *)
9248   with_aix_soname=aix
9249   ;;
9250 esac
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261 # This can be used to rebuild libtool when needed
9262 LIBTOOL_DEPS=$ltmain
9263
9264 # Always use our own libtool.
9265 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296 test -z "$LN_S" && LN_S="ln -s"
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311 if test -n "${ZSH_VERSION+set}"; then
9312    setopt NO_GLOB_SUBST
9313 fi
9314
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9316 $as_echo_n "checking for objdir... " >&6; }
9317 if ${lt_cv_objdir+:} false; then :
9318   $as_echo_n "(cached) " >&6
9319 else
9320   rm -f .libs 2>/dev/null
9321 mkdir .libs 2>/dev/null
9322 if test -d .libs; then
9323   lt_cv_objdir=.libs
9324 else
9325   # MS-DOS does not allow filenames that begin with a dot.
9326   lt_cv_objdir=_libs
9327 fi
9328 rmdir .libs 2>/dev/null
9329 fi
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9331 $as_echo "$lt_cv_objdir" >&6; }
9332 objdir=$lt_cv_objdir
9333
9334
9335
9336
9337
9338 cat >>confdefs.h <<_ACEOF
9339 #define LT_OBJDIR "$lt_cv_objdir/"
9340 _ACEOF
9341
9342
9343
9344
9345 case $host_os in
9346 aix3*)
9347   # AIX sometimes has problems with the GCC collect2 program.  For some
9348   # reason, if we set the COLLECT_NAMES environment variable, the problems
9349   # vanish in a puff of smoke.
9350   if test set != "${COLLECT_NAMES+set}"; then
9351     COLLECT_NAMES=
9352     export COLLECT_NAMES
9353   fi
9354   ;;
9355 esac
9356
9357 # Global variables:
9358 ofile=libtool
9359 can_build_shared=yes
9360
9361 # All known linkers require a '.a' archive for static linking (except MSVC,
9362 # which needs '.lib').
9363 libext=a
9364
9365 with_gnu_ld=$lt_cv_prog_gnu_ld
9366
9367 old_CC=$CC
9368 old_CFLAGS=$CFLAGS
9369
9370 # Set sane defaults for various variables
9371 test -z "$CC" && CC=cc
9372 test -z "$LTCC" && LTCC=$CC
9373 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9374 test -z "$LD" && LD=ld
9375 test -z "$ac_objext" && ac_objext=o
9376
9377 func_cc_basename $compiler
9378 cc_basename=$func_cc_basename_result
9379
9380
9381 # Only perform the check for file, if the check method requires it
9382 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9383 case $deplibs_check_method in
9384 file_magic*)
9385   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9387 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9388 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9389   $as_echo_n "(cached) " >&6
9390 else
9391   case $MAGIC_CMD in
9392 [\\/*] |  ?:[\\/]*)
9393   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9394   ;;
9395 *)
9396   lt_save_MAGIC_CMD=$MAGIC_CMD
9397   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9398   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9399   for ac_dir in $ac_dummy; do
9400     IFS=$lt_save_ifs
9401     test -z "$ac_dir" && ac_dir=.
9402     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9403       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9404       if test -n "$file_magic_test_file"; then
9405         case $deplibs_check_method in
9406         "file_magic "*)
9407           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9408           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9409           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9410             $EGREP "$file_magic_regex" > /dev/null; then
9411             :
9412           else
9413             cat <<_LT_EOF 1>&2
9414
9415 *** Warning: the command libtool uses to detect shared libraries,
9416 *** $file_magic_cmd, produces output that libtool cannot recognize.
9417 *** The result is that libtool may fail to recognize shared libraries
9418 *** as such.  This will affect the creation of libtool libraries that
9419 *** depend on shared libraries, but programs linked with such libtool
9420 *** libraries will work regardless of this problem.  Nevertheless, you
9421 *** may want to report the problem to your system manager and/or to
9422 *** bug-libtool@gnu.org
9423
9424 _LT_EOF
9425           fi ;;
9426         esac
9427       fi
9428       break
9429     fi
9430   done
9431   IFS=$lt_save_ifs
9432   MAGIC_CMD=$lt_save_MAGIC_CMD
9433   ;;
9434 esac
9435 fi
9436
9437 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9438 if test -n "$MAGIC_CMD"; then
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9440 $as_echo "$MAGIC_CMD" >&6; }
9441 else
9442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9444 fi
9445
9446
9447
9448
9449
9450 if test -z "$lt_cv_path_MAGIC_CMD"; then
9451   if test -n "$ac_tool_prefix"; then
9452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9453 $as_echo_n "checking for file... " >&6; }
9454 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   case $MAGIC_CMD in
9458 [\\/*] |  ?:[\\/]*)
9459   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9460   ;;
9461 *)
9462   lt_save_MAGIC_CMD=$MAGIC_CMD
9463   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9464   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9465   for ac_dir in $ac_dummy; do
9466     IFS=$lt_save_ifs
9467     test -z "$ac_dir" && ac_dir=.
9468     if test -f "$ac_dir/file"; then
9469       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9470       if test -n "$file_magic_test_file"; then
9471         case $deplibs_check_method in
9472         "file_magic "*)
9473           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9474           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9475           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9476             $EGREP "$file_magic_regex" > /dev/null; then
9477             :
9478           else
9479             cat <<_LT_EOF 1>&2
9480
9481 *** Warning: the command libtool uses to detect shared libraries,
9482 *** $file_magic_cmd, produces output that libtool cannot recognize.
9483 *** The result is that libtool may fail to recognize shared libraries
9484 *** as such.  This will affect the creation of libtool libraries that
9485 *** depend on shared libraries, but programs linked with such libtool
9486 *** libraries will work regardless of this problem.  Nevertheless, you
9487 *** may want to report the problem to your system manager and/or to
9488 *** bug-libtool@gnu.org
9489
9490 _LT_EOF
9491           fi ;;
9492         esac
9493       fi
9494       break
9495     fi
9496   done
9497   IFS=$lt_save_ifs
9498   MAGIC_CMD=$lt_save_MAGIC_CMD
9499   ;;
9500 esac
9501 fi
9502
9503 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9504 if test -n "$MAGIC_CMD"; then
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9506 $as_echo "$MAGIC_CMD" >&6; }
9507 else
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9510 fi
9511
9512
9513   else
9514     MAGIC_CMD=:
9515   fi
9516 fi
9517
9518   fi
9519   ;;
9520 esac
9521
9522 # Use C for the default configuration in the libtool script
9523
9524 lt_save_CC=$CC
9525 ac_ext=c
9526 ac_cpp='$CPP $CPPFLAGS'
9527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9530
9531
9532 # Source file extension for C test sources.
9533 ac_ext=c
9534
9535 # Object file extension for compiled C test sources.
9536 objext=o
9537 objext=$objext
9538
9539 # Code to be used in simple compile tests
9540 lt_simple_compile_test_code="int some_variable = 0;"
9541
9542 # Code to be used in simple link tests
9543 lt_simple_link_test_code='int main(){return(0);}'
9544
9545
9546
9547
9548
9549
9550
9551 # If no C compiler was specified, use CC.
9552 LTCC=${LTCC-"$CC"}
9553
9554 # If no C compiler flags were specified, use CFLAGS.
9555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9556
9557 # Allow CC to be a program name with arguments.
9558 compiler=$CC
9559
9560 # Save the default compiler, since it gets overwritten when the other
9561 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9562 compiler_DEFAULT=$CC
9563
9564 # save warnings/boilerplate of simple test code
9565 ac_outfile=conftest.$ac_objext
9566 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9568 _lt_compiler_boilerplate=`cat conftest.err`
9569 $RM conftest*
9570
9571 ac_outfile=conftest.$ac_objext
9572 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9574 _lt_linker_boilerplate=`cat conftest.err`
9575 $RM -r conftest*
9576
9577
9578 ## CAVEAT EMPTOR:
9579 ## There is no encapsulation within the following macros, do not change
9580 ## the running order or otherwise move them around unless you know exactly
9581 ## what you are doing...
9582 if test -n "$compiler"; then
9583
9584 lt_prog_compiler_no_builtin_flag=
9585
9586 if test yes = "$GCC"; then
9587   case $cc_basename in
9588   nvcc*)
9589     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9590   *)
9591     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9592   esac
9593
9594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9595 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9596 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9597   $as_echo_n "(cached) " >&6
9598 else
9599   lt_cv_prog_compiler_rtti_exceptions=no
9600    ac_outfile=conftest.$ac_objext
9601    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9602    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9603    # Insert the option either (1) after the last *FLAGS variable, or
9604    # (2) before a word containing "conftest.", or (3) at the end.
9605    # Note that $ac_compile itself does not contain backslashes and begins
9606    # with a dollar sign (not a hyphen), so the echo should work correctly.
9607    # The option is referenced via a variable to avoid confusing sed.
9608    lt_compile=`echo "$ac_compile" | $SED \
9609    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9610    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9611    -e 's:$: $lt_compiler_flag:'`
9612    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9613    (eval "$lt_compile" 2>conftest.err)
9614    ac_status=$?
9615    cat conftest.err >&5
9616    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617    if (exit $ac_status) && test -s "$ac_outfile"; then
9618      # The compiler can only warn and ignore the option if not recognized
9619      # So say no if there are warnings other than the usual output.
9620      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9621      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9622      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9623        lt_cv_prog_compiler_rtti_exceptions=yes
9624      fi
9625    fi
9626    $RM conftest*
9627
9628 fi
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9630 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9631
9632 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9633     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9634 else
9635     :
9636 fi
9637
9638 fi
9639
9640
9641
9642
9643
9644
9645   lt_prog_compiler_wl=
9646 lt_prog_compiler_pic=
9647 lt_prog_compiler_static=
9648
9649
9650   if test yes = "$GCC"; then
9651     lt_prog_compiler_wl='-Wl,'
9652     lt_prog_compiler_static='-static'
9653
9654     case $host_os in
9655       aix*)
9656       # All AIX code is PIC.
9657       if test ia64 = "$host_cpu"; then
9658         # AIX 5 now supports IA64 processor
9659         lt_prog_compiler_static='-Bstatic'
9660       fi
9661       lt_prog_compiler_pic='-fPIC'
9662       ;;
9663
9664     amigaos*)
9665       case $host_cpu in
9666       powerpc)
9667             # see comment about AmigaOS4 .so support
9668             lt_prog_compiler_pic='-fPIC'
9669         ;;
9670       m68k)
9671             # FIXME: we need at least 68020 code to build shared libraries, but
9672             # adding the '-m68020' flag to GCC prevents building anything better,
9673             # like '-m68040'.
9674             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9675         ;;
9676       esac
9677       ;;
9678
9679     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9680       # PIC is the default for these OSes.
9681       ;;
9682
9683     mingw* | cygwin* | pw32* | os2* | cegcc*)
9684       # This hack is so that the source file can tell whether it is being
9685       # built for inclusion in a dll (and should export symbols for example).
9686       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9687       # (--disable-auto-import) libraries
9688       lt_prog_compiler_pic='-DDLL_EXPORT'
9689       case $host_os in
9690       os2*)
9691         lt_prog_compiler_static='$wl-static'
9692         ;;
9693       esac
9694       ;;
9695
9696     darwin* | rhapsody*)
9697       # PIC is the default on this platform
9698       # Common symbols not allowed in MH_DYLIB files
9699       lt_prog_compiler_pic='-fno-common'
9700       ;;
9701
9702     haiku*)
9703       # PIC is the default for Haiku.
9704       # The "-static" flag exists, but is broken.
9705       lt_prog_compiler_static=
9706       ;;
9707
9708     hpux*)
9709       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9710       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9711       # sets the default TLS model and affects inlining.
9712       case $host_cpu in
9713       hppa*64*)
9714         # +Z the default
9715         ;;
9716       *)
9717         lt_prog_compiler_pic='-fPIC'
9718         ;;
9719       esac
9720       ;;
9721
9722     interix[3-9]*)
9723       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9724       # Instead, we relocate shared libraries at runtime.
9725       ;;
9726
9727     msdosdjgpp*)
9728       # Just because we use GCC doesn't mean we suddenly get shared libraries
9729       # on systems that don't support them.
9730       lt_prog_compiler_can_build_shared=no
9731       enable_shared=no
9732       ;;
9733
9734     *nto* | *qnx*)
9735       # QNX uses GNU C++, but need to define -shared option too, otherwise
9736       # it will coredump.
9737       lt_prog_compiler_pic='-fPIC -shared'
9738       ;;
9739
9740     sysv4*MP*)
9741       if test -d /usr/nec; then
9742         lt_prog_compiler_pic=-Kconform_pic
9743       fi
9744       ;;
9745
9746     *)
9747       lt_prog_compiler_pic='-fPIC'
9748       ;;
9749     esac
9750
9751     case $cc_basename in
9752     nvcc*) # Cuda Compiler Driver 2.2
9753       lt_prog_compiler_wl='-Xlinker '
9754       if test -n "$lt_prog_compiler_pic"; then
9755         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9756       fi
9757       ;;
9758     esac
9759   else
9760     # PORTME Check for flag to pass linker flags through the system compiler.
9761     case $host_os in
9762     aix*)
9763       lt_prog_compiler_wl='-Wl,'
9764       if test ia64 = "$host_cpu"; then
9765         # AIX 5 now supports IA64 processor
9766         lt_prog_compiler_static='-Bstatic'
9767       else
9768         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9769       fi
9770       ;;
9771
9772     darwin* | rhapsody*)
9773       # PIC is the default on this platform
9774       # Common symbols not allowed in MH_DYLIB files
9775       lt_prog_compiler_pic='-fno-common'
9776       case $cc_basename in
9777       nagfor*)
9778         # NAG Fortran compiler
9779         lt_prog_compiler_wl='-Wl,-Wl,,'
9780         lt_prog_compiler_pic='-PIC'
9781         lt_prog_compiler_static='-Bstatic'
9782         ;;
9783       esac
9784       ;;
9785
9786     mingw* | cygwin* | pw32* | os2* | cegcc*)
9787       # This hack is so that the source file can tell whether it is being
9788       # built for inclusion in a dll (and should export symbols for example).
9789       lt_prog_compiler_pic='-DDLL_EXPORT'
9790       case $host_os in
9791       os2*)
9792         lt_prog_compiler_static='$wl-static'
9793         ;;
9794       esac
9795       ;;
9796
9797     hpux9* | hpux10* | hpux11*)
9798       lt_prog_compiler_wl='-Wl,'
9799       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9800       # not for PA HP-UX.
9801       case $host_cpu in
9802       hppa*64*|ia64*)
9803         # +Z the default
9804         ;;
9805       *)
9806         lt_prog_compiler_pic='+Z'
9807         ;;
9808       esac
9809       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9810       lt_prog_compiler_static='$wl-a ${wl}archive'
9811       ;;
9812
9813     irix5* | irix6* | nonstopux*)
9814       lt_prog_compiler_wl='-Wl,'
9815       # PIC (with -KPIC) is the default.
9816       lt_prog_compiler_static='-non_shared'
9817       ;;
9818
9819     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9820       case $cc_basename in
9821       # old Intel for x86_64, which still supported -KPIC.
9822       ecc*)
9823         lt_prog_compiler_wl='-Wl,'
9824         lt_prog_compiler_pic='-KPIC'
9825         lt_prog_compiler_static='-static'
9826         ;;
9827       # icc used to be incompatible with GCC.
9828       # ICC 10 doesn't accept -KPIC any more.
9829       icc* | ifort*)
9830         lt_prog_compiler_wl='-Wl,'
9831         lt_prog_compiler_pic='-fPIC'
9832         lt_prog_compiler_static='-static'
9833         ;;
9834       # Lahey Fortran 8.1.
9835       lf95*)
9836         lt_prog_compiler_wl='-Wl,'
9837         lt_prog_compiler_pic='--shared'
9838         lt_prog_compiler_static='--static'
9839         ;;
9840       nagfor*)
9841         # NAG Fortran compiler
9842         lt_prog_compiler_wl='-Wl,-Wl,,'
9843         lt_prog_compiler_pic='-PIC'
9844         lt_prog_compiler_static='-Bstatic'
9845         ;;
9846       tcc*)
9847         # Fabrice Bellard et al's Tiny C Compiler
9848         lt_prog_compiler_wl='-Wl,'
9849         lt_prog_compiler_pic='-fPIC'
9850         lt_prog_compiler_static='-static'
9851         ;;
9852       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9853         # Portland Group compilers (*not* the Pentium gcc compiler,
9854         # which looks to be a dead project)
9855         lt_prog_compiler_wl='-Wl,'
9856         lt_prog_compiler_pic='-fpic'
9857         lt_prog_compiler_static='-Bstatic'
9858         ;;
9859       ccc*)
9860         lt_prog_compiler_wl='-Wl,'
9861         # All Alpha code is PIC.
9862         lt_prog_compiler_static='-non_shared'
9863         ;;
9864       xl* | bgxl* | bgf* | mpixl*)
9865         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9866         lt_prog_compiler_wl='-Wl,'
9867         lt_prog_compiler_pic='-qpic'
9868         lt_prog_compiler_static='-qstaticlink'
9869         ;;
9870       *)
9871         case `$CC -V 2>&1 | sed 5q` in
9872         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9873           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9874           lt_prog_compiler_pic='-KPIC'
9875           lt_prog_compiler_static='-Bstatic'
9876           lt_prog_compiler_wl=''
9877           ;;
9878         *Sun\ F* | *Sun*Fortran*)
9879           lt_prog_compiler_pic='-KPIC'
9880           lt_prog_compiler_static='-Bstatic'
9881           lt_prog_compiler_wl='-Qoption ld '
9882           ;;
9883         *Sun\ C*)
9884           # Sun C 5.9
9885           lt_prog_compiler_pic='-KPIC'
9886           lt_prog_compiler_static='-Bstatic'
9887           lt_prog_compiler_wl='-Wl,'
9888           ;;
9889         *Intel*\ [CF]*Compiler*)
9890           lt_prog_compiler_wl='-Wl,'
9891           lt_prog_compiler_pic='-fPIC'
9892           lt_prog_compiler_static='-static'
9893           ;;
9894         *Portland\ Group*)
9895           lt_prog_compiler_wl='-Wl,'
9896           lt_prog_compiler_pic='-fpic'
9897           lt_prog_compiler_static='-Bstatic'
9898           ;;
9899         esac
9900         ;;
9901       esac
9902       ;;
9903
9904     newsos6)
9905       lt_prog_compiler_pic='-KPIC'
9906       lt_prog_compiler_static='-Bstatic'
9907       ;;
9908
9909     *nto* | *qnx*)
9910       # QNX uses GNU C++, but need to define -shared option too, otherwise
9911       # it will coredump.
9912       lt_prog_compiler_pic='-fPIC -shared'
9913       ;;
9914
9915     osf3* | osf4* | osf5*)
9916       lt_prog_compiler_wl='-Wl,'
9917       # All OSF/1 code is PIC.
9918       lt_prog_compiler_static='-non_shared'
9919       ;;
9920
9921     rdos*)
9922       lt_prog_compiler_static='-non_shared'
9923       ;;
9924
9925     solaris*)
9926       lt_prog_compiler_pic='-KPIC'
9927       lt_prog_compiler_static='-Bstatic'
9928       case $cc_basename in
9929       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9930         lt_prog_compiler_wl='-Qoption ld ';;
9931       *)
9932         lt_prog_compiler_wl='-Wl,';;
9933       esac
9934       ;;
9935
9936     sunos4*)
9937       lt_prog_compiler_wl='-Qoption ld '
9938       lt_prog_compiler_pic='-PIC'
9939       lt_prog_compiler_static='-Bstatic'
9940       ;;
9941
9942     sysv4 | sysv4.2uw2* | sysv4.3*)
9943       lt_prog_compiler_wl='-Wl,'
9944       lt_prog_compiler_pic='-KPIC'
9945       lt_prog_compiler_static='-Bstatic'
9946       ;;
9947
9948     sysv4*MP*)
9949       if test -d /usr/nec; then
9950         lt_prog_compiler_pic='-Kconform_pic'
9951         lt_prog_compiler_static='-Bstatic'
9952       fi
9953       ;;
9954
9955     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9956       lt_prog_compiler_wl='-Wl,'
9957       lt_prog_compiler_pic='-KPIC'
9958       lt_prog_compiler_static='-Bstatic'
9959       ;;
9960
9961     unicos*)
9962       lt_prog_compiler_wl='-Wl,'
9963       lt_prog_compiler_can_build_shared=no
9964       ;;
9965
9966     uts4*)
9967       lt_prog_compiler_pic='-pic'
9968       lt_prog_compiler_static='-Bstatic'
9969       ;;
9970
9971     *)
9972       lt_prog_compiler_can_build_shared=no
9973       ;;
9974     esac
9975   fi
9976
9977 case $host_os in
9978   # For platforms that do not support PIC, -DPIC is meaningless:
9979   *djgpp*)
9980     lt_prog_compiler_pic=
9981     ;;
9982   *)
9983     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9984     ;;
9985 esac
9986
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9988 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9989 if ${lt_cv_prog_compiler_pic+:} false; then :
9990   $as_echo_n "(cached) " >&6
9991 else
9992   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9995 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9996 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9997
9998 #
9999 # Check to make sure the PIC flag actually works.
10000 #
10001 if test -n "$lt_prog_compiler_pic"; then
10002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10003 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10004 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10005   $as_echo_n "(cached) " >&6
10006 else
10007   lt_cv_prog_compiler_pic_works=no
10008    ac_outfile=conftest.$ac_objext
10009    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10010    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10011    # Insert the option either (1) after the last *FLAGS variable, or
10012    # (2) before a word containing "conftest.", or (3) at the end.
10013    # Note that $ac_compile itself does not contain backslashes and begins
10014    # with a dollar sign (not a hyphen), so the echo should work correctly.
10015    # The option is referenced via a variable to avoid confusing sed.
10016    lt_compile=`echo "$ac_compile" | $SED \
10017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10019    -e 's:$: $lt_compiler_flag:'`
10020    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10021    (eval "$lt_compile" 2>conftest.err)
10022    ac_status=$?
10023    cat conftest.err >&5
10024    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025    if (exit $ac_status) && test -s "$ac_outfile"; then
10026      # The compiler can only warn and ignore the option if not recognized
10027      # So say no if there are warnings other than the usual output.
10028      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10029      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10030      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10031        lt_cv_prog_compiler_pic_works=yes
10032      fi
10033    fi
10034    $RM conftest*
10035
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10038 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10039
10040 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10041     case $lt_prog_compiler_pic in
10042      "" | " "*) ;;
10043      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10044      esac
10045 else
10046     lt_prog_compiler_pic=
10047      lt_prog_compiler_can_build_shared=no
10048 fi
10049
10050 fi
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062 #
10063 # Check to make sure the static flag actually works.
10064 #
10065 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10067 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10068 if ${lt_cv_prog_compiler_static_works+:} false; then :
10069   $as_echo_n "(cached) " >&6
10070 else
10071   lt_cv_prog_compiler_static_works=no
10072    save_LDFLAGS=$LDFLAGS
10073    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10074    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10075    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10076      # The linker can only warn and ignore the option if not recognized
10077      # So say no if there are warnings
10078      if test -s conftest.err; then
10079        # Append any errors to the config.log.
10080        cat conftest.err 1>&5
10081        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10082        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10083        if diff conftest.exp conftest.er2 >/dev/null; then
10084          lt_cv_prog_compiler_static_works=yes
10085        fi
10086      else
10087        lt_cv_prog_compiler_static_works=yes
10088      fi
10089    fi
10090    $RM -r conftest*
10091    LDFLAGS=$save_LDFLAGS
10092
10093 fi
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10095 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10096
10097 if test yes = "$lt_cv_prog_compiler_static_works"; then
10098     :
10099 else
10100     lt_prog_compiler_static=
10101 fi
10102
10103
10104
10105
10106
10107
10108
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10111 if ${lt_cv_prog_compiler_c_o+:} false; then :
10112   $as_echo_n "(cached) " >&6
10113 else
10114   lt_cv_prog_compiler_c_o=no
10115    $RM -r conftest 2>/dev/null
10116    mkdir conftest
10117    cd conftest
10118    mkdir out
10119    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10120
10121    lt_compiler_flag="-o out/conftest2.$ac_objext"
10122    # Insert the option either (1) after the last *FLAGS variable, or
10123    # (2) before a word containing "conftest.", or (3) at the end.
10124    # Note that $ac_compile itself does not contain backslashes and begins
10125    # with a dollar sign (not a hyphen), so the echo should work correctly.
10126    lt_compile=`echo "$ac_compile" | $SED \
10127    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10129    -e 's:$: $lt_compiler_flag:'`
10130    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10131    (eval "$lt_compile" 2>out/conftest.err)
10132    ac_status=$?
10133    cat out/conftest.err >&5
10134    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10136    then
10137      # The compiler can only warn and ignore the option if not recognized
10138      # So say no if there are warnings
10139      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10140      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10141      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10142        lt_cv_prog_compiler_c_o=yes
10143      fi
10144    fi
10145    chmod u+w . 2>&5
10146    $RM conftest*
10147    # SGI C++ compiler will create directory out/ii_files/ for
10148    # template instantiation
10149    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10150    $RM out/* && rmdir out
10151    cd ..
10152    $RM -r conftest
10153    $RM conftest*
10154
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10157 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10158
10159
10160
10161
10162
10163
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10166 if ${lt_cv_prog_compiler_c_o+:} false; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   lt_cv_prog_compiler_c_o=no
10170    $RM -r conftest 2>/dev/null
10171    mkdir conftest
10172    cd conftest
10173    mkdir out
10174    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10175
10176    lt_compiler_flag="-o out/conftest2.$ac_objext"
10177    # Insert the option either (1) after the last *FLAGS variable, or
10178    # (2) before a word containing "conftest.", or (3) at the end.
10179    # Note that $ac_compile itself does not contain backslashes and begins
10180    # with a dollar sign (not a hyphen), so the echo should work correctly.
10181    lt_compile=`echo "$ac_compile" | $SED \
10182    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10183    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10184    -e 's:$: $lt_compiler_flag:'`
10185    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10186    (eval "$lt_compile" 2>out/conftest.err)
10187    ac_status=$?
10188    cat out/conftest.err >&5
10189    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10191    then
10192      # The compiler can only warn and ignore the option if not recognized
10193      # So say no if there are warnings
10194      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10195      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10196      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10197        lt_cv_prog_compiler_c_o=yes
10198      fi
10199    fi
10200    chmod u+w . 2>&5
10201    $RM conftest*
10202    # SGI C++ compiler will create directory out/ii_files/ for
10203    # template instantiation
10204    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10205    $RM out/* && rmdir out
10206    cd ..
10207    $RM -r conftest
10208    $RM conftest*
10209
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10213
10214
10215
10216
10217 hard_links=nottested
10218 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10219   # do not overwrite the value of need_locks provided by the user
10220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10221 $as_echo_n "checking if we can lock with hard links... " >&6; }
10222   hard_links=yes
10223   $RM conftest*
10224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10225   touch conftest.a
10226   ln conftest.a conftest.b 2>&5 || hard_links=no
10227   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10229 $as_echo "$hard_links" >&6; }
10230   if test no = "$hard_links"; then
10231     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10232 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10233     need_locks=warn
10234   fi
10235 else
10236   need_locks=no
10237 fi
10238
10239
10240
10241
10242
10243
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10245 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10246
10247   runpath_var=
10248   allow_undefined_flag=
10249   always_export_symbols=no
10250   archive_cmds=
10251   archive_expsym_cmds=
10252   compiler_needs_object=no
10253   enable_shared_with_static_runtimes=no
10254   export_dynamic_flag_spec=
10255   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10256   hardcode_automatic=no
10257   hardcode_direct=no
10258   hardcode_direct_absolute=no
10259   hardcode_libdir_flag_spec=
10260   hardcode_libdir_separator=
10261   hardcode_minus_L=no
10262   hardcode_shlibpath_var=unsupported
10263   inherit_rpath=no
10264   link_all_deplibs=unknown
10265   module_cmds=
10266   module_expsym_cmds=
10267   old_archive_from_new_cmds=
10268   old_archive_from_expsyms_cmds=
10269   thread_safe_flag_spec=
10270   whole_archive_flag_spec=
10271   # include_expsyms should be a list of space-separated symbols to be *always*
10272   # included in the symbol list
10273   include_expsyms=
10274   # exclude_expsyms can be an extended regexp of symbols to exclude
10275   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10276   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10277   # as well as any symbol that contains 'd'.
10278   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10279   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10280   # platforms (ab)use it in PIC code, but their linkers get confused if
10281   # the symbol is explicitly referenced.  Since portable code cannot
10282   # rely on this symbol name, it's probably fine to never include it in
10283   # preloaded symbol tables.
10284   # Exclude shared library initialization/finalization symbols.
10285   extract_expsyms_cmds=
10286
10287   case $host_os in
10288   cygwin* | mingw* | pw32* | cegcc*)
10289     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10290     # When not using gcc, we currently assume that we are using
10291     # Microsoft Visual C++.
10292     if test yes != "$GCC"; then
10293       with_gnu_ld=no
10294     fi
10295     ;;
10296   interix*)
10297     # we just hope/assume this is gcc and not c89 (= MSVC++)
10298     with_gnu_ld=yes
10299     ;;
10300   openbsd* | bitrig*)
10301     with_gnu_ld=no
10302     ;;
10303   linux* | k*bsd*-gnu | gnu*)
10304     link_all_deplibs=no
10305     ;;
10306   esac
10307
10308   ld_shlibs=yes
10309
10310   # On some targets, GNU ld is compatible enough with the native linker
10311   # that we're better off using the native interface for both.
10312   lt_use_gnu_ld_interface=no
10313   if test yes = "$with_gnu_ld"; then
10314     case $host_os in
10315       aix*)
10316         # The AIX port of GNU ld has always aspired to compatibility
10317         # with the native linker.  However, as the warning in the GNU ld
10318         # block says, versions before 2.19.5* couldn't really create working
10319         # shared libraries, regardless of the interface used.
10320         case `$LD -v 2>&1` in
10321           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10322           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10323           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10324           *)
10325             lt_use_gnu_ld_interface=yes
10326             ;;
10327         esac
10328         ;;
10329       *)
10330         lt_use_gnu_ld_interface=yes
10331         ;;
10332     esac
10333   fi
10334
10335   if test yes = "$lt_use_gnu_ld_interface"; then
10336     # If archive_cmds runs LD, not CC, wlarc should be empty
10337     wlarc='$wl'
10338
10339     # Set some defaults for GNU ld with shared library support. These
10340     # are reset later if shared libraries are not supported. Putting them
10341     # here allows them to be overridden if necessary.
10342     runpath_var=LD_RUN_PATH
10343     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10344     export_dynamic_flag_spec='$wl--export-dynamic'
10345     # ancient GNU ld didn't support --whole-archive et. al.
10346     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10347       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10348     else
10349       whole_archive_flag_spec=
10350     fi
10351     supports_anon_versioning=no
10352     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10353       *GNU\ gold*) supports_anon_versioning=yes ;;
10354       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10355       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10356       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10357       *\ 2.11.*) ;; # other 2.11 versions
10358       *) supports_anon_versioning=yes ;;
10359     esac
10360
10361     # See if GNU ld supports shared libraries.
10362     case $host_os in
10363     aix[3-9]*)
10364       # On AIX/PPC, the GNU linker is very broken
10365       if test ia64 != "$host_cpu"; then
10366         ld_shlibs=no
10367         cat <<_LT_EOF 1>&2
10368
10369 *** Warning: the GNU linker, at least up to release 2.19, is reported
10370 *** to be unable to reliably create shared libraries on AIX.
10371 *** Therefore, libtool is disabling shared libraries support.  If you
10372 *** really care for shared libraries, you may want to install binutils
10373 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10374 *** You will then need to restart the configuration process.
10375
10376 _LT_EOF
10377       fi
10378       ;;
10379
10380     amigaos*)
10381       case $host_cpu in
10382       powerpc)
10383             # see comment about AmigaOS4 .so support
10384             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10385             archive_expsym_cmds=''
10386         ;;
10387       m68k)
10388             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)'
10389             hardcode_libdir_flag_spec='-L$libdir'
10390             hardcode_minus_L=yes
10391         ;;
10392       esac
10393       ;;
10394
10395     beos*)
10396       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10397         allow_undefined_flag=unsupported
10398         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10399         # support --undefined.  This deserves some investigation.  FIXME
10400         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10401       else
10402         ld_shlibs=no
10403       fi
10404       ;;
10405
10406     cygwin* | mingw* | pw32* | cegcc*)
10407       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10408       # as there is no search path for DLLs.
10409       hardcode_libdir_flag_spec='-L$libdir'
10410       export_dynamic_flag_spec='$wl--export-all-symbols'
10411       allow_undefined_flag=unsupported
10412       always_export_symbols=no
10413       enable_shared_with_static_runtimes=yes
10414       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'
10415       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10416
10417       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10418         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10419         # If the export-symbols file already is a .def file, use it as
10420         # is; otherwise, prepend EXPORTS...
10421         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10422           cp $export_symbols $output_objdir/$soname.def;
10423         else
10424           echo EXPORTS > $output_objdir/$soname.def;
10425           cat $export_symbols >> $output_objdir/$soname.def;
10426         fi~
10427         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10428       else
10429         ld_shlibs=no
10430       fi
10431       ;;
10432
10433     haiku*)
10434       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435       link_all_deplibs=yes
10436       ;;
10437
10438     os2*)
10439       hardcode_libdir_flag_spec='-L$libdir'
10440       hardcode_minus_L=yes
10441       allow_undefined_flag=unsupported
10442       shrext_cmds=.dll
10443       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10444         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10445         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10446         $ECHO EXPORTS >> $output_objdir/$libname.def~
10447         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10448         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10449         emximp -o $lib $output_objdir/$libname.def'
10450       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10451         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10452         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10453         $ECHO EXPORTS >> $output_objdir/$libname.def~
10454         prefix_cmds="$SED"~
10455         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10456           prefix_cmds="$prefix_cmds -e 1d";
10457         fi~
10458         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10459         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10460         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10461         emximp -o $lib $output_objdir/$libname.def'
10462       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10463       enable_shared_with_static_runtimes=yes
10464       ;;
10465
10466     interix[3-9]*)
10467       hardcode_direct=no
10468       hardcode_shlibpath_var=no
10469       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10470       export_dynamic_flag_spec='$wl-E'
10471       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10472       # Instead, shared libraries are loaded at an image base (0x10000000 by
10473       # default) and relocated if they conflict, which is a slow very memory
10474       # consuming and fragmenting process.  To avoid this, we pick a random,
10475       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10476       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10477       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10478       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'
10479       ;;
10480
10481     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10482       tmp_diet=no
10483       if test linux-dietlibc = "$host_os"; then
10484         case $cc_basename in
10485           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10486         esac
10487       fi
10488       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10489          && test no = "$tmp_diet"
10490       then
10491         tmp_addflag=' $pic_flag'
10492         tmp_sharedflag='-shared'
10493         case $cc_basename,$host_cpu in
10494         pgcc*)                          # Portland Group C compiler
10495           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'
10496           tmp_addflag=' $pic_flag'
10497           ;;
10498         pgf77* | pgf90* | pgf95* | pgfortran*)
10499                                         # Portland Group f77 and f90 compilers
10500           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'
10501           tmp_addflag=' $pic_flag -Mnomain' ;;
10502         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10503           tmp_addflag=' -i_dynamic' ;;
10504         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10505           tmp_addflag=' -i_dynamic -nofor_main' ;;
10506         ifc* | ifort*)                  # Intel Fortran compiler
10507           tmp_addflag=' -nofor_main' ;;
10508         lf95*)                          # Lahey Fortran 8.1
10509           whole_archive_flag_spec=
10510           tmp_sharedflag='--shared' ;;
10511         nagfor*)                        # NAGFOR 5.3
10512           tmp_sharedflag='-Wl,-shared' ;;
10513         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10514           tmp_sharedflag='-qmkshrobj'
10515           tmp_addflag= ;;
10516         nvcc*)  # Cuda Compiler Driver 2.2
10517           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'
10518           compiler_needs_object=yes
10519           ;;
10520         esac
10521         case `$CC -V 2>&1 | sed 5q` in
10522         *Sun\ C*)                       # Sun C 5.9
10523           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'
10524           compiler_needs_object=yes
10525           tmp_sharedflag='-G' ;;
10526         *Sun\ F*)                       # Sun Fortran 8.3
10527           tmp_sharedflag='-G' ;;
10528         esac
10529         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10530
10531         if test yes = "$supports_anon_versioning"; then
10532           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10533             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10534             echo "local: *; };" >> $output_objdir/$libname.ver~
10535             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10536         fi
10537
10538         case $cc_basename in
10539         tcc*)
10540           export_dynamic_flag_spec='-rdynamic'
10541           ;;
10542         xlf* | bgf* | bgxlf* | mpixlf*)
10543           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10544           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10545           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10546           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10547           if test yes = "$supports_anon_versioning"; then
10548             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10549               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10550               echo "local: *; };" >> $output_objdir/$libname.ver~
10551               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10552           fi
10553           ;;
10554         esac
10555       else
10556         ld_shlibs=no
10557       fi
10558       ;;
10559
10560     netbsd* | netbsdelf*-gnu)
10561       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10562         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10563         wlarc=
10564       else
10565         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10566         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10567       fi
10568       ;;
10569
10570     solaris*)
10571       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10572         ld_shlibs=no
10573         cat <<_LT_EOF 1>&2
10574
10575 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10576 *** create shared libraries on Solaris systems.  Therefore, libtool
10577 *** is disabling shared libraries support.  We urge you to upgrade GNU
10578 *** binutils to release 2.9.1 or newer.  Another option is to modify
10579 *** your PATH or compiler configuration so that the native linker is
10580 *** used, and then restart.
10581
10582 _LT_EOF
10583       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10584         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10585         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10586       else
10587         ld_shlibs=no
10588       fi
10589       ;;
10590
10591     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10592       case `$LD -v 2>&1` in
10593         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10594         ld_shlibs=no
10595         cat <<_LT_EOF 1>&2
10596
10597 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10598 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10599 *** is disabling shared libraries support.  We urge you to upgrade GNU
10600 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10601 *** your PATH or compiler configuration so that the native linker is
10602 *** used, and then restart.
10603
10604 _LT_EOF
10605         ;;
10606         *)
10607           # For security reasons, it is highly recommended that you always
10608           # use absolute paths for naming shared libraries, and exclude the
10609           # DT_RUNPATH tag from executables and libraries.  But doing so
10610           # requires that you compile everything twice, which is a pain.
10611           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10612             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10613             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10614             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10615           else
10616             ld_shlibs=no
10617           fi
10618         ;;
10619       esac
10620       ;;
10621
10622     sunos4*)
10623       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10624       wlarc=
10625       hardcode_direct=yes
10626       hardcode_shlibpath_var=no
10627       ;;
10628
10629     *)
10630       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10631         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10632         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10633       else
10634         ld_shlibs=no
10635       fi
10636       ;;
10637     esac
10638
10639     if test no = "$ld_shlibs"; then
10640       runpath_var=
10641       hardcode_libdir_flag_spec=
10642       export_dynamic_flag_spec=
10643       whole_archive_flag_spec=
10644     fi
10645   else
10646     # PORTME fill in a description of your system's linker (not GNU ld)
10647     case $host_os in
10648     aix3*)
10649       allow_undefined_flag=unsupported
10650       always_export_symbols=yes
10651       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'
10652       # Note: this linker hardcodes the directories in LIBPATH if there
10653       # are no directories specified by -L.
10654       hardcode_minus_L=yes
10655       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10656         # Neither direct hardcoding nor static linking is supported with a
10657         # broken collect2.
10658         hardcode_direct=unsupported
10659       fi
10660       ;;
10661
10662     aix[4-9]*)
10663       if test ia64 = "$host_cpu"; then
10664         # On IA64, the linker does run time linking by default, so we don't
10665         # have to do anything special.
10666         aix_use_runtimelinking=no
10667         exp_sym_flag='-Bexport'
10668         no_entry_flag=
10669       else
10670         # If we're using GNU nm, then we don't want the "-C" option.
10671         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10672         # Without the "-l" option, or with the "-B" option, AIX nm treats
10673         # weak defined symbols like other global defined symbols, whereas
10674         # GNU nm marks them as "W".
10675         # While the 'weak' keyword is ignored in the Export File, we need
10676         # it in the Import File for the 'aix-soname' feature, so we have
10677         # to replace the "-B" option with "-P" for AIX nm.
10678         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10679           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10680         else
10681           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10682         fi
10683         aix_use_runtimelinking=no
10684
10685         # Test if we are trying to use run time linking or normal
10686         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10687         # have runtime linking enabled, and use it for executables.
10688         # For shared libraries, we enable/disable runtime linking
10689         # depending on the kind of the shared library created -
10690         # when "with_aix_soname,aix_use_runtimelinking" is:
10691         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10692         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10693         #            lib.a           static archive
10694         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10695         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10696         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10697         #            lib.a(lib.so.V) shared, rtl:no
10698         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10699         #            lib.a           static archive
10700         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10701           for ld_flag in $LDFLAGS; do
10702           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10703             aix_use_runtimelinking=yes
10704             break
10705           fi
10706           done
10707           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10708             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10709             # so we don't have lib.a shared libs to link our executables.
10710             # We have to force runtime linking in this case.
10711             aix_use_runtimelinking=yes
10712             LDFLAGS="$LDFLAGS -Wl,-brtl"
10713           fi
10714           ;;
10715         esac
10716
10717         exp_sym_flag='-bexport'
10718         no_entry_flag='-bnoentry'
10719       fi
10720
10721       # When large executables or shared objects are built, AIX ld can
10722       # have problems creating the table of contents.  If linking a library
10723       # or program results in "error TOC overflow" add -mminimal-toc to
10724       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10725       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10726
10727       archive_cmds=''
10728       hardcode_direct=yes
10729       hardcode_direct_absolute=yes
10730       hardcode_libdir_separator=':'
10731       link_all_deplibs=yes
10732       file_list_spec='$wl-f,'
10733       case $with_aix_soname,$aix_use_runtimelinking in
10734       aix,*) ;; # traditional, no import file
10735       svr4,* | *,yes) # use import file
10736         # The Import File defines what to hardcode.
10737         hardcode_direct=no
10738         hardcode_direct_absolute=no
10739         ;;
10740       esac
10741
10742       if test yes = "$GCC"; then
10743         case $host_os in aix4.[012]|aix4.[012].*)
10744         # We only want to do this on AIX 4.2 and lower, the check
10745         # below for broken collect2 doesn't work under 4.3+
10746           collect2name=`$CC -print-prog-name=collect2`
10747           if test -f "$collect2name" &&
10748            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10749           then
10750           # We have reworked collect2
10751           :
10752           else
10753           # We have old collect2
10754           hardcode_direct=unsupported
10755           # It fails to find uninstalled libraries when the uninstalled
10756           # path is not listed in the libpath.  Setting hardcode_minus_L
10757           # to unsupported forces relinking
10758           hardcode_minus_L=yes
10759           hardcode_libdir_flag_spec='-L$libdir'
10760           hardcode_libdir_separator=
10761           fi
10762           ;;
10763         esac
10764         shared_flag='-shared'
10765         if test yes = "$aix_use_runtimelinking"; then
10766           shared_flag="$shared_flag "'$wl-G'
10767         fi
10768         # Need to ensure runtime linking is disabled for the traditional
10769         # shared library, or the linker may eventually find shared libraries
10770         # /with/ Import File - we do not want to mix them.
10771         shared_flag_aix='-shared'
10772         shared_flag_svr4='-shared $wl-G'
10773       else
10774         # not using gcc
10775         if test ia64 = "$host_cpu"; then
10776         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10777         # chokes on -Wl,-G. The following line is correct:
10778           shared_flag='-G'
10779         else
10780           if test yes = "$aix_use_runtimelinking"; then
10781             shared_flag='$wl-G'
10782           else
10783             shared_flag='$wl-bM:SRE'
10784           fi
10785           shared_flag_aix='$wl-bM:SRE'
10786           shared_flag_svr4='$wl-G'
10787         fi
10788       fi
10789
10790       export_dynamic_flag_spec='$wl-bexpall'
10791       # It seems that -bexpall does not export symbols beginning with
10792       # underscore (_), so it is better to generate a list of symbols to export.
10793       always_export_symbols=yes
10794       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10795         # Warning - without using the other runtime loading flags (-brtl),
10796         # -berok will link without error, but may produce a broken library.
10797         allow_undefined_flag='-berok'
10798         # Determine the default libpath from the value encoded in an
10799         # empty executable.
10800         if test set = "${lt_cv_aix_libpath+set}"; then
10801   aix_libpath=$lt_cv_aix_libpath
10802 else
10803   if ${lt_cv_aix_libpath_+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h.  */
10808
10809 int
10810 main ()
10811 {
10812
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10818
10819   lt_aix_libpath_sed='
10820       /Import File Strings/,/^$/ {
10821           /^0/ {
10822               s/^0  *\([^ ]*\) *$/\1/
10823               p
10824           }
10825       }'
10826   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10827   # Check for a 64-bit object if we didn't find anything.
10828   if test -z "$lt_cv_aix_libpath_"; then
10829     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10830   fi
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext \
10833     conftest$ac_exeext conftest.$ac_ext
10834   if test -z "$lt_cv_aix_libpath_"; then
10835     lt_cv_aix_libpath_=/usr/lib:/lib
10836   fi
10837
10838 fi
10839
10840   aix_libpath=$lt_cv_aix_libpath_
10841 fi
10842
10843         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10844         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10845       else
10846         if test ia64 = "$host_cpu"; then
10847           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10848           allow_undefined_flag="-z nodefs"
10849           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"
10850         else
10851          # Determine the default libpath from the value encoded in an
10852          # empty executable.
10853          if test set = "${lt_cv_aix_libpath+set}"; then
10854   aix_libpath=$lt_cv_aix_libpath
10855 else
10856   if ${lt_cv_aix_libpath_+:} false; then :
10857   $as_echo_n "(cached) " >&6
10858 else
10859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h.  */
10861
10862 int
10863 main ()
10864 {
10865
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871
10872   lt_aix_libpath_sed='
10873       /Import File Strings/,/^$/ {
10874           /^0/ {
10875               s/^0  *\([^ ]*\) *$/\1/
10876               p
10877           }
10878       }'
10879   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10880   # Check for a 64-bit object if we didn't find anything.
10881   if test -z "$lt_cv_aix_libpath_"; then
10882     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10883   fi
10884 fi
10885 rm -f core conftest.err conftest.$ac_objext \
10886     conftest$ac_exeext conftest.$ac_ext
10887   if test -z "$lt_cv_aix_libpath_"; then
10888     lt_cv_aix_libpath_=/usr/lib:/lib
10889   fi
10890
10891 fi
10892
10893   aix_libpath=$lt_cv_aix_libpath_
10894 fi
10895
10896          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10897           # Warning - without using the other run time loading flags,
10898           # -berok will link without error, but may produce a broken library.
10899           no_undefined_flag=' $wl-bernotok'
10900           allow_undefined_flag=' $wl-berok'
10901           if test yes = "$with_gnu_ld"; then
10902             # We only use this code for GNU lds that support --whole-archive.
10903             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10904           else
10905             # Exported symbols can be pulled into shared objects from archives
10906             whole_archive_flag_spec='$convenience'
10907           fi
10908           archive_cmds_need_lc=yes
10909           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10910           # -brtl affects multiple linker settings, -berok does not and is overridden later
10911           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10912           if test svr4 != "$with_aix_soname"; then
10913             # This is similar to how AIX traditionally builds its shared libraries.
10914             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10915           fi
10916           if test aix != "$with_aix_soname"; then
10917             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10918           else
10919             # used by -dlpreopen to get the symbols
10920             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10921           fi
10922           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10923         fi
10924       fi
10925       ;;
10926
10927     amigaos*)
10928       case $host_cpu in
10929       powerpc)
10930             # see comment about AmigaOS4 .so support
10931             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10932             archive_expsym_cmds=''
10933         ;;
10934       m68k)
10935             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)'
10936             hardcode_libdir_flag_spec='-L$libdir'
10937             hardcode_minus_L=yes
10938         ;;
10939       esac
10940       ;;
10941
10942     bsdi[45]*)
10943       export_dynamic_flag_spec=-rdynamic
10944       ;;
10945
10946     cygwin* | mingw* | pw32* | cegcc*)
10947       # When not using gcc, we currently assume that we are using
10948       # Microsoft Visual C++.
10949       # hardcode_libdir_flag_spec is actually meaningless, as there is
10950       # no search path for DLLs.
10951       case $cc_basename in
10952       cl*)
10953         # Native MSVC
10954         hardcode_libdir_flag_spec=' '
10955         allow_undefined_flag=unsupported
10956         always_export_symbols=yes
10957         file_list_spec='@'
10958         # Tell ltmain to make .lib files, not .a files.
10959         libext=lib
10960         # Tell ltmain to make .dll files, not .so files.
10961         shrext_cmds=.dll
10962         # FIXME: Setting linknames here is a bad hack.
10963         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10964         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10965             cp "$export_symbols" "$output_objdir/$soname.def";
10966             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10967           else
10968             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10969           fi~
10970           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10971           linknames='
10972         # The linker will not automatically build a static lib if we build a DLL.
10973         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10974         enable_shared_with_static_runtimes=yes
10975         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10976         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10977         # Don't use ranlib
10978         old_postinstall_cmds='chmod 644 $oldlib'
10979         postlink_cmds='lt_outputfile="@OUTPUT@"~
10980           lt_tool_outputfile="@TOOL_OUTPUT@"~
10981           case $lt_outputfile in
10982             *.exe|*.EXE) ;;
10983             *)
10984               lt_outputfile=$lt_outputfile.exe
10985               lt_tool_outputfile=$lt_tool_outputfile.exe
10986               ;;
10987           esac~
10988           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10989             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10990             $RM "$lt_outputfile.manifest";
10991           fi'
10992         ;;
10993       *)
10994         # Assume MSVC wrapper
10995         hardcode_libdir_flag_spec=' '
10996         allow_undefined_flag=unsupported
10997         # Tell ltmain to make .lib files, not .a files.
10998         libext=lib
10999         # Tell ltmain to make .dll files, not .so files.
11000         shrext_cmds=.dll
11001         # FIXME: Setting linknames here is a bad hack.
11002         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11003         # The linker will automatically build a .lib file if we build a DLL.
11004         old_archive_from_new_cmds='true'
11005         # FIXME: Should let the user specify the lib program.
11006         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11007         enable_shared_with_static_runtimes=yes
11008         ;;
11009       esac
11010       ;;
11011
11012     darwin* | rhapsody*)
11013
11014
11015   archive_cmds_need_lc=no
11016   hardcode_direct=no
11017   hardcode_automatic=yes
11018   hardcode_shlibpath_var=unsupported
11019   if test yes = "$lt_cv_ld_force_load"; then
11020     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\"`'
11021
11022   else
11023     whole_archive_flag_spec=''
11024   fi
11025   link_all_deplibs=yes
11026   allow_undefined_flag=$_lt_dar_allow_undefined
11027   case $cc_basename in
11028      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11029      *) _lt_dar_can_shared=$GCC ;;
11030   esac
11031   if test yes = "$_lt_dar_can_shared"; then
11032     output_verbose_link_cmd=func_echo_all
11033     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11034     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11035     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"
11036     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"
11037
11038   else
11039   ld_shlibs=no
11040   fi
11041
11042       ;;
11043
11044     dgux*)
11045       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11046       hardcode_libdir_flag_spec='-L$libdir'
11047       hardcode_shlibpath_var=no
11048       ;;
11049
11050     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11051     # support.  Future versions do this automatically, but an explicit c++rt0.o
11052     # does not break anything, and helps significantly (at the cost of a little
11053     # extra space).
11054     freebsd2.2*)
11055       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11056       hardcode_libdir_flag_spec='-R$libdir'
11057       hardcode_direct=yes
11058       hardcode_shlibpath_var=no
11059       ;;
11060
11061     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11062     freebsd2.*)
11063       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11064       hardcode_direct=yes
11065       hardcode_minus_L=yes
11066       hardcode_shlibpath_var=no
11067       ;;
11068
11069     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11070     freebsd* | dragonfly*)
11071       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11072       hardcode_libdir_flag_spec='-R$libdir'
11073       hardcode_direct=yes
11074       hardcode_shlibpath_var=no
11075       ;;
11076
11077     hpux9*)
11078       if test yes = "$GCC"; then
11079         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11080       else
11081         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11082       fi
11083       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11084       hardcode_libdir_separator=:
11085       hardcode_direct=yes
11086
11087       # hardcode_minus_L: Not really in the search PATH,
11088       # but as the default location of the library.
11089       hardcode_minus_L=yes
11090       export_dynamic_flag_spec='$wl-E'
11091       ;;
11092
11093     hpux10*)
11094       if test yes,no = "$GCC,$with_gnu_ld"; then
11095         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11096       else
11097         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11098       fi
11099       if test no = "$with_gnu_ld"; then
11100         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11101         hardcode_libdir_separator=:
11102         hardcode_direct=yes
11103         hardcode_direct_absolute=yes
11104         export_dynamic_flag_spec='$wl-E'
11105         # hardcode_minus_L: Not really in the search PATH,
11106         # but as the default location of the library.
11107         hardcode_minus_L=yes
11108       fi
11109       ;;
11110
11111     hpux11*)
11112       if test yes,no = "$GCC,$with_gnu_ld"; then
11113         case $host_cpu in
11114         hppa*64*)
11115           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11116           ;;
11117         ia64*)
11118           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11119           ;;
11120         *)
11121           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11122           ;;
11123         esac
11124       else
11125         case $host_cpu in
11126         hppa*64*)
11127           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11128           ;;
11129         ia64*)
11130           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11131           ;;
11132         *)
11133
11134           # Older versions of the 11.00 compiler do not understand -b yet
11135           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11136           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11137 $as_echo_n "checking if $CC understands -b... " >&6; }
11138 if ${lt_cv_prog_compiler__b+:} false; then :
11139   $as_echo_n "(cached) " >&6
11140 else
11141   lt_cv_prog_compiler__b=no
11142    save_LDFLAGS=$LDFLAGS
11143    LDFLAGS="$LDFLAGS -b"
11144    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11145    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11146      # The linker can only warn and ignore the option if not recognized
11147      # So say no if there are warnings
11148      if test -s conftest.err; then
11149        # Append any errors to the config.log.
11150        cat conftest.err 1>&5
11151        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11152        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11153        if diff conftest.exp conftest.er2 >/dev/null; then
11154          lt_cv_prog_compiler__b=yes
11155        fi
11156      else
11157        lt_cv_prog_compiler__b=yes
11158      fi
11159    fi
11160    $RM -r conftest*
11161    LDFLAGS=$save_LDFLAGS
11162
11163 fi
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11165 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11166
11167 if test yes = "$lt_cv_prog_compiler__b"; then
11168     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11169 else
11170     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11171 fi
11172
11173           ;;
11174         esac
11175       fi
11176       if test no = "$with_gnu_ld"; then
11177         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11178         hardcode_libdir_separator=:
11179
11180         case $host_cpu in
11181         hppa*64*|ia64*)
11182           hardcode_direct=no
11183           hardcode_shlibpath_var=no
11184           ;;
11185         *)
11186           hardcode_direct=yes
11187           hardcode_direct_absolute=yes
11188           export_dynamic_flag_spec='$wl-E'
11189
11190           # hardcode_minus_L: Not really in the search PATH,
11191           # but as the default location of the library.
11192           hardcode_minus_L=yes
11193           ;;
11194         esac
11195       fi
11196       ;;
11197
11198     irix5* | irix6* | nonstopux*)
11199       if test yes = "$GCC"; then
11200         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'
11201         # Try to use the -exported_symbol ld option, if it does not
11202         # work, assume that -exports_file does not work either and
11203         # implicitly export all symbols.
11204         # This should be the same for all languages, so no per-tag cache variable.
11205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11206 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11207 if ${lt_cv_irix_exported_symbol+:} false; then :
11208   $as_echo_n "(cached) " >&6
11209 else
11210   save_LDFLAGS=$LDFLAGS
11211            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11212            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h.  */
11214 int foo (void) { return 0; }
11215 _ACEOF
11216 if ac_fn_c_try_link "$LINENO"; then :
11217   lt_cv_irix_exported_symbol=yes
11218 else
11219   lt_cv_irix_exported_symbol=no
11220 fi
11221 rm -f core conftest.err conftest.$ac_objext \
11222     conftest$ac_exeext conftest.$ac_ext
11223            LDFLAGS=$save_LDFLAGS
11224 fi
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11226 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11227         if test yes = "$lt_cv_irix_exported_symbol"; then
11228           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'
11229         fi
11230         link_all_deplibs=no
11231       else
11232         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'
11233         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'
11234       fi
11235       archive_cmds_need_lc='no'
11236       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11237       hardcode_libdir_separator=:
11238       inherit_rpath=yes
11239       link_all_deplibs=yes
11240       ;;
11241
11242     linux*)
11243       case $cc_basename in
11244       tcc*)
11245         # Fabrice Bellard et al's Tiny C Compiler
11246         ld_shlibs=yes
11247         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11248         ;;
11249       esac
11250       ;;
11251
11252     netbsd* | netbsdelf*-gnu)
11253       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11254         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11255       else
11256         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11257       fi
11258       hardcode_libdir_flag_spec='-R$libdir'
11259       hardcode_direct=yes
11260       hardcode_shlibpath_var=no
11261       ;;
11262
11263     newsos6)
11264       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11265       hardcode_direct=yes
11266       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11267       hardcode_libdir_separator=:
11268       hardcode_shlibpath_var=no
11269       ;;
11270
11271     *nto* | *qnx*)
11272       ;;
11273
11274     openbsd* | bitrig*)
11275       if test -f /usr/libexec/ld.so; then
11276         hardcode_direct=yes
11277         hardcode_shlibpath_var=no
11278         hardcode_direct_absolute=yes
11279         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11280           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11281           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11282           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11283           export_dynamic_flag_spec='$wl-E'
11284         else
11285           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11286           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11287         fi
11288       else
11289         ld_shlibs=no
11290       fi
11291       ;;
11292
11293     os2*)
11294       hardcode_libdir_flag_spec='-L$libdir'
11295       hardcode_minus_L=yes
11296       allow_undefined_flag=unsupported
11297       shrext_cmds=.dll
11298       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11299         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11300         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11301         $ECHO EXPORTS >> $output_objdir/$libname.def~
11302         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11303         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11304         emximp -o $lib $output_objdir/$libname.def'
11305       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11306         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11307         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11308         $ECHO EXPORTS >> $output_objdir/$libname.def~
11309         prefix_cmds="$SED"~
11310         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11311           prefix_cmds="$prefix_cmds -e 1d";
11312         fi~
11313         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11314         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11315         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11316         emximp -o $lib $output_objdir/$libname.def'
11317       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11318       enable_shared_with_static_runtimes=yes
11319       ;;
11320
11321     osf3*)
11322       if test yes = "$GCC"; then
11323         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11324         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'
11325       else
11326         allow_undefined_flag=' -expect_unresolved \*'
11327         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'
11328       fi
11329       archive_cmds_need_lc='no'
11330       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11331       hardcode_libdir_separator=:
11332       ;;
11333
11334     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11335       if test yes = "$GCC"; then
11336         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11337         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'
11338         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11339       else
11340         allow_undefined_flag=' -expect_unresolved \*'
11341         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'
11342         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~
11343           $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'
11344
11345         # Both c and cxx compiler support -rpath directly
11346         hardcode_libdir_flag_spec='-rpath $libdir'
11347       fi
11348       archive_cmds_need_lc='no'
11349       hardcode_libdir_separator=:
11350       ;;
11351
11352     solaris*)
11353       no_undefined_flag=' -z defs'
11354       if test yes = "$GCC"; then
11355         wlarc='$wl'
11356         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11357         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11358           $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'
11359       else
11360         case `$CC -V 2>&1` in
11361         *"Compilers 5.0"*)
11362           wlarc=''
11363           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11365             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11366           ;;
11367         *)
11368           wlarc='$wl'
11369           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11370           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11371             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11372           ;;
11373         esac
11374       fi
11375       hardcode_libdir_flag_spec='-R$libdir'
11376       hardcode_shlibpath_var=no
11377       case $host_os in
11378       solaris2.[0-5] | solaris2.[0-5].*) ;;
11379       *)
11380         # The compiler driver will combine and reorder linker options,
11381         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11382         # but is careful enough not to reorder.
11383         # Supported since Solaris 2.6 (maybe 2.5.1?)
11384         if test yes = "$GCC"; then
11385           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11386         else
11387           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11388         fi
11389         ;;
11390       esac
11391       link_all_deplibs=yes
11392       ;;
11393
11394     sunos4*)
11395       if test sequent = "$host_vendor"; then
11396         # Use $CC to link under sequent, because it throws in some extra .o
11397         # files that make .init and .fini sections work.
11398         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11399       else
11400         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11401       fi
11402       hardcode_libdir_flag_spec='-L$libdir'
11403       hardcode_direct=yes
11404       hardcode_minus_L=yes
11405       hardcode_shlibpath_var=no
11406       ;;
11407
11408     sysv4)
11409       case $host_vendor in
11410         sni)
11411           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412           hardcode_direct=yes # is this really true???
11413         ;;
11414         siemens)
11415           ## LD is ld it makes a PLAMLIB
11416           ## CC just makes a GrossModule.
11417           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11418           reload_cmds='$CC -r -o $output$reload_objs'
11419           hardcode_direct=no
11420         ;;
11421         motorola)
11422           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11423           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11424         ;;
11425       esac
11426       runpath_var='LD_RUN_PATH'
11427       hardcode_shlibpath_var=no
11428       ;;
11429
11430     sysv4.3*)
11431       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11432       hardcode_shlibpath_var=no
11433       export_dynamic_flag_spec='-Bexport'
11434       ;;
11435
11436     sysv4*MP*)
11437       if test -d /usr/nec; then
11438         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11439         hardcode_shlibpath_var=no
11440         runpath_var=LD_RUN_PATH
11441         hardcode_runpath_var=yes
11442         ld_shlibs=yes
11443       fi
11444       ;;
11445
11446     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11447       no_undefined_flag='$wl-z,text'
11448       archive_cmds_need_lc=no
11449       hardcode_shlibpath_var=no
11450       runpath_var='LD_RUN_PATH'
11451
11452       if test yes = "$GCC"; then
11453         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11454         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11455       else
11456         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11457         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11458       fi
11459       ;;
11460
11461     sysv5* | sco3.2v5* | sco5v6*)
11462       # Note: We CANNOT use -z defs as we might desire, because we do not
11463       # link with -lc, and that would cause any symbols used from libc to
11464       # always be unresolved, which means just about no library would
11465       # ever link correctly.  If we're not using GNU ld we use -z text
11466       # though, which does catch some bad symbols but isn't as heavy-handed
11467       # as -z defs.
11468       no_undefined_flag='$wl-z,text'
11469       allow_undefined_flag='$wl-z,nodefs'
11470       archive_cmds_need_lc=no
11471       hardcode_shlibpath_var=no
11472       hardcode_libdir_flag_spec='$wl-R,$libdir'
11473       hardcode_libdir_separator=':'
11474       link_all_deplibs=yes
11475       export_dynamic_flag_spec='$wl-Bexport'
11476       runpath_var='LD_RUN_PATH'
11477
11478       if test yes = "$GCC"; then
11479         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11481       else
11482         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11484       fi
11485       ;;
11486
11487     uts4*)
11488       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11489       hardcode_libdir_flag_spec='-L$libdir'
11490       hardcode_shlibpath_var=no
11491       ;;
11492
11493     *)
11494       ld_shlibs=no
11495       ;;
11496     esac
11497
11498     if test sni = "$host_vendor"; then
11499       case $host in
11500       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11501         export_dynamic_flag_spec='$wl-Blargedynsym'
11502         ;;
11503       esac
11504     fi
11505   fi
11506
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11508 $as_echo "$ld_shlibs" >&6; }
11509 test no = "$ld_shlibs" && can_build_shared=no
11510
11511 with_gnu_ld=$with_gnu_ld
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527 #
11528 # Do we need to explicitly link libc?
11529 #
11530 case "x$archive_cmds_need_lc" in
11531 x|xyes)
11532   # Assume -lc should be added
11533   archive_cmds_need_lc=yes
11534
11535   if test yes,yes = "$GCC,$enable_shared"; then
11536     case $archive_cmds in
11537     *'~'*)
11538       # FIXME: we may have to deal with multi-command sequences.
11539       ;;
11540     '$CC '*)
11541       # Test whether the compiler implicitly links with -lc since on some
11542       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11543       # to ld, don't add -lc before -lgcc.
11544       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11546 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549   $RM conftest*
11550         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11551
11552         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11553   (eval $ac_compile) 2>&5
11554   ac_status=$?
11555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556   test $ac_status = 0; } 2>conftest.err; then
11557           soname=conftest
11558           lib=conftest
11559           libobjs=conftest.$ac_objext
11560           deplibs=
11561           wl=$lt_prog_compiler_wl
11562           pic_flag=$lt_prog_compiler_pic
11563           compiler_flags=-v
11564           linker_flags=-v
11565           verstring=
11566           output_objdir=.
11567           libname=conftest
11568           lt_save_allow_undefined_flag=$allow_undefined_flag
11569           allow_undefined_flag=
11570           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11571   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11572   ac_status=$?
11573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574   test $ac_status = 0; }
11575           then
11576             lt_cv_archive_cmds_need_lc=no
11577           else
11578             lt_cv_archive_cmds_need_lc=yes
11579           fi
11580           allow_undefined_flag=$lt_save_allow_undefined_flag
11581         else
11582           cat conftest.err 1>&5
11583         fi
11584         $RM conftest*
11585
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11588 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11589       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11590       ;;
11591     esac
11592   fi
11593   ;;
11594 esac
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11748 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11749
11750 if test yes = "$GCC"; then
11751   case $host_os in
11752     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11753     *) lt_awk_arg='/^libraries:/' ;;
11754   esac
11755   case $host_os in
11756     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11757     *) lt_sed_strip_eq='s|=/|/|g' ;;
11758   esac
11759   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11760   case $lt_search_path_spec in
11761   *\;*)
11762     # if the path contains ";" then we assume it to be the separator
11763     # otherwise default to the standard path separator (i.e. ":") - it is
11764     # assumed that no part of a normal pathname contains ";" but that should
11765     # okay in the real world where ";" in dirpaths is itself problematic.
11766     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11767     ;;
11768   *)
11769     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11770     ;;
11771   esac
11772   # Ok, now we have the path, separated by spaces, we can step through it
11773   # and add multilib dir if necessary...
11774   lt_tmp_lt_search_path_spec=
11775   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11776   # ...but if some path component already ends with the multilib dir we assume
11777   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11778   case "$lt_multi_os_dir; $lt_search_path_spec " in
11779   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11780     lt_multi_os_dir=
11781     ;;
11782   esac
11783   for lt_sys_path in $lt_search_path_spec; do
11784     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11785       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11786     elif test -n "$lt_multi_os_dir"; then
11787       test -d "$lt_sys_path" && \
11788         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11789     fi
11790   done
11791   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11792 BEGIN {RS = " "; FS = "/|\n";} {
11793   lt_foo = "";
11794   lt_count = 0;
11795   for (lt_i = NF; lt_i > 0; lt_i--) {
11796     if ($lt_i != "" && $lt_i != ".") {
11797       if ($lt_i == "..") {
11798         lt_count++;
11799       } else {
11800         if (lt_count == 0) {
11801           lt_foo = "/" $lt_i lt_foo;
11802         } else {
11803           lt_count--;
11804         }
11805       }
11806     }
11807   }
11808   if (lt_foo != "") { lt_freq[lt_foo]++; }
11809   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11810 }'`
11811   # AWK program above erroneously prepends '/' to C:/dos/paths
11812   # for these hosts.
11813   case $host_os in
11814     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11815       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11816   esac
11817   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11818 else
11819   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11820 fi
11821 library_names_spec=
11822 libname_spec='lib$name'
11823 soname_spec=
11824 shrext_cmds=.so
11825 postinstall_cmds=
11826 postuninstall_cmds=
11827 finish_cmds=
11828 finish_eval=
11829 shlibpath_var=
11830 shlibpath_overrides_runpath=unknown
11831 version_type=none
11832 dynamic_linker="$host_os ld.so"
11833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11834 need_lib_prefix=unknown
11835 hardcode_into_libs=no
11836
11837 # when you set need_version to no, make sure it does not cause -set_version
11838 # flags to be left without arguments
11839 need_version=unknown
11840
11841
11842
11843 case $host_os in
11844 aix3*)
11845   version_type=linux # correct to gnu/linux during the next big refactor
11846   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11847   shlibpath_var=LIBPATH
11848
11849   # AIX 3 has no versioning support, so we append a major version to the name.
11850   soname_spec='$libname$release$shared_ext$major'
11851   ;;
11852
11853 aix[4-9]*)
11854   version_type=linux # correct to gnu/linux during the next big refactor
11855   need_lib_prefix=no
11856   need_version=no
11857   hardcode_into_libs=yes
11858   if test ia64 = "$host_cpu"; then
11859     # AIX 5 supports IA64
11860     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11861     shlibpath_var=LD_LIBRARY_PATH
11862   else
11863     # With GCC up to 2.95.x, collect2 would create an import file
11864     # for dependence libraries.  The import file would start with
11865     # the line '#! .'.  This would cause the generated library to
11866     # depend on '.', always an invalid library.  This was fixed in
11867     # development snapshots of GCC prior to 3.0.
11868     case $host_os in
11869       aix4 | aix4.[01] | aix4.[01].*)
11870       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11871            echo ' yes '
11872            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11873         :
11874       else
11875         can_build_shared=no
11876       fi
11877       ;;
11878     esac
11879     # Using Import Files as archive members, it is possible to support
11880     # filename-based versioning of shared library archives on AIX. While
11881     # this would work for both with and without runtime linking, it will
11882     # prevent static linking of such archives. So we do filename-based
11883     # shared library versioning with .so extension only, which is used
11884     # when both runtime linking and shared linking is enabled.
11885     # Unfortunately, runtime linking may impact performance, so we do
11886     # not want this to be the default eventually. Also, we use the
11887     # versioned .so libs for executables only if there is the -brtl
11888     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11889     # To allow for filename-based versioning support, we need to create
11890     # libNAME.so.V as an archive file, containing:
11891     # *) an Import File, referring to the versioned filename of the
11892     #    archive as well as the shared archive member, telling the
11893     #    bitwidth (32 or 64) of that shared object, and providing the
11894     #    list of exported symbols of that shared object, eventually
11895     #    decorated with the 'weak' keyword
11896     # *) the shared object with the F_LOADONLY flag set, to really avoid
11897     #    it being seen by the linker.
11898     # At run time we better use the real file rather than another symlink,
11899     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11900
11901     case $with_aix_soname,$aix_use_runtimelinking in
11902     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11903     # soname into executable. Probably we can add versioning support to
11904     # collect2, so additional links can be useful in future.
11905     aix,yes) # traditional libtool
11906       dynamic_linker='AIX unversionable lib.so'
11907       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11908       # instead of lib<name>.a to let people know that these are not
11909       # typical AIX shared libraries.
11910       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11911       ;;
11912     aix,no) # traditional AIX only
11913       dynamic_linker='AIX lib.a(lib.so.V)'
11914       # We preserve .a as extension for shared libraries through AIX4.2
11915       # and later when we are not doing run time linking.
11916       library_names_spec='$libname$release.a $libname.a'
11917       soname_spec='$libname$release$shared_ext$major'
11918       ;;
11919     svr4,*) # full svr4 only
11920       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11921       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11922       # We do not specify a path in Import Files, so LIBPATH fires.
11923       shlibpath_overrides_runpath=yes
11924       ;;
11925     *,yes) # both, prefer svr4
11926       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11927       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11928       # unpreferred sharedlib libNAME.a needs extra handling
11929       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11930       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11931       # We do not specify a path in Import Files, so LIBPATH fires.
11932       shlibpath_overrides_runpath=yes
11933       ;;
11934     *,no) # both, prefer aix
11935       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11936       library_names_spec='$libname$release.a $libname.a'
11937       soname_spec='$libname$release$shared_ext$major'
11938       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11939       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11940       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11941       ;;
11942     esac
11943     shlibpath_var=LIBPATH
11944   fi
11945   ;;
11946
11947 amigaos*)
11948   case $host_cpu in
11949   powerpc)
11950     # Since July 2007 AmigaOS4 officially supports .so libraries.
11951     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11952     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11953     ;;
11954   m68k)
11955     library_names_spec='$libname.ixlibrary $libname.a'
11956     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11957     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11958     ;;
11959   esac
11960   ;;
11961
11962 beos*)
11963   library_names_spec='$libname$shared_ext'
11964   dynamic_linker="$host_os ld.so"
11965   shlibpath_var=LIBRARY_PATH
11966   ;;
11967
11968 bsdi[45]*)
11969   version_type=linux # correct to gnu/linux during the next big refactor
11970   need_version=no
11971   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972   soname_spec='$libname$release$shared_ext$major'
11973   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11974   shlibpath_var=LD_LIBRARY_PATH
11975   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11976   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11977   # the default ld.so.conf also contains /usr/contrib/lib and
11978   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11979   # libtool to hard-code these into programs
11980   ;;
11981
11982 cygwin* | mingw* | pw32* | cegcc*)
11983   version_type=windows
11984   shrext_cmds=.dll
11985   need_version=no
11986   need_lib_prefix=no
11987
11988   case $GCC,$cc_basename in
11989   yes,*)
11990     # gcc
11991     library_names_spec='$libname.dll.a'
11992     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11993     postinstall_cmds='base_file=`basename \$file`~
11994       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11995       dldir=$destdir/`dirname \$dlpath`~
11996       test -d \$dldir || mkdir -p \$dldir~
11997       $install_prog $dir/$dlname \$dldir/$dlname~
11998       chmod a+x \$dldir/$dlname~
11999       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12000         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12001       fi'
12002     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12003       dlpath=$dir/\$dldll~
12004        $RM \$dlpath'
12005     shlibpath_overrides_runpath=yes
12006
12007     case $host_os in
12008     cygwin*)
12009       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12010       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12011
12012       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12013       ;;
12014     mingw* | cegcc*)
12015       # MinGW DLLs use traditional 'lib' prefix
12016       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12017       ;;
12018     pw32*)
12019       # pw32 DLLs use 'pw' prefix rather than 'lib'
12020       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12021       ;;
12022     esac
12023     dynamic_linker='Win32 ld.exe'
12024     ;;
12025
12026   *,cl*)
12027     # Native MSVC
12028     libname_spec='$name'
12029     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12030     library_names_spec='$libname.dll.lib'
12031
12032     case $build_os in
12033     mingw*)
12034       sys_lib_search_path_spec=
12035       lt_save_ifs=$IFS
12036       IFS=';'
12037       for lt_path in $LIB
12038       do
12039         IFS=$lt_save_ifs
12040         # Let DOS variable expansion print the short 8.3 style file name.
12041         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12042         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12043       done
12044       IFS=$lt_save_ifs
12045       # Convert to MSYS style.
12046       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12047       ;;
12048     cygwin*)
12049       # Convert to unix form, then to dos form, then back to unix form
12050       # but this time dos style (no spaces!) so that the unix form looks
12051       # like /cygdrive/c/PROGRA~1:/cygdr...
12052       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12053       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12054       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12055       ;;
12056     *)
12057       sys_lib_search_path_spec=$LIB
12058       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12059         # It is most probably a Windows format PATH.
12060         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12061       else
12062         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12063       fi
12064       # FIXME: find the short name or the path components, as spaces are
12065       # common. (e.g. "Program Files" -> "PROGRA~1")
12066       ;;
12067     esac
12068
12069     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12070     postinstall_cmds='base_file=`basename \$file`~
12071       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12072       dldir=$destdir/`dirname \$dlpath`~
12073       test -d \$dldir || mkdir -p \$dldir~
12074       $install_prog $dir/$dlname \$dldir/$dlname'
12075     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12076       dlpath=$dir/\$dldll~
12077        $RM \$dlpath'
12078     shlibpath_overrides_runpath=yes
12079     dynamic_linker='Win32 link.exe'
12080     ;;
12081
12082   *)
12083     # Assume MSVC wrapper
12084     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12085     dynamic_linker='Win32 ld.exe'
12086     ;;
12087   esac
12088   # FIXME: first we should search . and the directory the executable is in
12089   shlibpath_var=PATH
12090   ;;
12091
12092 darwin* | rhapsody*)
12093   dynamic_linker="$host_os dyld"
12094   version_type=darwin
12095   need_lib_prefix=no
12096   need_version=no
12097   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12098   soname_spec='$libname$release$major$shared_ext'
12099   shlibpath_overrides_runpath=yes
12100   shlibpath_var=DYLD_LIBRARY_PATH
12101   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12102
12103   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12104   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12105   ;;
12106
12107 dgux*)
12108   version_type=linux # correct to gnu/linux during the next big refactor
12109   need_lib_prefix=no
12110   need_version=no
12111   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12112   soname_spec='$libname$release$shared_ext$major'
12113   shlibpath_var=LD_LIBRARY_PATH
12114   ;;
12115
12116 freebsd* | dragonfly*)
12117   # DragonFly does not have aout.  When/if they implement a new
12118   # versioning mechanism, adjust this.
12119   if test -x /usr/bin/objformat; then
12120     objformat=`/usr/bin/objformat`
12121   else
12122     case $host_os in
12123     freebsd[23].*) objformat=aout ;;
12124     *) objformat=elf ;;
12125     esac
12126   fi
12127   version_type=freebsd-$objformat
12128   case $version_type in
12129     freebsd-elf*)
12130       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12131       soname_spec='$libname$release$shared_ext$major'
12132       need_version=no
12133       need_lib_prefix=no
12134       ;;
12135     freebsd-*)
12136       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12137       need_version=yes
12138       ;;
12139   esac
12140   shlibpath_var=LD_LIBRARY_PATH
12141   case $host_os in
12142   freebsd2.*)
12143     shlibpath_overrides_runpath=yes
12144     ;;
12145   freebsd3.[01]* | freebsdelf3.[01]*)
12146     shlibpath_overrides_runpath=yes
12147     hardcode_into_libs=yes
12148     ;;
12149   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12150   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12151     shlibpath_overrides_runpath=no
12152     hardcode_into_libs=yes
12153     ;;
12154   *) # from 4.6 on, and DragonFly
12155     shlibpath_overrides_runpath=yes
12156     hardcode_into_libs=yes
12157     ;;
12158   esac
12159   ;;
12160
12161 haiku*)
12162   version_type=linux # correct to gnu/linux during the next big refactor
12163   need_lib_prefix=no
12164   need_version=no
12165   dynamic_linker="$host_os runtime_loader"
12166   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12167   soname_spec='$libname$release$shared_ext$major'
12168   shlibpath_var=LIBRARY_PATH
12169   shlibpath_overrides_runpath=no
12170   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12171   hardcode_into_libs=yes
12172   ;;
12173
12174 hpux9* | hpux10* | hpux11*)
12175   # Give a soname corresponding to the major version so that dld.sl refuses to
12176   # link against other versions.
12177   version_type=sunos
12178   need_lib_prefix=no
12179   need_version=no
12180   case $host_cpu in
12181   ia64*)
12182     shrext_cmds='.so'
12183     hardcode_into_libs=yes
12184     dynamic_linker="$host_os dld.so"
12185     shlibpath_var=LD_LIBRARY_PATH
12186     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12187     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12188     soname_spec='$libname$release$shared_ext$major'
12189     if test 32 = "$HPUX_IA64_MODE"; then
12190       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12191       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12192     else
12193       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12194       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12195     fi
12196     ;;
12197   hppa*64*)
12198     shrext_cmds='.sl'
12199     hardcode_into_libs=yes
12200     dynamic_linker="$host_os dld.sl"
12201     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12202     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12203     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12204     soname_spec='$libname$release$shared_ext$major'
12205     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12206     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12207     ;;
12208   *)
12209     shrext_cmds='.sl'
12210     dynamic_linker="$host_os dld.sl"
12211     shlibpath_var=SHLIB_PATH
12212     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12213     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214     soname_spec='$libname$release$shared_ext$major'
12215     ;;
12216   esac
12217   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12218   postinstall_cmds='chmod 555 $lib'
12219   # or fails outright, so override atomically:
12220   install_override_mode=555
12221   ;;
12222
12223 interix[3-9]*)
12224   version_type=linux # correct to gnu/linux during the next big refactor
12225   need_lib_prefix=no
12226   need_version=no
12227   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12228   soname_spec='$libname$release$shared_ext$major'
12229   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12230   shlibpath_var=LD_LIBRARY_PATH
12231   shlibpath_overrides_runpath=no
12232   hardcode_into_libs=yes
12233   ;;
12234
12235 irix5* | irix6* | nonstopux*)
12236   case $host_os in
12237     nonstopux*) version_type=nonstopux ;;
12238     *)
12239         if test yes = "$lt_cv_prog_gnu_ld"; then
12240                 version_type=linux # correct to gnu/linux during the next big refactor
12241         else
12242                 version_type=irix
12243         fi ;;
12244   esac
12245   need_lib_prefix=no
12246   need_version=no
12247   soname_spec='$libname$release$shared_ext$major'
12248   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12249   case $host_os in
12250   irix5* | nonstopux*)
12251     libsuff= shlibsuff=
12252     ;;
12253   *)
12254     case $LD in # libtool.m4 will add one of these switches to LD
12255     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12256       libsuff= shlibsuff= libmagic=32-bit;;
12257     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12258       libsuff=32 shlibsuff=N32 libmagic=N32;;
12259     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12260       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12261     *) libsuff= shlibsuff= libmagic=never-match;;
12262     esac
12263     ;;
12264   esac
12265   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12266   shlibpath_overrides_runpath=no
12267   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12268   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12269   hardcode_into_libs=yes
12270   ;;
12271
12272 # No shared lib support for Linux oldld, aout, or coff.
12273 linux*oldld* | linux*aout* | linux*coff*)
12274   dynamic_linker=no
12275   ;;
12276
12277 linux*android*)
12278   version_type=none # Android doesn't support versioned libraries.
12279   need_lib_prefix=no
12280   need_version=no
12281   library_names_spec='$libname$release$shared_ext'
12282   soname_spec='$libname$release$shared_ext'
12283   finish_cmds=
12284   shlibpath_var=LD_LIBRARY_PATH
12285   shlibpath_overrides_runpath=yes
12286
12287   # This implies no fast_install, which is unacceptable.
12288   # Some rework will be needed to allow for fast_install
12289   # before this can be enabled.
12290   hardcode_into_libs=yes
12291
12292   dynamic_linker='Android linker'
12293   # Don't embed -rpath directories since the linker doesn't support them.
12294   hardcode_libdir_flag_spec='-L$libdir'
12295   ;;
12296
12297 # This must be glibc/ELF.
12298 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12299   version_type=linux # correct to gnu/linux during the next big refactor
12300   need_lib_prefix=no
12301   need_version=no
12302   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12303   soname_spec='$libname$release$shared_ext$major'
12304   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12305   shlibpath_var=LD_LIBRARY_PATH
12306   shlibpath_overrides_runpath=no
12307
12308   # Some binutils ld are patched to set DT_RUNPATH
12309   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12310   $as_echo_n "(cached) " >&6
12311 else
12312   lt_cv_shlibpath_overrides_runpath=no
12313     save_LDFLAGS=$LDFLAGS
12314     save_libdir=$libdir
12315     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12316          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h.  */
12319
12320 int
12321 main ()
12322 {
12323
12324   ;
12325   return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_link "$LINENO"; then :
12329   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12330   lt_cv_shlibpath_overrides_runpath=yes
12331 fi
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext \
12334     conftest$ac_exeext conftest.$ac_ext
12335     LDFLAGS=$save_LDFLAGS
12336     libdir=$save_libdir
12337
12338 fi
12339
12340   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12341
12342   # This implies no fast_install, which is unacceptable.
12343   # Some rework will be needed to allow for fast_install
12344   # before this can be enabled.
12345   hardcode_into_libs=yes
12346
12347   # Ideally, we could use ldconfig to report *all* directores which are
12348   # searched for libraries, however this is still not possible.  Aside from not
12349   # being certain /sbin/ldconfig is available, command
12350   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12351   # even though it is searched at run-time.  Try to do the best guess by
12352   # appending ld.so.conf contents (and includes) to the search path.
12353   if test -f /etc/ld.so.conf; then
12354     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' ' '`
12355     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12356   fi
12357
12358   # We used to test for /lib/ld.so.1 and disable shared libraries on
12359   # powerpc, because MkLinux only supported shared libraries with the
12360   # GNU dynamic linker.  Since this was broken with cross compilers,
12361   # most powerpc-linux boxes support dynamic linking these days and
12362   # people can always --disable-shared, the test was removed, and we
12363   # assume the GNU/Linux dynamic linker is in use.
12364   dynamic_linker='GNU/Linux ld.so'
12365   ;;
12366
12367 netbsdelf*-gnu)
12368   version_type=linux
12369   need_lib_prefix=no
12370   need_version=no
12371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12372   soname_spec='${libname}${release}${shared_ext}$major'
12373   shlibpath_var=LD_LIBRARY_PATH
12374   shlibpath_overrides_runpath=no
12375   hardcode_into_libs=yes
12376   dynamic_linker='NetBSD ld.elf_so'
12377   ;;
12378
12379 netbsd*)
12380   version_type=sunos
12381   need_lib_prefix=no
12382   need_version=no
12383   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12384     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12385     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12386     dynamic_linker='NetBSD (a.out) ld.so'
12387   else
12388     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389     soname_spec='$libname$release$shared_ext$major'
12390     dynamic_linker='NetBSD ld.elf_so'
12391   fi
12392   shlibpath_var=LD_LIBRARY_PATH
12393   shlibpath_overrides_runpath=yes
12394   hardcode_into_libs=yes
12395   ;;
12396
12397 newsos6)
12398   version_type=linux # correct to gnu/linux during the next big refactor
12399   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12400   shlibpath_var=LD_LIBRARY_PATH
12401   shlibpath_overrides_runpath=yes
12402   ;;
12403
12404 *nto* | *qnx*)
12405   version_type=qnx
12406   need_lib_prefix=no
12407   need_version=no
12408   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409   soname_spec='$libname$release$shared_ext$major'
12410   shlibpath_var=LD_LIBRARY_PATH
12411   shlibpath_overrides_runpath=no
12412   hardcode_into_libs=yes
12413   dynamic_linker='ldqnx.so'
12414   ;;
12415
12416 openbsd* | bitrig*)
12417   version_type=sunos
12418   sys_lib_dlsearch_path_spec=/usr/lib
12419   need_lib_prefix=no
12420   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12421     need_version=no
12422   else
12423     need_version=yes
12424   fi
12425   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12427   shlibpath_var=LD_LIBRARY_PATH
12428   shlibpath_overrides_runpath=yes
12429   ;;
12430
12431 os2*)
12432   libname_spec='$name'
12433   version_type=windows
12434   shrext_cmds=.dll
12435   need_version=no
12436   need_lib_prefix=no
12437   # OS/2 can only load a DLL with a base name of 8 characters or less.
12438   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12439     v=$($ECHO $release$versuffix | tr -d .-);
12440     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12441     $ECHO $n$v`$shared_ext'
12442   library_names_spec='${libname}_dll.$libext'
12443   dynamic_linker='OS/2 ld.exe'
12444   shlibpath_var=BEGINLIBPATH
12445   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12446   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12447   postinstall_cmds='base_file=`basename \$file`~
12448     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12449     dldir=$destdir/`dirname \$dlpath`~
12450     test -d \$dldir || mkdir -p \$dldir~
12451     $install_prog $dir/$dlname \$dldir/$dlname~
12452     chmod a+x \$dldir/$dlname~
12453     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12454       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12455     fi'
12456   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12457     dlpath=$dir/\$dldll~
12458     $RM \$dlpath'
12459   ;;
12460
12461 osf3* | osf4* | osf5*)
12462   version_type=osf
12463   need_lib_prefix=no
12464   need_version=no
12465   soname_spec='$libname$release$shared_ext$major'
12466   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467   shlibpath_var=LD_LIBRARY_PATH
12468   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12469   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12470   ;;
12471
12472 rdos*)
12473   dynamic_linker=no
12474   ;;
12475
12476 solaris*)
12477   version_type=linux # correct to gnu/linux during the next big refactor
12478   need_lib_prefix=no
12479   need_version=no
12480   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481   soname_spec='$libname$release$shared_ext$major'
12482   shlibpath_var=LD_LIBRARY_PATH
12483   shlibpath_overrides_runpath=yes
12484   hardcode_into_libs=yes
12485   # ldd complains unless libraries are executable
12486   postinstall_cmds='chmod +x $lib'
12487   ;;
12488
12489 sunos4*)
12490   version_type=sunos
12491   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12492   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12493   shlibpath_var=LD_LIBRARY_PATH
12494   shlibpath_overrides_runpath=yes
12495   if test yes = "$with_gnu_ld"; then
12496     need_lib_prefix=no
12497   fi
12498   need_version=yes
12499   ;;
12500
12501 sysv4 | sysv4.3*)
12502   version_type=linux # correct to gnu/linux during the next big refactor
12503   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12504   soname_spec='$libname$release$shared_ext$major'
12505   shlibpath_var=LD_LIBRARY_PATH
12506   case $host_vendor in
12507     sni)
12508       shlibpath_overrides_runpath=no
12509       need_lib_prefix=no
12510       runpath_var=LD_RUN_PATH
12511       ;;
12512     siemens)
12513       need_lib_prefix=no
12514       ;;
12515     motorola)
12516       need_lib_prefix=no
12517       need_version=no
12518       shlibpath_overrides_runpath=no
12519       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12520       ;;
12521   esac
12522   ;;
12523
12524 sysv4*MP*)
12525   if test -d /usr/nec; then
12526     version_type=linux # correct to gnu/linux during the next big refactor
12527     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12528     soname_spec='$libname$shared_ext.$major'
12529     shlibpath_var=LD_LIBRARY_PATH
12530   fi
12531   ;;
12532
12533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12534   version_type=sco
12535   need_lib_prefix=no
12536   need_version=no
12537   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12538   soname_spec='$libname$release$shared_ext$major'
12539   shlibpath_var=LD_LIBRARY_PATH
12540   shlibpath_overrides_runpath=yes
12541   hardcode_into_libs=yes
12542   if test yes = "$with_gnu_ld"; then
12543     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12544   else
12545     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12546     case $host_os in
12547       sco3.2v5*)
12548         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12549         ;;
12550     esac
12551   fi
12552   sys_lib_dlsearch_path_spec='/usr/lib'
12553   ;;
12554
12555 tpf*)
12556   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12557   version_type=linux # correct to gnu/linux during the next big refactor
12558   need_lib_prefix=no
12559   need_version=no
12560   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561   shlibpath_var=LD_LIBRARY_PATH
12562   shlibpath_overrides_runpath=no
12563   hardcode_into_libs=yes
12564   ;;
12565
12566 uts4*)
12567   version_type=linux # correct to gnu/linux during the next big refactor
12568   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12569   soname_spec='$libname$release$shared_ext$major'
12570   shlibpath_var=LD_LIBRARY_PATH
12571   ;;
12572
12573 *)
12574   dynamic_linker=no
12575   ;;
12576 esac
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12578 $as_echo "$dynamic_linker" >&6; }
12579 test no = "$dynamic_linker" && can_build_shared=no
12580
12581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12582 if test yes = "$GCC"; then
12583   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12584 fi
12585
12586 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12587   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12588 fi
12589
12590 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12591   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12592 fi
12593
12594 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12595 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12596
12597 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12598 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12599
12600 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12601 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12700 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12701 hardcode_action=
12702 if test -n "$hardcode_libdir_flag_spec" ||
12703    test -n "$runpath_var" ||
12704    test yes = "$hardcode_automatic"; then
12705
12706   # We can hardcode non-existent directories.
12707   if test no != "$hardcode_direct" &&
12708      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12709      # have to relink, otherwise we might link with an installed library
12710      # when we should be linking with a yet-to-be-installed one
12711      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12712      test no != "$hardcode_minus_L"; then
12713     # Linking always hardcodes the temporary library directory.
12714     hardcode_action=relink
12715   else
12716     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12717     hardcode_action=immediate
12718   fi
12719 else
12720   # We cannot hardcode anything, or else we can only hardcode existing
12721   # directories.
12722   hardcode_action=unsupported
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12725 $as_echo "$hardcode_action" >&6; }
12726
12727 if test relink = "$hardcode_action" ||
12728    test yes = "$inherit_rpath"; then
12729   # Fast installation is not supported
12730   enable_fast_install=no
12731 elif test yes = "$shlibpath_overrides_runpath" ||
12732      test no = "$enable_shared"; then
12733   # Fast installation is not necessary
12734   enable_fast_install=needless
12735 fi
12736
12737
12738
12739
12740
12741
12742   if test yes != "$enable_dlopen"; then
12743   enable_dlopen=unknown
12744   enable_dlopen_self=unknown
12745   enable_dlopen_self_static=unknown
12746 else
12747   lt_cv_dlopen=no
12748   lt_cv_dlopen_libs=
12749
12750   case $host_os in
12751   beos*)
12752     lt_cv_dlopen=load_add_on
12753     lt_cv_dlopen_libs=
12754     lt_cv_dlopen_self=yes
12755     ;;
12756
12757   mingw* | pw32* | cegcc*)
12758     lt_cv_dlopen=LoadLibrary
12759     lt_cv_dlopen_libs=
12760     ;;
12761
12762   cygwin*)
12763     lt_cv_dlopen=dlopen
12764     lt_cv_dlopen_libs=
12765     ;;
12766
12767   darwin*)
12768     # if libdl is installed we need to link against it
12769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12770 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12771 if ${ac_cv_lib_dl_dlopen+:} false; then :
12772   $as_echo_n "(cached) " >&6
12773 else
12774   ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-ldl  $LIBS"
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h.  */
12778
12779 /* Override any GCC internal prototype to avoid an error.
12780    Use char because int might match the return type of a GCC
12781    builtin and then its argument prototype would still apply.  */
12782 #ifdef __cplusplus
12783 extern "C"
12784 #endif
12785 char dlopen ();
12786 int
12787 main ()
12788 {
12789 return dlopen ();
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_link "$LINENO"; then :
12795   ac_cv_lib_dl_dlopen=yes
12796 else
12797   ac_cv_lib_dl_dlopen=no
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext \
12800     conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12804 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12805 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12806   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12807 else
12808
12809     lt_cv_dlopen=dyld
12810     lt_cv_dlopen_libs=
12811     lt_cv_dlopen_self=yes
12812
12813 fi
12814
12815     ;;
12816
12817   tpf*)
12818     # Don't try to run any link tests for TPF.  We know it's impossible
12819     # because TPF is a cross-compiler, and we know how we open DSOs.
12820     lt_cv_dlopen=dlopen
12821     lt_cv_dlopen_libs=
12822     lt_cv_dlopen_self=no
12823     ;;
12824
12825   *)
12826     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12827 if test "x$ac_cv_func_shl_load" = xyes; then :
12828   lt_cv_dlopen=shl_load
12829 else
12830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12831 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12832 if ${ac_cv_lib_dld_shl_load+:} false; then :
12833   $as_echo_n "(cached) " >&6
12834 else
12835   ac_check_lib_save_LIBS=$LIBS
12836 LIBS="-ldld  $LIBS"
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h.  */
12839
12840 /* Override any GCC internal prototype to avoid an error.
12841    Use char because int might match the return type of a GCC
12842    builtin and then its argument prototype would still apply.  */
12843 #ifdef __cplusplus
12844 extern "C"
12845 #endif
12846 char shl_load ();
12847 int
12848 main ()
12849 {
12850 return shl_load ();
12851   ;
12852   return 0;
12853 }
12854 _ACEOF
12855 if ac_fn_c_try_link "$LINENO"; then :
12856   ac_cv_lib_dld_shl_load=yes
12857 else
12858   ac_cv_lib_dld_shl_load=no
12859 fi
12860 rm -f core conftest.err conftest.$ac_objext \
12861     conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12863 fi
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12865 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12866 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12867   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12868 else
12869   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12870 if test "x$ac_cv_func_dlopen" = xyes; then :
12871   lt_cv_dlopen=dlopen
12872 else
12873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12875 if ${ac_cv_lib_dl_dlopen+:} false; then :
12876   $as_echo_n "(cached) " >&6
12877 else
12878   ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-ldl  $LIBS"
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h.  */
12882
12883 /* Override any GCC internal prototype to avoid an error.
12884    Use char because int might match the return type of a GCC
12885    builtin and then its argument prototype would still apply.  */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 char dlopen ();
12890 int
12891 main ()
12892 {
12893 return dlopen ();
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899   ac_cv_lib_dl_dlopen=yes
12900 else
12901   ac_cv_lib_dl_dlopen=no
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext \
12904     conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12909 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12910   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12911 else
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12913 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12914 if ${ac_cv_lib_svld_dlopen+:} false; then :
12915   $as_echo_n "(cached) " >&6
12916 else
12917   ac_check_lib_save_LIBS=$LIBS
12918 LIBS="-lsvld  $LIBS"
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h.  */
12921
12922 /* Override any GCC internal prototype to avoid an error.
12923    Use char because int might match the return type of a GCC
12924    builtin and then its argument prototype would still apply.  */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 char dlopen ();
12929 int
12930 main ()
12931 {
12932 return dlopen ();
12933   ;
12934   return 0;
12935 }
12936 _ACEOF
12937 if ac_fn_c_try_link "$LINENO"; then :
12938   ac_cv_lib_svld_dlopen=yes
12939 else
12940   ac_cv_lib_svld_dlopen=no
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext \
12943     conftest$ac_exeext conftest.$ac_ext
12944 LIBS=$ac_check_lib_save_LIBS
12945 fi
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12947 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12948 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12949   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12950 else
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12952 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12953 if ${ac_cv_lib_dld_dld_link+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   ac_check_lib_save_LIBS=$LIBS
12957 LIBS="-ldld  $LIBS"
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h.  */
12960
12961 /* Override any GCC internal prototype to avoid an error.
12962    Use char because int might match the return type of a GCC
12963    builtin and then its argument prototype would still apply.  */
12964 #ifdef __cplusplus
12965 extern "C"
12966 #endif
12967 char dld_link ();
12968 int
12969 main ()
12970 {
12971 return dld_link ();
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 if ac_fn_c_try_link "$LINENO"; then :
12977   ac_cv_lib_dld_dld_link=yes
12978 else
12979   ac_cv_lib_dld_dld_link=no
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext \
12982     conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12986 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12987 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12988   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12989 fi
12990
12991
12992 fi
12993
12994
12995 fi
12996
12997
12998 fi
12999
13000
13001 fi
13002
13003
13004 fi
13005
13006     ;;
13007   esac
13008
13009   if test no = "$lt_cv_dlopen"; then
13010     enable_dlopen=no
13011   else
13012     enable_dlopen=yes
13013   fi
13014
13015   case $lt_cv_dlopen in
13016   dlopen)
13017     save_CPPFLAGS=$CPPFLAGS
13018     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13019
13020     save_LDFLAGS=$LDFLAGS
13021     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13022
13023     save_LIBS=$LIBS
13024     LIBS="$lt_cv_dlopen_libs $LIBS"
13025
13026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13027 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13028 if ${lt_cv_dlopen_self+:} false; then :
13029   $as_echo_n "(cached) " >&6
13030 else
13031           if test yes = "$cross_compiling"; then :
13032   lt_cv_dlopen_self=cross
13033 else
13034   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13035   lt_status=$lt_dlunknown
13036   cat > conftest.$ac_ext <<_LT_EOF
13037 #line $LINENO "configure"
13038 #include "confdefs.h"
13039
13040 #if HAVE_DLFCN_H
13041 #include <dlfcn.h>
13042 #endif
13043
13044 #include <stdio.h>
13045
13046 #ifdef RTLD_GLOBAL
13047 #  define LT_DLGLOBAL           RTLD_GLOBAL
13048 #else
13049 #  ifdef DL_GLOBAL
13050 #    define LT_DLGLOBAL         DL_GLOBAL
13051 #  else
13052 #    define LT_DLGLOBAL         0
13053 #  endif
13054 #endif
13055
13056 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13057    find out it does not work in some platform. */
13058 #ifndef LT_DLLAZY_OR_NOW
13059 #  ifdef RTLD_LAZY
13060 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13061 #  else
13062 #    ifdef DL_LAZY
13063 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13064 #    else
13065 #      ifdef RTLD_NOW
13066 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13067 #      else
13068 #        ifdef DL_NOW
13069 #          define LT_DLLAZY_OR_NOW      DL_NOW
13070 #        else
13071 #          define LT_DLLAZY_OR_NOW      0
13072 #        endif
13073 #      endif
13074 #    endif
13075 #  endif
13076 #endif
13077
13078 /* When -fvisibility=hidden is used, assume the code has been annotated
13079    correspondingly for the symbols needed.  */
13080 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13081 int fnord () __attribute__((visibility("default")));
13082 #endif
13083
13084 int fnord () { return 42; }
13085 int main ()
13086 {
13087   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13088   int status = $lt_dlunknown;
13089
13090   if (self)
13091     {
13092       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13093       else
13094         {
13095           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13096           else puts (dlerror ());
13097         }
13098       /* dlclose (self); */
13099     }
13100   else
13101     puts (dlerror ());
13102
13103   return status;
13104 }
13105 _LT_EOF
13106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13107   (eval $ac_link) 2>&5
13108   ac_status=$?
13109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13110   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13111     (./conftest; exit; ) >&5 2>/dev/null
13112     lt_status=$?
13113     case x$lt_status in
13114       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13115       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13116       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13117     esac
13118   else :
13119     # compilation failed
13120     lt_cv_dlopen_self=no
13121   fi
13122 fi
13123 rm -fr conftest*
13124
13125
13126 fi
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13128 $as_echo "$lt_cv_dlopen_self" >&6; }
13129
13130     if test yes = "$lt_cv_dlopen_self"; then
13131       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13132       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13133 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13134 if ${lt_cv_dlopen_self_static+:} false; then :
13135   $as_echo_n "(cached) " >&6
13136 else
13137           if test yes = "$cross_compiling"; then :
13138   lt_cv_dlopen_self_static=cross
13139 else
13140   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13141   lt_status=$lt_dlunknown
13142   cat > conftest.$ac_ext <<_LT_EOF
13143 #line $LINENO "configure"
13144 #include "confdefs.h"
13145
13146 #if HAVE_DLFCN_H
13147 #include <dlfcn.h>
13148 #endif
13149
13150 #include <stdio.h>
13151
13152 #ifdef RTLD_GLOBAL
13153 #  define LT_DLGLOBAL           RTLD_GLOBAL
13154 #else
13155 #  ifdef DL_GLOBAL
13156 #    define LT_DLGLOBAL         DL_GLOBAL
13157 #  else
13158 #    define LT_DLGLOBAL         0
13159 #  endif
13160 #endif
13161
13162 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13163    find out it does not work in some platform. */
13164 #ifndef LT_DLLAZY_OR_NOW
13165 #  ifdef RTLD_LAZY
13166 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13167 #  else
13168 #    ifdef DL_LAZY
13169 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13170 #    else
13171 #      ifdef RTLD_NOW
13172 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13173 #      else
13174 #        ifdef DL_NOW
13175 #          define LT_DLLAZY_OR_NOW      DL_NOW
13176 #        else
13177 #          define LT_DLLAZY_OR_NOW      0
13178 #        endif
13179 #      endif
13180 #    endif
13181 #  endif
13182 #endif
13183
13184 /* When -fvisibility=hidden is used, assume the code has been annotated
13185    correspondingly for the symbols needed.  */
13186 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13187 int fnord () __attribute__((visibility("default")));
13188 #endif
13189
13190 int fnord () { return 42; }
13191 int main ()
13192 {
13193   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13194   int status = $lt_dlunknown;
13195
13196   if (self)
13197     {
13198       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13199       else
13200         {
13201           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13202           else puts (dlerror ());
13203         }
13204       /* dlclose (self); */
13205     }
13206   else
13207     puts (dlerror ());
13208
13209   return status;
13210 }
13211 _LT_EOF
13212   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13213   (eval $ac_link) 2>&5
13214   ac_status=$?
13215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13216   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13217     (./conftest; exit; ) >&5 2>/dev/null
13218     lt_status=$?
13219     case x$lt_status in
13220       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13221       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13222       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13223     esac
13224   else :
13225     # compilation failed
13226     lt_cv_dlopen_self_static=no
13227   fi
13228 fi
13229 rm -fr conftest*
13230
13231
13232 fi
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13234 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13235     fi
13236
13237     CPPFLAGS=$save_CPPFLAGS
13238     LDFLAGS=$save_LDFLAGS
13239     LIBS=$save_LIBS
13240     ;;
13241   esac
13242
13243   case $lt_cv_dlopen_self in
13244   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13245   *) enable_dlopen_self=unknown ;;
13246   esac
13247
13248   case $lt_cv_dlopen_self_static in
13249   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13250   *) enable_dlopen_self_static=unknown ;;
13251   esac
13252 fi
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270 striplib=
13271 old_striplib=
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13273 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13274 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13275   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13276   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278 $as_echo "yes" >&6; }
13279 else
13280 # FIXME - insert some real tests, host_os isn't really good enough
13281   case $host_os in
13282   darwin*)
13283     if test -n "$STRIP"; then
13284       striplib="$STRIP -x"
13285       old_striplib="$STRIP -S"
13286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13287 $as_echo "yes" >&6; }
13288     else
13289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13291     fi
13292     ;;
13293   *)
13294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296     ;;
13297   esac
13298 fi
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311   # Report what library types will actually be built
13312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13313 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13315 $as_echo "$can_build_shared" >&6; }
13316
13317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13318 $as_echo_n "checking whether to build shared libraries... " >&6; }
13319   test no = "$can_build_shared" && enable_shared=no
13320
13321   # On AIX, shared libraries and static libraries use the same namespace, and
13322   # are all built from PIC.
13323   case $host_os in
13324   aix3*)
13325     test yes = "$enable_shared" && enable_static=no
13326     if test -n "$RANLIB"; then
13327       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13328       postinstall_cmds='$RANLIB $lib'
13329     fi
13330     ;;
13331
13332   aix[4-9]*)
13333     if test ia64 != "$host_cpu"; then
13334       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13335       yes,aix,yes) ;;                   # shared object as lib.so file only
13336       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13337       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13338       esac
13339     fi
13340     ;;
13341   esac
13342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13343 $as_echo "$enable_shared" >&6; }
13344
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13346 $as_echo_n "checking whether to build static libraries... " >&6; }
13347   # Make sure either enable_shared or enable_static is yes.
13348   test yes = "$enable_shared" || enable_static=yes
13349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13350 $as_echo "$enable_static" >&6; }
13351
13352
13353
13354
13355 fi
13356 ac_ext=c
13357 ac_cpp='$CPP $CPPFLAGS'
13358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13361
13362 CC=$lt_save_CC
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378         ac_config_commands="$ac_config_commands libtool"
13379
13380
13381
13382
13383 # Only expand once:
13384
13385
13386
13387 ac_config_headers="$ac_config_headers config.h"
13388
13389
13390
13391 # Check $PATH for the following programs and append suitable options.
13392 ac_ext=c
13393 ac_cpp='$CPP $CPPFLAGS'
13394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13397 if test -n "$ac_tool_prefix"; then
13398   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401 $as_echo_n "checking for $ac_word... " >&6; }
13402 if ${ac_cv_prog_CC+:} false; then :
13403   $as_echo_n "(cached) " >&6
13404 else
13405   if test -n "$CC"; then
13406   ac_cv_prog_CC="$CC" # Let the user override the test.
13407 else
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13410 do
13411   IFS=$as_save_IFS
13412   test -z "$as_dir" && as_dir=.
13413     for ac_exec_ext in '' $ac_executable_extensions; do
13414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417     break 2
13418   fi
13419 done
13420   done
13421 IFS=$as_save_IFS
13422
13423 fi
13424 fi
13425 CC=$ac_cv_prog_CC
13426 if test -n "$CC"; then
13427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13428 $as_echo "$CC" >&6; }
13429 else
13430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13432 fi
13433
13434
13435 fi
13436 if test -z "$ac_cv_prog_CC"; then
13437   ac_ct_CC=$CC
13438   # Extract the first word of "gcc", so it can be a program name with args.
13439 set dummy gcc; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13443   $as_echo_n "(cached) " >&6
13444 else
13445   if test -n "$ac_ct_CC"; then
13446   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13447 else
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13450 do
13451   IFS=$as_save_IFS
13452   test -z "$as_dir" && as_dir=.
13453     for ac_exec_ext in '' $ac_executable_extensions; do
13454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455     ac_cv_prog_ac_ct_CC="gcc"
13456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13457     break 2
13458   fi
13459 done
13460   done
13461 IFS=$as_save_IFS
13462
13463 fi
13464 fi
13465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13466 if test -n "$ac_ct_CC"; then
13467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13468 $as_echo "$ac_ct_CC" >&6; }
13469 else
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 fi
13473
13474   if test "x$ac_ct_CC" = x; then
13475     CC=""
13476   else
13477     case $cross_compiling:$ac_tool_warned in
13478 yes:)
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13481 ac_tool_warned=yes ;;
13482 esac
13483     CC=$ac_ct_CC
13484   fi
13485 else
13486   CC="$ac_cv_prog_CC"
13487 fi
13488
13489 if test -z "$CC"; then
13490           if test -n "$ac_tool_prefix"; then
13491     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13492 set dummy ${ac_tool_prefix}cc; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if ${ac_cv_prog_CC+:} false; then :
13496   $as_echo_n "(cached) " >&6
13497 else
13498   if test -n "$CC"; then
13499   ac_cv_prog_CC="$CC" # Let the user override the test.
13500 else
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13503 do
13504   IFS=$as_save_IFS
13505   test -z "$as_dir" && as_dir=.
13506     for ac_exec_ext in '' $ac_executable_extensions; do
13507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508     ac_cv_prog_CC="${ac_tool_prefix}cc"
13509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510     break 2
13511   fi
13512 done
13513   done
13514 IFS=$as_save_IFS
13515
13516 fi
13517 fi
13518 CC=$ac_cv_prog_CC
13519 if test -n "$CC"; then
13520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13521 $as_echo "$CC" >&6; }
13522 else
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13525 fi
13526
13527
13528   fi
13529 fi
13530 if test -z "$CC"; then
13531   # Extract the first word of "cc", so it can be a program name with args.
13532 set dummy cc; ac_word=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534 $as_echo_n "checking for $ac_word... " >&6; }
13535 if ${ac_cv_prog_CC+:} false; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538   if test -n "$CC"; then
13539   ac_cv_prog_CC="$CC" # Let the user override the test.
13540 else
13541   ac_prog_rejected=no
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13544 do
13545   IFS=$as_save_IFS
13546   test -z "$as_dir" && as_dir=.
13547     for ac_exec_ext in '' $ac_executable_extensions; do
13548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13549     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13550        ac_prog_rejected=yes
13551        continue
13552      fi
13553     ac_cv_prog_CC="cc"
13554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13555     break 2
13556   fi
13557 done
13558   done
13559 IFS=$as_save_IFS
13560
13561 if test $ac_prog_rejected = yes; then
13562   # We found a bogon in the path, so make sure we never use it.
13563   set dummy $ac_cv_prog_CC
13564   shift
13565   if test $# != 0; then
13566     # We chose a different compiler from the bogus one.
13567     # However, it has the same basename, so the bogon will be chosen
13568     # first if we set CC to just the basename; use the full file name.
13569     shift
13570     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13571   fi
13572 fi
13573 fi
13574 fi
13575 CC=$ac_cv_prog_CC
13576 if test -n "$CC"; then
13577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13578 $as_echo "$CC" >&6; }
13579 else
13580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13582 fi
13583
13584
13585 fi
13586 if test -z "$CC"; then
13587   if test -n "$ac_tool_prefix"; then
13588   for ac_prog in cl.exe
13589   do
13590     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if ${ac_cv_prog_CC+:} false; then :
13595   $as_echo_n "(cached) " >&6
13596 else
13597   if test -n "$CC"; then
13598   ac_cv_prog_CC="$CC" # Let the user override the test.
13599 else
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13602 do
13603   IFS=$as_save_IFS
13604   test -z "$as_dir" && as_dir=.
13605     for ac_exec_ext in '' $ac_executable_extensions; do
13606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13607     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13609     break 2
13610   fi
13611 done
13612   done
13613 IFS=$as_save_IFS
13614
13615 fi
13616 fi
13617 CC=$ac_cv_prog_CC
13618 if test -n "$CC"; then
13619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13620 $as_echo "$CC" >&6; }
13621 else
13622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13623 $as_echo "no" >&6; }
13624 fi
13625
13626
13627     test -n "$CC" && break
13628   done
13629 fi
13630 if test -z "$CC"; then
13631   ac_ct_CC=$CC
13632   for ac_prog in cl.exe
13633 do
13634   # Extract the first word of "$ac_prog", so it can be a program name with args.
13635 set dummy $ac_prog; ac_word=$2
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637 $as_echo_n "checking for $ac_word... " >&6; }
13638 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13639   $as_echo_n "(cached) " >&6
13640 else
13641   if test -n "$ac_ct_CC"; then
13642   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13643 else
13644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH
13646 do
13647   IFS=$as_save_IFS
13648   test -z "$as_dir" && as_dir=.
13649     for ac_exec_ext in '' $ac_executable_extensions; do
13650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13651     ac_cv_prog_ac_ct_CC="$ac_prog"
13652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653     break 2
13654   fi
13655 done
13656   done
13657 IFS=$as_save_IFS
13658
13659 fi
13660 fi
13661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13662 if test -n "$ac_ct_CC"; then
13663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13664 $as_echo "$ac_ct_CC" >&6; }
13665 else
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13668 fi
13669
13670
13671   test -n "$ac_ct_CC" && break
13672 done
13673
13674   if test "x$ac_ct_CC" = x; then
13675     CC=""
13676   else
13677     case $cross_compiling:$ac_tool_warned in
13678 yes:)
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13681 ac_tool_warned=yes ;;
13682 esac
13683     CC=$ac_ct_CC
13684   fi
13685 fi
13686
13687 fi
13688
13689
13690 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13692 as_fn_error $? "no acceptable C compiler found in \$PATH
13693 See \`config.log' for more details" "$LINENO" 5; }
13694
13695 # Provide some information about the compiler.
13696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13697 set X $ac_compile
13698 ac_compiler=$2
13699 for ac_option in --version -v -V -qversion; do
13700   { { ac_try="$ac_compiler $ac_option >&5"
13701 case "(($ac_try" in
13702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703   *) ac_try_echo=$ac_try;;
13704 esac
13705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13706 $as_echo "$ac_try_echo"; } >&5
13707   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13708   ac_status=$?
13709   if test -s conftest.err; then
13710     sed '10a\
13711 ... rest of stderr output deleted ...
13712          10q' conftest.err >conftest.er1
13713     cat conftest.er1 >&5
13714   fi
13715   rm -f conftest.er1 conftest.err
13716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13717   test $ac_status = 0; }
13718 done
13719
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13721 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13722 if ${ac_cv_c_compiler_gnu+:} false; then :
13723   $as_echo_n "(cached) " >&6
13724 else
13725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h.  */
13727
13728 int
13729 main ()
13730 {
13731 #ifndef __GNUC__
13732        choke me
13733 #endif
13734
13735   ;
13736   return 0;
13737 }
13738 _ACEOF
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740   ac_compiler_gnu=yes
13741 else
13742   ac_compiler_gnu=no
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13746
13747 fi
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13749 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13750 if test $ac_compiler_gnu = yes; then
13751   GCC=yes
13752 else
13753   GCC=
13754 fi
13755 ac_test_CFLAGS=${CFLAGS+set}
13756 ac_save_CFLAGS=$CFLAGS
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13758 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13759 if ${ac_cv_prog_cc_g+:} false; then :
13760   $as_echo_n "(cached) " >&6
13761 else
13762   ac_save_c_werror_flag=$ac_c_werror_flag
13763    ac_c_werror_flag=yes
13764    ac_cv_prog_cc_g=no
13765    CFLAGS="-g"
13766    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h.  */
13768
13769 int
13770 main ()
13771 {
13772
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 if ac_fn_c_try_compile "$LINENO"; then :
13778   ac_cv_prog_cc_g=yes
13779 else
13780   CFLAGS=""
13781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h.  */
13783
13784 int
13785 main ()
13786 {
13787
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_compile "$LINENO"; then :
13793
13794 else
13795   ac_c_werror_flag=$ac_save_c_werror_flag
13796          CFLAGS="-g"
13797          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h.  */
13799
13800 int
13801 main ()
13802 {
13803
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_compile "$LINENO"; then :
13809   ac_cv_prog_cc_g=yes
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 fi
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816    ac_c_werror_flag=$ac_save_c_werror_flag
13817 fi
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13819 $as_echo "$ac_cv_prog_cc_g" >&6; }
13820 if test "$ac_test_CFLAGS" = set; then
13821   CFLAGS=$ac_save_CFLAGS
13822 elif test $ac_cv_prog_cc_g = yes; then
13823   if test "$GCC" = yes; then
13824     CFLAGS="-g -O2"
13825   else
13826     CFLAGS="-g"
13827   fi
13828 else
13829   if test "$GCC" = yes; then
13830     CFLAGS="-O2"
13831   else
13832     CFLAGS=
13833   fi
13834 fi
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13836 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13837 if ${ac_cv_prog_cc_c89+:} false; then :
13838   $as_echo_n "(cached) " >&6
13839 else
13840   ac_cv_prog_cc_c89=no
13841 ac_save_CC=$CC
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h.  */
13844 #include <stdarg.h>
13845 #include <stdio.h>
13846 struct stat;
13847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13848 struct buf { int x; };
13849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13850 static char *e (p, i)
13851      char **p;
13852      int i;
13853 {
13854   return p[i];
13855 }
13856 static char *f (char * (*g) (char **, int), char **p, ...)
13857 {
13858   char *s;
13859   va_list v;
13860   va_start (v,p);
13861   s = g (p, va_arg (v,int));
13862   va_end (v);
13863   return s;
13864 }
13865
13866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13867    function prototypes and stuff, but not '\xHH' hex character constants.
13868    These don't provoke an error unfortunately, instead are silently treated
13869    as 'x'.  The following induces an error, until -std is added to get
13870    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13871    array size at least.  It's necessary to write '\x00'==0 to get something
13872    that's true only with -std.  */
13873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13874
13875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13876    inside strings and character constants.  */
13877 #define FOO(x) 'x'
13878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13879
13880 int test (int i, double x);
13881 struct s1 {int (*f) (int a);};
13882 struct s2 {int (*f) (double a);};
13883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13884 int argc;
13885 char **argv;
13886 int
13887 main ()
13888 {
13889 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13890   ;
13891   return 0;
13892 }
13893 _ACEOF
13894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13895         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13896 do
13897   CC="$ac_save_CC $ac_arg"
13898   if ac_fn_c_try_compile "$LINENO"; then :
13899   ac_cv_prog_cc_c89=$ac_arg
13900 fi
13901 rm -f core conftest.err conftest.$ac_objext
13902   test "x$ac_cv_prog_cc_c89" != "xno" && break
13903 done
13904 rm -f conftest.$ac_ext
13905 CC=$ac_save_CC
13906
13907 fi
13908 # AC_CACHE_VAL
13909 case "x$ac_cv_prog_cc_c89" in
13910   x)
13911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13912 $as_echo "none needed" >&6; } ;;
13913   xno)
13914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13915 $as_echo "unsupported" >&6; } ;;
13916   *)
13917     CC="$CC $ac_cv_prog_cc_c89"
13918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13920 esac
13921 if test "x$ac_cv_prog_cc_c89" != xno; then :
13922
13923 fi
13924
13925 ac_ext=c
13926 ac_cpp='$CPP $CPPFLAGS'
13927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13930
13931 ac_ext=c
13932 ac_cpp='$CPP $CPPFLAGS'
13933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13937 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13938 if ${am_cv_prog_cc_c_o+:} false; then :
13939   $as_echo_n "(cached) " >&6
13940 else
13941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h.  */
13943
13944 int
13945 main ()
13946 {
13947
13948   ;
13949   return 0;
13950 }
13951 _ACEOF
13952   # Make sure it works both with $CC and with simple cc.
13953   # Following AC_PROG_CC_C_O, we do the test twice because some
13954   # compilers refuse to overwrite an existing .o file with -o,
13955   # though they will create one.
13956   am_cv_prog_cc_c_o=yes
13957   for am_i in 1 2; do
13958     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13959    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13960    ac_status=$?
13961    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962    (exit $ac_status); } \
13963          && test -f conftest2.$ac_objext; then
13964       : OK
13965     else
13966       am_cv_prog_cc_c_o=no
13967       break
13968     fi
13969   done
13970   rm -f core conftest*
13971   unset am_i
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13974 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13975 if test "$am_cv_prog_cc_c_o" != yes; then
13976    # Losing compiler, so override with the script.
13977    # FIXME: It is wrong to rewrite CC.
13978    # But if we don't then we get into trouble of one sort or another.
13979    # A longer-term fix would be to have automake use am__CC in this case,
13980    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13981    CC="$am_aux_dir/compile $CC"
13982 fi
13983 ac_ext=c
13984 ac_cpp='$CPP $CPPFLAGS'
13985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13988
13989
13990 depcc="$CC"   am_compiler_list=
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13993 $as_echo_n "checking dependency style of $depcc... " >&6; }
13994 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13995   $as_echo_n "(cached) " >&6
13996 else
13997   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13998   # We make a subdir and do the tests there.  Otherwise we can end up
13999   # making bogus files that we don't know about and never remove.  For
14000   # instance it was reported that on HP-UX the gcc test will end up
14001   # making a dummy file named 'D' -- because '-MD' means "put the output
14002   # in D".
14003   rm -rf conftest.dir
14004   mkdir conftest.dir
14005   # Copy depcomp to subdir because otherwise we won't find it if we're
14006   # using a relative directory.
14007   cp "$am_depcomp" conftest.dir
14008   cd conftest.dir
14009   # We will build objects and dependencies in a subdirectory because
14010   # it helps to detect inapplicable dependency modes.  For instance
14011   # both Tru64's cc and ICC support -MD to output dependencies as a
14012   # side effect of compilation, but ICC will put the dependencies in
14013   # the current directory while Tru64 will put them in the object
14014   # directory.
14015   mkdir sub
14016
14017   am_cv_CC_dependencies_compiler_type=none
14018   if test "$am_compiler_list" = ""; then
14019      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14020   fi
14021   am__universal=false
14022   case " $depcc " in #(
14023      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14024      esac
14025
14026   for depmode in $am_compiler_list; do
14027     # Setup a source with many dependencies, because some compilers
14028     # like to wrap large dependency lists on column 80 (with \), and
14029     # we should not choose a depcomp mode which is confused by this.
14030     #
14031     # We need to recreate these files for each test, as the compiler may
14032     # overwrite some of them when testing with obscure command lines.
14033     # This happens at least with the AIX C compiler.
14034     : > sub/conftest.c
14035     for i in 1 2 3 4 5 6; do
14036       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14037       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14038       # Solaris 10 /bin/sh.
14039       echo '/* dummy */' > sub/conftst$i.h
14040     done
14041     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14042
14043     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14044     # mode.  It turns out that the SunPro C++ compiler does not properly
14045     # handle '-M -o', and we need to detect this.  Also, some Intel
14046     # versions had trouble with output in subdirs.
14047     am__obj=sub/conftest.${OBJEXT-o}
14048     am__minus_obj="-o $am__obj"
14049     case $depmode in
14050     gcc)
14051       # This depmode causes a compiler race in universal mode.
14052       test "$am__universal" = false || continue
14053       ;;
14054     nosideeffect)
14055       # After this tag, mechanisms are not by side-effect, so they'll
14056       # only be used when explicitly requested.
14057       if test "x$enable_dependency_tracking" = xyes; then
14058         continue
14059       else
14060         break
14061       fi
14062       ;;
14063     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14064       # This compiler won't grok '-c -o', but also, the minuso test has
14065       # not run yet.  These depmodes are late enough in the game, and
14066       # so weak that their functioning should not be impacted.
14067       am__obj=conftest.${OBJEXT-o}
14068       am__minus_obj=
14069       ;;
14070     none) break ;;
14071     esac
14072     if depmode=$depmode \
14073        source=sub/conftest.c object=$am__obj \
14074        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14075        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14076          >/dev/null 2>conftest.err &&
14077        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14078        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14079        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14080        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14081       # icc doesn't choke on unknown options, it will just issue warnings
14082       # or remarks (even with -Werror).  So we grep stderr for any message
14083       # that says an option was ignored or not supported.
14084       # When given -MP, icc 7.0 and 7.1 complain thusly:
14085       #   icc: Command line warning: ignoring option '-M'; no argument required
14086       # The diagnosis changed in icc 8.0:
14087       #   icc: Command line remark: option '-MP' not supported
14088       if (grep 'ignoring option' conftest.err ||
14089           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14090         am_cv_CC_dependencies_compiler_type=$depmode
14091         break
14092       fi
14093     fi
14094   done
14095
14096   cd ..
14097   rm -rf conftest.dir
14098 else
14099   am_cv_CC_dependencies_compiler_type=none
14100 fi
14101
14102 fi
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14104 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14105 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14106
14107  if
14108   test "x$enable_dependency_tracking" != xno \
14109   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14110   am__fastdepCC_TRUE=
14111   am__fastdepCC_FALSE='#'
14112 else
14113   am__fastdepCC_TRUE='#'
14114   am__fastdepCC_FALSE=
14115 fi
14116
14117
14118
14119
14120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
14121 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
14122 if ${gl_cv_c_amsterdam_compiler+:} false; then :
14123   $as_echo_n "(cached) " >&6
14124 else
14125
14126       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h.  */
14128
14129 #ifdef __ACK__
14130 Amsterdam
14131 #endif
14132
14133 _ACEOF
14134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14135   $EGREP "Amsterdam" >/dev/null 2>&1; then :
14136   gl_cv_c_amsterdam_compiler=yes
14137 else
14138   gl_cv_c_amsterdam_compiler=no
14139 fi
14140 rm -f conftest*
14141
14142
14143 fi
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
14145 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
14146   if test -z "$AR"; then
14147     if test $gl_cv_c_amsterdam_compiler = yes; then
14148       AR='cc -c.a'
14149       if test -z "$ARFLAGS"; then
14150         ARFLAGS='-o'
14151       fi
14152     else
14153                   if test -n "$ac_tool_prefix"; then
14154   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14155 set dummy ${ac_tool_prefix}ar; ac_word=$2
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if ${ac_cv_prog_AR+:} false; then :
14159   $as_echo_n "(cached) " >&6
14160 else
14161   if test -n "$AR"; then
14162   ac_cv_prog_AR="$AR" # Let the user override the test.
14163 else
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14166 do
14167   IFS=$as_save_IFS
14168   test -z "$as_dir" && as_dir=.
14169     for ac_exec_ext in '' $ac_executable_extensions; do
14170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14171     ac_cv_prog_AR="${ac_tool_prefix}ar"
14172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14173     break 2
14174   fi
14175 done
14176   done
14177 IFS=$as_save_IFS
14178
14179 fi
14180 fi
14181 AR=$ac_cv_prog_AR
14182 if test -n "$AR"; then
14183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14184 $as_echo "$AR" >&6; }
14185 else
14186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14188 fi
14189
14190
14191 fi
14192 if test -z "$ac_cv_prog_AR"; then
14193   ac_ct_AR=$AR
14194   # Extract the first word of "ar", so it can be a program name with args.
14195 set dummy ar; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14199   $as_echo_n "(cached) " >&6
14200 else
14201   if test -n "$ac_ct_AR"; then
14202   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14203 else
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14206 do
14207   IFS=$as_save_IFS
14208   test -z "$as_dir" && as_dir=.
14209     for ac_exec_ext in '' $ac_executable_extensions; do
14210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14211     ac_cv_prog_ac_ct_AR="ar"
14212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213     break 2
14214   fi
14215 done
14216   done
14217 IFS=$as_save_IFS
14218
14219 fi
14220 fi
14221 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14222 if test -n "$ac_ct_AR"; then
14223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14224 $as_echo "$ac_ct_AR" >&6; }
14225 else
14226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14228 fi
14229
14230   if test "x$ac_ct_AR" = x; then
14231     AR="ar"
14232   else
14233     case $cross_compiling:$ac_tool_warned in
14234 yes:)
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14237 ac_tool_warned=yes ;;
14238 esac
14239     AR=$ac_ct_AR
14240   fi
14241 else
14242   AR="$ac_cv_prog_AR"
14243 fi
14244
14245       if test -z "$ARFLAGS"; then
14246         ARFLAGS='cru'
14247       fi
14248     fi
14249   else
14250     if test -z "$ARFLAGS"; then
14251       ARFLAGS='cru'
14252     fi
14253   fi
14254
14255
14256   if test -z "$RANLIB"; then
14257     if test $gl_cv_c_amsterdam_compiler = yes; then
14258       RANLIB=':'
14259     else
14260             if test -n "$ac_tool_prefix"; then
14261   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14262 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14264 $as_echo_n "checking for $ac_word... " >&6; }
14265 if ${ac_cv_prog_RANLIB+:} false; then :
14266   $as_echo_n "(cached) " >&6
14267 else
14268   if test -n "$RANLIB"; then
14269   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14270 else
14271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272 for as_dir in $PATH
14273 do
14274   IFS=$as_save_IFS
14275   test -z "$as_dir" && as_dir=.
14276     for ac_exec_ext in '' $ac_executable_extensions; do
14277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14278     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14280     break 2
14281   fi
14282 done
14283   done
14284 IFS=$as_save_IFS
14285
14286 fi
14287 fi
14288 RANLIB=$ac_cv_prog_RANLIB
14289 if test -n "$RANLIB"; then
14290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14291 $as_echo "$RANLIB" >&6; }
14292 else
14293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14294 $as_echo "no" >&6; }
14295 fi
14296
14297
14298 fi
14299 if test -z "$ac_cv_prog_RANLIB"; then
14300   ac_ct_RANLIB=$RANLIB
14301   # Extract the first word of "ranlib", so it can be a program name with args.
14302 set dummy ranlib; ac_word=$2
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304 $as_echo_n "checking for $ac_word... " >&6; }
14305 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14306   $as_echo_n "(cached) " >&6
14307 else
14308   if test -n "$ac_ct_RANLIB"; then
14309   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14310 else
14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312 for as_dir in $PATH
14313 do
14314   IFS=$as_save_IFS
14315   test -z "$as_dir" && as_dir=.
14316     for ac_exec_ext in '' $ac_executable_extensions; do
14317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14318     ac_cv_prog_ac_ct_RANLIB="ranlib"
14319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14320     break 2
14321   fi
14322 done
14323   done
14324 IFS=$as_save_IFS
14325
14326 fi
14327 fi
14328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14329 if test -n "$ac_ct_RANLIB"; then
14330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14331 $as_echo "$ac_ct_RANLIB" >&6; }
14332 else
14333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 $as_echo "no" >&6; }
14335 fi
14336
14337   if test "x$ac_ct_RANLIB" = x; then
14338     RANLIB=":"
14339   else
14340     case $cross_compiling:$ac_tool_warned in
14341 yes:)
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14344 ac_tool_warned=yes ;;
14345 esac
14346     RANLIB=$ac_ct_RANLIB
14347   fi
14348 else
14349   RANLIB="$ac_cv_prog_RANLIB"
14350 fi
14351
14352     fi
14353   fi
14354
14355
14356
14357
14358
14359
14360
14361
14362 # Check whether --enable-largefile was given.
14363 if test "${enable_largefile+set}" = set; then :
14364   enableval=$enable_largefile;
14365 fi
14366
14367 if test "$enable_largefile" != no; then
14368
14369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14370 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14371 if ${ac_cv_sys_largefile_CC+:} false; then :
14372   $as_echo_n "(cached) " >&6
14373 else
14374   ac_cv_sys_largefile_CC=no
14375      if test "$GCC" != yes; then
14376        ac_save_CC=$CC
14377        while :; do
14378          # IRIX 6.2 and later do not support large files by default,
14379          # so use the C compiler's -n32 option if that helps.
14380          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h.  */
14382 #include <sys/types.h>
14383  /* Check that off_t can represent 2**63 - 1 correctly.
14384     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14385     since some C++ compilers masquerading as C compilers
14386     incorrectly reject 9223372036854775807.  */
14387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14388   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14389                        && LARGE_OFF_T % 2147483647 == 1)
14390                       ? 1 : -1];
14391 int
14392 main ()
14393 {
14394
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399          if ac_fn_c_try_compile "$LINENO"; then :
14400   break
14401 fi
14402 rm -f core conftest.err conftest.$ac_objext
14403          CC="$CC -n32"
14404          if ac_fn_c_try_compile "$LINENO"; then :
14405   ac_cv_sys_largefile_CC=' -n32'; break
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext
14408          break
14409        done
14410        CC=$ac_save_CC
14411        rm -f conftest.$ac_ext
14412     fi
14413 fi
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14415 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14416   if test "$ac_cv_sys_largefile_CC" != no; then
14417     CC=$CC$ac_cv_sys_largefile_CC
14418   fi
14419
14420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14421 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14422 if ${ac_cv_sys_file_offset_bits+:} false; then :
14423   $as_echo_n "(cached) " >&6
14424 else
14425   while :; do
14426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h.  */
14428 #include <sys/types.h>
14429  /* Check that off_t can represent 2**63 - 1 correctly.
14430     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14431     since some C++ compilers masquerading as C compilers
14432     incorrectly reject 9223372036854775807.  */
14433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14434   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14435                        && LARGE_OFF_T % 2147483647 == 1)
14436                       ? 1 : -1];
14437 int
14438 main ()
14439 {
14440
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_c_try_compile "$LINENO"; then :
14446   ac_cv_sys_file_offset_bits=no; break
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h.  */
14451 #define _FILE_OFFSET_BITS 64
14452 #include <sys/types.h>
14453  /* Check that off_t can represent 2**63 - 1 correctly.
14454     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14455     since some C++ compilers masquerading as C compilers
14456     incorrectly reject 9223372036854775807.  */
14457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14458   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14459                        && LARGE_OFF_T % 2147483647 == 1)
14460                       ? 1 : -1];
14461 int
14462 main ()
14463 {
14464
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 if ac_fn_c_try_compile "$LINENO"; then :
14470   ac_cv_sys_file_offset_bits=64; break
14471 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473   ac_cv_sys_file_offset_bits=unknown
14474   break
14475 done
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14478 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14479 case $ac_cv_sys_file_offset_bits in #(
14480   no | unknown) ;;
14481   *)
14482 cat >>confdefs.h <<_ACEOF
14483 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14484 _ACEOF
14485 ;;
14486 esac
14487 rm -rf conftest*
14488   if test $ac_cv_sys_file_offset_bits = unknown; then
14489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14490 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14491 if ${ac_cv_sys_large_files+:} false; then :
14492   $as_echo_n "(cached) " >&6
14493 else
14494   while :; do
14495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h.  */
14497 #include <sys/types.h>
14498  /* Check that off_t can represent 2**63 - 1 correctly.
14499     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14500     since some C++ compilers masquerading as C compilers
14501     incorrectly reject 9223372036854775807.  */
14502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14503   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14504                        && LARGE_OFF_T % 2147483647 == 1)
14505                       ? 1 : -1];
14506 int
14507 main ()
14508 {
14509
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515   ac_cv_sys_large_files=no; break
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h.  */
14520 #define _LARGE_FILES 1
14521 #include <sys/types.h>
14522  /* Check that off_t can represent 2**63 - 1 correctly.
14523     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14524     since some C++ compilers masquerading as C compilers
14525     incorrectly reject 9223372036854775807.  */
14526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14527   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14528                        && LARGE_OFF_T % 2147483647 == 1)
14529                       ? 1 : -1];
14530 int
14531 main ()
14532 {
14533
14534   ;
14535   return 0;
14536 }
14537 _ACEOF
14538 if ac_fn_c_try_compile "$LINENO"; then :
14539   ac_cv_sys_large_files=1; break
14540 fi
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542   ac_cv_sys_large_files=unknown
14543   break
14544 done
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14547 $as_echo "$ac_cv_sys_large_files" >&6; }
14548 case $ac_cv_sys_large_files in #(
14549   no | unknown) ;;
14550   *)
14551 cat >>confdefs.h <<_ACEOF
14552 #define _LARGE_FILES $ac_cv_sys_large_files
14553 _ACEOF
14554 ;;
14555 esac
14556 rm -rf conftest*
14557   fi
14558
14559
14560 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
14561
14562 fi
14563
14564    case $ac_cv_prog_cc_stdc in #(
14565   no) :
14566     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14567   *) :
14568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14569 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14570 if ${ac_cv_prog_cc_c99+:} false; then :
14571   $as_echo_n "(cached) " >&6
14572 else
14573   ac_cv_prog_cc_c99=no
14574 ac_save_CC=$CC
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h.  */
14577 #include <stdarg.h>
14578 #include <stdbool.h>
14579 #include <stdlib.h>
14580 #include <wchar.h>
14581 #include <stdio.h>
14582
14583 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14584 #define debug(...) fprintf (stderr, __VA_ARGS__)
14585 #define showlist(...) puts (#__VA_ARGS__)
14586 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14587 static void
14588 test_varargs_macros (void)
14589 {
14590   int x = 1234;
14591   int y = 5678;
14592   debug ("Flag");
14593   debug ("X = %d\n", x);
14594   showlist (The first, second, and third items.);
14595   report (x>y, "x is %d but y is %d", x, y);
14596 }
14597
14598 // Check long long types.
14599 #define BIG64 18446744073709551615ull
14600 #define BIG32 4294967295ul
14601 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14602 #if !BIG_OK
14603   your preprocessor is broken;
14604 #endif
14605 #if BIG_OK
14606 #else
14607   your preprocessor is broken;
14608 #endif
14609 static long long int bignum = -9223372036854775807LL;
14610 static unsigned long long int ubignum = BIG64;
14611
14612 struct incomplete_array
14613 {
14614   int datasize;
14615   double data[];
14616 };
14617
14618 struct named_init {
14619   int number;
14620   const wchar_t *name;
14621   double average;
14622 };
14623
14624 typedef const char *ccp;
14625
14626 static inline int
14627 test_restrict (ccp restrict text)
14628 {
14629   // See if C++-style comments work.
14630   // Iterate through items via the restricted pointer.
14631   // Also check for declarations in for loops.
14632   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14633     continue;
14634   return 0;
14635 }
14636
14637 // Check varargs and va_copy.
14638 static void
14639 test_varargs (const char *format, ...)
14640 {
14641   va_list args;
14642   va_start (args, format);
14643   va_list args_copy;
14644   va_copy (args_copy, args);
14645
14646   const char *str;
14647   int number;
14648   float fnumber;
14649
14650   while (*format)
14651     {
14652       switch (*format++)
14653         {
14654         case 's': // string
14655           str = va_arg (args_copy, const char *);
14656           break;
14657         case 'd': // int
14658           number = va_arg (args_copy, int);
14659           break;
14660         case 'f': // float
14661           fnumber = va_arg (args_copy, double);
14662           break;
14663         default:
14664           break;
14665         }
14666     }
14667   va_end (args_copy);
14668   va_end (args);
14669 }
14670
14671 int
14672 main ()
14673 {
14674
14675   // Check bool.
14676   _Bool success = false;
14677
14678   // Check restrict.
14679   if (test_restrict ("String literal") == 0)
14680     success = true;
14681   char *restrict newvar = "Another string";
14682
14683   // Check varargs.
14684   test_varargs ("s, d' f .", "string", 65, 34.234);
14685   test_varargs_macros ();
14686
14687   // Check flexible array members.
14688   struct incomplete_array *ia =
14689     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14690   ia->datasize = 10;
14691   for (int i = 0; i < ia->datasize; ++i)
14692     ia->data[i] = i * 1.234;
14693
14694   // Check named initializers.
14695   struct named_init ni = {
14696     .number = 34,
14697     .name = L"Test wide string",
14698     .average = 543.34343,
14699   };
14700
14701   ni.number = 58;
14702
14703   int dynamic_array[ni.number];
14704   dynamic_array[ni.number - 1] = 543;
14705
14706   // work around unused variable warnings
14707   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14708           || dynamic_array[ni.number - 1] != 543);
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14715 do
14716   CC="$ac_save_CC $ac_arg"
14717   if ac_fn_c_try_compile "$LINENO"; then :
14718   ac_cv_prog_cc_c99=$ac_arg
14719 fi
14720 rm -f core conftest.err conftest.$ac_objext
14721   test "x$ac_cv_prog_cc_c99" != "xno" && break
14722 done
14723 rm -f conftest.$ac_ext
14724 CC=$ac_save_CC
14725
14726 fi
14727 # AC_CACHE_VAL
14728 case "x$ac_cv_prog_cc_c99" in
14729   x)
14730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14731 $as_echo "none needed" >&6; } ;;
14732   xno)
14733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14734 $as_echo "unsupported" >&6; } ;;
14735   *)
14736     CC="$CC $ac_cv_prog_cc_c99"
14737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14738 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14739 esac
14740 if test "x$ac_cv_prog_cc_c99" != xno; then :
14741   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14742 else
14743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14745 if ${ac_cv_prog_cc_c89+:} false; then :
14746   $as_echo_n "(cached) " >&6
14747 else
14748   ac_cv_prog_cc_c89=no
14749 ac_save_CC=$CC
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h.  */
14752 #include <stdarg.h>
14753 #include <stdio.h>
14754 struct stat;
14755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14756 struct buf { int x; };
14757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14758 static char *e (p, i)
14759      char **p;
14760      int i;
14761 {
14762   return p[i];
14763 }
14764 static char *f (char * (*g) (char **, int), char **p, ...)
14765 {
14766   char *s;
14767   va_list v;
14768   va_start (v,p);
14769   s = g (p, va_arg (v,int));
14770   va_end (v);
14771   return s;
14772 }
14773
14774 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14775    function prototypes and stuff, but not '\xHH' hex character constants.
14776    These don't provoke an error unfortunately, instead are silently treated
14777    as 'x'.  The following induces an error, until -std is added to get
14778    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14779    array size at least.  It's necessary to write '\x00'==0 to get something
14780    that's true only with -std.  */
14781 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14782
14783 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14784    inside strings and character constants.  */
14785 #define FOO(x) 'x'
14786 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14787
14788 int test (int i, double x);
14789 struct s1 {int (*f) (int a);};
14790 struct s2 {int (*f) (double a);};
14791 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14792 int argc;
14793 char **argv;
14794 int
14795 main ()
14796 {
14797 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14803         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14804 do
14805   CC="$ac_save_CC $ac_arg"
14806   if ac_fn_c_try_compile "$LINENO"; then :
14807   ac_cv_prog_cc_c89=$ac_arg
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext
14810   test "x$ac_cv_prog_cc_c89" != "xno" && break
14811 done
14812 rm -f conftest.$ac_ext
14813 CC=$ac_save_CC
14814
14815 fi
14816 # AC_CACHE_VAL
14817 case "x$ac_cv_prog_cc_c89" in
14818   x)
14819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14820 $as_echo "none needed" >&6; } ;;
14821   xno)
14822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14823 $as_echo "unsupported" >&6; } ;;
14824   *)
14825     CC="$CC $ac_cv_prog_cc_c89"
14826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14827 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14828 esac
14829 if test "x$ac_cv_prog_cc_c89" != xno; then :
14830   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14831 else
14832   ac_cv_prog_cc_stdc=no
14833 fi
14834
14835 fi
14836  ;;
14837 esac
14838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14839 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14840   if ${ac_cv_prog_cc_stdc+:} false; then :
14841   $as_echo_n "(cached) " >&6
14842 fi
14843
14844   case $ac_cv_prog_cc_stdc in #(
14845   no) :
14846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14847 $as_echo "unsupported" >&6; } ;; #(
14848   '') :
14849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14850 $as_echo "none needed" >&6; } ;; #(
14851   *) :
14852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14853 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14854 esac
14855
14856
14857
14858
14859
14860
14861   # Check whether --enable-threads was given.
14862 if test "${enable_threads+set}" = set; then :
14863   enableval=$enable_threads; gl_use_threads=$enableval
14864 else
14865   if test -n "$gl_use_threads_default"; then
14866        gl_use_threads="$gl_use_threads_default"
14867      else
14868        case "$host_os" in
14869                                                                osf*) gl_use_threads=no ;;
14870          cygwin*)
14871                case `uname -r` in
14872                  1.[0-5].*) gl_use_threads=no ;;
14873                  *)         gl_use_threads=yes ;;
14874                esac
14875                ;;
14876          *)    gl_use_threads=yes ;;
14877        esac
14878      fi
14879
14880 fi
14881
14882   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14883     # For using <pthread.h>:
14884     case "$host_os" in
14885       osf*)
14886         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14887         # groks <pthread.h>. cc also understands the flag -pthread, but
14888         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14889         # 2. putting a flag into CPPFLAGS that has an effect on the linker
14890         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14891         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14892         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14893         ;;
14894     esac
14895     # Some systems optimize for single-threaded programs by default, and
14896     # need special flags to disable these optimizations. For example, the
14897     # definition of 'errno' in <errno.h>.
14898     case "$host_os" in
14899       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14900       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14901     esac
14902   fi
14903
14904
14905
14906
14907   # Code from module absolute-header:
14908   # Code from module alloca-opt:
14909   # Code from module dirname:
14910   # Code from module dirname-lgpl:
14911   # Code from module dosname:
14912   # Code from module double-slash-root:
14913   # Code from module environ:
14914   # Code from module errno:
14915   # Code from module error:
14916   # Code from module exitfail:
14917   # Code from module extensions:
14918
14919   # Code from module extern-inline:
14920   # Code from module fcntl-h:
14921   # Code from module float:
14922   # Code from module full-write:
14923   # Code from module gettext-h:
14924   # Code from module gettimeofday:
14925   # Code from module gitlog-to-changelog:
14926   # Code from module gnupload:
14927   # Code from module havelib:
14928   # Code from module include_next:
14929   # Code from module intprops:
14930   # Code from module largefile:
14931
14932   # Code from module lib-ignore:
14933   # Code from module lock:
14934   # Code from module lstat:
14935   # Code from module malloc-posix:
14936   # Code from module malloca:
14937   # Code from module memchr:
14938   # Code from module mkdtemp:
14939   # Code from module msvc-inval:
14940   # Code from module msvc-nothrow:
14941   # Code from module multiarch:
14942   # Code from module pathmax:
14943   # Code from module raise:
14944   # Code from module read:
14945   # Code from module safe-read:
14946   # Code from module safe-write:
14947   # Code from module secure_getenv:
14948   # Code from module setenv:
14949   # Code from module sigaction:
14950   # Code from module signal:
14951   # Code from module signal-h:
14952   # Code from module sigprocmask:
14953   # Code from module size_max:
14954   # Code from module snippet/_Noreturn:
14955   # Code from module snippet/arg-nonnull:
14956   # Code from module snippet/c++defs:
14957   # Code from module snippet/warn-on-use:
14958   # Code from module snprintf:
14959   # Code from module ssize_t:
14960   # Code from module stat:
14961   # Code from module stdarg:
14962
14963
14964
14965   # Code from module stdbool:
14966   # Code from module stddef:
14967   # Code from module stdint:
14968   # Code from module stdio:
14969   # Code from module stdlib:
14970   # Code from module strerror:
14971   # Code from module strerror-override:
14972   # Code from module string:
14973   # Code from module strndup:
14974   # Code from module strnlen:
14975   # Code from module strsignal:
14976   # Code from module sys_select:
14977   # Code from module sys_stat:
14978   # Code from module sys_time:
14979   # Code from module sys_types:
14980   # Code from module sys_wait:
14981   # Code from module tempname:
14982   # Code from module threadlib:
14983
14984
14985
14986   # Code from module time:
14987   # Code from module tls:
14988   # Code from module unistd:
14989   # Code from module unsetenv:
14990   # Code from module vasnprintf:
14991   # Code from module vasprintf:
14992   # Code from module verify:
14993   # Code from module waitpid:
14994   # Code from module warnings:
14995   # Code from module wchar:
14996   # Code from module write:
14997   # Code from module xalloc:
14998   # Code from module xalloc-die:
14999   # Code from module xalloc-oversized:
15000   # Code from module xsize:
15001   # Code from module xstrndup:
15002   # Code from module xvasprintf:
15003
15004 ac_ext=c
15005 ac_cpp='$CPP $CPPFLAGS'
15006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15010 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15011 # On Suns, sometimes $CPP names a directory.
15012 if test -n "$CPP" && test -d "$CPP"; then
15013   CPP=
15014 fi
15015 if test -z "$CPP"; then
15016   if ${ac_cv_prog_CPP+:} false; then :
15017   $as_echo_n "(cached) " >&6
15018 else
15019       # Double quotes because CPP needs to be expanded
15020     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15021     do
15022       ac_preproc_ok=false
15023 for ac_c_preproc_warn_flag in '' yes
15024 do
15025   # Use a header file that comes with gcc, so configuring glibc
15026   # with a fresh cross-compiler works.
15027   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15028   # <limits.h> exists even on freestanding compilers.
15029   # On the NeXT, cc -E runs the code through the compiler's parser,
15030   # not just through cpp. "Syntax error" is here to catch this case.
15031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h.  */
15033 #ifdef __STDC__
15034 # include <limits.h>
15035 #else
15036 # include <assert.h>
15037 #endif
15038                      Syntax error
15039 _ACEOF
15040 if ac_fn_c_try_cpp "$LINENO"; then :
15041
15042 else
15043   # Broken: fails on valid input.
15044 continue
15045 fi
15046 rm -f conftest.err conftest.i conftest.$ac_ext
15047
15048   # OK, works on sane cases.  Now check whether nonexistent headers
15049   # can be detected and how.
15050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h.  */
15052 #include <ac_nonexistent.h>
15053 _ACEOF
15054 if ac_fn_c_try_cpp "$LINENO"; then :
15055   # Broken: success on invalid input.
15056 continue
15057 else
15058   # Passes both tests.
15059 ac_preproc_ok=:
15060 break
15061 fi
15062 rm -f conftest.err conftest.i conftest.$ac_ext
15063
15064 done
15065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15066 rm -f conftest.i conftest.err conftest.$ac_ext
15067 if $ac_preproc_ok; then :
15068   break
15069 fi
15070
15071     done
15072     ac_cv_prog_CPP=$CPP
15073
15074 fi
15075   CPP=$ac_cv_prog_CPP
15076 else
15077   ac_cv_prog_CPP=$CPP
15078 fi
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15080 $as_echo "$CPP" >&6; }
15081 ac_preproc_ok=false
15082 for ac_c_preproc_warn_flag in '' yes
15083 do
15084   # Use a header file that comes with gcc, so configuring glibc
15085   # with a fresh cross-compiler works.
15086   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15087   # <limits.h> exists even on freestanding compilers.
15088   # On the NeXT, cc -E runs the code through the compiler's parser,
15089   # not just through cpp. "Syntax error" is here to catch this case.
15090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h.  */
15092 #ifdef __STDC__
15093 # include <limits.h>
15094 #else
15095 # include <assert.h>
15096 #endif
15097                      Syntax error
15098 _ACEOF
15099 if ac_fn_c_try_cpp "$LINENO"; then :
15100
15101 else
15102   # Broken: fails on valid input.
15103 continue
15104 fi
15105 rm -f conftest.err conftest.i conftest.$ac_ext
15106
15107   # OK, works on sane cases.  Now check whether nonexistent headers
15108   # can be detected and how.
15109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h.  */
15111 #include <ac_nonexistent.h>
15112 _ACEOF
15113 if ac_fn_c_try_cpp "$LINENO"; then :
15114   # Broken: success on invalid input.
15115 continue
15116 else
15117   # Passes both tests.
15118 ac_preproc_ok=:
15119 break
15120 fi
15121 rm -f conftest.err conftest.i conftest.$ac_ext
15122
15123 done
15124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15125 rm -f conftest.i conftest.err conftest.$ac_ext
15126 if $ac_preproc_ok; then :
15127
15128 else
15129   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15131 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15132 See \`config.log' for more details" "$LINENO" 5; }
15133 fi
15134
15135 ac_ext=c
15136 ac_cpp='$CPP $CPPFLAGS'
15137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15140
15141 CFLAGS="$CFLAGS -Wall"
15142 if test "$GCC" = yes
15143 then
15144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
15145 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
15146 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
15147   $as_echo_n "(cached) " >&6
15148 else
15149
15150   gl_save_compiler_FLAGS="$CFLAGS"
15151   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
15152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h.  */
15154
15155 int
15156 main ()
15157 {
15158
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 if ac_fn_c_try_link "$LINENO"; then :
15164   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
15165 else
15166   gl_cv_warn_c__Werror__Wunknown_warning_option=no
15167 fi
15168 rm -f core conftest.err conftest.$ac_objext \
15169     conftest$ac_exeext conftest.$ac_ext
15170   CFLAGS="$gl_save_compiler_FLAGS"
15171
15172 fi
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
15174 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
15175 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
15176   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
15177 else
15178   gl_unknown_warnings_are_errors=
15179 fi
15180
15181
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
15183 $as_echo_n "checking whether C compiler handles -W... " >&6; }
15184 if ${gl_cv_warn_c__W+:} false; then :
15185   $as_echo_n "(cached) " >&6
15186 else
15187
15188   gl_save_compiler_FLAGS="$CFLAGS"
15189   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
15190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h.  */
15192
15193 int
15194 main ()
15195 {
15196
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_link "$LINENO"; then :
15202   gl_cv_warn_c__W=yes
15203 else
15204   gl_cv_warn_c__W=no
15205 fi
15206 rm -f core conftest.err conftest.$ac_objext \
15207     conftest$ac_exeext conftest.$ac_ext
15208   CFLAGS="$gl_save_compiler_FLAGS"
15209
15210 fi
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
15212 $as_echo "$gl_cv_warn_c__W" >&6; }
15213 if test "x$gl_cv_warn_c__W" = xyes; then :
15214   as_fn_append WARN_CFLAGS " -W"
15215 fi
15216
15217
15218
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
15220 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
15221 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
15222   $as_echo_n "(cached) " >&6
15223 else
15224
15225   gl_save_compiler_FLAGS="$CFLAGS"
15226   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
15227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h.  */
15229
15230 int
15231 main ()
15232 {
15233
15234   ;
15235   return 0;
15236 }
15237 _ACEOF
15238 if ac_fn_c_try_link "$LINENO"; then :
15239   gl_cv_warn_c__Wpointer_arith=yes
15240 else
15241   gl_cv_warn_c__Wpointer_arith=no
15242 fi
15243 rm -f core conftest.err conftest.$ac_objext \
15244     conftest$ac_exeext conftest.$ac_ext
15245   CFLAGS="$gl_save_compiler_FLAGS"
15246
15247 fi
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
15249 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
15250 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
15251   as_fn_append WARN_CFLAGS " -Wpointer-arith"
15252 fi
15253
15254
15255
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
15257 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
15258 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
15259   $as_echo_n "(cached) " >&6
15260 else
15261
15262   gl_save_compiler_FLAGS="$CFLAGS"
15263   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
15264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h.  */
15266
15267 int
15268 main ()
15269 {
15270
15271   ;
15272   return 0;
15273 }
15274 _ACEOF
15275 if ac_fn_c_try_link "$LINENO"; then :
15276   gl_cv_warn_c__Wwrite_strings=yes
15277 else
15278   gl_cv_warn_c__Wwrite_strings=no
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext \
15281     conftest$ac_exeext conftest.$ac_ext
15282   CFLAGS="$gl_save_compiler_FLAGS"
15283
15284 fi
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
15286 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
15287 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
15288   as_fn_append WARN_CFLAGS " -Wwrite-strings"
15289 fi
15290
15291
15292
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
15294 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
15295 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
15296   $as_echo_n "(cached) " >&6
15297 else
15298
15299   gl_save_compiler_FLAGS="$CFLAGS"
15300   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
15301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h.  */
15303
15304 int
15305 main ()
15306 {
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 if ac_fn_c_try_link "$LINENO"; then :
15313   gl_cv_warn_c__Wstrict_prototypes=yes
15314 else
15315   gl_cv_warn_c__Wstrict_prototypes=no
15316 fi
15317 rm -f core conftest.err conftest.$ac_objext \
15318     conftest$ac_exeext conftest.$ac_ext
15319   CFLAGS="$gl_save_compiler_FLAGS"
15320
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
15323 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
15324 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
15325   as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
15326 fi
15327
15328
15329
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
15331 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
15332 if ${gl_cv_warn_c__Wshadow+:} false; then :
15333   $as_echo_n "(cached) " >&6
15334 else
15335
15336   gl_save_compiler_FLAGS="$CFLAGS"
15337   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
15338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h.  */
15340
15341 int
15342 main ()
15343 {
15344
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 if ac_fn_c_try_link "$LINENO"; then :
15350   gl_cv_warn_c__Wshadow=yes
15351 else
15352   gl_cv_warn_c__Wshadow=no
15353 fi
15354 rm -f core conftest.err conftest.$ac_objext \
15355     conftest$ac_exeext conftest.$ac_ext
15356   CFLAGS="$gl_save_compiler_FLAGS"
15357
15358 fi
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
15360 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
15361 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
15362   as_fn_append WARN_CFLAGS " -Wshadow"
15363 fi
15364
15365
15366
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
15368 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
15369 if ${gl_cv_warn_c__Wformat_security+:} false; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372
15373   gl_save_compiler_FLAGS="$CFLAGS"
15374   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
15375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h.  */
15377
15378 int
15379 main ()
15380 {
15381
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 if ac_fn_c_try_link "$LINENO"; then :
15387   gl_cv_warn_c__Wformat_security=yes
15388 else
15389   gl_cv_warn_c__Wformat_security=no
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext \
15392     conftest$ac_exeext conftest.$ac_ext
15393   CFLAGS="$gl_save_compiler_FLAGS"
15394
15395 fi
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
15397 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
15398 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
15399   as_fn_append WARN_CFLAGS " -Wformat-security"
15400 fi
15401
15402
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
15405 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
15406 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
15407   $as_echo_n "(cached) " >&6
15408 else
15409
15410   gl_save_compiler_FLAGS="$CFLAGS"
15411   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
15412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h.  */
15414
15415 int
15416 main ()
15417 {
15418
15419   ;
15420   return 0;
15421 }
15422 _ACEOF
15423 if ac_fn_c_try_link "$LINENO"; then :
15424   gl_cv_warn_c__Wredundant_decls=yes
15425 else
15426   gl_cv_warn_c__Wredundant_decls=no
15427 fi
15428 rm -f core conftest.err conftest.$ac_objext \
15429     conftest$ac_exeext conftest.$ac_ext
15430   CFLAGS="$gl_save_compiler_FLAGS"
15431
15432 fi
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
15434 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
15435 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
15436   as_fn_append WARN_CFLAGS " -Wredundant-decls"
15437 fi
15438
15439
15440
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
15442 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
15443 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
15444   $as_echo_n "(cached) " >&6
15445 else
15446
15447   gl_save_compiler_FLAGS="$CFLAGS"
15448   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
15449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h.  */
15451
15452 int
15453 main ()
15454 {
15455
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460 if ac_fn_c_try_link "$LINENO"; then :
15461   gl_cv_warn_c__Wno_missing_field_initializers=yes
15462 else
15463   gl_cv_warn_c__Wno_missing_field_initializers=no
15464 fi
15465 rm -f core conftest.err conftest.$ac_objext \
15466     conftest$ac_exeext conftest.$ac_ext
15467   CFLAGS="$gl_save_compiler_FLAGS"
15468
15469 fi
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
15471 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
15472 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
15473   as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
15474 fi
15475
15476
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15479 $as_echo_n "checking whether ln -s works... " >&6; }
15480 LN_S=$as_ln_s
15481 if test "$LN_S" = "ln -s"; then
15482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15483 $as_echo "yes" >&6; }
15484 else
15485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15486 $as_echo "no, using $LN_S" >&6; }
15487 fi
15488
15489
15490 cat >>confdefs.h <<_ACEOF
15491 #define SHELL "$SHELL"
15492 _ACEOF
15493
15494
15495
15496
15497
15498
15499
15500
15501 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15502         if test -n "$ac_tool_prefix"; then
15503   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15504 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15506 $as_echo_n "checking for $ac_word... " >&6; }
15507 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15508   $as_echo_n "(cached) " >&6
15509 else
15510   case $PKG_CONFIG in
15511   [\\/]* | ?:[\\/]*)
15512   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15513   ;;
15514   *)
15515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15516 for as_dir in $PATH
15517 do
15518   IFS=$as_save_IFS
15519   test -z "$as_dir" && as_dir=.
15520     for ac_exec_ext in '' $ac_executable_extensions; do
15521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15522     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15524     break 2
15525   fi
15526 done
15527   done
15528 IFS=$as_save_IFS
15529
15530   ;;
15531 esac
15532 fi
15533 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15534 if test -n "$PKG_CONFIG"; then
15535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15536 $as_echo "$PKG_CONFIG" >&6; }
15537 else
15538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15540 fi
15541
15542
15543 fi
15544 if test -z "$ac_cv_path_PKG_CONFIG"; then
15545   ac_pt_PKG_CONFIG=$PKG_CONFIG
15546   # Extract the first word of "pkg-config", so it can be a program name with args.
15547 set dummy pkg-config; ac_word=$2
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549 $as_echo_n "checking for $ac_word... " >&6; }
15550 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15551   $as_echo_n "(cached) " >&6
15552 else
15553   case $ac_pt_PKG_CONFIG in
15554   [\\/]* | ?:[\\/]*)
15555   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15556   ;;
15557   *)
15558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15559 for as_dir in $PATH
15560 do
15561   IFS=$as_save_IFS
15562   test -z "$as_dir" && as_dir=.
15563     for ac_exec_ext in '' $ac_executable_extensions; do
15564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15565     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15567     break 2
15568   fi
15569 done
15570   done
15571 IFS=$as_save_IFS
15572
15573   ;;
15574 esac
15575 fi
15576 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15577 if test -n "$ac_pt_PKG_CONFIG"; then
15578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15579 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15580 else
15581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15582 $as_echo "no" >&6; }
15583 fi
15584
15585   if test "x$ac_pt_PKG_CONFIG" = x; then
15586     PKG_CONFIG=""
15587   else
15588     case $cross_compiling:$ac_tool_warned in
15589 yes:)
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15592 ac_tool_warned=yes ;;
15593 esac
15594     PKG_CONFIG=$ac_pt_PKG_CONFIG
15595   fi
15596 else
15597   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15598 fi
15599
15600 fi
15601 if test -n "$PKG_CONFIG"; then
15602         _pkg_min_version=0.9.0
15603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15604 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15605         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15606                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607 $as_echo "yes" >&6; }
15608         else
15609                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15610 $as_echo "no" >&6; }
15611                 PKG_CONFIG=""
15612         fi
15613 fi
15614
15615 pkg_failed=no
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15617 $as_echo_n "checking for CHECK... " >&6; }
15618
15619 if test -n "$CHECK_CFLAGS"; then
15620     pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15621  elif test -n "$PKG_CONFIG"; then
15622     if test -n "$PKG_CONFIG" && \
15623     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15624   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15625   ac_status=$?
15626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15627   test $ac_status = 0; }; then
15628   pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15629                       test "x$?" != "x0" && pkg_failed=yes
15630 else
15631   pkg_failed=yes
15632 fi
15633  else
15634     pkg_failed=untried
15635 fi
15636 if test -n "$CHECK_LIBS"; then
15637     pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15638  elif test -n "$PKG_CONFIG"; then
15639     if test -n "$PKG_CONFIG" && \
15640     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15641   ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15642   ac_status=$?
15643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15644   test $ac_status = 0; }; then
15645   pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15646                       test "x$?" != "x0" && pkg_failed=yes
15647 else
15648   pkg_failed=yes
15649 fi
15650  else
15651     pkg_failed=untried
15652 fi
15653
15654
15655
15656 if test $pkg_failed = yes; then
15657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15659
15660 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15661         _pkg_short_errors_supported=yes
15662 else
15663         _pkg_short_errors_supported=no
15664 fi
15665         if test $_pkg_short_errors_supported = yes; then
15666                 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15667         else
15668                 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15669         fi
15670         # Put the nasty error message in config.log where it belongs
15671         echo "$CHECK_PKG_ERRORS" >&5
15672
15673         run_tests=no
15674 elif test $pkg_failed = untried; then
15675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15676 $as_echo "no" >&6; }
15677         run_tests=no
15678 else
15679         CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15680         CHECK_LIBS=$pkg_cv_CHECK_LIBS
15681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15682 $as_echo "yes" >&6; }
15683         run_tests=yes
15684 fi
15685  if test "x$run_tests" = xyes; then
15686   RUN_TESTS_TRUE=
15687   RUN_TESTS_FALSE='#'
15688 else
15689   RUN_TESTS_TRUE='#'
15690   RUN_TESTS_FALSE=
15691 fi
15692
15693
15694 # Check for various header files and associated libraries.
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15696 $as_echo_n "checking for library containing strerror... " >&6; }
15697 if ${ac_cv_search_strerror+:} false; then :
15698   $as_echo_n "(cached) " >&6
15699 else
15700   ac_func_search_save_LIBS=$LIBS
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h.  */
15703
15704 /* Override any GCC internal prototype to avoid an error.
15705    Use char because int might match the return type of a GCC
15706    builtin and then its argument prototype would still apply.  */
15707 #ifdef __cplusplus
15708 extern "C"
15709 #endif
15710 char strerror ();
15711 int
15712 main ()
15713 {
15714 return strerror ();
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 for ac_lib in '' cposix; do
15720   if test -z "$ac_lib"; then
15721     ac_res="none required"
15722   else
15723     ac_res=-l$ac_lib
15724     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15725   fi
15726   if ac_fn_c_try_link "$LINENO"; then :
15727   ac_cv_search_strerror=$ac_res
15728 fi
15729 rm -f core conftest.err conftest.$ac_objext \
15730     conftest$ac_exeext
15731   if ${ac_cv_search_strerror+:} false; then :
15732   break
15733 fi
15734 done
15735 if ${ac_cv_search_strerror+:} false; then :
15736
15737 else
15738   ac_cv_search_strerror=no
15739 fi
15740 rm conftest.$ac_ext
15741 LIBS=$ac_func_search_save_LIBS
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15744 $as_echo "$ac_cv_search_strerror" >&6; }
15745 ac_res=$ac_cv_search_strerror
15746 if test "$ac_res" != no; then :
15747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15748
15749 fi
15750
15751
15752
15753
15754
15755
15756           LIBC_FATAL_STDERR_=1
15757   export LIBC_FATAL_STDERR_
15758
15759 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15760 if test "x$ac_cv_type_size_t" = xyes; then :
15761
15762 else
15763
15764 cat >>confdefs.h <<_ACEOF
15765 #define size_t unsigned int
15766 _ACEOF
15767
15768 fi
15769
15770 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15771 # for constant arguments.  Useless!
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15773 $as_echo_n "checking for working alloca.h... " >&6; }
15774 if ${ac_cv_working_alloca_h+:} false; then :
15775   $as_echo_n "(cached) " >&6
15776 else
15777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h.  */
15779 #include <alloca.h>
15780 int
15781 main ()
15782 {
15783 char *p = (char *) alloca (2 * sizeof (int));
15784                           if (p) return 0;
15785   ;
15786   return 0;
15787 }
15788 _ACEOF
15789 if ac_fn_c_try_link "$LINENO"; then :
15790   ac_cv_working_alloca_h=yes
15791 else
15792   ac_cv_working_alloca_h=no
15793 fi
15794 rm -f core conftest.err conftest.$ac_objext \
15795     conftest$ac_exeext conftest.$ac_ext
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15798 $as_echo "$ac_cv_working_alloca_h" >&6; }
15799 if test $ac_cv_working_alloca_h = yes; then
15800
15801 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15802
15803 fi
15804
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15806 $as_echo_n "checking for alloca... " >&6; }
15807 if ${ac_cv_func_alloca_works+:} false; then :
15808   $as_echo_n "(cached) " >&6
15809 else
15810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811 /* end confdefs.h.  */
15812 #ifdef __GNUC__
15813 # define alloca __builtin_alloca
15814 #else
15815 # ifdef _MSC_VER
15816 #  include <malloc.h>
15817 #  define alloca _alloca
15818 # else
15819 #  ifdef HAVE_ALLOCA_H
15820 #   include <alloca.h>
15821 #  else
15822 #   ifdef _AIX
15823  #pragma alloca
15824 #   else
15825 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15826 void *alloca (size_t);
15827 #    endif
15828 #   endif
15829 #  endif
15830 # endif
15831 #endif
15832
15833 int
15834 main ()
15835 {
15836 char *p = (char *) alloca (1);
15837                                     if (p) return 0;
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 if ac_fn_c_try_link "$LINENO"; then :
15843   ac_cv_func_alloca_works=yes
15844 else
15845   ac_cv_func_alloca_works=no
15846 fi
15847 rm -f core conftest.err conftest.$ac_objext \
15848     conftest$ac_exeext conftest.$ac_ext
15849 fi
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15851 $as_echo "$ac_cv_func_alloca_works" >&6; }
15852
15853 if test $ac_cv_func_alloca_works = yes; then
15854
15855 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15856
15857 else
15858   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15859 # that cause trouble.  Some versions do not even contain alloca or
15860 # contain a buggy version.  If you still want to use their alloca,
15861 # use ar to extract alloca.o from them instead of compiling alloca.c.
15862
15863
15864
15865
15866
15867 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15868
15869 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15870
15871
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15873 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15874 if ${ac_cv_os_cray+:} false; then :
15875   $as_echo_n "(cached) " >&6
15876 else
15877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h.  */
15879 #if defined CRAY && ! defined CRAY2
15880 webecray
15881 #else
15882 wenotbecray
15883 #endif
15884
15885 _ACEOF
15886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15887   $EGREP "webecray" >/dev/null 2>&1; then :
15888   ac_cv_os_cray=yes
15889 else
15890   ac_cv_os_cray=no
15891 fi
15892 rm -f conftest*
15893
15894 fi
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15896 $as_echo "$ac_cv_os_cray" >&6; }
15897 if test $ac_cv_os_cray = yes; then
15898   for ac_func in _getb67 GETB67 getb67; do
15899     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15900 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15901 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15902
15903 cat >>confdefs.h <<_ACEOF
15904 #define CRAY_STACKSEG_END $ac_func
15905 _ACEOF
15906
15907     break
15908 fi
15909
15910   done
15911 fi
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15914 $as_echo_n "checking stack direction for C alloca... " >&6; }
15915 if ${ac_cv_c_stack_direction+:} false; then :
15916   $as_echo_n "(cached) " >&6
15917 else
15918   if test "$cross_compiling" = yes; then :
15919   ac_cv_c_stack_direction=0
15920 else
15921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h.  */
15923 $ac_includes_default
15924 int
15925 find_stack_direction (int *addr, int depth)
15926 {
15927   int dir, dummy = 0;
15928   if (! addr)
15929     addr = &dummy;
15930   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15931   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15932   return dir + dummy;
15933 }
15934
15935 int
15936 main (int argc, char **argv)
15937 {
15938   return find_stack_direction (0, argc + !argv + 20) < 0;
15939 }
15940 _ACEOF
15941 if ac_fn_c_try_run "$LINENO"; then :
15942   ac_cv_c_stack_direction=1
15943 else
15944   ac_cv_c_stack_direction=-1
15945 fi
15946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15947   conftest.$ac_objext conftest.beam conftest.$ac_ext
15948 fi
15949
15950 fi
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15952 $as_echo "$ac_cv_c_stack_direction" >&6; }
15953 cat >>confdefs.h <<_ACEOF
15954 #define STACK_DIRECTION $ac_cv_c_stack_direction
15955 _ACEOF
15956
15957
15958 fi
15959
15960
15961
15962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15963 $as_echo_n "checking whether // is distinct from /... " >&6; }
15964 if ${gl_cv_double_slash_root+:} false; then :
15965   $as_echo_n "(cached) " >&6
15966 else
15967    if test x"$cross_compiling" = xyes ; then
15968         # When cross-compiling, there is no way to tell whether // is special
15969         # short of a list of hosts.  However, the only known hosts to date
15970         # that have a distinct // are Apollo DomainOS (too old to port to),
15971         # Cygwin, and z/OS.  If anyone knows of another system for which // has
15972         # special semantics and is distinct from /, please report it to
15973         # <bug-gnulib@gnu.org>.
15974         case $host in
15975           *-cygwin | i370-ibm-openedition)
15976             gl_cv_double_slash_root=yes ;;
15977           *)
15978             # Be optimistic and assume that / and // are the same when we
15979             # don't know.
15980             gl_cv_double_slash_root='unknown, assuming no' ;;
15981         esac
15982       else
15983         set x `ls -di / // 2>/dev/null`
15984         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15985           gl_cv_double_slash_root=no
15986         else
15987           gl_cv_double_slash_root=yes
15988         fi
15989       fi
15990 fi
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15992 $as_echo "$gl_cv_double_slash_root" >&6; }
15993   if test "$gl_cv_double_slash_root" = yes; then
15994
15995 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15996
15997   fi
15998
15999
16000
16001
16002
16003
16004   GNULIB_CHDIR=0;
16005   GNULIB_CHOWN=0;
16006   GNULIB_CLOSE=0;
16007   GNULIB_DUP=0;
16008   GNULIB_DUP2=0;
16009   GNULIB_DUP3=0;
16010   GNULIB_ENVIRON=0;
16011   GNULIB_EUIDACCESS=0;
16012   GNULIB_FACCESSAT=0;
16013   GNULIB_FCHDIR=0;
16014   GNULIB_FCHOWNAT=0;
16015   GNULIB_FDATASYNC=0;
16016   GNULIB_FSYNC=0;
16017   GNULIB_FTRUNCATE=0;
16018   GNULIB_GETCWD=0;
16019   GNULIB_GETDOMAINNAME=0;
16020   GNULIB_GETDTABLESIZE=0;
16021   GNULIB_GETGROUPS=0;
16022   GNULIB_GETHOSTNAME=0;
16023   GNULIB_GETLOGIN=0;
16024   GNULIB_GETLOGIN_R=0;
16025   GNULIB_GETPAGESIZE=0;
16026   GNULIB_GETUSERSHELL=0;
16027   GNULIB_GROUP_MEMBER=0;
16028   GNULIB_ISATTY=0;
16029   GNULIB_LCHOWN=0;
16030   GNULIB_LINK=0;
16031   GNULIB_LINKAT=0;
16032   GNULIB_LSEEK=0;
16033   GNULIB_PIPE=0;
16034   GNULIB_PIPE2=0;
16035   GNULIB_PREAD=0;
16036   GNULIB_PWRITE=0;
16037   GNULIB_READ=0;
16038   GNULIB_READLINK=0;
16039   GNULIB_READLINKAT=0;
16040   GNULIB_RMDIR=0;
16041   GNULIB_SETHOSTNAME=0;
16042   GNULIB_SLEEP=0;
16043   GNULIB_SYMLINK=0;
16044   GNULIB_SYMLINKAT=0;
16045   GNULIB_TTYNAME_R=0;
16046   GNULIB_UNISTD_H_NONBLOCKING=0;
16047   GNULIB_UNISTD_H_SIGPIPE=0;
16048   GNULIB_UNLINK=0;
16049   GNULIB_UNLINKAT=0;
16050   GNULIB_USLEEP=0;
16051   GNULIB_WRITE=0;
16052     HAVE_CHOWN=1;
16053   HAVE_DUP2=1;
16054   HAVE_DUP3=1;
16055   HAVE_EUIDACCESS=1;
16056   HAVE_FACCESSAT=1;
16057   HAVE_FCHDIR=1;
16058   HAVE_FCHOWNAT=1;
16059   HAVE_FDATASYNC=1;
16060   HAVE_FSYNC=1;
16061   HAVE_FTRUNCATE=1;
16062   HAVE_GETDTABLESIZE=1;
16063   HAVE_GETGROUPS=1;
16064   HAVE_GETHOSTNAME=1;
16065   HAVE_GETLOGIN=1;
16066   HAVE_GETPAGESIZE=1;
16067   HAVE_GROUP_MEMBER=1;
16068   HAVE_LCHOWN=1;
16069   HAVE_LINK=1;
16070   HAVE_LINKAT=1;
16071   HAVE_PIPE=1;
16072   HAVE_PIPE2=1;
16073   HAVE_PREAD=1;
16074   HAVE_PWRITE=1;
16075   HAVE_READLINK=1;
16076   HAVE_READLINKAT=1;
16077   HAVE_SETHOSTNAME=1;
16078   HAVE_SLEEP=1;
16079   HAVE_SYMLINK=1;
16080   HAVE_SYMLINKAT=1;
16081   HAVE_UNLINKAT=1;
16082   HAVE_USLEEP=1;
16083   HAVE_DECL_ENVIRON=1;
16084   HAVE_DECL_FCHDIR=1;
16085   HAVE_DECL_FDATASYNC=1;
16086   HAVE_DECL_GETDOMAINNAME=1;
16087   HAVE_DECL_GETLOGIN_R=1;
16088   HAVE_DECL_GETPAGESIZE=1;
16089   HAVE_DECL_GETUSERSHELL=1;
16090   HAVE_DECL_SETHOSTNAME=1;
16091   HAVE_DECL_TTYNAME_R=1;
16092   HAVE_OS_H=0;
16093   HAVE_SYS_PARAM_H=0;
16094   REPLACE_CHOWN=0;
16095   REPLACE_CLOSE=0;
16096   REPLACE_DUP=0;
16097   REPLACE_DUP2=0;
16098   REPLACE_FCHOWNAT=0;
16099   REPLACE_FTRUNCATE=0;
16100   REPLACE_GETCWD=0;
16101   REPLACE_GETDOMAINNAME=0;
16102   REPLACE_GETDTABLESIZE=0;
16103   REPLACE_GETLOGIN_R=0;
16104   REPLACE_GETGROUPS=0;
16105   REPLACE_GETPAGESIZE=0;
16106   REPLACE_ISATTY=0;
16107   REPLACE_LCHOWN=0;
16108   REPLACE_LINK=0;
16109   REPLACE_LINKAT=0;
16110   REPLACE_LSEEK=0;
16111   REPLACE_PREAD=0;
16112   REPLACE_PWRITE=0;
16113   REPLACE_READ=0;
16114   REPLACE_READLINK=0;
16115   REPLACE_RMDIR=0;
16116   REPLACE_SLEEP=0;
16117   REPLACE_SYMLINK=0;
16118   REPLACE_TTYNAME_R=0;
16119   REPLACE_UNLINK=0;
16120   REPLACE_UNLINKAT=0;
16121   REPLACE_USLEEP=0;
16122   REPLACE_WRITE=0;
16123   UNISTD_H_HAVE_WINSOCK2_H=0;
16124   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16125
16126
16127
16128
16129
16130
16131   for ac_header in $gl_header_list
16132 do :
16133   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16136   cat >>confdefs.h <<_ACEOF
16137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16138 _ACEOF
16139
16140 fi
16141
16142 done
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153   :
16154
16155
16156
16157
16158
16159
16160
16161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16162 $as_echo_n "checking if environ is properly declared... " >&6; }
16163   if ${gt_cv_var_environ_declaration+:} false; then :
16164   $as_echo_n "(cached) " >&6
16165 else
16166
16167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h.  */
16169 #if HAVE_UNISTD_H
16170      #include <unistd.h>
16171      #endif
16172      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
16173      #include <stdlib.h>
16174
16175            extern struct { int foo; } environ;
16176 int
16177 main ()
16178 {
16179 environ.foo = 1;
16180   ;
16181   return 0;
16182 }
16183 _ACEOF
16184 if ac_fn_c_try_compile "$LINENO"; then :
16185   gt_cv_var_environ_declaration=no
16186 else
16187   gt_cv_var_environ_declaration=yes
16188 fi
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190 fi
16191
16192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16193 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16194   if test $gt_cv_var_environ_declaration = yes; then
16195
16196 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16197
16198   fi
16199
16200
16201   if test $gt_cv_var_environ_declaration != yes; then
16202     HAVE_DECL_ENVIRON=0
16203   fi
16204
16205
16206
16207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16208 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16209 if ${gl_cv_have_include_next+:} false; then :
16210   $as_echo_n "(cached) " >&6
16211 else
16212   rm -rf conftestd1a conftestd1b conftestd2
16213      mkdir conftestd1a conftestd1b conftestd2
16214                                                   cat <<EOF > conftestd1a/conftest.h
16215 #define DEFINED_IN_CONFTESTD1
16216 #include_next <conftest.h>
16217 #ifdef DEFINED_IN_CONFTESTD2
16218 int foo;
16219 #else
16220 #error "include_next doesn't work"
16221 #endif
16222 EOF
16223      cat <<EOF > conftestd1b/conftest.h
16224 #define DEFINED_IN_CONFTESTD1
16225 #include <stdio.h>
16226 #include_next <conftest.h>
16227 #ifdef DEFINED_IN_CONFTESTD2
16228 int foo;
16229 #else
16230 #error "include_next doesn't work"
16231 #endif
16232 EOF
16233      cat <<EOF > conftestd2/conftest.h
16234 #ifndef DEFINED_IN_CONFTESTD1
16235 #error "include_next test doesn't work"
16236 #endif
16237 #define DEFINED_IN_CONFTESTD2
16238 EOF
16239      gl_save_CPPFLAGS="$CPPFLAGS"
16240      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16241      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h.  */
16243 #include <conftest.h>
16244 _ACEOF
16245 if ac_fn_c_try_compile "$LINENO"; then :
16246   gl_cv_have_include_next=yes
16247 else
16248   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16249         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h.  */
16251 #include <conftest.h>
16252 _ACEOF
16253 if ac_fn_c_try_compile "$LINENO"; then :
16254   gl_cv_have_include_next=buggy
16255 else
16256   gl_cv_have_include_next=no
16257 fi
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259
16260 fi
16261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262      CPPFLAGS="$gl_save_CPPFLAGS"
16263      rm -rf conftestd1a conftestd1b conftestd2
16264
16265 fi
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16267 $as_echo "$gl_cv_have_include_next" >&6; }
16268   PRAGMA_SYSTEM_HEADER=
16269   if test $gl_cv_have_include_next = yes; then
16270     INCLUDE_NEXT=include_next
16271     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16272     if test -n "$GCC"; then
16273       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16274     fi
16275   else
16276     if test $gl_cv_have_include_next = buggy; then
16277       INCLUDE_NEXT=include
16278       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16279     else
16280       INCLUDE_NEXT=include
16281       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16282     fi
16283   fi
16284
16285
16286
16287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16288 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16289 if ${gl_cv_pragma_columns+:} false; then :
16290   $as_echo_n "(cached) " >&6
16291 else
16292        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h.  */
16294
16295 #ifdef __TANDEM
16296 choke me
16297 #endif
16298
16299 _ACEOF
16300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16301   $EGREP "choke me" >/dev/null 2>&1; then :
16302   gl_cv_pragma_columns=yes
16303 else
16304   gl_cv_pragma_columns=no
16305 fi
16306 rm -f conftest*
16307
16308
16309 fi
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16311 $as_echo "$gl_cv_pragma_columns" >&6; }
16312   if test $gl_cv_pragma_columns = yes; then
16313     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16314   else
16315     PRAGMA_COLUMNS=
16316   fi
16317
16318
16319
16320
16321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16322 $as_echo_n "checking for complete errno.h... " >&6; }
16323 if ${gl_cv_header_errno_h_complete+:} false; then :
16324   $as_echo_n "(cached) " >&6
16325 else
16326
16327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h.  */
16329
16330 #include <errno.h>
16331 #if !defined ETXTBSY
16332 booboo
16333 #endif
16334 #if !defined ENOMSG
16335 booboo
16336 #endif
16337 #if !defined EIDRM
16338 booboo
16339 #endif
16340 #if !defined ENOLINK
16341 booboo
16342 #endif
16343 #if !defined EPROTO
16344 booboo
16345 #endif
16346 #if !defined EMULTIHOP
16347 booboo
16348 #endif
16349 #if !defined EBADMSG
16350 booboo
16351 #endif
16352 #if !defined EOVERFLOW
16353 booboo
16354 #endif
16355 #if !defined ENOTSUP
16356 booboo
16357 #endif
16358 #if !defined ENETRESET
16359 booboo
16360 #endif
16361 #if !defined ECONNABORTED
16362 booboo
16363 #endif
16364 #if !defined ESTALE
16365 booboo
16366 #endif
16367 #if !defined EDQUOT
16368 booboo
16369 #endif
16370 #if !defined ECANCELED
16371 booboo
16372 #endif
16373 #if !defined EOWNERDEAD
16374 booboo
16375 #endif
16376 #if !defined ENOTRECOVERABLE
16377 booboo
16378 #endif
16379 #if !defined EILSEQ
16380 booboo
16381 #endif
16382
16383 _ACEOF
16384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16385   $EGREP "booboo" >/dev/null 2>&1; then :
16386   gl_cv_header_errno_h_complete=no
16387 else
16388   gl_cv_header_errno_h_complete=yes
16389 fi
16390 rm -f conftest*
16391
16392
16393 fi
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16395 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
16396   if test $gl_cv_header_errno_h_complete = yes; then
16397     ERRNO_H=''
16398   else
16399
16400
16401
16402
16403
16404
16405
16406
16407      if test $gl_cv_have_include_next = yes; then
16408        gl_cv_next_errno_h='<'errno.h'>'
16409      else
16410        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16411 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
16412 if ${gl_cv_next_errno_h+:} false; then :
16413   $as_echo_n "(cached) " >&6
16414 else
16415
16416
16417
16418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h.  */
16420 #include <errno.h>
16421 _ACEOF
16422                 case "$host_os" in
16423     aix*) gl_absname_cpp="$ac_cpp -C" ;;
16424     *)    gl_absname_cpp="$ac_cpp" ;;
16425   esac
16426
16427   case "$host_os" in
16428     mingw*)
16429                                           gl_dirsep_regex='[/\\]'
16430       ;;
16431     *)
16432       gl_dirsep_regex='\/'
16433       ;;
16434   esac
16435       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16436   gl_header_literal_regex=`echo 'errno.h' \
16437                            | sed -e "$gl_make_literal_regex_sed"`
16438   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16439       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16440       s|^/[^/]|//&|
16441       p
16442       q
16443     }'
16444
16445         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16446   sed -n "$gl_absolute_header_sed"`
16447
16448            gl_header=$gl_cv_absolute_errno_h
16449            gl_cv_next_errno_h='"'$gl_header'"'
16450
16451
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16454 $as_echo "$gl_cv_next_errno_h" >&6; }
16455      fi
16456      NEXT_ERRNO_H=$gl_cv_next_errno_h
16457
16458      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16459        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16460        gl_next_as_first_directive='<'errno.h'>'
16461      else
16462        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16463        gl_next_as_first_directive=$gl_cv_next_errno_h
16464      fi
16465      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16466
16467
16468
16469
16470     ERRNO_H='errno.h'
16471   fi
16472
16473    if test -n "$ERRNO_H"; then
16474   GL_GENERATE_ERRNO_H_TRUE=
16475   GL_GENERATE_ERRNO_H_FALSE='#'
16476 else
16477   GL_GENERATE_ERRNO_H_TRUE='#'
16478   GL_GENERATE_ERRNO_H_FALSE=
16479 fi
16480
16481
16482   if test -n "$ERRNO_H"; then
16483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16484 $as_echo_n "checking for EMULTIHOP value... " >&6; }
16485 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16486   $as_echo_n "(cached) " >&6
16487 else
16488
16489       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h.  */
16491
16492 #include <errno.h>
16493 #ifdef EMULTIHOP
16494 yes
16495 #endif
16496
16497 _ACEOF
16498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16499   $EGREP "yes" >/dev/null 2>&1; then :
16500   gl_cv_header_errno_h_EMULTIHOP=yes
16501 else
16502   gl_cv_header_errno_h_EMULTIHOP=no
16503 fi
16504 rm -f conftest*
16505
16506       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16507         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h.  */
16509
16510 #define _XOPEN_SOURCE_EXTENDED 1
16511 #include <errno.h>
16512 #ifdef EMULTIHOP
16513 yes
16514 #endif
16515
16516 _ACEOF
16517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16518   $EGREP "yes" >/dev/null 2>&1; then :
16519   gl_cv_header_errno_h_EMULTIHOP=hidden
16520 fi
16521 rm -f conftest*
16522
16523         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16524                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
16525 #define _XOPEN_SOURCE_EXTENDED 1
16526 #include <errno.h>
16527 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16528 #include <stdio.h>
16529 #include <stdlib.h>
16530 "; then :
16531
16532 fi
16533
16534         fi
16535       fi
16536
16537 fi
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16539 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16540     case $gl_cv_header_errno_h_EMULTIHOP in
16541       yes | no)
16542         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16543         ;;
16544       *)
16545         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16546         ;;
16547     esac
16548
16549
16550   fi
16551
16552
16553   if test -n "$ERRNO_H"; then
16554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16555 $as_echo_n "checking for ENOLINK value... " >&6; }
16556 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16557   $as_echo_n "(cached) " >&6
16558 else
16559
16560       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h.  */
16562
16563 #include <errno.h>
16564 #ifdef ENOLINK
16565 yes
16566 #endif
16567
16568 _ACEOF
16569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16570   $EGREP "yes" >/dev/null 2>&1; then :
16571   gl_cv_header_errno_h_ENOLINK=yes
16572 else
16573   gl_cv_header_errno_h_ENOLINK=no
16574 fi
16575 rm -f conftest*
16576
16577       if test $gl_cv_header_errno_h_ENOLINK = no; then
16578         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h.  */
16580
16581 #define _XOPEN_SOURCE_EXTENDED 1
16582 #include <errno.h>
16583 #ifdef ENOLINK
16584 yes
16585 #endif
16586
16587 _ACEOF
16588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16589   $EGREP "yes" >/dev/null 2>&1; then :
16590   gl_cv_header_errno_h_ENOLINK=hidden
16591 fi
16592 rm -f conftest*
16593
16594         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16595                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
16596 #define _XOPEN_SOURCE_EXTENDED 1
16597 #include <errno.h>
16598 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16599 #include <stdio.h>
16600 #include <stdlib.h>
16601 "; then :
16602
16603 fi
16604
16605         fi
16606       fi
16607
16608 fi
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16610 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16611     case $gl_cv_header_errno_h_ENOLINK in
16612       yes | no)
16613         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16614         ;;
16615       *)
16616         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16617         ;;
16618     esac
16619
16620
16621   fi
16622
16623
16624   if test -n "$ERRNO_H"; then
16625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16626 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16627 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16628   $as_echo_n "(cached) " >&6
16629 else
16630
16631       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h.  */
16633
16634 #include <errno.h>
16635 #ifdef EOVERFLOW
16636 yes
16637 #endif
16638
16639 _ACEOF
16640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16641   $EGREP "yes" >/dev/null 2>&1; then :
16642   gl_cv_header_errno_h_EOVERFLOW=yes
16643 else
16644   gl_cv_header_errno_h_EOVERFLOW=no
16645 fi
16646 rm -f conftest*
16647
16648       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16649         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h.  */
16651
16652 #define _XOPEN_SOURCE_EXTENDED 1
16653 #include <errno.h>
16654 #ifdef EOVERFLOW
16655 yes
16656 #endif
16657
16658 _ACEOF
16659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16660   $EGREP "yes" >/dev/null 2>&1; then :
16661   gl_cv_header_errno_h_EOVERFLOW=hidden
16662 fi
16663 rm -f conftest*
16664
16665         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16666                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
16667 #define _XOPEN_SOURCE_EXTENDED 1
16668 #include <errno.h>
16669 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
16670 #include <stdio.h>
16671 #include <stdlib.h>
16672 "; then :
16673
16674 fi
16675
16676         fi
16677       fi
16678
16679 fi
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16681 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16682     case $gl_cv_header_errno_h_EOVERFLOW in
16683       yes | no)
16684         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16685         ;;
16686       *)
16687         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16688         ;;
16689     esac
16690
16691
16692   fi
16693
16694
16695 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16696 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16697   ac_have_decl=1
16698 else
16699   ac_have_decl=0
16700 fi
16701
16702 cat >>confdefs.h <<_ACEOF
16703 #define HAVE_DECL_STRERROR_R $ac_have_decl
16704 _ACEOF
16705
16706 for ac_func in strerror_r
16707 do :
16708   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16709 if test "x$ac_cv_func_strerror_r" = xyes; then :
16710   cat >>confdefs.h <<_ACEOF
16711 #define HAVE_STRERROR_R 1
16712 _ACEOF
16713
16714 fi
16715 done
16716
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16718 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16719 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16720   $as_echo_n "(cached) " >&6
16721 else
16722
16723     ac_cv_func_strerror_r_char_p=no
16724     if test $ac_cv_have_decl_strerror_r = yes; then
16725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h.  */
16727 $ac_includes_default
16728 int
16729 main ()
16730 {
16731
16732           char buf[100];
16733           char x = *strerror_r (0, buf, sizeof buf);
16734           char *p = strerror_r (0, buf, sizeof buf);
16735           return !p || x;
16736
16737   ;
16738   return 0;
16739 }
16740 _ACEOF
16741 if ac_fn_c_try_compile "$LINENO"; then :
16742   ac_cv_func_strerror_r_char_p=yes
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745     else
16746       # strerror_r is not declared.  Choose between
16747       # systems that have relatively inaccessible declarations for the
16748       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
16749       # former has a strerror_r that returns char*, while the latter
16750       # has a strerror_r that returns `int'.
16751       # This test should segfault on the DEC system.
16752       if test "$cross_compiling" = yes; then :
16753   :
16754 else
16755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h.  */
16757 $ac_includes_default
16758         extern char *strerror_r ();
16759 int
16760 main ()
16761 {
16762 char buf[100];
16763           char x = *strerror_r (0, buf, sizeof buf);
16764           return ! isalpha (x);
16765   ;
16766   return 0;
16767 }
16768 _ACEOF
16769 if ac_fn_c_try_run "$LINENO"; then :
16770   ac_cv_func_strerror_r_char_p=yes
16771 fi
16772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16773   conftest.$ac_objext conftest.beam conftest.$ac_ext
16774 fi
16775
16776     fi
16777
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16780 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16781 if test $ac_cv_func_strerror_r_char_p = yes; then
16782
16783 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16784
16785 fi
16786
16787
16788   XGETTEXT_EXTRA_OPTIONS=
16789
16790
16791
16792
16793
16794   GNULIB_FCNTL=0;
16795   GNULIB_NONBLOCKING=0;
16796   GNULIB_OPEN=0;
16797   GNULIB_OPENAT=0;
16798     HAVE_FCNTL=1;
16799   HAVE_OPENAT=1;
16800   REPLACE_FCNTL=0;
16801   REPLACE_OPEN=0;
16802   REPLACE_OPENAT=0;
16803
16804
16805
16806
16807
16808   for ac_func in $gl_func_list
16809 do :
16810   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16813   cat >>confdefs.h <<_ACEOF
16814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16815 _ACEOF
16816
16817 fi
16818 done
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828   :
16829
16830
16831
16832
16833
16834
16835   :
16836
16837
16838
16839
16840
16841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
16842 $as_echo_n "checking for working fcntl.h... " >&6; }
16843 if ${gl_cv_header_working_fcntl_h+:} false; then :
16844   $as_echo_n "(cached) " >&6
16845 else
16846   if test "$cross_compiling" = yes; then :
16847   gl_cv_header_working_fcntl_h=cross-compiling
16848 else
16849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h.  */
16851 #include <sys/types.h>
16852            #include <sys/stat.h>
16853            #if HAVE_UNISTD_H
16854            # include <unistd.h>
16855            #else /* on Windows with MSVC */
16856            # include <io.h>
16857            # include <stdlib.h>
16858            # defined sleep(n) _sleep ((n) * 1000)
16859            #endif
16860            #include <fcntl.h>
16861            #ifndef O_NOATIME
16862             #define O_NOATIME 0
16863            #endif
16864            #ifndef O_NOFOLLOW
16865             #define O_NOFOLLOW 0
16866            #endif
16867            static int const constants[] =
16868             {
16869               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
16870               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
16871             };
16872
16873 int
16874 main ()
16875 {
16876
16877             int result = !constants;
16878             #if HAVE_SYMLINK
16879             {
16880               static char const sym[] = "conftest.sym";
16881               if (symlink ("/dev/null", sym) != 0)
16882                 result |= 2;
16883               else
16884                 {
16885                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
16886                   if (fd >= 0)
16887                     {
16888                       close (fd);
16889                       result |= 4;
16890                     }
16891                 }
16892               if (unlink (sym) != 0 || symlink (".", sym) != 0)
16893                 result |= 2;
16894               else
16895                 {
16896                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
16897                   if (fd >= 0)
16898                     {
16899                       close (fd);
16900                       result |= 4;
16901                     }
16902                 }
16903               unlink (sym);
16904             }
16905             #endif
16906             {
16907               static char const file[] = "confdefs.h";
16908               int fd = open (file, O_RDONLY | O_NOATIME);
16909               if (fd < 0)
16910                 result |= 8;
16911               else
16912                 {
16913                   struct stat st0;
16914                   if (fstat (fd, &st0) != 0)
16915                     result |= 16;
16916                   else
16917                     {
16918                       char c;
16919                       sleep (1);
16920                       if (read (fd, &c, 1) != 1)
16921                         result |= 24;
16922                       else
16923                         {
16924                           if (close (fd) != 0)
16925                             result |= 32;
16926                           else
16927                             {
16928                               struct stat st1;
16929                               if (stat (file, &st1) != 0)
16930                                 result |= 40;
16931                               else
16932                                 if (st0.st_atime != st1.st_atime)
16933                                   result |= 64;
16934                             }
16935                         }
16936                     }
16937                 }
16938             }
16939             return result;
16940   ;
16941   return 0;
16942 }
16943 _ACEOF
16944 if ac_fn_c_try_run "$LINENO"; then :
16945   gl_cv_header_working_fcntl_h=yes
16946 else
16947   case $? in #(
16948         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
16949         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
16950         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
16951          *) gl_cv_header_working_fcntl_h='no';;
16952         esac
16953 fi
16954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16955   conftest.$ac_objext conftest.beam conftest.$ac_ext
16956 fi
16957
16958 fi
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
16960 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
16961
16962   case $gl_cv_header_working_fcntl_h in #(
16963   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
16964   *) ac_val=1;;
16965   esac
16966
16967 cat >>confdefs.h <<_ACEOF
16968 #define HAVE_WORKING_O_NOATIME $ac_val
16969 _ACEOF
16970
16971
16972   case $gl_cv_header_working_fcntl_h in #(
16973   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
16974   *) ac_val=1;;
16975   esac
16976
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_WORKING_O_NOFOLLOW $ac_val
16979 _ACEOF
16980
16981
16982 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16983 if test "x$ac_cv_type_pid_t" = xyes; then :
16984
16985 else
16986
16987 cat >>confdefs.h <<_ACEOF
16988 #define pid_t int
16989 _ACEOF
16990
16991 fi
16992
16993 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16994 if test "x$ac_cv_type_mode_t" = xyes; then :
16995
16996 else
16997
16998 cat >>confdefs.h <<_ACEOF
16999 #define mode_t int
17000 _ACEOF
17001
17002 fi
17003
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17005 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17006 if ${ac_cv_c_restrict+:} false; then :
17007   $as_echo_n "(cached) " >&6
17008 else
17009   ac_cv_c_restrict=no
17010    # The order here caters to the fact that C++ does not require restrict.
17011    for ac_kw in __restrict __restrict__ _Restrict restrict; do
17012      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h.  */
17014 typedef int * int_ptr;
17015         int foo (int_ptr $ac_kw ip) {
17016         return ip[0];
17017        }
17018 int
17019 main ()
17020 {
17021 int s[1];
17022         int * $ac_kw t = s;
17023         t[0] = 0;
17024         return foo(t)
17025   ;
17026   return 0;
17027 }
17028 _ACEOF
17029 if ac_fn_c_try_compile "$LINENO"; then :
17030   ac_cv_c_restrict=$ac_kw
17031 fi
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033      test "$ac_cv_c_restrict" != no && break
17034    done
17035
17036 fi
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17038 $as_echo "$ac_cv_c_restrict" >&6; }
17039
17040  case $ac_cv_c_restrict in
17041    restrict) ;;
17042    no) $as_echo "#define restrict /**/" >>confdefs.h
17043  ;;
17044    *)  cat >>confdefs.h <<_ACEOF
17045 #define restrict $ac_cv_c_restrict
17046 _ACEOF
17047  ;;
17048  esac
17049
17050
17051   GNULIB_GETTIMEOFDAY=0;
17052     HAVE_GETTIMEOFDAY=1;
17053   HAVE_STRUCT_TIMEVAL=1;
17054   HAVE_SYS_TIME_H=1;
17055   REPLACE_GETTIMEOFDAY=0;
17056   REPLACE_STRUCT_TIMEVAL=0;
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072   :
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084   :
17085
17086
17087
17088
17089
17090
17091
17092
17093      if test $gl_cv_have_include_next = yes; then
17094        gl_cv_next_sys_time_h='<'sys/time.h'>'
17095      else
17096        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17097 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17098 if ${gl_cv_next_sys_time_h+:} false; then :
17099   $as_echo_n "(cached) " >&6
17100 else
17101
17102              if test $ac_cv_header_sys_time_h = yes; then
17103
17104
17105
17106
17107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h.  */
17109 #include <sys/time.h>
17110 _ACEOF
17111                 case "$host_os" in
17112     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17113     *)    gl_absname_cpp="$ac_cpp" ;;
17114   esac
17115
17116   case "$host_os" in
17117     mingw*)
17118                                           gl_dirsep_regex='[/\\]'
17119       ;;
17120     *)
17121       gl_dirsep_regex='\/'
17122       ;;
17123   esac
17124       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17125   gl_header_literal_regex=`echo 'sys/time.h' \
17126                            | sed -e "$gl_make_literal_regex_sed"`
17127   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17128       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17129       s|^/[^/]|//&|
17130       p
17131       q
17132     }'
17133
17134         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17135   sed -n "$gl_absolute_header_sed"`
17136
17137            gl_header=$gl_cv_absolute_sys_time_h
17138            gl_cv_next_sys_time_h='"'$gl_header'"'
17139           else
17140                gl_cv_next_sys_time_h='<'sys/time.h'>'
17141              fi
17142
17143
17144 fi
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17146 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17147      fi
17148      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17149
17150      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17151        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17152        gl_next_as_first_directive='<'sys/time.h'>'
17153      else
17154        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17155        gl_next_as_first_directive=$gl_cv_next_sys_time_h
17156      fi
17157      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17158
17159
17160
17161
17162
17163   if test $ac_cv_header_sys_time_h != yes; then
17164     HAVE_SYS_TIME_H=0
17165   fi
17166
17167
17168
17169
17170
17171   :
17172
17173
17174
17175
17176
17177   if test $ac_cv_header_sys_socket_h != yes; then
17178                     for ac_header in winsock2.h
17179 do :
17180   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17181 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17182   cat >>confdefs.h <<_ACEOF
17183 #define HAVE_WINSOCK2_H 1
17184 _ACEOF
17185
17186 fi
17187
17188 done
17189
17190   fi
17191   if test "$ac_cv_header_winsock2_h" = yes; then
17192     HAVE_WINSOCK2_H=1
17193     UNISTD_H_HAVE_WINSOCK2_H=1
17194     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17195   else
17196     HAVE_WINSOCK2_H=0
17197   fi
17198
17199
17200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17201 $as_echo_n "checking for struct timeval... " >&6; }
17202 if ${gl_cv_sys_struct_timeval+:} false; then :
17203   $as_echo_n "(cached) " >&6
17204 else
17205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h.  */
17207 #if HAVE_SYS_TIME_H
17208              #include <sys/time.h>
17209             #endif
17210             #include <time.h>
17211             #if HAVE_WINSOCK2_H
17212             # include <winsock2.h>
17213             #endif
17214
17215 int
17216 main ()
17217 {
17218 static struct timeval x; x.tv_sec = x.tv_usec;
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 if ac_fn_c_try_compile "$LINENO"; then :
17224   gl_cv_sys_struct_timeval=yes
17225 else
17226   gl_cv_sys_struct_timeval=no
17227 fi
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17232 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17233   if test $gl_cv_sys_struct_timeval != yes; then
17234     HAVE_STRUCT_TIMEVAL=0
17235   else
17236                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17237 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17238 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17239   $as_echo_n "(cached) " >&6
17240 else
17241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h.  */
17243 #if HAVE_SYS_TIME_H
17244                #include <sys/time.h>
17245               #endif
17246               #include <time.h>
17247               #if HAVE_WINSOCK2_H
17248               # include <winsock2.h>
17249               #endif
17250
17251 int
17252 main ()
17253 {
17254 static struct timeval x;
17255               typedef int verify_tv_sec_type[
17256                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17257               ];
17258
17259   ;
17260   return 0;
17261 }
17262 _ACEOF
17263 if ac_fn_c_try_compile "$LINENO"; then :
17264   gl_cv_sys_struct_timeval_tv_sec=yes
17265 else
17266   gl_cv_sys_struct_timeval_tv_sec=no
17267 fi
17268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17269
17270 fi
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17272 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17273     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17274       REPLACE_STRUCT_TIMEVAL=1
17275     fi
17276   fi
17277
17278
17279     for gl_func in gettimeofday; do
17280     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17282 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17283 if eval \${$as_gl_Symbol+:} false; then :
17284   $as_echo_n "(cached) " >&6
17285 else
17286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h.  */
17288
17289 #if HAVE_SYS_TIME_H
17290 # include <sys/time.h>
17291 #endif
17292 #include <time.h>
17293
17294 int
17295 main ()
17296 {
17297 #undef $gl_func
17298   (void) $gl_func;
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 if ac_fn_c_try_compile "$LINENO"; then :
17304   eval "$as_gl_Symbol=yes"
17305 else
17306   eval "$as_gl_Symbol=no"
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309 fi
17310 eval ac_res=\$$as_gl_Symbol
17311                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17312 $as_echo "$ac_res" >&6; }
17313     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17314   cat >>confdefs.h <<_ACEOF
17315 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17316 _ACEOF
17317
17318                      eval ac_cv_have_decl_$gl_func=yes
17319 fi
17320       done
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333   case "$host_os" in
17334     mingw*)
17335                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17336 $as_echo_n "checking for 64-bit off_t... " >&6; }
17337 if ${gl_cv_type_off_t_64+:} false; then :
17338   $as_echo_n "(cached) " >&6
17339 else
17340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h.  */
17342 #include <sys/types.h>
17343                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17344
17345 int
17346 main ()
17347 {
17348
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 if ac_fn_c_try_compile "$LINENO"; then :
17354   gl_cv_type_off_t_64=yes
17355 else
17356   gl_cv_type_off_t_64=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359
17360 fi
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17362 $as_echo "$gl_cv_type_off_t_64" >&6; }
17363       if test $gl_cv_type_off_t_64 = no; then
17364         WINDOWS_64_BIT_OFF_T=1
17365       else
17366         WINDOWS_64_BIT_OFF_T=0
17367       fi
17368                   WINDOWS_64_BIT_ST_SIZE=1
17369       ;;
17370     *)
17371                                                       WINDOWS_64_BIT_OFF_T=0
17372       WINDOWS_64_BIT_ST_SIZE=0
17373       ;;
17374   esac
17375
17376
17377       if test "X$prefix" = "XNONE"; then
17378     acl_final_prefix="$ac_default_prefix"
17379   else
17380     acl_final_prefix="$prefix"
17381   fi
17382   if test "X$exec_prefix" = "XNONE"; then
17383     acl_final_exec_prefix='${prefix}'
17384   else
17385     acl_final_exec_prefix="$exec_prefix"
17386   fi
17387   acl_save_prefix="$prefix"
17388   prefix="$acl_final_prefix"
17389   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17390   prefix="$acl_save_prefix"
17391
17392
17393
17394 # Check whether --with-gnu-ld was given.
17395 if test "${with_gnu_ld+set}" = set; then :
17396   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17397 else
17398   with_gnu_ld=no
17399 fi
17400
17401 # Prepare PATH_SEPARATOR.
17402 # The user is always right.
17403 if test "${PATH_SEPARATOR+set}" != set; then
17404   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17405   # contains only /bin. Note that ksh looks also at the FPATH variable,
17406   # so we have to set that as well for the test.
17407   PATH_SEPARATOR=:
17408   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17409     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17410            || PATH_SEPARATOR=';'
17411        }
17412 fi
17413
17414 ac_prog=ld
17415 if test "$GCC" = yes; then
17416   # Check if gcc -print-prog-name=ld gives a path.
17417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17418 $as_echo_n "checking for ld used by $CC... " >&6; }
17419   case $host in
17420   *-*-mingw*)
17421     # gcc leaves a trailing carriage return which upsets mingw
17422     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17423   *)
17424     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17425   esac
17426   case $ac_prog in
17427     # Accept absolute paths.
17428     [\\/]* | ?:[\\/]*)
17429       re_direlt='/[^/][^/]*/\.\./'
17430       # Canonicalize the pathname of ld
17431       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
17432       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
17433         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17434       done
17435       test -z "$LD" && LD="$ac_prog"
17436       ;;
17437   "")
17438     # If it fails, then pretend we aren't using GCC.
17439     ac_prog=ld
17440     ;;
17441   *)
17442     # If it is relative, then search for the first ld in PATH.
17443     with_gnu_ld=unknown
17444     ;;
17445   esac
17446 elif test "$with_gnu_ld" = yes; then
17447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17448 $as_echo_n "checking for GNU ld... " >&6; }
17449 else
17450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17451 $as_echo_n "checking for non-GNU ld... " >&6; }
17452 fi
17453 if ${acl_cv_path_LD+:} false; then :
17454   $as_echo_n "(cached) " >&6
17455 else
17456   if test -z "$LD"; then
17457   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17458   for ac_dir in $PATH; do
17459     IFS="$acl_save_ifs"
17460     test -z "$ac_dir" && ac_dir=.
17461     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17462       acl_cv_path_LD="$ac_dir/$ac_prog"
17463       # Check to see if the program is GNU ld.  I'd rather use --version,
17464       # but apparently some variants of GNU ld only accept -v.
17465       # Break only if it was the GNU/non-GNU ld that we prefer.
17466       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17467       *GNU* | *'with BFD'*)
17468         test "$with_gnu_ld" != no && break
17469         ;;
17470       *)
17471         test "$with_gnu_ld" != yes && break
17472         ;;
17473       esac
17474     fi
17475   done
17476   IFS="$acl_save_ifs"
17477 else
17478   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17479 fi
17480 fi
17481
17482 LD="$acl_cv_path_LD"
17483 if test -n "$LD"; then
17484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17485 $as_echo "$LD" >&6; }
17486 else
17487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 $as_echo "no" >&6; }
17489 fi
17490 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17493 if ${acl_cv_prog_gnu_ld+:} false; then :
17494   $as_echo_n "(cached) " >&6
17495 else
17496   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17497 case `$LD -v 2>&1 </dev/null` in
17498 *GNU* | *'with BFD'*)
17499   acl_cv_prog_gnu_ld=yes
17500   ;;
17501 *)
17502   acl_cv_prog_gnu_ld=no
17503   ;;
17504 esac
17505 fi
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17507 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17508 with_gnu_ld=$acl_cv_prog_gnu_ld
17509
17510
17511
17512
17513                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17514 $as_echo_n "checking for shared library run path origin... " >&6; }
17515 if ${acl_cv_rpath+:} false; then :
17516   $as_echo_n "(cached) " >&6
17517 else
17518
17519     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17520     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17521     . ./conftest.sh
17522     rm -f ./conftest.sh
17523     acl_cv_rpath=done
17524
17525 fi
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17527 $as_echo "$acl_cv_rpath" >&6; }
17528   wl="$acl_cv_wl"
17529   acl_libext="$acl_cv_libext"
17530   acl_shlibext="$acl_cv_shlibext"
17531   acl_libname_spec="$acl_cv_libname_spec"
17532   acl_library_names_spec="$acl_cv_library_names_spec"
17533   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17534   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17535   acl_hardcode_direct="$acl_cv_hardcode_direct"
17536   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17537     # Check whether --enable-rpath was given.
17538 if test "${enable_rpath+set}" = set; then :
17539   enableval=$enable_rpath; :
17540 else
17541   enable_rpath=yes
17542 fi
17543
17544
17545
17546
17547   acl_libdirstem=lib
17548   acl_libdirstem2=
17549   case "$host_os" in
17550     solaris*)
17551                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
17552 $as_echo_n "checking for 64-bit host... " >&6; }
17553 if ${gl_cv_solaris_64bit+:} false; then :
17554   $as_echo_n "(cached) " >&6
17555 else
17556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557 /* end confdefs.h.  */
17558
17559 #ifdef _LP64
17560 sixtyfour bits
17561 #endif
17562
17563 _ACEOF
17564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17565   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
17566   gl_cv_solaris_64bit=yes
17567 else
17568   gl_cv_solaris_64bit=no
17569 fi
17570 rm -f conftest*
17571
17572
17573 fi
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
17575 $as_echo "$gl_cv_solaris_64bit" >&6; }
17576       if test $gl_cv_solaris_64bit = yes; then
17577         acl_libdirstem=lib/64
17578         case "$host_cpu" in
17579           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
17580           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
17581         esac
17582       fi
17583       ;;
17584     *)
17585       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17586       if test -n "$searchpath"; then
17587         acl_save_IFS="${IFS=    }"; IFS=":"
17588         for searchdir in $searchpath; do
17589           if test -d "$searchdir"; then
17590             case "$searchdir" in
17591               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
17592               */../ | */.. )
17593                 # Better ignore directories of this form. They are misleading.
17594                 ;;
17595               *) searchdir=`cd "$searchdir" && pwd`
17596                  case "$searchdir" in
17597                    */lib64 ) acl_libdirstem=lib64 ;;
17598                  esac ;;
17599             esac
17600           fi
17601         done
17602         IFS="$acl_save_IFS"
17603       fi
17604       ;;
17605   esac
17606   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17607
17608
17609
17610   gl_threads_api=none
17611   LIBTHREAD=
17612   LTLIBTHREAD=
17613   LIBMULTITHREAD=
17614   LTLIBMULTITHREAD=
17615   if test "$gl_use_threads" != no; then
17616         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
17617 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
17618 if ${gl_cv_have_weak+:} false; then :
17619   $as_echo_n "(cached) " >&6
17620 else
17621   gl_cv_have_weak=no
17622               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h.  */
17624 extern void xyzzy ();
17625 #pragma weak xyzzy
17626 int
17627 main ()
17628 {
17629 xyzzy();
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 if ac_fn_c_try_link "$LINENO"; then :
17635   gl_cv_have_weak=maybe
17636 fi
17637 rm -f core conftest.err conftest.$ac_objext \
17638     conftest$ac_exeext conftest.$ac_ext
17639        if test $gl_cv_have_weak = maybe; then
17640                            if test "$cross_compiling" = yes; then :
17641                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h.  */
17643 #ifdef __ELF__
17644                Extensible Linking Format
17645                #endif
17646
17647 _ACEOF
17648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17649   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
17650   gl_cv_have_weak="guessing yes"
17651 else
17652   gl_cv_have_weak="guessing no"
17653 fi
17654 rm -f conftest*
17655
17656
17657 else
17658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h.  */
17660
17661 #include <stdio.h>
17662 #pragma weak fputs
17663 int main ()
17664 {
17665   return (fputs == NULL);
17666 }
17667 _ACEOF
17668 if ac_fn_c_try_run "$LINENO"; then :
17669   gl_cv_have_weak=yes
17670 else
17671   gl_cv_have_weak=no
17672 fi
17673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17674   conftest.$ac_objext conftest.beam conftest.$ac_ext
17675 fi
17676
17677        fi
17678
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
17681 $as_echo "$gl_cv_have_weak" >&6; }
17682     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
17683       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
17684       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
17685       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17686 if test "x$ac_cv_header_pthread_h" = xyes; then :
17687   gl_have_pthread_h=yes
17688 else
17689   gl_have_pthread_h=no
17690 fi
17691
17692
17693       if test "$gl_have_pthread_h" = yes; then
17694         # Other possible tests:
17695         #   -lpthreads (FSU threads, PCthreads)
17696         #   -lgthreads
17697         gl_have_pthread=
17698         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
17699         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
17700         # the second one only in libpthread, and lock.c needs it.
17701         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h.  */
17703 #include <pthread.h>
17704 int
17705 main ()
17706 {
17707 pthread_mutex_lock((pthread_mutex_t*)0);
17708                pthread_mutexattr_init((pthread_mutexattr_t*)0);
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_link "$LINENO"; then :
17714   gl_have_pthread=yes
17715 fi
17716 rm -f core conftest.err conftest.$ac_objext \
17717     conftest$ac_exeext conftest.$ac_ext
17718         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
17719         # since it is defined as a macro on OSF/1.)
17720         if test -n "$gl_have_pthread"; then
17721           # The program links fine without libpthread. But it may actually
17722           # need to link with libpthread in order to create multiple threads.
17723           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17724 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17725 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17726   $as_echo_n "(cached) " >&6
17727 else
17728   ac_check_lib_save_LIBS=$LIBS
17729 LIBS="-lpthread  $LIBS"
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h.  */
17732
17733 /* Override any GCC internal prototype to avoid an error.
17734    Use char because int might match the return type of a GCC
17735    builtin and then its argument prototype would still apply.  */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 char pthread_kill ();
17740 int
17741 main ()
17742 {
17743 return pthread_kill ();
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 if ac_fn_c_try_link "$LINENO"; then :
17749   ac_cv_lib_pthread_pthread_kill=yes
17750 else
17751   ac_cv_lib_pthread_pthread_kill=no
17752 fi
17753 rm -f core conftest.err conftest.$ac_objext \
17754     conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17756 fi
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17758 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17759 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17760   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17761              # On Solaris and HP-UX, most pthread functions exist also in libc.
17762              # Therefore pthread_in_use() needs to actually try to create a
17763              # thread: pthread_create from libc will fail, whereas
17764              # pthread_create will actually create a thread.
17765              case "$host_os" in
17766                solaris* | hpux*)
17767
17768 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
17769
17770              esac
17771
17772 fi
17773
17774         else
17775           # Some library is needed. Try libpthread and libc_r.
17776           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17777 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17778 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17779   $as_echo_n "(cached) " >&6
17780 else
17781   ac_check_lib_save_LIBS=$LIBS
17782 LIBS="-lpthread  $LIBS"
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h.  */
17785
17786 /* Override any GCC internal prototype to avoid an error.
17787    Use char because int might match the return type of a GCC
17788    builtin and then its argument prototype would still apply.  */
17789 #ifdef __cplusplus
17790 extern "C"
17791 #endif
17792 char pthread_kill ();
17793 int
17794 main ()
17795 {
17796 return pthread_kill ();
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 if ac_fn_c_try_link "$LINENO"; then :
17802   ac_cv_lib_pthread_pthread_kill=yes
17803 else
17804   ac_cv_lib_pthread_pthread_kill=no
17805 fi
17806 rm -f core conftest.err conftest.$ac_objext \
17807     conftest$ac_exeext conftest.$ac_ext
17808 LIBS=$ac_check_lib_save_LIBS
17809 fi
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17811 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17812 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17813   gl_have_pthread=yes
17814              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17815              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17816 fi
17817
17818           if test -z "$gl_have_pthread"; then
17819             # For FreeBSD 4.
17820             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17821 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17822 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17823   $as_echo_n "(cached) " >&6
17824 else
17825   ac_check_lib_save_LIBS=$LIBS
17826 LIBS="-lc_r  $LIBS"
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h.  */
17829
17830 /* Override any GCC internal prototype to avoid an error.
17831    Use char because int might match the return type of a GCC
17832    builtin and then its argument prototype would still apply.  */
17833 #ifdef __cplusplus
17834 extern "C"
17835 #endif
17836 char pthread_kill ();
17837 int
17838 main ()
17839 {
17840 return pthread_kill ();
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 if ac_fn_c_try_link "$LINENO"; then :
17846   ac_cv_lib_c_r_pthread_kill=yes
17847 else
17848   ac_cv_lib_c_r_pthread_kill=no
17849 fi
17850 rm -f core conftest.err conftest.$ac_objext \
17851     conftest$ac_exeext conftest.$ac_ext
17852 LIBS=$ac_check_lib_save_LIBS
17853 fi
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17855 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17856 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17857   gl_have_pthread=yes
17858                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17859                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17860 fi
17861
17862           fi
17863         fi
17864         if test -n "$gl_have_pthread"; then
17865           gl_threads_api=posix
17866
17867 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17868
17869           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17870             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17871
17872 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17873
17874               LIBTHREAD=
17875               LTLIBTHREAD=
17876             fi
17877           fi
17878         fi
17879       fi
17880     fi
17881     if test -z "$gl_have_pthread"; then
17882       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17883         gl_have_solaristhread=
17884         gl_save_LIBS="$LIBS"
17885         LIBS="$LIBS -lthread"
17886         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h.  */
17888
17889 #include <thread.h>
17890 #include <synch.h>
17891
17892 int
17893 main ()
17894 {
17895 thr_self();
17896   ;
17897   return 0;
17898 }
17899 _ACEOF
17900 if ac_fn_c_try_link "$LINENO"; then :
17901   gl_have_solaristhread=yes
17902 fi
17903 rm -f core conftest.err conftest.$ac_objext \
17904     conftest$ac_exeext conftest.$ac_ext
17905         LIBS="$gl_save_LIBS"
17906         if test -n "$gl_have_solaristhread"; then
17907           gl_threads_api=solaris
17908           LIBTHREAD=-lthread
17909           LTLIBTHREAD=-lthread
17910           LIBMULTITHREAD="$LIBTHREAD"
17911           LTLIBMULTITHREAD="$LTLIBTHREAD"
17912
17913 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17914
17915           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17916
17917 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17918
17919             LIBTHREAD=
17920             LTLIBTHREAD=
17921           fi
17922         fi
17923       fi
17924     fi
17925     if test "$gl_use_threads" = pth; then
17926       gl_save_CPPFLAGS="$CPPFLAGS"
17927
17928
17929
17930
17931
17932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17933 $as_echo_n "checking how to link with libpth... " >&6; }
17934 if ${ac_cv_libpth_libs+:} false; then :
17935   $as_echo_n "(cached) " >&6
17936 else
17937
17938
17939
17940
17941
17942
17943
17944
17945     use_additional=yes
17946
17947   acl_save_prefix="$prefix"
17948   prefix="$acl_final_prefix"
17949   acl_save_exec_prefix="$exec_prefix"
17950   exec_prefix="$acl_final_exec_prefix"
17951
17952     eval additional_includedir=\"$includedir\"
17953     eval additional_libdir=\"$libdir\"
17954
17955   exec_prefix="$acl_save_exec_prefix"
17956   prefix="$acl_save_prefix"
17957
17958
17959 # Check whether --with-libpth-prefix was given.
17960 if test "${with_libpth_prefix+set}" = set; then :
17961   withval=$with_libpth_prefix;
17962     if test "X$withval" = "Xno"; then
17963       use_additional=no
17964     else
17965       if test "X$withval" = "X"; then
17966
17967   acl_save_prefix="$prefix"
17968   prefix="$acl_final_prefix"
17969   acl_save_exec_prefix="$exec_prefix"
17970   exec_prefix="$acl_final_exec_prefix"
17971
17972           eval additional_includedir=\"$includedir\"
17973           eval additional_libdir=\"$libdir\"
17974
17975   exec_prefix="$acl_save_exec_prefix"
17976   prefix="$acl_save_prefix"
17977
17978       else
17979         additional_includedir="$withval/include"
17980         additional_libdir="$withval/$acl_libdirstem"
17981         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17982            && ! test -d "$withval/$acl_libdirstem"; then
17983           additional_libdir="$withval/$acl_libdirstem2"
17984         fi
17985       fi
17986     fi
17987
17988 fi
17989
17990       LIBPTH=
17991   LTLIBPTH=
17992   INCPTH=
17993   LIBPTH_PREFIX=
17994       HAVE_LIBPTH=
17995   rpathdirs=
17996   ltrpathdirs=
17997   names_already_handled=
17998   names_next_round='pth '
17999   while test -n "$names_next_round"; do
18000     names_this_round="$names_next_round"
18001     names_next_round=
18002     for name in $names_this_round; do
18003       already_handled=
18004       for n in $names_already_handled; do
18005         if test "$n" = "$name"; then
18006           already_handled=yes
18007           break
18008         fi
18009       done
18010       if test -z "$already_handled"; then
18011         names_already_handled="$names_already_handled $name"
18012                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18013         eval value=\"\$HAVE_LIB$uppername\"
18014         if test -n "$value"; then
18015           if test "$value" = yes; then
18016             eval value=\"\$LIB$uppername\"
18017             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
18018             eval value=\"\$LTLIB$uppername\"
18019             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
18020           else
18021                                     :
18022           fi
18023         else
18024                               found_dir=
18025           found_la=
18026           found_so=
18027           found_a=
18028           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18029           if test -n "$acl_shlibext"; then
18030             shrext=".$acl_shlibext"             # typically: shrext=.so
18031           else
18032             shrext=
18033           fi
18034           if test $use_additional = yes; then
18035             dir="$additional_libdir"
18036                                     if test -n "$acl_shlibext"; then
18037               if test -f "$dir/$libname$shrext"; then
18038                 found_dir="$dir"
18039                 found_so="$dir/$libname$shrext"
18040               else
18041                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18042                   ver=`(cd "$dir" && \
18043                         for f in "$libname$shrext".*; do echo "$f"; done \
18044                         | sed -e "s,^$libname$shrext\\\\.,," \
18045                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18046                         | sed 1q ) 2>/dev/null`
18047                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18048                     found_dir="$dir"
18049                     found_so="$dir/$libname$shrext.$ver"
18050                   fi
18051                 else
18052                   eval library_names=\"$acl_library_names_spec\"
18053                   for f in $library_names; do
18054                     if test -f "$dir/$f"; then
18055                       found_dir="$dir"
18056                       found_so="$dir/$f"
18057                       break
18058                     fi
18059                   done
18060                 fi
18061               fi
18062             fi
18063                         if test "X$found_dir" = "X"; then
18064               if test -f "$dir/$libname.$acl_libext"; then
18065                 found_dir="$dir"
18066                 found_a="$dir/$libname.$acl_libext"
18067               fi
18068             fi
18069             if test "X$found_dir" != "X"; then
18070               if test -f "$dir/$libname.la"; then
18071                 found_la="$dir/$libname.la"
18072               fi
18073             fi
18074           fi
18075           if test "X$found_dir" = "X"; then
18076             for x in $LDFLAGS $LTLIBPTH; do
18077
18078   acl_save_prefix="$prefix"
18079   prefix="$acl_final_prefix"
18080   acl_save_exec_prefix="$exec_prefix"
18081   exec_prefix="$acl_final_exec_prefix"
18082   eval x=\"$x\"
18083   exec_prefix="$acl_save_exec_prefix"
18084   prefix="$acl_save_prefix"
18085
18086               case "$x" in
18087                 -L*)
18088                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18089                                     if test -n "$acl_shlibext"; then
18090                     if test -f "$dir/$libname$shrext"; then
18091                       found_dir="$dir"
18092                       found_so="$dir/$libname$shrext"
18093                     else
18094                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18095                         ver=`(cd "$dir" && \
18096                               for f in "$libname$shrext".*; do echo "$f"; done \
18097                               | sed -e "s,^$libname$shrext\\\\.,," \
18098                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18099                               | sed 1q ) 2>/dev/null`
18100                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18101                           found_dir="$dir"
18102                           found_so="$dir/$libname$shrext.$ver"
18103                         fi
18104                       else
18105                         eval library_names=\"$acl_library_names_spec\"
18106                         for f in $library_names; do
18107                           if test -f "$dir/$f"; then
18108                             found_dir="$dir"
18109                             found_so="$dir/$f"
18110                             break
18111                           fi
18112                         done
18113                       fi
18114                     fi
18115                   fi
18116                                     if test "X$found_dir" = "X"; then
18117                     if test -f "$dir/$libname.$acl_libext"; then
18118                       found_dir="$dir"
18119                       found_a="$dir/$libname.$acl_libext"
18120                     fi
18121                   fi
18122                   if test "X$found_dir" != "X"; then
18123                     if test -f "$dir/$libname.la"; then
18124                       found_la="$dir/$libname.la"
18125                     fi
18126                   fi
18127                   ;;
18128               esac
18129               if test "X$found_dir" != "X"; then
18130                 break
18131               fi
18132             done
18133           fi
18134           if test "X$found_dir" != "X"; then
18135                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
18136             if test "X$found_so" != "X"; then
18137                                                         if test "$enable_rpath" = no \
18138                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18139                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18140                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18141               else
18142                                                                                 haveit=
18143                 for x in $ltrpathdirs; do
18144                   if test "X$x" = "X$found_dir"; then
18145                     haveit=yes
18146                     break
18147                   fi
18148                 done
18149                 if test -z "$haveit"; then
18150                   ltrpathdirs="$ltrpathdirs $found_dir"
18151                 fi
18152                                 if test "$acl_hardcode_direct" = yes; then
18153                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18154                 else
18155                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18156                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18157                                                             haveit=
18158                     for x in $rpathdirs; do
18159                       if test "X$x" = "X$found_dir"; then
18160                         haveit=yes
18161                         break
18162                       fi
18163                     done
18164                     if test -z "$haveit"; then
18165                       rpathdirs="$rpathdirs $found_dir"
18166                     fi
18167                   else
18168                                                                                 haveit=
18169                     for x in $LDFLAGS $LIBPTH; do
18170
18171   acl_save_prefix="$prefix"
18172   prefix="$acl_final_prefix"
18173   acl_save_exec_prefix="$exec_prefix"
18174   exec_prefix="$acl_final_exec_prefix"
18175   eval x=\"$x\"
18176   exec_prefix="$acl_save_exec_prefix"
18177   prefix="$acl_save_prefix"
18178
18179                       if test "X$x" = "X-L$found_dir"; then
18180                         haveit=yes
18181                         break
18182                       fi
18183                     done
18184                     if test -z "$haveit"; then
18185                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
18186                     fi
18187                     if test "$acl_hardcode_minus_L" != no; then
18188                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
18189                     else
18190                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
18191                     fi
18192                   fi
18193                 fi
18194               fi
18195             else
18196               if test "X$found_a" != "X"; then
18197                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
18198               else
18199                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
18200               fi
18201             fi
18202                         additional_includedir=
18203             case "$found_dir" in
18204               */$acl_libdirstem | */$acl_libdirstem/)
18205                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18206                 if test "$name" = 'pth'; then
18207                   LIBPTH_PREFIX="$basedir"
18208                 fi
18209                 additional_includedir="$basedir/include"
18210                 ;;
18211               */$acl_libdirstem2 | */$acl_libdirstem2/)
18212                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18213                 if test "$name" = 'pth'; then
18214                   LIBPTH_PREFIX="$basedir"
18215                 fi
18216                 additional_includedir="$basedir/include"
18217                 ;;
18218             esac
18219             if test "X$additional_includedir" != "X"; then
18220                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18221                 haveit=
18222                 if test "X$additional_includedir" = "X/usr/local/include"; then
18223                   if test -n "$GCC"; then
18224                     case $host_os in
18225                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18226                     esac
18227                   fi
18228                 fi
18229                 if test -z "$haveit"; then
18230                   for x in $CPPFLAGS $INCPTH; do
18231
18232   acl_save_prefix="$prefix"
18233   prefix="$acl_final_prefix"
18234   acl_save_exec_prefix="$exec_prefix"
18235   exec_prefix="$acl_final_exec_prefix"
18236   eval x=\"$x\"
18237   exec_prefix="$acl_save_exec_prefix"
18238   prefix="$acl_save_prefix"
18239
18240                     if test "X$x" = "X-I$additional_includedir"; then
18241                       haveit=yes
18242                       break
18243                     fi
18244                   done
18245                   if test -z "$haveit"; then
18246                     if test -d "$additional_includedir"; then
18247                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
18248                     fi
18249                   fi
18250                 fi
18251               fi
18252             fi
18253                         if test -n "$found_la"; then
18254                                                         save_libdir="$libdir"
18255               case "$found_la" in
18256                 */* | *\\*) . "$found_la" ;;
18257                 *) . "./$found_la" ;;
18258               esac
18259               libdir="$save_libdir"
18260                             for dep in $dependency_libs; do
18261                 case "$dep" in
18262                   -L*)
18263                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18264                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18265                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18266                       haveit=
18267                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18268                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18269                         if test -n "$GCC"; then
18270                           case $host_os in
18271                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18272                           esac
18273                         fi
18274                       fi
18275                       if test -z "$haveit"; then
18276                         haveit=
18277                         for x in $LDFLAGS $LIBPTH; do
18278
18279   acl_save_prefix="$prefix"
18280   prefix="$acl_final_prefix"
18281   acl_save_exec_prefix="$exec_prefix"
18282   exec_prefix="$acl_final_exec_prefix"
18283   eval x=\"$x\"
18284   exec_prefix="$acl_save_exec_prefix"
18285   prefix="$acl_save_prefix"
18286
18287                           if test "X$x" = "X-L$additional_libdir"; then
18288                             haveit=yes
18289                             break
18290                           fi
18291                         done
18292                         if test -z "$haveit"; then
18293                           if test -d "$additional_libdir"; then
18294                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
18295                           fi
18296                         fi
18297                         haveit=
18298                         for x in $LDFLAGS $LTLIBPTH; do
18299
18300   acl_save_prefix="$prefix"
18301   prefix="$acl_final_prefix"
18302   acl_save_exec_prefix="$exec_prefix"
18303   exec_prefix="$acl_final_exec_prefix"
18304   eval x=\"$x\"
18305   exec_prefix="$acl_save_exec_prefix"
18306   prefix="$acl_save_prefix"
18307
18308                           if test "X$x" = "X-L$additional_libdir"; then
18309                             haveit=yes
18310                             break
18311                           fi
18312                         done
18313                         if test -z "$haveit"; then
18314                           if test -d "$additional_libdir"; then
18315                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
18316                           fi
18317                         fi
18318                       fi
18319                     fi
18320                     ;;
18321                   -R*)
18322                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18323                     if test "$enable_rpath" != no; then
18324                                                                   haveit=
18325                       for x in $rpathdirs; do
18326                         if test "X$x" = "X$dir"; then
18327                           haveit=yes
18328                           break
18329                         fi
18330                       done
18331                       if test -z "$haveit"; then
18332                         rpathdirs="$rpathdirs $dir"
18333                       fi
18334                                                                   haveit=
18335                       for x in $ltrpathdirs; do
18336                         if test "X$x" = "X$dir"; then
18337                           haveit=yes
18338                           break
18339                         fi
18340                       done
18341                       if test -z "$haveit"; then
18342                         ltrpathdirs="$ltrpathdirs $dir"
18343                       fi
18344                     fi
18345                     ;;
18346                   -l*)
18347                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18348                     ;;
18349                   *.la)
18350                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18351                     ;;
18352                   *)
18353                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
18354                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
18355                     ;;
18356                 esac
18357               done
18358             fi
18359           else
18360                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
18361             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
18362           fi
18363         fi
18364       fi
18365     done
18366   done
18367   if test "X$rpathdirs" != "X"; then
18368     if test -n "$acl_hardcode_libdir_separator"; then
18369                         alldirs=
18370       for found_dir in $rpathdirs; do
18371         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18372       done
18373             acl_save_libdir="$libdir"
18374       libdir="$alldirs"
18375       eval flag=\"$acl_hardcode_libdir_flag_spec\"
18376       libdir="$acl_save_libdir"
18377       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
18378     else
18379             for found_dir in $rpathdirs; do
18380         acl_save_libdir="$libdir"
18381         libdir="$found_dir"
18382         eval flag=\"$acl_hardcode_libdir_flag_spec\"
18383         libdir="$acl_save_libdir"
18384         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
18385       done
18386     fi
18387   fi
18388   if test "X$ltrpathdirs" != "X"; then
18389             for found_dir in $ltrpathdirs; do
18390       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
18391     done
18392   fi
18393
18394
18395
18396
18397
18398
18399     ac_cv_libpth_libs="$LIBPTH"
18400     ac_cv_libpth_ltlibs="$LTLIBPTH"
18401     ac_cv_libpth_cppflags="$INCPTH"
18402     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
18403
18404 fi
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
18406 $as_echo "$ac_cv_libpth_libs" >&6; }
18407   LIBPTH="$ac_cv_libpth_libs"
18408   LTLIBPTH="$ac_cv_libpth_ltlibs"
18409   INCPTH="$ac_cv_libpth_cppflags"
18410   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
18411
18412   for element in $INCPTH; do
18413     haveit=
18414     for x in $CPPFLAGS; do
18415
18416   acl_save_prefix="$prefix"
18417   prefix="$acl_final_prefix"
18418   acl_save_exec_prefix="$exec_prefix"
18419   exec_prefix="$acl_final_exec_prefix"
18420   eval x=\"$x\"
18421   exec_prefix="$acl_save_exec_prefix"
18422   prefix="$acl_save_prefix"
18423
18424       if test "X$x" = "X$element"; then
18425         haveit=yes
18426         break
18427       fi
18428     done
18429     if test -z "$haveit"; then
18430       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18431     fi
18432   done
18433
18434
18435
18436
18437       HAVE_LIBPTH=yes
18438
18439
18440
18441       gl_have_pth=
18442       gl_save_LIBS="$LIBS"
18443       LIBS="$LIBS $LIBPTH"
18444       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h.  */
18446 #include <pth.h>
18447 int
18448 main ()
18449 {
18450 pth_self();
18451   ;
18452   return 0;
18453 }
18454 _ACEOF
18455 if ac_fn_c_try_link "$LINENO"; then :
18456   gl_have_pth=yes
18457 fi
18458 rm -f core conftest.err conftest.$ac_objext \
18459     conftest$ac_exeext conftest.$ac_ext
18460       LIBS="$gl_save_LIBS"
18461       if test -n "$gl_have_pth"; then
18462         gl_threads_api=pth
18463         LIBTHREAD="$LIBPTH"
18464         LTLIBTHREAD="$LTLIBPTH"
18465         LIBMULTITHREAD="$LIBTHREAD"
18466         LTLIBMULTITHREAD="$LTLIBTHREAD"
18467
18468 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
18469
18470         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
18471           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18472
18473 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
18474
18475             LIBTHREAD=
18476             LTLIBTHREAD=
18477           fi
18478         fi
18479       else
18480         CPPFLAGS="$gl_save_CPPFLAGS"
18481       fi
18482     fi
18483     if test -z "$gl_have_pthread"; then
18484       case "$gl_use_threads" in
18485         yes | windows | win32) # The 'win32' is for backward compatibility.
18486           if { case "$host_os" in
18487                  mingw*) true;;
18488                  *) false;;
18489                esac
18490              }; then
18491             gl_threads_api=windows
18492
18493 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
18494
18495           fi
18496           ;;
18497       esac
18498     fi
18499   fi
18500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
18501 $as_echo_n "checking for multithread API to use... " >&6; }
18502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
18503 $as_echo "$gl_threads_api" >&6; }
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514      GNULIB_FCHMODAT=0;
18515   GNULIB_FSTAT=0;
18516   GNULIB_FSTATAT=0;
18517   GNULIB_FUTIMENS=0;
18518   GNULIB_LCHMOD=0;
18519   GNULIB_LSTAT=0;
18520   GNULIB_MKDIRAT=0;
18521   GNULIB_MKFIFO=0;
18522   GNULIB_MKFIFOAT=0;
18523   GNULIB_MKNOD=0;
18524   GNULIB_MKNODAT=0;
18525   GNULIB_STAT=0;
18526   GNULIB_UTIMENSAT=0;
18527     HAVE_FCHMODAT=1;
18528   HAVE_FSTATAT=1;
18529   HAVE_FUTIMENS=1;
18530   HAVE_LCHMOD=1;
18531   HAVE_LSTAT=1;
18532   HAVE_MKDIRAT=1;
18533   HAVE_MKFIFO=1;
18534   HAVE_MKFIFOAT=1;
18535   HAVE_MKNOD=1;
18536   HAVE_MKNODAT=1;
18537   HAVE_UTIMENSAT=1;
18538   REPLACE_FSTAT=0;
18539   REPLACE_FSTATAT=0;
18540   REPLACE_FUTIMENS=0;
18541   REPLACE_LSTAT=0;
18542   REPLACE_MKDIR=0;
18543   REPLACE_MKFIFO=0;
18544   REPLACE_MKNOD=0;
18545   REPLACE_STAT=0;
18546   REPLACE_UTIMENSAT=0;
18547
18548
18549
18550
18551
18552
18553
18554       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18555 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18556 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
18557   $as_echo_n "(cached) " >&6
18558 else
18559   rm -f conftest.sym conftest.file
18560      echo >conftest.file
18561      if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18562        if test "$cross_compiling" = yes; then :
18563   case "$host_os" in
18564                     # Guess yes on glibc systems.
18565             *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18566                     # If we don't know, assume the worst.
18567             *)      gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18568           esac
18569
18570 else
18571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572 /* end confdefs.h.  */
18573 $ac_includes_default
18574 int
18575 main ()
18576 {
18577 struct stat sbuf;
18578               /* Linux will dereference the symlink and fail, as required by
18579                  POSIX.  That is better in the sense that it means we will not
18580                  have to compile and use the lstat wrapper.  */
18581               return lstat ("conftest.sym/", &sbuf) == 0;
18582
18583   ;
18584   return 0;
18585 }
18586 _ACEOF
18587 if ac_fn_c_try_run "$LINENO"; then :
18588   gl_cv_func_lstat_dereferences_slashed_symlink=yes
18589 else
18590   gl_cv_func_lstat_dereferences_slashed_symlink=no
18591 fi
18592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18593   conftest.$ac_objext conftest.beam conftest.$ac_ext
18594 fi
18595
18596      else
18597        # If the 'ln -s' command failed, then we probably don't even
18598        # have an lstat function.
18599        gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18600      fi
18601      rm -f conftest.sym conftest.file
18602
18603 fi
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18605 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18606   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18607     *yes)
18608
18609 cat >>confdefs.h <<_ACEOF
18610 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18611 _ACEOF
18612
18613       ;;
18614   esac
18615
18616
18617   GNULIB__EXIT=0;
18618   GNULIB_ATOLL=0;
18619   GNULIB_CALLOC_POSIX=0;
18620   GNULIB_CANONICALIZE_FILE_NAME=0;
18621   GNULIB_GETLOADAVG=0;
18622   GNULIB_GETSUBOPT=0;
18623   GNULIB_GRANTPT=0;
18624   GNULIB_MALLOC_POSIX=0;
18625   GNULIB_MBTOWC=0;
18626   GNULIB_MKDTEMP=0;
18627   GNULIB_MKOSTEMP=0;
18628   GNULIB_MKOSTEMPS=0;
18629   GNULIB_MKSTEMP=0;
18630   GNULIB_MKSTEMPS=0;
18631   GNULIB_POSIX_OPENPT=0;
18632   GNULIB_PTSNAME=0;
18633   GNULIB_PTSNAME_R=0;
18634   GNULIB_PUTENV=0;
18635   GNULIB_RANDOM=0;
18636   GNULIB_RANDOM_R=0;
18637   GNULIB_REALLOC_POSIX=0;
18638   GNULIB_REALPATH=0;
18639   GNULIB_RPMATCH=0;
18640   GNULIB_SECURE_GETENV=0;
18641   GNULIB_SETENV=0;
18642   GNULIB_STRTOD=0;
18643   GNULIB_STRTOLL=0;
18644   GNULIB_STRTOULL=0;
18645   GNULIB_SYSTEM_POSIX=0;
18646   GNULIB_UNLOCKPT=0;
18647   GNULIB_UNSETENV=0;
18648   GNULIB_WCTOMB=0;
18649     HAVE__EXIT=1;
18650   HAVE_ATOLL=1;
18651   HAVE_CANONICALIZE_FILE_NAME=1;
18652   HAVE_DECL_GETLOADAVG=1;
18653   HAVE_GETSUBOPT=1;
18654   HAVE_GRANTPT=1;
18655   HAVE_MKDTEMP=1;
18656   HAVE_MKOSTEMP=1;
18657   HAVE_MKOSTEMPS=1;
18658   HAVE_MKSTEMP=1;
18659   HAVE_MKSTEMPS=1;
18660   HAVE_POSIX_OPENPT=1;
18661   HAVE_PTSNAME=1;
18662   HAVE_PTSNAME_R=1;
18663   HAVE_RANDOM=1;
18664   HAVE_RANDOM_H=1;
18665   HAVE_RANDOM_R=1;
18666   HAVE_REALPATH=1;
18667   HAVE_RPMATCH=1;
18668   HAVE_SECURE_GETENV=1;
18669   HAVE_SETENV=1;
18670   HAVE_DECL_SETENV=1;
18671   HAVE_STRTOD=1;
18672   HAVE_STRTOLL=1;
18673   HAVE_STRTOULL=1;
18674   HAVE_STRUCT_RANDOM_DATA=1;
18675   HAVE_SYS_LOADAVG_H=0;
18676   HAVE_UNLOCKPT=1;
18677   HAVE_DECL_UNSETENV=1;
18678   REPLACE_CALLOC=0;
18679   REPLACE_CANONICALIZE_FILE_NAME=0;
18680   REPLACE_MALLOC=0;
18681   REPLACE_MBTOWC=0;
18682   REPLACE_MKSTEMP=0;
18683   REPLACE_PTSNAME=0;
18684   REPLACE_PTSNAME_R=0;
18685   REPLACE_PUTENV=0;
18686   REPLACE_RANDOM_R=0;
18687   REPLACE_REALLOC=0;
18688   REPLACE_REALPATH=0;
18689   REPLACE_SETENV=0;
18690   REPLACE_STRTOD=0;
18691   REPLACE_UNSETENV=0;
18692   REPLACE_WCTOMB=0;
18693
18694
18695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
18696 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
18697 if ${gl_cv_func_malloc_posix+:} false; then :
18698   $as_echo_n "(cached) " >&6
18699 else
18700
18701                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h.  */
18703
18704 int
18705 main ()
18706 {
18707 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18708              choke me
18709              #endif
18710
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 if ac_fn_c_try_compile "$LINENO"; then :
18716   gl_cv_func_malloc_posix=yes
18717 else
18718   gl_cv_func_malloc_posix=no
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18721
18722 fi
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
18724 $as_echo "$gl_cv_func_malloc_posix" >&6; }
18725
18726
18727
18728       for ac_header in stdlib.h
18729 do :
18730   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18731 if test "x$ac_cv_header_stdlib_h" = xyes; then :
18732   cat >>confdefs.h <<_ACEOF
18733 #define HAVE_STDLIB_H 1
18734 _ACEOF
18735
18736 fi
18737
18738 done
18739
18740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18741 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18742 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
18743   $as_echo_n "(cached) " >&6
18744 else
18745   if test "$cross_compiling" = yes; then :
18746   case "$host_os" in
18747           # Guess yes on platforms where we know the result.
18748           *-gnu* | freebsd* | netbsd* | openbsd* \
18749           | hpux* | solaris* | cygwin* | mingw*)
18750             ac_cv_func_malloc_0_nonnull=yes ;;
18751           # If we don't know, assume the worst.
18752           *) ac_cv_func_malloc_0_nonnull=no ;;
18753         esac
18754
18755 else
18756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h.  */
18758 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18759             # include <stdlib.h>
18760             #else
18761             char *malloc ();
18762             #endif
18763
18764 int
18765 main ()
18766 {
18767 return ! malloc (0);
18768   ;
18769   return 0;
18770 }
18771
18772 _ACEOF
18773 if ac_fn_c_try_run "$LINENO"; then :
18774   ac_cv_func_malloc_0_nonnull=yes
18775 else
18776   ac_cv_func_malloc_0_nonnull=no
18777 fi
18778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18779   conftest.$ac_objext conftest.beam conftest.$ac_ext
18780 fi
18781
18782
18783 fi
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18785 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18786   if test $ac_cv_func_malloc_0_nonnull = yes; then :
18787   gl_cv_func_malloc_0_nonnull=1
18788 else
18789   gl_cv_func_malloc_0_nonnull=0
18790 fi
18791
18792
18793 cat >>confdefs.h <<_ACEOF
18794 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
18795 _ACEOF
18796
18797
18798
18799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18800 $as_echo_n "checking for unsigned long long int... " >&6; }
18801 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18802   $as_echo_n "(cached) " >&6
18803 else
18804   ac_cv_type_unsigned_long_long_int=yes
18805      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18806        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h.  */
18808
18809   /* For now, do not test the preprocessor; as of 2007 there are too many
18810          implementations with broken preprocessors.  Perhaps this can
18811          be revisited in 2012.  In the meantime, code should not expect
18812          #if to work with literals wider than 32 bits.  */
18813       /* Test literals.  */
18814       long long int ll = 9223372036854775807ll;
18815       long long int nll = -9223372036854775807LL;
18816       unsigned long long int ull = 18446744073709551615ULL;
18817       /* Test constant expressions.   */
18818       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18819                      ? 1 : -1)];
18820       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18821                      ? 1 : -1)];
18822       int i = 63;
18823 int
18824 main ()
18825 {
18826 /* Test availability of runtime routines for shift and division.  */
18827       long long int llmax = 9223372036854775807ll;
18828       unsigned long long int ullmax = 18446744073709551615ull;
18829       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18830               | (llmax / ll) | (llmax % ll)
18831               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18832               | (ullmax / ull) | (ullmax % ull));
18833   ;
18834   return 0;
18835 }
18836
18837 _ACEOF
18838 if ac_fn_c_try_link "$LINENO"; then :
18839
18840 else
18841   ac_cv_type_unsigned_long_long_int=no
18842 fi
18843 rm -f core conftest.err conftest.$ac_objext \
18844     conftest$ac_exeext conftest.$ac_ext
18845      fi
18846 fi
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18848 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18849   if test $ac_cv_type_unsigned_long_long_int = yes; then
18850
18851 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18852
18853   fi
18854
18855
18856
18857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18858 $as_echo_n "checking for long long int... " >&6; }
18859 if ${ac_cv_type_long_long_int+:} false; then :
18860   $as_echo_n "(cached) " >&6
18861 else
18862   ac_cv_type_long_long_int=yes
18863       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18864         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18865         if test $ac_cv_type_long_long_int = yes; then
18866                                         if test "$cross_compiling" = yes; then :
18867   :
18868 else
18869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h.  */
18871 #include <limits.h>
18872                  #ifndef LLONG_MAX
18873                  # define HALF \
18874                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18875                  # define LLONG_MAX (HALF - 1 + HALF)
18876                  #endif
18877 int
18878 main ()
18879 {
18880 long long int n = 1;
18881                  int i;
18882                  for (i = 0; ; i++)
18883                    {
18884                      long long int m = n << i;
18885                      if (m >> i != n)
18886                        return 1;
18887                      if (LLONG_MAX / 2 < m)
18888                        break;
18889                    }
18890                  return 0;
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 if ac_fn_c_try_run "$LINENO"; then :
18896
18897 else
18898   ac_cv_type_long_long_int=no
18899 fi
18900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18901   conftest.$ac_objext conftest.beam conftest.$ac_ext
18902 fi
18903
18904         fi
18905       fi
18906 fi
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18908 $as_echo "$ac_cv_type_long_long_int" >&6; }
18909   if test $ac_cv_type_long_long_int = yes; then
18910
18911 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18912
18913   fi
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926   GNULIB_FFSL=0;
18927   GNULIB_FFSLL=0;
18928   GNULIB_MEMCHR=0;
18929   GNULIB_MEMMEM=0;
18930   GNULIB_MEMPCPY=0;
18931   GNULIB_MEMRCHR=0;
18932   GNULIB_RAWMEMCHR=0;
18933   GNULIB_STPCPY=0;
18934   GNULIB_STPNCPY=0;
18935   GNULIB_STRCHRNUL=0;
18936   GNULIB_STRDUP=0;
18937   GNULIB_STRNCAT=0;
18938   GNULIB_STRNDUP=0;
18939   GNULIB_STRNLEN=0;
18940   GNULIB_STRPBRK=0;
18941   GNULIB_STRSEP=0;
18942   GNULIB_STRSTR=0;
18943   GNULIB_STRCASESTR=0;
18944   GNULIB_STRTOK_R=0;
18945   GNULIB_MBSLEN=0;
18946   GNULIB_MBSNLEN=0;
18947   GNULIB_MBSCHR=0;
18948   GNULIB_MBSRCHR=0;
18949   GNULIB_MBSSTR=0;
18950   GNULIB_MBSCASECMP=0;
18951   GNULIB_MBSNCASECMP=0;
18952   GNULIB_MBSPCASECMP=0;
18953   GNULIB_MBSCASESTR=0;
18954   GNULIB_MBSCSPN=0;
18955   GNULIB_MBSPBRK=0;
18956   GNULIB_MBSSPN=0;
18957   GNULIB_MBSSEP=0;
18958   GNULIB_MBSTOK_R=0;
18959   GNULIB_STRERROR=0;
18960   GNULIB_STRERROR_R=0;
18961   GNULIB_STRSIGNAL=0;
18962   GNULIB_STRVERSCMP=0;
18963   HAVE_MBSLEN=0;
18964     HAVE_FFSL=1;
18965   HAVE_FFSLL=1;
18966   HAVE_MEMCHR=1;
18967   HAVE_DECL_MEMMEM=1;
18968   HAVE_MEMPCPY=1;
18969   HAVE_DECL_MEMRCHR=1;
18970   HAVE_RAWMEMCHR=1;
18971   HAVE_STPCPY=1;
18972   HAVE_STPNCPY=1;
18973   HAVE_STRCHRNUL=1;
18974   HAVE_DECL_STRDUP=1;
18975   HAVE_DECL_STRNDUP=1;
18976   HAVE_DECL_STRNLEN=1;
18977   HAVE_STRPBRK=1;
18978   HAVE_STRSEP=1;
18979   HAVE_STRCASESTR=1;
18980   HAVE_DECL_STRTOK_R=1;
18981   HAVE_DECL_STRERROR_R=1;
18982   HAVE_DECL_STRSIGNAL=1;
18983   HAVE_STRVERSCMP=1;
18984   REPLACE_MEMCHR=0;
18985   REPLACE_MEMMEM=0;
18986   REPLACE_STPNCPY=0;
18987   REPLACE_STRDUP=0;
18988   REPLACE_STRSTR=0;
18989   REPLACE_STRCASESTR=0;
18990   REPLACE_STRCHRNUL=0;
18991   REPLACE_STRERROR=0;
18992   REPLACE_STRERROR_R=0;
18993   REPLACE_STRNCAT=0;
18994   REPLACE_STRNDUP=0;
18995   REPLACE_STRNLEN=0;
18996   REPLACE_STRSIGNAL=0;
18997   REPLACE_STRTOK_R=0;
18998   UNDEFINE_STRTOK_R=0;
18999
19000
19001
19002
19003
19004   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
19005   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
19006   # irrelevant for anonymous mappings.
19007   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19008 if test "x$ac_cv_func_mmap" = xyes; then :
19009   gl_have_mmap=yes
19010 else
19011   gl_have_mmap=no
19012 fi
19013
19014
19015   # Try to allow MAP_ANONYMOUS.
19016   gl_have_mmap_anonymous=no
19017   if test $gl_have_mmap = yes; then
19018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
19019 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
19020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h.  */
19022
19023 #include <sys/mman.h>
19024 #ifdef MAP_ANONYMOUS
19025     I cannot identify this map
19026 #endif
19027
19028 _ACEOF
19029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19030   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19031   gl_have_mmap_anonymous=yes
19032 fi
19033 rm -f conftest*
19034
19035     if test $gl_have_mmap_anonymous != yes; then
19036       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h.  */
19038
19039 #include <sys/mman.h>
19040 #ifdef MAP_ANON
19041     I cannot identify this map
19042 #endif
19043
19044 _ACEOF
19045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19046   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19047
19048 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
19049
19050          gl_have_mmap_anonymous=yes
19051 fi
19052 rm -f conftest*
19053
19054     fi
19055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
19056 $as_echo "$gl_have_mmap_anonymous" >&6; }
19057     if test $gl_have_mmap_anonymous = yes; then
19058
19059 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
19060
19061     fi
19062   fi
19063
19064
19065   :
19066
19067
19068
19069
19070
19071
19072   :
19073
19074
19075
19076
19077
19078
19079
19080
19081   if test $HAVE_MEMCHR = 1; then
19082     # Detect platform-specific bugs in some versions of glibc:
19083     # memchr should not dereference anything with length 0
19084     #   http://bugzilla.redhat.com/499689
19085     # memchr should not dereference overestimated length after a match
19086     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
19087     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
19088     # Assume that memchr works on platforms that lack mprotect.
19089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
19090 $as_echo_n "checking whether memchr works... " >&6; }
19091 if ${gl_cv_func_memchr_works+:} false; then :
19092   $as_echo_n "(cached) " >&6
19093 else
19094   if test "$cross_compiling" = yes; then :
19095          gl_cv_func_memchr_works="guessing no"
19096 else
19097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h.  */
19099
19100 #include <string.h>
19101 #if HAVE_SYS_MMAN_H
19102 # include <fcntl.h>
19103 # include <unistd.h>
19104 # include <sys/types.h>
19105 # include <sys/mman.h>
19106 # ifndef MAP_FILE
19107 #  define MAP_FILE 0
19108 # endif
19109 #endif
19110
19111 int
19112 main ()
19113 {
19114
19115   int result = 0;
19116   char *fence = NULL;
19117 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
19118 # if HAVE_MAP_ANONYMOUS
19119   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
19120   const int fd = -1;
19121 # else /* !HAVE_MAP_ANONYMOUS */
19122   const int flags = MAP_FILE | MAP_PRIVATE;
19123   int fd = open ("/dev/zero", O_RDONLY, 0666);
19124   if (fd >= 0)
19125 # endif
19126     {
19127       int pagesize = getpagesize ();
19128       char *two_pages =
19129         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
19130                        flags, fd, 0);
19131       if (two_pages != (char *)(-1)
19132           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
19133         fence = two_pages + pagesize;
19134     }
19135 #endif
19136   if (fence)
19137     {
19138       if (memchr (fence, 0, 0))
19139         result |= 1;
19140       strcpy (fence - 9, "12345678");
19141       if (memchr (fence - 9, 0, 79) != fence - 1)
19142         result |= 2;
19143       if (memchr (fence - 1, 0, 3) != fence - 1)
19144         result |= 4;
19145     }
19146   return result;
19147
19148   ;
19149   return 0;
19150 }
19151 _ACEOF
19152 if ac_fn_c_try_run "$LINENO"; then :
19153   gl_cv_func_memchr_works=yes
19154 else
19155   gl_cv_func_memchr_works=no
19156 fi
19157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19158   conftest.$ac_objext conftest.beam conftest.$ac_ext
19159 fi
19160
19161 fi
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
19163 $as_echo "$gl_cv_func_memchr_works" >&6; }
19164     if test "$gl_cv_func_memchr_works" != yes; then
19165       REPLACE_MEMCHR=1
19166     fi
19167   fi
19168
19169
19170
19171
19172
19173
19174
19175     gl_cv_c_multiarch=no
19176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19177 /* end confdefs.h.  */
19178 #ifndef __APPLE_CC__
19179          not a universal capable compiler
19180         #endif
19181         typedef int dummy;
19182
19183 _ACEOF
19184 if ac_fn_c_try_compile "$LINENO"; then :
19185
19186                arch=
19187      prev=
19188      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19189        if test -n "$prev"; then
19190          case $word in
19191            i?86 | x86_64 | ppc | ppc64)
19192              if test -z "$arch" || test "$arch" = "$word"; then
19193                arch="$word"
19194              else
19195                gl_cv_c_multiarch=yes
19196              fi
19197              ;;
19198          esac
19199          prev=
19200        else
19201          if test "x$word" = "x-arch"; then
19202            prev=arch
19203          fi
19204        fi
19205      done
19206
19207 fi
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209   if test $gl_cv_c_multiarch = yes; then
19210     APPLE_UNIVERSAL_BUILD=1
19211   else
19212     APPLE_UNIVERSAL_BUILD=0
19213   fi
19214
19215
19216
19217
19218
19219
19220
19221
19222   GNULIB_PTHREAD_SIGMASK=0;
19223   GNULIB_RAISE=0;
19224   GNULIB_SIGNAL_H_SIGPIPE=0;
19225   GNULIB_SIGPROCMASK=0;
19226   GNULIB_SIGACTION=0;
19227     HAVE_POSIX_SIGNALBLOCKING=1;
19228   HAVE_PTHREAD_SIGMASK=1;
19229   HAVE_RAISE=1;
19230   HAVE_SIGSET_T=1;
19231   HAVE_SIGINFO_T=1;
19232   HAVE_SIGACTION=1;
19233   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19234
19235   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19236
19237   HAVE_SIGHANDLER_T=1;
19238   REPLACE_PTHREAD_SIGMASK=0;
19239   REPLACE_RAISE=0;
19240
19241
19242   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19243       #include <signal.h>
19244       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
19245       #include <sys/types.h>
19246
19247 "
19248 if test "x$ac_cv_type_sigset_t" = xyes; then :
19249
19250 cat >>confdefs.h <<_ACEOF
19251 #define HAVE_SIGSET_T 1
19252 _ACEOF
19253
19254 gl_cv_type_sigset_t=yes
19255 else
19256   gl_cv_type_sigset_t=no
19257 fi
19258
19259   if test $gl_cv_type_sigset_t != yes; then
19260     HAVE_SIGSET_T=0
19261   fi
19262
19263
19264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19265 $as_echo_n "checking for ssize_t... " >&6; }
19266 if ${gt_cv_ssize_t+:} false; then :
19267   $as_echo_n "(cached) " >&6
19268 else
19269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270 /* end confdefs.h.  */
19271 #include <sys/types.h>
19272 int
19273 main ()
19274 {
19275 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19276             return !x;
19277   ;
19278   return 0;
19279 }
19280 _ACEOF
19281 if ac_fn_c_try_compile "$LINENO"; then :
19282   gt_cv_ssize_t=yes
19283 else
19284   gt_cv_ssize_t=no
19285 fi
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287 fi
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19289 $as_echo "$gt_cv_ssize_t" >&6; }
19290   if test $gt_cv_ssize_t = no; then
19291
19292 $as_echo "#define ssize_t int" >>confdefs.h
19293
19294   fi
19295
19296
19297
19298
19299
19300
19301
19302       ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
19303 if test "x$ac_cv_have_decl_setenv" = xyes; then :
19304   ac_have_decl=1
19305 else
19306   ac_have_decl=0
19307 fi
19308
19309 cat >>confdefs.h <<_ACEOF
19310 #define HAVE_DECL_SETENV $ac_have_decl
19311 _ACEOF
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322   :
19323
19324
19325
19326
19327
19328   if test $ac_cv_have_decl_setenv = no; then
19329     HAVE_DECL_SETENV=0
19330   fi
19331
19332   :
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342   :
19343
19344
19345
19346
19347
19348   for ac_header in search.h
19349 do :
19350   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
19351 if test "x$ac_cv_header_search_h" = xyes; then :
19352   cat >>confdefs.h <<_ACEOF
19353 #define HAVE_SEARCH_H 1
19354 _ACEOF
19355
19356 fi
19357
19358 done
19359
19360   for ac_func in tsearch
19361 do :
19362   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
19363 if test "x$ac_cv_func_tsearch" = xyes; then :
19364   cat >>confdefs.h <<_ACEOF
19365 #define HAVE_TSEARCH 1
19366 _ACEOF
19367
19368 fi
19369 done
19370
19371
19372
19373
19374
19375
19376
19377
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19379 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19380 if ${ac_cv_type_uid_t+:} false; then :
19381   $as_echo_n "(cached) " >&6
19382 else
19383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h.  */
19385 #include <sys/types.h>
19386
19387 _ACEOF
19388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19389   $EGREP "uid_t" >/dev/null 2>&1; then :
19390   ac_cv_type_uid_t=yes
19391 else
19392   ac_cv_type_uid_t=no
19393 fi
19394 rm -f conftest*
19395
19396 fi
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19398 $as_echo "$ac_cv_type_uid_t" >&6; }
19399 if test $ac_cv_type_uid_t = no; then
19400
19401 $as_echo "#define uid_t int" >>confdefs.h
19402
19403
19404 $as_echo "#define gid_t int" >>confdefs.h
19405
19406 fi
19407
19408 :
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420   GNULIB_DPRINTF=0;
19421   GNULIB_FCLOSE=0;
19422   GNULIB_FDOPEN=0;
19423   GNULIB_FFLUSH=0;
19424   GNULIB_FGETC=0;
19425   GNULIB_FGETS=0;
19426   GNULIB_FOPEN=0;
19427   GNULIB_FPRINTF=0;
19428   GNULIB_FPRINTF_POSIX=0;
19429   GNULIB_FPURGE=0;
19430   GNULIB_FPUTC=0;
19431   GNULIB_FPUTS=0;
19432   GNULIB_FREAD=0;
19433   GNULIB_FREOPEN=0;
19434   GNULIB_FSCANF=0;
19435   GNULIB_FSEEK=0;
19436   GNULIB_FSEEKO=0;
19437   GNULIB_FTELL=0;
19438   GNULIB_FTELLO=0;
19439   GNULIB_FWRITE=0;
19440   GNULIB_GETC=0;
19441   GNULIB_GETCHAR=0;
19442   GNULIB_GETDELIM=0;
19443   GNULIB_GETLINE=0;
19444   GNULIB_OBSTACK_PRINTF=0;
19445   GNULIB_OBSTACK_PRINTF_POSIX=0;
19446   GNULIB_PCLOSE=0;
19447   GNULIB_PERROR=0;
19448   GNULIB_POPEN=0;
19449   GNULIB_PRINTF=0;
19450   GNULIB_PRINTF_POSIX=0;
19451   GNULIB_PUTC=0;
19452   GNULIB_PUTCHAR=0;
19453   GNULIB_PUTS=0;
19454   GNULIB_REMOVE=0;
19455   GNULIB_RENAME=0;
19456   GNULIB_RENAMEAT=0;
19457   GNULIB_SCANF=0;
19458   GNULIB_SNPRINTF=0;
19459   GNULIB_SPRINTF_POSIX=0;
19460   GNULIB_STDIO_H_NONBLOCKING=0;
19461   GNULIB_STDIO_H_SIGPIPE=0;
19462   GNULIB_TMPFILE=0;
19463   GNULIB_VASPRINTF=0;
19464   GNULIB_VFSCANF=0;
19465   GNULIB_VSCANF=0;
19466   GNULIB_VDPRINTF=0;
19467   GNULIB_VFPRINTF=0;
19468   GNULIB_VFPRINTF_POSIX=0;
19469   GNULIB_VPRINTF=0;
19470   GNULIB_VPRINTF_POSIX=0;
19471   GNULIB_VSNPRINTF=0;
19472   GNULIB_VSPRINTF_POSIX=0;
19473     HAVE_DECL_FPURGE=1;
19474   HAVE_DECL_FSEEKO=1;
19475   HAVE_DECL_FTELLO=1;
19476   HAVE_DECL_GETDELIM=1;
19477   HAVE_DECL_GETLINE=1;
19478   HAVE_DECL_OBSTACK_PRINTF=1;
19479   HAVE_DECL_SNPRINTF=1;
19480   HAVE_DECL_VSNPRINTF=1;
19481   HAVE_DPRINTF=1;
19482   HAVE_FSEEKO=1;
19483   HAVE_FTELLO=1;
19484   HAVE_PCLOSE=1;
19485   HAVE_POPEN=1;
19486   HAVE_RENAMEAT=1;
19487   HAVE_VASPRINTF=1;
19488   HAVE_VDPRINTF=1;
19489   REPLACE_DPRINTF=0;
19490   REPLACE_FCLOSE=0;
19491   REPLACE_FDOPEN=0;
19492   REPLACE_FFLUSH=0;
19493   REPLACE_FOPEN=0;
19494   REPLACE_FPRINTF=0;
19495   REPLACE_FPURGE=0;
19496   REPLACE_FREOPEN=0;
19497   REPLACE_FSEEK=0;
19498   REPLACE_FSEEKO=0;
19499   REPLACE_FTELL=0;
19500   REPLACE_FTELLO=0;
19501   REPLACE_GETDELIM=0;
19502   REPLACE_GETLINE=0;
19503   REPLACE_OBSTACK_PRINTF=0;
19504   REPLACE_PERROR=0;
19505   REPLACE_POPEN=0;
19506   REPLACE_PRINTF=0;
19507   REPLACE_REMOVE=0;
19508   REPLACE_RENAME=0;
19509   REPLACE_RENAMEAT=0;
19510   REPLACE_SNPRINTF=0;
19511   REPLACE_SPRINTF=0;
19512   REPLACE_STDIO_READ_FUNCS=0;
19513   REPLACE_STDIO_WRITE_FUNCS=0;
19514   REPLACE_TMPFILE=0;
19515   REPLACE_VASPRINTF=0;
19516   REPLACE_VDPRINTF=0;
19517   REPLACE_VFPRINTF=0;
19518   REPLACE_VPRINTF=0;
19519   REPLACE_VSNPRINTF=0;
19520   REPLACE_VSPRINTF=0;
19521
19522
19523
19524
19525
19526
19527
19528
19529   :
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
19540 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
19541 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
19542   $as_echo_n "(cached) " >&6
19543 else
19544
19545       if test "$cross_compiling" = yes; then :
19546
19547          case "$host_os" in
19548                                  # Guess yes on glibc systems.
19549            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
19550                                  # Guess yes on FreeBSD >= 5.
19551            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
19552            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
19553                                  # Guess yes on Mac OS X >= 10.3.
19554            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
19555            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
19556                                  # Guess yes on OpenBSD >= 3.9.
19557            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
19558                                  gl_cv_func_snprintf_retval_c99="guessing no";;
19559            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
19560                                  # Guess yes on Solaris >= 2.10.
19561            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
19562            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
19563                                  # Guess yes on AIX >= 4.
19564            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
19565            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
19566                                  # Guess yes on NetBSD >= 3.
19567            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
19568                                  gl_cv_func_snprintf_retval_c99="guessing no";;
19569            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
19570                                  # Guess yes on BeOS.
19571            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
19572                                  # If we don't know, assume the worst.
19573            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
19574          esac
19575
19576 else
19577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h.  */
19579
19580 #include <stdio.h>
19581 #include <string.h>
19582 #if HAVE_SNPRINTF
19583 # define my_snprintf snprintf
19584 #else
19585 # include <stdarg.h>
19586 static int my_snprintf (char *buf, int size, const char *format, ...)
19587 {
19588   va_list args;
19589   int ret;
19590   va_start (args, format);
19591   ret = vsnprintf (buf, size, format, args);
19592   va_end (args);
19593   return ret;
19594 }
19595 #endif
19596 static char buf[100];
19597 int main ()
19598 {
19599   strcpy (buf, "ABCDEF");
19600   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
19601     return 1;
19602   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
19603     return 2;
19604   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
19605     return 3;
19606   return 0;
19607 }
19608 _ACEOF
19609 if ac_fn_c_try_run "$LINENO"; then :
19610   gl_cv_func_snprintf_retval_c99=yes
19611 else
19612   gl_cv_func_snprintf_retval_c99=no
19613 fi
19614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19615   conftest.$ac_objext conftest.beam conftest.$ac_ext
19616 fi
19617
19618
19619 fi
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
19621 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
19622
19623
19624       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
19625 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
19626   ac_have_decl=1
19627 else
19628   ac_have_decl=0
19629 fi
19630
19631 cat >>confdefs.h <<_ACEOF
19632 #define HAVE_DECL_SNPRINTF $ac_have_decl
19633 _ACEOF
19634
19635
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19637 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19638 if ${ac_cv_header_stdbool_h+:} false; then :
19639   $as_echo_n "(cached) " >&6
19640 else
19641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h.  */
19643
19644              #include <stdbool.h>
19645              #ifndef bool
19646               "error: bool is not defined"
19647              #endif
19648              #ifndef false
19649               "error: false is not defined"
19650              #endif
19651              #if false
19652               "error: false is not 0"
19653              #endif
19654              #ifndef true
19655               "error: true is not defined"
19656              #endif
19657              #if true != 1
19658               "error: true is not 1"
19659              #endif
19660              #ifndef __bool_true_false_are_defined
19661               "error: __bool_true_false_are_defined is not defined"
19662              #endif
19663
19664              struct s { _Bool s: 1; _Bool t; } s;
19665
19666              char a[true == 1 ? 1 : -1];
19667              char b[false == 0 ? 1 : -1];
19668              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19669              char d[(bool) 0.5 == true ? 1 : -1];
19670              /* See body of main program for 'e'.  */
19671              char f[(_Bool) 0.0 == false ? 1 : -1];
19672              char g[true];
19673              char h[sizeof (_Bool)];
19674              char i[sizeof s.t];
19675              enum { j = false, k = true, l = false * true, m = true * 256 };
19676              /* The following fails for
19677                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19678              _Bool n[m];
19679              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19680              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19681              /* Catch a bug in an HP-UX C compiler.  See
19682                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19683                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19684               */
19685              _Bool q = true;
19686              _Bool *pq = &q;
19687
19688 int
19689 main ()
19690 {
19691
19692              bool e = &s;
19693              *pq |= q;
19694              *pq |= ! q;
19695              /* Refer to every declared value, to avoid compiler optimizations.  */
19696              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19697                      + !m + !n + !o + !p + !q + !pq);
19698
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 if ac_fn_c_try_compile "$LINENO"; then :
19704   ac_cv_header_stdbool_h=yes
19705 else
19706   ac_cv_header_stdbool_h=no
19707 fi
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709 fi
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19711 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19712    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19713 if test "x$ac_cv_type__Bool" = xyes; then :
19714
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE__BOOL 1
19717 _ACEOF
19718
19719
19720 fi
19721
19722
19723
19724     REPLACE_NULL=0;
19725   HAVE_WCHAR_T=1;
19726
19727
19728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19729 $as_echo_n "checking for wchar_t... " >&6; }
19730 if ${gt_cv_c_wchar_t+:} false; then :
19731   $as_echo_n "(cached) " >&6
19732 else
19733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h.  */
19735 #include <stddef.h>
19736             wchar_t foo = (wchar_t)'\0';
19737 int
19738 main ()
19739 {
19740
19741   ;
19742   return 0;
19743 }
19744 _ACEOF
19745 if ac_fn_c_try_compile "$LINENO"; then :
19746   gt_cv_c_wchar_t=yes
19747 else
19748   gt_cv_c_wchar_t=no
19749 fi
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19751 fi
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19753 $as_echo "$gt_cv_c_wchar_t" >&6; }
19754   if test $gt_cv_c_wchar_t = yes; then
19755
19756 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19757
19758   fi
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773   if test $ac_cv_type_long_long_int = yes; then
19774     HAVE_LONG_LONG_INT=1
19775   else
19776     HAVE_LONG_LONG_INT=0
19777   fi
19778
19779
19780   if test $ac_cv_type_unsigned_long_long_int = yes; then
19781     HAVE_UNSIGNED_LONG_LONG_INT=1
19782   else
19783     HAVE_UNSIGNED_LONG_LONG_INT=0
19784   fi
19785
19786
19787
19788   :
19789
19790
19791
19792
19793
19794   if test $ac_cv_header_wchar_h = yes; then
19795     HAVE_WCHAR_H=1
19796   else
19797     HAVE_WCHAR_H=0
19798   fi
19799
19800
19801       if test $ac_cv_header_inttypes_h = yes; then
19802     HAVE_INTTYPES_H=1
19803   else
19804     HAVE_INTTYPES_H=0
19805   fi
19806
19807
19808       if test $ac_cv_header_sys_types_h = yes; then
19809     HAVE_SYS_TYPES_H=1
19810   else
19811     HAVE_SYS_TYPES_H=0
19812   fi
19813
19814
19815
19816
19817
19818
19819
19820
19821   :
19822
19823
19824
19825
19826
19827
19828
19829
19830      if test $gl_cv_have_include_next = yes; then
19831        gl_cv_next_stdint_h='<'stdint.h'>'
19832      else
19833        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19834 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19835 if ${gl_cv_next_stdint_h+:} false; then :
19836   $as_echo_n "(cached) " >&6
19837 else
19838
19839              if test $ac_cv_header_stdint_h = yes; then
19840
19841
19842
19843
19844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h.  */
19846 #include <stdint.h>
19847 _ACEOF
19848                 case "$host_os" in
19849     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19850     *)    gl_absname_cpp="$ac_cpp" ;;
19851   esac
19852
19853   case "$host_os" in
19854     mingw*)
19855                                           gl_dirsep_regex='[/\\]'
19856       ;;
19857     *)
19858       gl_dirsep_regex='\/'
19859       ;;
19860   esac
19861       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19862   gl_header_literal_regex=`echo 'stdint.h' \
19863                            | sed -e "$gl_make_literal_regex_sed"`
19864   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19865       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19866       s|^/[^/]|//&|
19867       p
19868       q
19869     }'
19870
19871         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19872   sed -n "$gl_absolute_header_sed"`
19873
19874            gl_header=$gl_cv_absolute_stdint_h
19875            gl_cv_next_stdint_h='"'$gl_header'"'
19876           else
19877                gl_cv_next_stdint_h='<'stdint.h'>'
19878              fi
19879
19880
19881 fi
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19883 $as_echo "$gl_cv_next_stdint_h" >&6; }
19884      fi
19885      NEXT_STDINT_H=$gl_cv_next_stdint_h
19886
19887      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19888        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19889        gl_next_as_first_directive='<'stdint.h'>'
19890      else
19891        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19892        gl_next_as_first_directive=$gl_cv_next_stdint_h
19893      fi
19894      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19895
19896
19897
19898
19899   if test $ac_cv_header_stdint_h = yes; then
19900     HAVE_STDINT_H=1
19901   else
19902     HAVE_STDINT_H=0
19903   fi
19904
19905
19906     if test $ac_cv_header_stdint_h = yes; then
19907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19908 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19909 if ${gl_cv_header_working_stdint_h+:} false; then :
19910   $as_echo_n "(cached) " >&6
19911 else
19912   gl_cv_header_working_stdint_h=no
19913        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h.  */
19915
19916
19917 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19918 #include <stdint.h>
19919 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
19920 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19921 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19922 #endif
19923
19924
19925   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19926      included before <wchar.h>.  */
19927   #include <stddef.h>
19928   #include <signal.h>
19929   #if HAVE_WCHAR_H
19930   # include <stdio.h>
19931   # include <time.h>
19932   # include <wchar.h>
19933   #endif
19934
19935
19936 #ifdef INT8_MAX
19937 int8_t a1 = INT8_MAX;
19938 int8_t a1min = INT8_MIN;
19939 #endif
19940 #ifdef INT16_MAX
19941 int16_t a2 = INT16_MAX;
19942 int16_t a2min = INT16_MIN;
19943 #endif
19944 #ifdef INT32_MAX
19945 int32_t a3 = INT32_MAX;
19946 int32_t a3min = INT32_MIN;
19947 #endif
19948 #ifdef INT64_MAX
19949 int64_t a4 = INT64_MAX;
19950 int64_t a4min = INT64_MIN;
19951 #endif
19952 #ifdef UINT8_MAX
19953 uint8_t b1 = UINT8_MAX;
19954 #else
19955 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19956 #endif
19957 #ifdef UINT16_MAX
19958 uint16_t b2 = UINT16_MAX;
19959 #endif
19960 #ifdef UINT32_MAX
19961 uint32_t b3 = UINT32_MAX;
19962 #endif
19963 #ifdef UINT64_MAX
19964 uint64_t b4 = UINT64_MAX;
19965 #endif
19966 int_least8_t c1 = INT8_C (0x7f);
19967 int_least8_t c1max = INT_LEAST8_MAX;
19968 int_least8_t c1min = INT_LEAST8_MIN;
19969 int_least16_t c2 = INT16_C (0x7fff);
19970 int_least16_t c2max = INT_LEAST16_MAX;
19971 int_least16_t c2min = INT_LEAST16_MIN;
19972 int_least32_t c3 = INT32_C (0x7fffffff);
19973 int_least32_t c3max = INT_LEAST32_MAX;
19974 int_least32_t c3min = INT_LEAST32_MIN;
19975 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19976 int_least64_t c4max = INT_LEAST64_MAX;
19977 int_least64_t c4min = INT_LEAST64_MIN;
19978 uint_least8_t d1 = UINT8_C (0xff);
19979 uint_least8_t d1max = UINT_LEAST8_MAX;
19980 uint_least16_t d2 = UINT16_C (0xffff);
19981 uint_least16_t d2max = UINT_LEAST16_MAX;
19982 uint_least32_t d3 = UINT32_C (0xffffffff);
19983 uint_least32_t d3max = UINT_LEAST32_MAX;
19984 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19985 uint_least64_t d4max = UINT_LEAST64_MAX;
19986 int_fast8_t e1 = INT_FAST8_MAX;
19987 int_fast8_t e1min = INT_FAST8_MIN;
19988 int_fast16_t e2 = INT_FAST16_MAX;
19989 int_fast16_t e2min = INT_FAST16_MIN;
19990 int_fast32_t e3 = INT_FAST32_MAX;
19991 int_fast32_t e3min = INT_FAST32_MIN;
19992 int_fast64_t e4 = INT_FAST64_MAX;
19993 int_fast64_t e4min = INT_FAST64_MIN;
19994 uint_fast8_t f1 = UINT_FAST8_MAX;
19995 uint_fast16_t f2 = UINT_FAST16_MAX;
19996 uint_fast32_t f3 = UINT_FAST32_MAX;
19997 uint_fast64_t f4 = UINT_FAST64_MAX;
19998 #ifdef INTPTR_MAX
19999 intptr_t g = INTPTR_MAX;
20000 intptr_t gmin = INTPTR_MIN;
20001 #endif
20002 #ifdef UINTPTR_MAX
20003 uintptr_t h = UINTPTR_MAX;
20004 #endif
20005 intmax_t i = INTMAX_MAX;
20006 uintmax_t j = UINTMAX_MAX;
20007
20008 #include <limits.h> /* for CHAR_BIT */
20009 #define TYPE_MINIMUM(t) \
20010   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20011 #define TYPE_MAXIMUM(t) \
20012   ((t) ((t) 0 < (t) -1 \
20013         ? (t) -1 \
20014         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20015 struct s {
20016   int check_PTRDIFF:
20017       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20018       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20019       ? 1 : -1;
20020   /* Detect bug in FreeBSD 6.0 / ia64.  */
20021   int check_SIG_ATOMIC:
20022       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20023       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20024       ? 1 : -1;
20025   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20026   int check_WCHAR:
20027       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20028       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20029       ? 1 : -1;
20030   /* Detect bug in mingw.  */
20031   int check_WINT:
20032       WINT_MIN == TYPE_MINIMUM (wint_t)
20033       && WINT_MAX == TYPE_MAXIMUM (wint_t)
20034       ? 1 : -1;
20035
20036   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
20037   int check_UINT8_C:
20038         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20039   int check_UINT16_C:
20040         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20041
20042   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
20043 #ifdef UINT8_MAX
20044   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20045 #endif
20046 #ifdef UINT16_MAX
20047   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20048 #endif
20049 #ifdef UINT32_MAX
20050   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20051 #endif
20052 #ifdef UINT64_MAX
20053   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20054 #endif
20055   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20056   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20057   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20058   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20059   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20060   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20061   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20062   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20063   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20064   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20065   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20066 };
20067
20068 int
20069 main ()
20070 {
20071
20072   ;
20073   return 0;
20074 }
20075 _ACEOF
20076 if ac_fn_c_try_compile "$LINENO"; then :
20077                                                     if test "$cross_compiling" = yes; then :
20078                  gl_cv_header_working_stdint_h=yes
20079
20080 else
20081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h.  */
20083
20084
20085 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20086 #include <stdint.h>
20087
20088
20089   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20090      included before <wchar.h>.  */
20091   #include <stddef.h>
20092   #include <signal.h>
20093   #if HAVE_WCHAR_H
20094   # include <stdio.h>
20095   # include <time.h>
20096   # include <wchar.h>
20097   #endif
20098
20099
20100 #include <stdio.h>
20101 #include <string.h>
20102 #define MVAL(macro) MVAL1(macro)
20103 #define MVAL1(expression) #expression
20104 static const char *macro_values[] =
20105   {
20106 #ifdef INT8_MAX
20107     MVAL (INT8_MAX),
20108 #endif
20109 #ifdef INT16_MAX
20110     MVAL (INT16_MAX),
20111 #endif
20112 #ifdef INT32_MAX
20113     MVAL (INT32_MAX),
20114 #endif
20115 #ifdef INT64_MAX
20116     MVAL (INT64_MAX),
20117 #endif
20118 #ifdef UINT8_MAX
20119     MVAL (UINT8_MAX),
20120 #endif
20121 #ifdef UINT16_MAX
20122     MVAL (UINT16_MAX),
20123 #endif
20124 #ifdef UINT32_MAX
20125     MVAL (UINT32_MAX),
20126 #endif
20127 #ifdef UINT64_MAX
20128     MVAL (UINT64_MAX),
20129 #endif
20130     NULL
20131   };
20132
20133 int
20134 main ()
20135 {
20136
20137   const char **mv;
20138   for (mv = macro_values; *mv != NULL; mv++)
20139     {
20140       const char *value = *mv;
20141       /* Test whether it looks like a cast expression.  */
20142       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20143           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20144           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20145           || strncmp (value, "((int)"/*)*/, 6) == 0
20146           || strncmp (value, "((signed short)"/*)*/, 15) == 0
20147           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20148         return mv - macro_values + 1;
20149     }
20150   return 0;
20151
20152   ;
20153   return 0;
20154 }
20155 _ACEOF
20156 if ac_fn_c_try_run "$LINENO"; then :
20157   gl_cv_header_working_stdint_h=yes
20158 fi
20159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20160   conftest.$ac_objext conftest.beam conftest.$ac_ext
20161 fi
20162
20163
20164 fi
20165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20166
20167 fi
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20169 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20170   fi
20171   if test "$gl_cv_header_working_stdint_h" = yes; then
20172     STDINT_H=
20173   else
20174             for ac_header in sys/inttypes.h sys/bitypes.h
20175 do :
20176   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20177 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20179   cat >>confdefs.h <<_ACEOF
20180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20181 _ACEOF
20182
20183 fi
20184
20185 done
20186
20187     if test $ac_cv_header_sys_inttypes_h = yes; then
20188       HAVE_SYS_INTTYPES_H=1
20189     else
20190       HAVE_SYS_INTTYPES_H=0
20191     fi
20192
20193     if test $ac_cv_header_sys_bitypes_h = yes; then
20194       HAVE_SYS_BITYPES_H=1
20195     else
20196       HAVE_SYS_BITYPES_H=0
20197     fi
20198
20199
20200
20201
20202   if test $APPLE_UNIVERSAL_BUILD = 0; then
20203
20204
20205   for gltype in ptrdiff_t size_t ; do
20206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20207 $as_echo_n "checking for bit size of $gltype... " >&6; }
20208 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
20209   $as_echo_n "(cached) " >&6
20210 else
20211   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
20212   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20213      included before <wchar.h>.  */
20214   #include <stddef.h>
20215   #include <signal.h>
20216   #if HAVE_WCHAR_H
20217   # include <stdio.h>
20218   # include <time.h>
20219   # include <wchar.h>
20220   #endif
20221
20222 #include <limits.h>"; then :
20223
20224 else
20225   result=unknown
20226 fi
20227
20228        eval gl_cv_bitsizeof_${gltype}=\$result
20229
20230 fi
20231 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20232                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20233 $as_echo "$ac_res" >&6; }
20234     eval result=\$gl_cv_bitsizeof_${gltype}
20235     if test $result = unknown; then
20236                                                 result=0
20237     fi
20238     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20239     cat >>confdefs.h <<_ACEOF
20240 #define BITSIZEOF_${GLTYPE} $result
20241 _ACEOF
20242
20243     eval BITSIZEOF_${GLTYPE}=\$result
20244   done
20245
20246
20247   fi
20248
20249
20250   for gltype in sig_atomic_t wchar_t wint_t ; do
20251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20252 $as_echo_n "checking for bit size of $gltype... " >&6; }
20253 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
20254   $as_echo_n "(cached) " >&6
20255 else
20256   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
20257   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20258      included before <wchar.h>.  */
20259   #include <stddef.h>
20260   #include <signal.h>
20261   #if HAVE_WCHAR_H
20262   # include <stdio.h>
20263   # include <time.h>
20264   # include <wchar.h>
20265   #endif
20266
20267 #include <limits.h>"; then :
20268
20269 else
20270   result=unknown
20271 fi
20272
20273        eval gl_cv_bitsizeof_${gltype}=\$result
20274
20275 fi
20276 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20277                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20278 $as_echo "$ac_res" >&6; }
20279     eval result=\$gl_cv_bitsizeof_${gltype}
20280     if test $result = unknown; then
20281                                                 result=0
20282     fi
20283     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20284     cat >>confdefs.h <<_ACEOF
20285 #define BITSIZEOF_${GLTYPE} $result
20286 _ACEOF
20287
20288     eval BITSIZEOF_${GLTYPE}=\$result
20289   done
20290
20291
20292
20293
20294   for gltype in sig_atomic_t wchar_t wint_t ; do
20295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20296 $as_echo_n "checking whether $gltype is signed... " >&6; }
20297 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
20298   $as_echo_n "(cached) " >&6
20299 else
20300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h.  */
20302
20303   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20304      included before <wchar.h>.  */
20305   #include <stddef.h>
20306   #include <signal.h>
20307   #if HAVE_WCHAR_H
20308   # include <stdio.h>
20309   # include <time.h>
20310   # include <wchar.h>
20311   #endif
20312
20313             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20314 int
20315 main ()
20316 {
20317
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 if ac_fn_c_try_compile "$LINENO"; then :
20323   result=yes
20324 else
20325   result=no
20326 fi
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328        eval gl_cv_type_${gltype}_signed=\$result
20329
20330 fi
20331 eval ac_res=\$gl_cv_type_${gltype}_signed
20332                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20333 $as_echo "$ac_res" >&6; }
20334     eval result=\$gl_cv_type_${gltype}_signed
20335     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20336     if test "$result" = yes; then
20337       cat >>confdefs.h <<_ACEOF
20338 #define HAVE_SIGNED_${GLTYPE} 1
20339 _ACEOF
20340
20341       eval HAVE_SIGNED_${GLTYPE}=1
20342     else
20343       eval HAVE_SIGNED_${GLTYPE}=0
20344     fi
20345   done
20346
20347
20348   gl_cv_type_ptrdiff_t_signed=yes
20349   gl_cv_type_size_t_signed=no
20350   if test $APPLE_UNIVERSAL_BUILD = 0; then
20351
20352
20353   for gltype in ptrdiff_t size_t ; do
20354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20355 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20356 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
20357   $as_echo_n "(cached) " >&6
20358 else
20359   eval gl_cv_type_${gltype}_suffix=no
20360        eval result=\$gl_cv_type_${gltype}_signed
20361        if test "$result" = yes; then
20362          glsufu=
20363        else
20364          glsufu=u
20365        fi
20366        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20367          case $glsuf in
20368            '')  gltype1='int';;
20369            l)   gltype1='long int';;
20370            ll)  gltype1='long long int';;
20371            i64) gltype1='__int64';;
20372            u)   gltype1='unsigned int';;
20373            ul)  gltype1='unsigned long int';;
20374            ull) gltype1='unsigned long long int';;
20375            ui64)gltype1='unsigned __int64';;
20376          esac
20377          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h.  */
20379
20380   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20381      included before <wchar.h>.  */
20382   #include <stddef.h>
20383   #include <signal.h>
20384   #if HAVE_WCHAR_H
20385   # include <stdio.h>
20386   # include <time.h>
20387   # include <wchar.h>
20388   #endif
20389
20390               extern $gltype foo;
20391               extern $gltype1 foo;
20392 int
20393 main ()
20394 {
20395
20396   ;
20397   return 0;
20398 }
20399 _ACEOF
20400 if ac_fn_c_try_compile "$LINENO"; then :
20401   eval gl_cv_type_${gltype}_suffix=\$glsuf
20402 fi
20403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404          eval result=\$gl_cv_type_${gltype}_suffix
20405          test "$result" != no && break
20406        done
20407 fi
20408 eval ac_res=\$gl_cv_type_${gltype}_suffix
20409                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20410 $as_echo "$ac_res" >&6; }
20411     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20412     eval result=\$gl_cv_type_${gltype}_suffix
20413     test "$result" = no && result=
20414     eval ${GLTYPE}_SUFFIX=\$result
20415     cat >>confdefs.h <<_ACEOF
20416 #define ${GLTYPE}_SUFFIX $result
20417 _ACEOF
20418
20419   done
20420
20421
20422   fi
20423
20424
20425   for gltype in sig_atomic_t wchar_t wint_t ; do
20426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20427 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20428 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
20429   $as_echo_n "(cached) " >&6
20430 else
20431   eval gl_cv_type_${gltype}_suffix=no
20432        eval result=\$gl_cv_type_${gltype}_signed
20433        if test "$result" = yes; then
20434          glsufu=
20435        else
20436          glsufu=u
20437        fi
20438        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20439          case $glsuf in
20440            '')  gltype1='int';;
20441            l)   gltype1='long int';;
20442            ll)  gltype1='long long int';;
20443            i64) gltype1='__int64';;
20444            u)   gltype1='unsigned int';;
20445            ul)  gltype1='unsigned long int';;
20446            ull) gltype1='unsigned long long int';;
20447            ui64)gltype1='unsigned __int64';;
20448          esac
20449          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450 /* end confdefs.h.  */
20451
20452   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20453      included before <wchar.h>.  */
20454   #include <stddef.h>
20455   #include <signal.h>
20456   #if HAVE_WCHAR_H
20457   # include <stdio.h>
20458   # include <time.h>
20459   # include <wchar.h>
20460   #endif
20461
20462               extern $gltype foo;
20463               extern $gltype1 foo;
20464 int
20465 main ()
20466 {
20467
20468   ;
20469   return 0;
20470 }
20471 _ACEOF
20472 if ac_fn_c_try_compile "$LINENO"; then :
20473   eval gl_cv_type_${gltype}_suffix=\$glsuf
20474 fi
20475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476          eval result=\$gl_cv_type_${gltype}_suffix
20477          test "$result" != no && break
20478        done
20479 fi
20480 eval ac_res=\$gl_cv_type_${gltype}_suffix
20481                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20482 $as_echo "$ac_res" >&6; }
20483     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20484     eval result=\$gl_cv_type_${gltype}_suffix
20485     test "$result" = no && result=
20486     eval ${GLTYPE}_SUFFIX=\$result
20487     cat >>confdefs.h <<_ACEOF
20488 #define ${GLTYPE}_SUFFIX $result
20489 _ACEOF
20490
20491   done
20492
20493
20494
20495           if test $BITSIZEOF_WINT_T -lt 32; then
20496     BITSIZEOF_WINT_T=32
20497   fi
20498
20499     STDINT_H=stdint.h
20500   fi
20501
20502    if test -n "$STDINT_H"; then
20503   GL_GENERATE_STDINT_H_TRUE=
20504   GL_GENERATE_STDINT_H_FALSE='#'
20505 else
20506   GL_GENERATE_STDINT_H_TRUE='#'
20507   GL_GENERATE_STDINT_H_FALSE=
20508 fi
20509
20510
20511
20512      REPLACE_STRERROR_0=0
20513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
20514 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
20515 if ${gl_cv_func_strerror_0_works+:} false; then :
20516   $as_echo_n "(cached) " >&6
20517 else
20518   if test "$cross_compiling" = yes; then :
20519   case "$host_os" in
20520                  # Guess yes on glibc systems.
20521          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
20522                  # If we don't know, assume the worst.
20523          *)      gl_cv_func_strerror_0_works="guessing no" ;;
20524        esac
20525
20526 else
20527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h.  */
20529 #include <string.h>
20530            #include <errno.h>
20531
20532 int
20533 main ()
20534 {
20535 int result = 0;
20536            char *str;
20537            errno = 0;
20538            str = strerror (0);
20539            if (!*str) result |= 1;
20540            if (errno) result |= 2;
20541            if (strstr (str, "nknown") || strstr (str, "ndefined"))
20542              result |= 4;
20543            return result;
20544   ;
20545   return 0;
20546 }
20547 _ACEOF
20548 if ac_fn_c_try_run "$LINENO"; then :
20549   gl_cv_func_strerror_0_works=yes
20550 else
20551   gl_cv_func_strerror_0_works=no
20552 fi
20553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20554   conftest.$ac_objext conftest.beam conftest.$ac_ext
20555 fi
20556
20557
20558 fi
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
20560 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
20561   case "$gl_cv_func_strerror_0_works" in
20562     *yes) ;;
20563     *)
20564       REPLACE_STRERROR_0=1
20565
20566 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
20567
20568       ;;
20569   esac
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582      if test $gl_cv_have_include_next = yes; then
20583        gl_cv_next_string_h='<'string.h'>'
20584      else
20585        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20586 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20587 if ${gl_cv_next_string_h+:} false; then :
20588   $as_echo_n "(cached) " >&6
20589 else
20590
20591
20592
20593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20594 /* end confdefs.h.  */
20595 #include <string.h>
20596 _ACEOF
20597                 case "$host_os" in
20598     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20599     *)    gl_absname_cpp="$ac_cpp" ;;
20600   esac
20601
20602   case "$host_os" in
20603     mingw*)
20604                                           gl_dirsep_regex='[/\\]'
20605       ;;
20606     *)
20607       gl_dirsep_regex='\/'
20608       ;;
20609   esac
20610       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20611   gl_header_literal_regex=`echo 'string.h' \
20612                            | sed -e "$gl_make_literal_regex_sed"`
20613   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20614       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20615       s|^/[^/]|//&|
20616       p
20617       q
20618     }'
20619
20620         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20621   sed -n "$gl_absolute_header_sed"`
20622
20623            gl_header=$gl_cv_absolute_string_h
20624            gl_cv_next_string_h='"'$gl_header'"'
20625
20626
20627 fi
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20629 $as_echo "$gl_cv_next_string_h" >&6; }
20630      fi
20631      NEXT_STRING_H=$gl_cv_next_string_h
20632
20633      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20634        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20635        gl_next_as_first_directive='<'string.h'>'
20636      else
20637        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20638        gl_next_as_first_directive=$gl_cv_next_string_h
20639      fi
20640      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20641
20642
20643
20644
20645
20646
20647     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
20648     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20650 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20651 if eval \${$as_gl_Symbol+:} false; then :
20652   $as_echo_n "(cached) " >&6
20653 else
20654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20655 /* end confdefs.h.  */
20656 #include <string.h>
20657
20658 int
20659 main ()
20660 {
20661 #undef $gl_func
20662   (void) $gl_func;
20663   ;
20664   return 0;
20665 }
20666 _ACEOF
20667 if ac_fn_c_try_compile "$LINENO"; then :
20668   eval "$as_gl_Symbol=yes"
20669 else
20670   eval "$as_gl_Symbol=no"
20671 fi
20672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673 fi
20674 eval ac_res=\$$as_gl_Symbol
20675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20676 $as_echo "$ac_res" >&6; }
20677     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
20678   cat >>confdefs.h <<_ACEOF
20679 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20680 _ACEOF
20681
20682                      eval ac_cv_have_decl_$gl_func=yes
20683 fi
20684       done
20685
20686
20687
20688       ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
20689 if test "x$ac_cv_have_decl_strndup" = xyes; then :
20690   ac_have_decl=1
20691 else
20692   ac_have_decl=0
20693 fi
20694
20695 cat >>confdefs.h <<_ACEOF
20696 #define HAVE_DECL_STRNDUP $ac_have_decl
20697 _ACEOF
20698
20699
20700
20701
20702
20703
20704
20705
20706       ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
20707 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
20708   ac_have_decl=1
20709 else
20710   ac_have_decl=0
20711 fi
20712
20713 cat >>confdefs.h <<_ACEOF
20714 #define HAVE_DECL_STRNLEN $ac_have_decl
20715 _ACEOF
20716
20717
20718
20719       ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
20720 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
20721   ac_have_decl=1
20722 else
20723   ac_have_decl=0
20724 fi
20725
20726 cat >>confdefs.h <<_ACEOF
20727 #define HAVE_DECL_STRSIGNAL $ac_have_decl
20728 _ACEOF
20729
20730
20731 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
20732 /* NetBSD declares sys_siglist in unistd.h.  */
20733 #ifdef HAVE_UNISTD_H
20734 # include <unistd.h>
20735 #endif
20736
20737 "
20738 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
20739   ac_have_decl=1
20740 else
20741   ac_have_decl=0
20742 fi
20743
20744 cat >>confdefs.h <<_ACEOF
20745 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
20746 _ACEOF
20747
20748
20749
20750   GNULIB_PSELECT=0;
20751   GNULIB_SELECT=0;
20752     HAVE_PSELECT=1;
20753   REPLACE_PSELECT=0;
20754   REPLACE_SELECT=0;
20755
20756
20757
20758
20759
20760
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20762 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20763 if ${ac_cv_header_stat_broken+:} false; then :
20764   $as_echo_n "(cached) " >&6
20765 else
20766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h.  */
20768 #include <sys/types.h>
20769 #include <sys/stat.h>
20770
20771 #if defined S_ISBLK && defined S_IFDIR
20772 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20773 #endif
20774
20775 #if defined S_ISBLK && defined S_IFCHR
20776 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20777 #endif
20778
20779 #if defined S_ISLNK && defined S_IFREG
20780 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20781 #endif
20782
20783 #if defined S_ISSOCK && defined S_IFREG
20784 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20785 #endif
20786
20787 _ACEOF
20788 if ac_fn_c_try_compile "$LINENO"; then :
20789   ac_cv_header_stat_broken=no
20790 else
20791   ac_cv_header_stat_broken=yes
20792 fi
20793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20794 fi
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20796 $as_echo "$ac_cv_header_stat_broken" >&6; }
20797 if test $ac_cv_header_stat_broken = yes; then
20798
20799 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20800
20801 fi
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826      if test $gl_cv_have_include_next = yes; then
20827        gl_cv_next_sys_types_h='<'sys/types.h'>'
20828      else
20829        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20830 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20831 if ${gl_cv_next_sys_types_h+:} false; then :
20832   $as_echo_n "(cached) " >&6
20833 else
20834
20835
20836
20837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h.  */
20839 #include <sys/types.h>
20840 _ACEOF
20841                 case "$host_os" in
20842     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20843     *)    gl_absname_cpp="$ac_cpp" ;;
20844   esac
20845
20846   case "$host_os" in
20847     mingw*)
20848                                           gl_dirsep_regex='[/\\]'
20849       ;;
20850     *)
20851       gl_dirsep_regex='\/'
20852       ;;
20853   esac
20854       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20855   gl_header_literal_regex=`echo 'sys/types.h' \
20856                            | sed -e "$gl_make_literal_regex_sed"`
20857   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20858       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20859       s|^/[^/]|//&|
20860       p
20861       q
20862     }'
20863
20864         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20865   sed -n "$gl_absolute_header_sed"`
20866
20867            gl_header=$gl_cv_absolute_sys_types_h
20868            gl_cv_next_sys_types_h='"'$gl_header'"'
20869
20870
20871 fi
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20873 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20874      fi
20875      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20876
20877      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20878        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20879        gl_next_as_first_directive='<'sys/types.h'>'
20880      else
20881        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20882        gl_next_as_first_directive=$gl_cv_next_sys_types_h
20883      fi
20884      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897   GNULIB_WAITPID=0;
20898
20899
20900
20901
20902
20903
20904
20905   GNULIB_MKTIME=0;
20906   GNULIB_NANOSLEEP=0;
20907   GNULIB_STRPTIME=0;
20908   GNULIB_TIMEGM=0;
20909   GNULIB_TIME_R=0;
20910     HAVE_DECL_LOCALTIME_R=1;
20911   HAVE_NANOSLEEP=1;
20912   HAVE_STRPTIME=1;
20913   HAVE_TIMEGM=1;
20914         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20915   REPLACE_MKTIME=GNULIB_PORTCHECK;
20916   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20917   REPLACE_TIMEGM=GNULIB_PORTCHECK;
20918
20919       : ${GNULIB_GETTIMEOFDAY=0};
20920         REPLACE_GMTIME=0;
20921   REPLACE_LOCALTIME=0;
20922
20923
20924
20925   :
20926
20927
20928
20929
20930
20931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20932 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20933 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
20934   $as_echo_n "(cached) " >&6
20935 else
20936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h.  */
20938 #include <time.h>
20939
20940 int
20941 main ()
20942 {
20943 static struct timespec x; x.tv_sec = x.tv_nsec;
20944   ;
20945   return 0;
20946 }
20947 _ACEOF
20948 if ac_fn_c_try_compile "$LINENO"; then :
20949   gl_cv_sys_struct_timespec_in_time_h=yes
20950 else
20951   gl_cv_sys_struct_timespec_in_time_h=no
20952 fi
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954 fi
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20956 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20957
20958   TIME_H_DEFINES_STRUCT_TIMESPEC=0
20959   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20960   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20961   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20962     TIME_H_DEFINES_STRUCT_TIMESPEC=1
20963   else
20964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20965 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20966 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
20967   $as_echo_n "(cached) " >&6
20968 else
20969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h.  */
20971 #include <sys/time.h>
20972
20973 int
20974 main ()
20975 {
20976 static struct timespec x; x.tv_sec = x.tv_nsec;
20977   ;
20978   return 0;
20979 }
20980 _ACEOF
20981 if ac_fn_c_try_compile "$LINENO"; then :
20982   gl_cv_sys_struct_timespec_in_sys_time_h=yes
20983 else
20984   gl_cv_sys_struct_timespec_in_sys_time_h=no
20985 fi
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987 fi
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20989 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20990     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20991       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20992     else
20993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20994 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20995 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
20996   $as_echo_n "(cached) " >&6
20997 else
20998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20999 /* end confdefs.h.  */
21000 #include <pthread.h>
21001
21002 int
21003 main ()
21004 {
21005 static struct timespec x; x.tv_sec = x.tv_nsec;
21006   ;
21007   return 0;
21008 }
21009 _ACEOF
21010 if ac_fn_c_try_compile "$LINENO"; then :
21011   gl_cv_sys_struct_timespec_in_pthread_h=yes
21012 else
21013   gl_cv_sys_struct_timespec_in_pthread_h=no
21014 fi
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 fi
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21018 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21019       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21020         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21021       fi
21022     fi
21023   fi
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039      if test $gl_cv_have_include_next = yes; then
21040        gl_cv_next_time_h='<'time.h'>'
21041      else
21042        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21043 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21044 if ${gl_cv_next_time_h+:} false; then :
21045   $as_echo_n "(cached) " >&6
21046 else
21047
21048
21049
21050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h.  */
21052 #include <time.h>
21053 _ACEOF
21054                 case "$host_os" in
21055     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21056     *)    gl_absname_cpp="$ac_cpp" ;;
21057   esac
21058
21059   case "$host_os" in
21060     mingw*)
21061                                           gl_dirsep_regex='[/\\]'
21062       ;;
21063     *)
21064       gl_dirsep_regex='\/'
21065       ;;
21066   esac
21067       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21068   gl_header_literal_regex=`echo 'time.h' \
21069                            | sed -e "$gl_make_literal_regex_sed"`
21070   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21071       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21072       s|^/[^/]|//&|
21073       p
21074       q
21075     }'
21076
21077         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21078   sed -n "$gl_absolute_header_sed"`
21079
21080            gl_header=$gl_cv_absolute_time_h
21081            gl_cv_next_time_h='"'$gl_header'"'
21082
21083
21084 fi
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21086 $as_echo "$gl_cv_next_time_h" >&6; }
21087      fi
21088      NEXT_TIME_H=$gl_cv_next_time_h
21089
21090      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21091        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21092        gl_next_as_first_directive='<'time.h'>'
21093      else
21094        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21095        gl_next_as_first_directive=$gl_cv_next_time_h
21096      fi
21097      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21098
21099
21100
21101
21102
21103
21104
21105       ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21106 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
21107   ac_have_decl=1
21108 else
21109   ac_have_decl=0
21110 fi
21111
21112 cat >>confdefs.h <<_ACEOF
21113 #define HAVE_DECL_UNSETENV $ac_have_decl
21114 _ACEOF
21115
21116
21117
21118
21119
21120
21121
21122
21123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
21124 $as_echo_n "checking for wint_t... " >&6; }
21125 if ${gt_cv_c_wint_t+:} false; then :
21126   $as_echo_n "(cached) " >&6
21127 else
21128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h.  */
21130
21131 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21132    <wchar.h>.
21133    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
21134    before <wchar.h>.  */
21135 #include <stddef.h>
21136 #include <stdio.h>
21137 #include <time.h>
21138 #include <wchar.h>
21139             wint_t foo = (wchar_t)'\0';
21140 int
21141 main ()
21142 {
21143
21144   ;
21145   return 0;
21146 }
21147 _ACEOF
21148 if ac_fn_c_try_compile "$LINENO"; then :
21149   gt_cv_c_wint_t=yes
21150 else
21151   gt_cv_c_wint_t=no
21152 fi
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 fi
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
21156 $as_echo "$gt_cv_c_wint_t" >&6; }
21157   if test $gt_cv_c_wint_t = yes; then
21158
21159 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
21160
21161   fi
21162
21163
21164
21165
21166
21167
21168
21169
21170   :
21171
21172
21173
21174
21175
21176   if test $ac_cv_header_features_h = yes; then
21177     HAVE_FEATURES_H=1
21178   else
21179     HAVE_FEATURES_H=0
21180   fi
21181
21182
21183
21184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
21185 $as_echo_n "checking for inttypes.h... " >&6; }
21186 if ${gl_cv_header_inttypes_h+:} false; then :
21187   $as_echo_n "(cached) " >&6
21188 else
21189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21190 /* end confdefs.h.  */
21191
21192 #include <sys/types.h>
21193 #include <inttypes.h>
21194
21195 int
21196 main ()
21197 {
21198 uintmax_t i = (uintmax_t) -1; return !i;
21199   ;
21200   return 0;
21201 }
21202 _ACEOF
21203 if ac_fn_c_try_compile "$LINENO"; then :
21204   gl_cv_header_inttypes_h=yes
21205 else
21206   gl_cv_header_inttypes_h=no
21207 fi
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209 fi
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
21211 $as_echo "$gl_cv_header_inttypes_h" >&6; }
21212   if test $gl_cv_header_inttypes_h = yes; then
21213
21214 cat >>confdefs.h <<_ACEOF
21215 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
21216 _ACEOF
21217
21218   fi
21219
21220
21221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
21222 $as_echo_n "checking for stdint.h... " >&6; }
21223 if ${gl_cv_header_stdint_h+:} false; then :
21224   $as_echo_n "(cached) " >&6
21225 else
21226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21227 /* end confdefs.h.  */
21228 #include <sys/types.h>
21229             #include <stdint.h>
21230 int
21231 main ()
21232 {
21233 uintmax_t i = (uintmax_t) -1; return !i;
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 if ac_fn_c_try_compile "$LINENO"; then :
21239   gl_cv_header_stdint_h=yes
21240 else
21241   gl_cv_header_stdint_h=no
21242 fi
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 fi
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
21246 $as_echo "$gl_cv_header_stdint_h" >&6; }
21247   if test $gl_cv_header_stdint_h = yes; then
21248
21249 cat >>confdefs.h <<_ACEOF
21250 #define HAVE_STDINT_H_WITH_UINTMAX 1
21251 _ACEOF
21252
21253   fi
21254
21255
21256
21257
21258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
21259 $as_echo_n "checking for intmax_t... " >&6; }
21260 if ${gt_cv_c_intmax_t+:} false; then :
21261   $as_echo_n "(cached) " >&6
21262 else
21263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h.  */
21265
21266 #include <stddef.h>
21267 #include <stdlib.h>
21268 #if HAVE_STDINT_H_WITH_UINTMAX
21269 #include <stdint.h>
21270 #endif
21271 #if HAVE_INTTYPES_H_WITH_UINTMAX
21272 #include <inttypes.h>
21273 #endif
21274
21275 int
21276 main ()
21277 {
21278 intmax_t x = -1; return !x;
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 if ac_fn_c_try_compile "$LINENO"; then :
21284   gt_cv_c_intmax_t=yes
21285 else
21286   gt_cv_c_intmax_t=no
21287 fi
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 fi
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
21291 $as_echo "$gt_cv_c_intmax_t" >&6; }
21292   if test $gt_cv_c_intmax_t = yes; then
21293
21294 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
21295
21296   else
21297
21298     test $ac_cv_type_long_long_int = yes \
21299       && ac_type='long long' \
21300       || ac_type='long'
21301
21302 cat >>confdefs.h <<_ACEOF
21303 #define intmax_t $ac_type
21304 _ACEOF
21305
21306   fi
21307
21308
21309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
21310 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
21311 if ${gl_cv_cc_double_expbit0+:} false; then :
21312   $as_echo_n "(cached) " >&6
21313 else
21314
21315       if test "$cross_compiling" = yes; then :
21316
21317                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h.  */
21319
21320 #if defined arm || defined __arm || defined __arm__
21321   mixed_endianness
21322 #endif
21323
21324 _ACEOF
21325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21326   $EGREP "mixed_endianness" >/dev/null 2>&1; then :
21327   gl_cv_cc_double_expbit0="unknown"
21328 else
21329
21330                                                          :
21331 if ${ac_cv_c_bigendian+:} false; then :
21332   $as_echo_n "(cached) " >&6
21333 else
21334   ac_cv_c_bigendian=unknown
21335     # See if we're dealing with a universal compiler.
21336     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h.  */
21338 #ifndef __APPLE_CC__
21339                not a universal capable compiler
21340              #endif
21341              typedef int dummy;
21342
21343 _ACEOF
21344 if ac_fn_c_try_compile "$LINENO"; then :
21345
21346         # Check for potential -arch flags.  It is not universal unless
21347         # there are at least two -arch flags with different values.
21348         ac_arch=
21349         ac_prev=
21350         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21351          if test -n "$ac_prev"; then
21352            case $ac_word in
21353              i?86 | x86_64 | ppc | ppc64)
21354                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21355                  ac_arch=$ac_word
21356                else
21357                  ac_cv_c_bigendian=universal
21358                  break
21359                fi
21360                ;;
21361            esac
21362            ac_prev=
21363          elif test "x$ac_word" = "x-arch"; then
21364            ac_prev=arch
21365          fi
21366        done
21367 fi
21368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369     if test $ac_cv_c_bigendian = unknown; then
21370       # See if sys/param.h defines the BYTE_ORDER macro.
21371       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21372 /* end confdefs.h.  */
21373 #include <sys/types.h>
21374              #include <sys/param.h>
21375
21376 int
21377 main ()
21378 {
21379 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21380                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21381                      && LITTLE_ENDIAN)
21382               bogus endian macros
21383              #endif
21384
21385   ;
21386   return 0;
21387 }
21388 _ACEOF
21389 if ac_fn_c_try_compile "$LINENO"; then :
21390   # It does; now see whether it defined to BIG_ENDIAN or not.
21391          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392 /* end confdefs.h.  */
21393 #include <sys/types.h>
21394                 #include <sys/param.h>
21395
21396 int
21397 main ()
21398 {
21399 #if BYTE_ORDER != BIG_ENDIAN
21400                  not big endian
21401                 #endif
21402
21403   ;
21404   return 0;
21405 }
21406 _ACEOF
21407 if ac_fn_c_try_compile "$LINENO"; then :
21408   ac_cv_c_bigendian=yes
21409 else
21410   ac_cv_c_bigendian=no
21411 fi
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 fi
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415     fi
21416     if test $ac_cv_c_bigendian = unknown; then
21417       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21418       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h.  */
21420 #include <limits.h>
21421
21422 int
21423 main ()
21424 {
21425 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21426               bogus endian macros
21427              #endif
21428
21429   ;
21430   return 0;
21431 }
21432 _ACEOF
21433 if ac_fn_c_try_compile "$LINENO"; then :
21434   # It does; now see whether it defined to _BIG_ENDIAN or not.
21435          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h.  */
21437 #include <limits.h>
21438
21439 int
21440 main ()
21441 {
21442 #ifndef _BIG_ENDIAN
21443                  not big endian
21444                 #endif
21445
21446   ;
21447   return 0;
21448 }
21449 _ACEOF
21450 if ac_fn_c_try_compile "$LINENO"; then :
21451   ac_cv_c_bigendian=yes
21452 else
21453   ac_cv_c_bigendian=no
21454 fi
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 fi
21457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21458     fi
21459     if test $ac_cv_c_bigendian = unknown; then
21460       # Compile a test program.
21461       if test "$cross_compiling" = yes; then :
21462   # Try to guess by grepping values from an object file.
21463          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h.  */
21465 short int ascii_mm[] =
21466                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21467                 short int ascii_ii[] =
21468                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21469                 int use_ascii (int i) {
21470                   return ascii_mm[i] + ascii_ii[i];
21471                 }
21472                 short int ebcdic_ii[] =
21473                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21474                 short int ebcdic_mm[] =
21475                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21476                 int use_ebcdic (int i) {
21477                   return ebcdic_mm[i] + ebcdic_ii[i];
21478                 }
21479                 extern int foo;
21480
21481 int
21482 main ()
21483 {
21484 return use_ascii (foo) == use_ebcdic (foo);
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 if ac_fn_c_try_compile "$LINENO"; then :
21490   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21491               ac_cv_c_bigendian=yes
21492             fi
21493             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21494               if test "$ac_cv_c_bigendian" = unknown; then
21495                 ac_cv_c_bigendian=no
21496               else
21497                 # finding both strings is unlikely to happen, but who knows?
21498                 ac_cv_c_bigendian=unknown
21499               fi
21500             fi
21501 fi
21502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21503 else
21504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h.  */
21506 $ac_includes_default
21507 int
21508 main ()
21509 {
21510
21511              /* Are we little or big endian?  From Harbison&Steele.  */
21512              union
21513              {
21514                long int l;
21515                char c[sizeof (long int)];
21516              } u;
21517              u.l = 1;
21518              return u.c[sizeof (long int) - 1] == 1;
21519
21520   ;
21521   return 0;
21522 }
21523 _ACEOF
21524 if ac_fn_c_try_run "$LINENO"; then :
21525   ac_cv_c_bigendian=no
21526 else
21527   ac_cv_c_bigendian=yes
21528 fi
21529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21530   conftest.$ac_objext conftest.beam conftest.$ac_ext
21531 fi
21532
21533     fi
21534 fi
21535 :
21536  case $ac_cv_c_bigendian in #(
21537    yes)
21538      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
21539    no)
21540      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
21541    universal)
21542
21543 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21544
21545      ;; #(
21546    *)
21547      gl_cv_cc_double_expbit0="unknown" ;;
21548  esac
21549
21550
21551 fi
21552 rm -f conftest*
21553
21554
21555 else
21556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h.  */
21558
21559 #include <float.h>
21560 #include <stddef.h>
21561 #include <stdio.h>
21562 #include <string.h>
21563 #define NWORDS \
21564   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21565 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
21566 static unsigned int ored_words[NWORDS];
21567 static unsigned int anded_words[NWORDS];
21568 static void add_to_ored_words (double x)
21569 {
21570   memory_double m;
21571   size_t i;
21572   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
21573   memset (&m, 0, sizeof (memory_double));
21574   m.value = x;
21575   for (i = 0; i < NWORDS; i++)
21576     {
21577       ored_words[i] |= m.word[i];
21578       anded_words[i] &= m.word[i];
21579     }
21580 }
21581 int main ()
21582 {
21583   size_t j;
21584   FILE *fp = fopen ("conftest.out", "w");
21585   if (fp == NULL)
21586     return 1;
21587   for (j = 0; j < NWORDS; j++)
21588     anded_words[j] = ~ (unsigned int) 0;
21589   add_to_ored_words (0.25);
21590   add_to_ored_words (0.5);
21591   add_to_ored_words (1.0);
21592   add_to_ored_words (2.0);
21593   add_to_ored_words (4.0);
21594   /* Remove bits that are common (e.g. if representation of the first mantissa
21595      bit is explicit).  */
21596   for (j = 0; j < NWORDS; j++)
21597     ored_words[j] &= ~anded_words[j];
21598   /* Now find the nonzero word.  */
21599   for (j = 0; j < NWORDS; j++)
21600     if (ored_words[j] != 0)
21601       break;
21602   if (j < NWORDS)
21603     {
21604       size_t i;
21605       for (i = j + 1; i < NWORDS; i++)
21606         if (ored_words[i] != 0)
21607           {
21608             fprintf (fp, "unknown");
21609             return (fclose (fp) != 0);
21610           }
21611       for (i = 0; ; i++)
21612         if ((ored_words[j] >> i) & 1)
21613           {
21614             fprintf (fp, "word %d bit %d", (int) j, (int) i);
21615             return (fclose (fp) != 0);
21616           }
21617     }
21618   fprintf (fp, "unknown");
21619   return (fclose (fp) != 0);
21620 }
21621
21622 _ACEOF
21623 if ac_fn_c_try_run "$LINENO"; then :
21624   gl_cv_cc_double_expbit0=`cat conftest.out`
21625 else
21626   gl_cv_cc_double_expbit0="unknown"
21627 fi
21628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21629   conftest.$ac_objext conftest.beam conftest.$ac_ext
21630 fi
21631
21632       rm -f conftest.out
21633
21634 fi
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
21636 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
21637   case "$gl_cv_cc_double_expbit0" in
21638     word*bit*)
21639       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21640       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
21641
21642 cat >>confdefs.h <<_ACEOF
21643 #define DBL_EXPBIT0_WORD $word
21644 _ACEOF
21645
21646
21647 cat >>confdefs.h <<_ACEOF
21648 #define DBL_EXPBIT0_BIT $bit
21649 _ACEOF
21650
21651       ;;
21652   esac
21653
21654
21655
21656
21657
21658
21659   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
21660 do :
21661   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21664   cat >>confdefs.h <<_ACEOF
21665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21666 _ACEOF
21667
21668 fi
21669 done
21670
21671       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
21672 "
21673 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
21674   ac_have_decl=1
21675 else
21676   ac_have_decl=0
21677 fi
21678
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_DECL__SNPRINTF $ac_have_decl
21681 _ACEOF
21682
21683
21684
21685   case "$gl_cv_func_snprintf_retval_c99" in
21686     *yes)
21687
21688 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
21689
21690       ;;
21691   esac
21692
21693
21694   GNULIB_BTOWC=0;
21695   GNULIB_WCTOB=0;
21696   GNULIB_MBSINIT=0;
21697   GNULIB_MBRTOWC=0;
21698   GNULIB_MBRLEN=0;
21699   GNULIB_MBSRTOWCS=0;
21700   GNULIB_MBSNRTOWCS=0;
21701   GNULIB_WCRTOMB=0;
21702   GNULIB_WCSRTOMBS=0;
21703   GNULIB_WCSNRTOMBS=0;
21704   GNULIB_WCWIDTH=0;
21705   GNULIB_WMEMCHR=0;
21706   GNULIB_WMEMCMP=0;
21707   GNULIB_WMEMCPY=0;
21708   GNULIB_WMEMMOVE=0;
21709   GNULIB_WMEMSET=0;
21710   GNULIB_WCSLEN=0;
21711   GNULIB_WCSNLEN=0;
21712   GNULIB_WCSCPY=0;
21713   GNULIB_WCPCPY=0;
21714   GNULIB_WCSNCPY=0;
21715   GNULIB_WCPNCPY=0;
21716   GNULIB_WCSCAT=0;
21717   GNULIB_WCSNCAT=0;
21718   GNULIB_WCSCMP=0;
21719   GNULIB_WCSNCMP=0;
21720   GNULIB_WCSCASECMP=0;
21721   GNULIB_WCSNCASECMP=0;
21722   GNULIB_WCSCOLL=0;
21723   GNULIB_WCSXFRM=0;
21724   GNULIB_WCSDUP=0;
21725   GNULIB_WCSCHR=0;
21726   GNULIB_WCSRCHR=0;
21727   GNULIB_WCSCSPN=0;
21728   GNULIB_WCSSPN=0;
21729   GNULIB_WCSPBRK=0;
21730   GNULIB_WCSSTR=0;
21731   GNULIB_WCSTOK=0;
21732   GNULIB_WCSWIDTH=0;
21733     HAVE_BTOWC=1;
21734   HAVE_MBSINIT=1;
21735   HAVE_MBRTOWC=1;
21736   HAVE_MBRLEN=1;
21737   HAVE_MBSRTOWCS=1;
21738   HAVE_MBSNRTOWCS=1;
21739   HAVE_WCRTOMB=1;
21740   HAVE_WCSRTOMBS=1;
21741   HAVE_WCSNRTOMBS=1;
21742   HAVE_WMEMCHR=1;
21743   HAVE_WMEMCMP=1;
21744   HAVE_WMEMCPY=1;
21745   HAVE_WMEMMOVE=1;
21746   HAVE_WMEMSET=1;
21747   HAVE_WCSLEN=1;
21748   HAVE_WCSNLEN=1;
21749   HAVE_WCSCPY=1;
21750   HAVE_WCPCPY=1;
21751   HAVE_WCSNCPY=1;
21752   HAVE_WCPNCPY=1;
21753   HAVE_WCSCAT=1;
21754   HAVE_WCSNCAT=1;
21755   HAVE_WCSCMP=1;
21756   HAVE_WCSNCMP=1;
21757   HAVE_WCSCASECMP=1;
21758   HAVE_WCSNCASECMP=1;
21759   HAVE_WCSCOLL=1;
21760   HAVE_WCSXFRM=1;
21761   HAVE_WCSDUP=1;
21762   HAVE_WCSCHR=1;
21763   HAVE_WCSRCHR=1;
21764   HAVE_WCSCSPN=1;
21765   HAVE_WCSSPN=1;
21766   HAVE_WCSPBRK=1;
21767   HAVE_WCSSTR=1;
21768   HAVE_WCSTOK=1;
21769   HAVE_WCSWIDTH=1;
21770   HAVE_DECL_WCTOB=1;
21771   HAVE_DECL_WCWIDTH=1;
21772   REPLACE_MBSTATE_T=0;
21773   REPLACE_BTOWC=0;
21774   REPLACE_WCTOB=0;
21775   REPLACE_MBSINIT=0;
21776   REPLACE_MBRTOWC=0;
21777   REPLACE_MBRLEN=0;
21778   REPLACE_MBSRTOWCS=0;
21779   REPLACE_MBSNRTOWCS=0;
21780   REPLACE_WCRTOMB=0;
21781   REPLACE_WCSRTOMBS=0;
21782   REPLACE_WCSNRTOMBS=0;
21783   REPLACE_WCWIDTH=0;
21784   REPLACE_WCSWIDTH=0;
21785
21786
21787             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
21788 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
21789 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
21790   $as_echo_n "(cached) " >&6
21791 else
21792   gl_cv_header_wchar_h_correct_inline=yes
21793      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h.  */
21795
21796        #define wcstod renamed_wcstod
21797 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21798    <wchar.h>.
21799    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21800    included before <wchar.h>.  */
21801 #include <stddef.h>
21802 #include <stdio.h>
21803 #include <time.h>
21804 #include <wchar.h>
21805 extern int zero (void);
21806 int main () { return zero(); }
21807
21808 _ACEOF
21809      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21810   (eval $ac_compile) 2>&5
21811   ac_status=$?
21812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21813   test $ac_status = 0; }; then
21814        mv conftest.$ac_objext conftest1.$ac_objext
21815        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h.  */
21817
21818          #define wcstod renamed_wcstod
21819 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21820    <wchar.h>.
21821    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21822    included before <wchar.h>.  */
21823 #include <stddef.h>
21824 #include <stdio.h>
21825 #include <time.h>
21826 #include <wchar.h>
21827 int zero (void) { return 0; }
21828
21829 _ACEOF
21830        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21831   (eval $ac_compile) 2>&5
21832   ac_status=$?
21833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834   test $ac_status = 0; }; then
21835          mv conftest.$ac_objext conftest2.$ac_objext
21836          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
21837            :
21838          else
21839            gl_cv_header_wchar_h_correct_inline=no
21840          fi
21841        fi
21842      fi
21843      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
21844
21845 fi
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21847 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21848   if test $gl_cv_header_wchar_h_correct_inline = no; then
21849     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21850 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21851 C99 mode. You have four options:
21852   - Add the flag -fgnu89-inline to CC and reconfigure, or
21853   - Fix your include files, using parts of
21854     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21855   - Use a gcc version older than 4.3, or
21856   - Don't use the flags -std=c99 or -std=gnu99.
21857 Configuration aborted." "$LINENO" 5
21858   fi
21859
21860
21861    if true; then
21862   GL_COND_LIBTOOL_TRUE=
21863   GL_COND_LIBTOOL_FALSE='#'
21864 else
21865   GL_COND_LIBTOOL_TRUE='#'
21866   GL_COND_LIBTOOL_FALSE=
21867 fi
21868
21869   gl_cond_libtool=true
21870   gl_m4_base='gnulib/m4'
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880   gl_source_base='gnulib/lib'
21881
21882
21883   if test $ac_cv_func_alloca_works = no; then
21884     :
21885   fi
21886
21887   # Define an additional variable used in the Makefile substitution.
21888   if test $ac_cv_working_alloca_h = yes; then
21889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21890 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21891 if ${gl_cv_rpl_alloca+:} false; then :
21892   $as_echo_n "(cached) " >&6
21893 else
21894
21895       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h.  */
21897
21898 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21899         Need own alloca
21900 #endif
21901
21902 _ACEOF
21903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21904   $EGREP "Need own alloca" >/dev/null 2>&1; then :
21905   gl_cv_rpl_alloca=yes
21906 else
21907   gl_cv_rpl_alloca=no
21908 fi
21909 rm -f conftest*
21910
21911
21912 fi
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21914 $as_echo "$gl_cv_rpl_alloca" >&6; }
21915     if test $gl_cv_rpl_alloca = yes; then
21916
21917 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21918
21919       ALLOCA_H=alloca.h
21920     else
21921                   ALLOCA_H=
21922     fi
21923   else
21924     ALLOCA_H=alloca.h
21925   fi
21926
21927    if test -n "$ALLOCA_H"; then
21928   GL_GENERATE_ALLOCA_H_TRUE=
21929   GL_GENERATE_ALLOCA_H_FALSE='#'
21930 else
21931   GL_GENERATE_ALLOCA_H_TRUE='#'
21932   GL_GENERATE_ALLOCA_H_FALSE=
21933 fi
21934
21935
21936
21937
21938
21939
21940
21941 cat >>confdefs.h <<_ACEOF
21942 #define GNULIB_DIRNAME 1
21943 _ACEOF
21944
21945
21946
21947
21948
21949
21950
21951
21952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21953 $as_echo_n "checking whether // is distinct from /... " >&6; }
21954 if ${gl_cv_double_slash_root+:} false; then :
21955   $as_echo_n "(cached) " >&6
21956 else
21957    if test x"$cross_compiling" = xyes ; then
21958         # When cross-compiling, there is no way to tell whether // is special
21959         # short of a list of hosts.  However, the only known hosts to date
21960         # that have a distinct // are Apollo DomainOS (too old to port to),
21961         # Cygwin, and z/OS.  If anyone knows of another system for which // has
21962         # special semantics and is distinct from /, please report it to
21963         # <bug-gnulib@gnu.org>.
21964         case $host in
21965           *-cygwin | i370-ibm-openedition)
21966             gl_cv_double_slash_root=yes ;;
21967           *)
21968             # Be optimistic and assume that / and // are the same when we
21969             # don't know.
21970             gl_cv_double_slash_root='unknown, assuming no' ;;
21971         esac
21972       else
21973         set x `ls -di / // 2>/dev/null`
21974         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
21975           gl_cv_double_slash_root=no
21976         else
21977           gl_cv_double_slash_root=yes
21978         fi
21979       fi
21980 fi
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21982 $as_echo "$gl_cv_double_slash_root" >&6; }
21983   if test "$gl_cv_double_slash_root" = yes; then
21984
21985 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
21986
21987   fi
21988
21989
21990
21991
21992
21993
21994
21995           GNULIB_ENVIRON=1
21996
21997
21998
21999
22000
22001 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
22002
22003
22004
22005
22006
22007       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
22008 $as_echo_n "checking for error_at_line... " >&6; }
22009 if ${ac_cv_lib_error_at_line+:} false; then :
22010   $as_echo_n "(cached) " >&6
22011 else
22012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013 /* end confdefs.h.  */
22014 #include <error.h>
22015 int
22016 main ()
22017 {
22018 error_at_line (0, 0, "", 0, "an error occurred");
22019   ;
22020   return 0;
22021 }
22022 _ACEOF
22023 if ac_fn_c_try_link "$LINENO"; then :
22024   ac_cv_lib_error_at_line=yes
22025 else
22026   ac_cv_lib_error_at_line=no
22027 fi
22028 rm -f core conftest.err conftest.$ac_objext \
22029     conftest$ac_exeext conftest.$ac_ext
22030 fi
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
22032 $as_echo "$ac_cv_lib_error_at_line" >&6; }
22033
22034   if test $ac_cv_lib_error_at_line = no; then
22035
22036
22037
22038
22039
22040
22041
22042
22043   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
22044
22045
22046
22047   :
22048
22049   fi
22050
22051
22052   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
22053
22054
22055
22056   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070      if test $gl_cv_have_include_next = yes; then
22071        gl_cv_next_fcntl_h='<'fcntl.h'>'
22072      else
22073        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22074 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22075 if ${gl_cv_next_fcntl_h+:} false; then :
22076   $as_echo_n "(cached) " >&6
22077 else
22078
22079
22080
22081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h.  */
22083 #include <fcntl.h>
22084 _ACEOF
22085                 case "$host_os" in
22086     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22087     *)    gl_absname_cpp="$ac_cpp" ;;
22088   esac
22089
22090   case "$host_os" in
22091     mingw*)
22092                                           gl_dirsep_regex='[/\\]'
22093       ;;
22094     *)
22095       gl_dirsep_regex='\/'
22096       ;;
22097   esac
22098       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22099   gl_header_literal_regex=`echo 'fcntl.h' \
22100                            | sed -e "$gl_make_literal_regex_sed"`
22101   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22102       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22103       s|^/[^/]|//&|
22104       p
22105       q
22106     }'
22107
22108         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22109   sed -n "$gl_absolute_header_sed"`
22110
22111            gl_header=$gl_cv_absolute_fcntl_h
22112            gl_cv_next_fcntl_h='"'$gl_header'"'
22113
22114
22115 fi
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22117 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22118      fi
22119      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22120
22121      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22122        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22123        gl_next_as_first_directive='<'fcntl.h'>'
22124      else
22125        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22126        gl_next_as_first_directive=$gl_cv_next_fcntl_h
22127      fi
22128      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139     for gl_func in fcntl openat; do
22140     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22142 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22143 if eval \${$as_gl_Symbol+:} false; then :
22144   $as_echo_n "(cached) " >&6
22145 else
22146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22147 /* end confdefs.h.  */
22148 #include <fcntl.h>
22149
22150 int
22151 main ()
22152 {
22153 #undef $gl_func
22154   (void) $gl_func;
22155   ;
22156   return 0;
22157 }
22158 _ACEOF
22159 if ac_fn_c_try_compile "$LINENO"; then :
22160   eval "$as_gl_Symbol=yes"
22161 else
22162   eval "$as_gl_Symbol=no"
22163 fi
22164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 fi
22166 eval ac_res=\$$as_gl_Symbol
22167                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22168 $as_echo "$ac_res" >&6; }
22169     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22170   cat >>confdefs.h <<_ACEOF
22171 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22172 _ACEOF
22173
22174                      eval ac_cv_have_decl_$gl_func=yes
22175 fi
22176       done
22177
22178
22179
22180
22181
22182   FLOAT_H=
22183   REPLACE_FLOAT_LDBL=0
22184   case "$host_os" in
22185     aix* | beos* | openbsd* | mirbsd* | irix*)
22186       FLOAT_H=float.h
22187       ;;
22188     freebsd*)
22189       case "$host_cpu" in
22190         i[34567]86 )
22191           FLOAT_H=float.h
22192           ;;
22193         x86_64 )
22194           # On x86_64 systems, the C compiler may still be generating
22195           # 32-bit code.
22196           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h.  */
22198 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
22199              yes
22200              #endif
22201 _ACEOF
22202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22203   $EGREP "yes" >/dev/null 2>&1; then :
22204
22205 else
22206   FLOAT_H=float.h
22207 fi
22208 rm -f conftest*
22209
22210           ;;
22211       esac
22212       ;;
22213     linux*)
22214       case "$host_cpu" in
22215         powerpc*)
22216           FLOAT_H=float.h
22217           ;;
22218       esac
22219       ;;
22220   esac
22221   case "$host_os" in
22222     aix* | freebsd* | linux*)
22223       if test -n "$FLOAT_H"; then
22224         REPLACE_FLOAT_LDBL=1
22225       fi
22226       ;;
22227   esac
22228
22229     REPLACE_ITOLD=0
22230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
22231 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
22232 if ${gl_cv_func_itold_works+:} false; then :
22233   $as_echo_n "(cached) " >&6
22234 else
22235
22236       if test "$cross_compiling" = yes; then :
22237   case "$host" in
22238            sparc*-*-linux*)
22239              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240 /* end confdefs.h.  */
22241 #if defined __LP64__ || defined __arch64__
22242                 yes
22243                 #endif
22244 _ACEOF
22245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22246   $EGREP "yes" >/dev/null 2>&1; then :
22247   gl_cv_func_itold_works="guessing no"
22248 else
22249   gl_cv_func_itold_works="guessing yes"
22250 fi
22251 rm -f conftest*
22252
22253              ;;
22254            *) gl_cv_func_itold_works="guessing yes" ;;
22255          esac
22256
22257 else
22258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h.  */
22260
22261 int i = -1;
22262 volatile long double ld;
22263 int main ()
22264 {
22265   ld += i * 1.0L;
22266   if (ld > 0)
22267     return 1;
22268   return 0;
22269 }
22270 _ACEOF
22271 if ac_fn_c_try_run "$LINENO"; then :
22272   gl_cv_func_itold_works=yes
22273 else
22274   gl_cv_func_itold_works=no
22275 fi
22276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22277   conftest.$ac_objext conftest.beam conftest.$ac_ext
22278 fi
22279
22280
22281 fi
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
22283 $as_echo "$gl_cv_func_itold_works" >&6; }
22284   case "$gl_cv_func_itold_works" in
22285     *no)
22286       REPLACE_ITOLD=1
22287                   FLOAT_H=float.h
22288       ;;
22289   esac
22290
22291   if test -n "$FLOAT_H"; then
22292
22293
22294
22295
22296
22297
22298
22299
22300      if test $gl_cv_have_include_next = yes; then
22301        gl_cv_next_float_h='<'float.h'>'
22302      else
22303        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
22304 $as_echo_n "checking absolute name of <float.h>... " >&6; }
22305 if ${gl_cv_next_float_h+:} false; then :
22306   $as_echo_n "(cached) " >&6
22307 else
22308
22309
22310
22311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22312 /* end confdefs.h.  */
22313 #include <float.h>
22314 _ACEOF
22315                 case "$host_os" in
22316     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22317     *)    gl_absname_cpp="$ac_cpp" ;;
22318   esac
22319
22320   case "$host_os" in
22321     mingw*)
22322                                           gl_dirsep_regex='[/\\]'
22323       ;;
22324     *)
22325       gl_dirsep_regex='\/'
22326       ;;
22327   esac
22328       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22329   gl_header_literal_regex=`echo 'float.h' \
22330                            | sed -e "$gl_make_literal_regex_sed"`
22331   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22332       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22333       s|^/[^/]|//&|
22334       p
22335       q
22336     }'
22337
22338         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22339   sed -n "$gl_absolute_header_sed"`
22340
22341            gl_header=$gl_cv_absolute_float_h
22342            gl_cv_next_float_h='"'$gl_header'"'
22343
22344
22345 fi
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
22347 $as_echo "$gl_cv_next_float_h" >&6; }
22348      fi
22349      NEXT_FLOAT_H=$gl_cv_next_float_h
22350
22351      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22352        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22353        gl_next_as_first_directive='<'float.h'>'
22354      else
22355        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22356        gl_next_as_first_directive=$gl_cv_next_float_h
22357      fi
22358      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
22359
22360
22361
22362
22363   fi
22364
22365    if test -n "$FLOAT_H"; then
22366   GL_GENERATE_FLOAT_H_TRUE=
22367   GL_GENERATE_FLOAT_H_FALSE='#'
22368 else
22369   GL_GENERATE_FLOAT_H_TRUE='#'
22370   GL_GENERATE_FLOAT_H_FALSE=
22371 fi
22372
22373
22374
22375   if test $REPLACE_FLOAT_LDBL = 1; then
22376
22377
22378
22379
22380
22381
22382
22383
22384   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
22385
22386   fi
22387   if test $REPLACE_ITOLD = 1; then
22388
22389
22390
22391
22392
22393
22394
22395
22396   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
22397
22398   fi
22399
22400
22401
22402
22403
22404
22405
22406   :
22407
22408
22409
22410
22411
22412
22413   gl_gettimeofday_timezone=void
22414   if test $ac_cv_func_gettimeofday != yes; then
22415     HAVE_GETTIMEOFDAY=0
22416   else
22417
22418
22419
22420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22421 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22422 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
22423   $as_echo_n "(cached) " >&6
22424 else
22425   if test "$cross_compiling" = yes; then :
22426   # When cross-compiling:
22427       case "$host_os" in
22428                 # Guess all is fine on glibc systems.
22429         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22430                 # If we don't know, assume the worst.
22431         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22432       esac
22433
22434 else
22435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22436 /* end confdefs.h.  */
22437 #include <string.h>
22438           #include <sys/time.h>
22439           #include <time.h>
22440           #include <stdlib.h>
22441
22442 int
22443 main ()
22444 {
22445
22446           time_t t = 0;
22447           struct tm *lt;
22448           struct tm saved_lt;
22449           struct timeval tv;
22450           lt = localtime (&t);
22451           saved_lt = *lt;
22452           gettimeofday (&tv, NULL);
22453           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22454
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 if ac_fn_c_try_run "$LINENO"; then :
22460   gl_cv_func_gettimeofday_clobber=no
22461 else
22462   gl_cv_func_gettimeofday_clobber=yes
22463 fi
22464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22465   conftest.$ac_objext conftest.beam conftest.$ac_ext
22466 fi
22467
22468 fi
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22470 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22471
22472  case "$gl_cv_func_gettimeofday_clobber" in
22473    *yes)
22474      REPLACE_GETTIMEOFDAY=1
22475
22476   REPLACE_GMTIME=1
22477   REPLACE_LOCALTIME=1
22478
22479
22480 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22481
22482      ;;
22483  esac
22484
22485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22486 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22487 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
22488   $as_echo_n "(cached) " >&6
22489 else
22490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h.  */
22492 #include <sys/time.h>
22493               struct timeval c;
22494               int gettimeofday (struct timeval *restrict, void *restrict);
22495
22496 int
22497 main ()
22498 {
22499 /* glibc uses struct timezone * rather than the POSIX void *
22500                  if _GNU_SOURCE is defined.  However, since the only portable
22501                  use of gettimeofday uses NULL as the second parameter, and
22502                  since the glibc definition is actually more typesafe, it is
22503                  not worth wrapping this to get a compliant signature.  */
22504               int (*f) (struct timeval *restrict, void *restrict)
22505                 = gettimeofday;
22506               int x = f (&c, 0);
22507               return !(x | c.tv_sec | c.tv_usec);
22508
22509   ;
22510   return 0;
22511 }
22512 _ACEOF
22513 if ac_fn_c_try_compile "$LINENO"; then :
22514   gl_cv_func_gettimeofday_posix_signature=yes
22515 else
22516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22517 /* end confdefs.h.  */
22518 #include <sys/time.h>
22519 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22520
22521 int
22522 main ()
22523 {
22524
22525   ;
22526   return 0;
22527 }
22528 _ACEOF
22529 if ac_fn_c_try_compile "$LINENO"; then :
22530   gl_cv_func_gettimeofday_posix_signature=almost
22531 else
22532   gl_cv_func_gettimeofday_posix_signature=no
22533 fi
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 fi
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22537 fi
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22539 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22540     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22541       gl_gettimeofday_timezone='struct timezone'
22542     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22543       REPLACE_GETTIMEOFDAY=1
22544     fi
22545         if test $REPLACE_STRUCT_TIMEVAL = 1; then
22546       REPLACE_GETTIMEOFDAY=1
22547     fi
22548
22549   fi
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22553 _ACEOF
22554
22555
22556   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22557
22558
22559
22560
22561
22562
22563
22564
22565   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22566
22567
22568   for ac_header in sys/timeb.h
22569 do :
22570   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22571 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
22572   cat >>confdefs.h <<_ACEOF
22573 #define HAVE_SYS_TIMEB_H 1
22574 _ACEOF
22575
22576 fi
22577
22578 done
22579
22580   for ac_func in _ftime
22581 do :
22582   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22583 if test "x$ac_cv_func__ftime" = xyes; then :
22584   cat >>confdefs.h <<_ACEOF
22585 #define HAVE__FTIME 1
22586 _ACEOF
22587
22588 fi
22589 done
22590
22591
22592   fi
22593
22594
22595
22596
22597
22598           GNULIB_GETTIMEOFDAY=1
22599
22600
22601
22602
22603
22604 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
22605
22606
22607
22608
22609
22610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
22611 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
22612 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
22613   $as_echo_n "(cached) " >&6
22614 else
22615   gl_cv_prog_c_ignore_unused_libraries=none
22616      gl_saved_ldflags=$LDFLAGS
22617      gl_saved_libs=$LIBS
22618      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
22619      # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
22620      LIBS="$LIBS -lm"
22621      # Use long option sequences like '-z ignore' to test for the feature,
22622      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
22623      # GCC + binutils likes '-Wl,--as-needed'.
22624      # GCC + Solaris ld likes '-Wl,-z,ignore'.
22625      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
22626      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
22627      # native cc issues annoying warnings and then ignores it,
22628      # which would cause us to incorrectly conclude that it worked.
22629      for gl_flags in  '-Wl,--as-needed' \
22630   '-Wl,-z,ignore' \
22631   '-z ignore'
22632
22633      do
22634        LDFLAGS="$gl_flags $LDFLAGS"
22635        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22636 /* end confdefs.h.  */
22637
22638 int
22639 main ()
22640 {
22641
22642   ;
22643   return 0;
22644 }
22645 _ACEOF
22646 if ac_fn_c_try_link "$LINENO"; then :
22647   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
22648 fi
22649 rm -f core conftest.err conftest.$ac_objext \
22650     conftest$ac_exeext conftest.$ac_ext
22651        LDFLAGS=$gl_saved_ldflags
22652        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
22653          break
22654      done
22655      LIBS=$gl_saved_libs
22656
22657 fi
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
22659 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
22660   IGNORE_UNUSED_LIBRARIES_CFLAGS=
22661   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
22662     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
22663   fi
22664
22665
22666
22667
22668   if test "$gl_threads_api" = posix; then
22669     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
22670     # pthread_rwlock_* functions.
22671     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
22672 "
22673 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
22674
22675 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
22676
22677 fi
22678
22679     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22680     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22681 /* end confdefs.h.  */
22682
22683       #include <pthread.h>
22684 int
22685 main ()
22686 {
22687
22688 #if __FreeBSD__ == 4
22689 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22690 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
22691        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
22692 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
22693 #else
22694 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22695 return !x;
22696 #endif
22697
22698   ;
22699   return 0;
22700 }
22701 _ACEOF
22702 if ac_fn_c_try_compile "$LINENO"; then :
22703
22704 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
22705
22706 fi
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708   fi
22709   :
22710
22711
22712
22713 cat >>confdefs.h <<_ACEOF
22714 #define GNULIB_LOCK 1
22715 _ACEOF
22716
22717
22718
22719
22720
22721   :
22722
22723
22724
22725
22726
22727   if test $ac_cv_func_lstat = yes; then
22728
22729     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22730       *no)
22731         REPLACE_LSTAT=1
22732         ;;
22733     esac
22734   else
22735     HAVE_LSTAT=0
22736   fi
22737
22738   if test $REPLACE_LSTAT = 1; then
22739
22740
22741
22742
22743
22744
22745
22746
22747   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22748
22749     :
22750   fi
22751
22752
22753
22754
22755
22756           GNULIB_LSTAT=1
22757
22758
22759
22760
22761
22762 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22763
22764
22765
22766
22767
22768
22769   if test $gl_cv_func_malloc_posix = yes; then
22770
22771 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22772
22773   else
22774     REPLACE_MALLOC=1
22775   fi
22776
22777   if test $REPLACE_MALLOC = 1; then
22778
22779
22780
22781
22782
22783
22784
22785
22786   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
22787
22788   fi
22789
22790
22791
22792
22793
22794           GNULIB_MALLOC_POSIX=1
22795
22796
22797
22798
22799
22800 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22801
22802
22803
22804
22805
22806
22807
22808
22809   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
22810
22811
22812
22813
22814
22815
22816
22817
22818   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
22819
22820
22821   for ac_header in bp-sym.h
22822 do :
22823   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
22824 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
22825   cat >>confdefs.h <<_ACEOF
22826 #define HAVE_BP_SYM_H 1
22827 _ACEOF
22828
22829 fi
22830
22831 done
22832
22833
22834   fi
22835
22836
22837
22838
22839
22840           GNULIB_MEMCHR=1
22841
22842
22843
22844
22845
22846 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22847
22848
22849
22850
22851
22852   for ac_func in mkdtemp
22853 do :
22854   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
22855 if test "x$ac_cv_func_mkdtemp" = xyes; then :
22856   cat >>confdefs.h <<_ACEOF
22857 #define HAVE_MKDTEMP 1
22858 _ACEOF
22859
22860 fi
22861 done
22862
22863   if test $ac_cv_func_mkdtemp = no; then
22864     HAVE_MKDTEMP=0
22865   fi
22866
22867   if test $HAVE_MKDTEMP = 0; then
22868
22869
22870
22871
22872
22873
22874
22875
22876   gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
22877
22878     :
22879
22880   fi
22881
22882
22883
22884
22885
22886           GNULIB_MKDTEMP=1
22887
22888
22889
22890
22891
22892 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
22893
22894
22895
22896
22897
22898   :
22899
22900
22901
22902
22903
22904   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22905     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22906
22907 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22908
22909   else
22910     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22911   fi
22912
22913
22914   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22915
22916
22917
22918
22919
22920
22921
22922
22923   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
22924
22925   fi
22926
22927
22928
22929   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22930
22931
22932
22933
22934
22935
22936
22937
22938   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22939
22940   fi
22941
22942
22943
22944   :
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955   for ac_func in raise
22956 do :
22957   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
22958 if test "x$ac_cv_func_raise" = xyes; then :
22959   cat >>confdefs.h <<_ACEOF
22960 #define HAVE_RAISE 1
22961 _ACEOF
22962
22963 fi
22964 done
22965
22966   if test $ac_cv_func_raise = no; then
22967     HAVE_RAISE=0
22968   else
22969     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22970       REPLACE_RAISE=1
22971     fi
22972
22973
22974
22975
22976   if test $gl_cv_type_sigset_t = yes; then
22977     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22978 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22979   gl_cv_func_sigprocmask=1
22980 fi
22981
22982   fi
22983   if test -z "$gl_cv_func_sigprocmask"; then
22984     HAVE_POSIX_SIGNALBLOCKING=0
22985   fi
22986
22987       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22988         :
22989       fi
22990
22991   fi
22992
22993   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
22994
22995
22996
22997
22998
22999
23000
23001
23002   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
23003
23004     :
23005   fi
23006
23007
23008
23009
23010
23011           GNULIB_RAISE=1
23012
23013
23014
23015
23016
23017 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
23018
23019
23020
23021
23022
23023
23024   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23025     REPLACE_READ=1
23026   fi
23027
23028
23029   if test $REPLACE_READ = 1; then
23030
23031
23032
23033
23034
23035
23036
23037
23038   gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
23039
23040     :
23041   fi
23042
23043
23044
23045
23046
23047           GNULIB_READ=1
23048
23049
23050
23051
23052
23053 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070   :
23071
23072
23073
23074
23075
23076   if test $ac_cv_func_secure_getenv = no; then
23077     HAVE_SECURE_GETENV=0
23078   fi
23079
23080   if test $HAVE_SECURE_GETENV = 0; then
23081
23082
23083
23084
23085
23086
23087
23088
23089   gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
23090
23091
23092   for ac_func in __secure_getenv
23093 do :
23094   ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
23095 if test "x$ac_cv_func___secure_getenv" = xyes; then :
23096   cat >>confdefs.h <<_ACEOF
23097 #define HAVE___SECURE_GETENV 1
23098 _ACEOF
23099
23100 fi
23101 done
23102
23103   if test $ac_cv_func___secure_getenv = no; then
23104     for ac_func in issetugid
23105 do :
23106   ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
23107 if test "x$ac_cv_func_issetugid" = xyes; then :
23108   cat >>confdefs.h <<_ACEOF
23109 #define HAVE_ISSETUGID 1
23110 _ACEOF
23111
23112 fi
23113 done
23114
23115   fi
23116
23117   fi
23118
23119
23120
23121
23122
23123           GNULIB_SECURE_GETENV=1
23124
23125
23126
23127
23128
23129 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
23130
23131
23132
23133
23134
23135      if test $ac_cv_func_setenv = no; then
23136     HAVE_SETENV=0
23137   else
23138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
23139 $as_echo_n "checking whether setenv validates arguments... " >&6; }
23140 if ${gl_cv_func_setenv_works+:} false; then :
23141   $as_echo_n "(cached) " >&6
23142 else
23143   if test "$cross_compiling" = yes; then :
23144   case "$host_os" in
23145                  # Guess yes on glibc systems.
23146          *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
23147                  # If we don't know, assume the worst.
23148          *)      gl_cv_func_setenv_works="guessing no" ;;
23149        esac
23150
23151 else
23152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h.  */
23154
23155        #include <stdlib.h>
23156        #include <errno.h>
23157        #include <string.h>
23158
23159 int
23160 main ()
23161 {
23162
23163        int result = 0;
23164        {
23165          if (setenv ("", "", 0) != -1)
23166            result |= 1;
23167          else if (errno != EINVAL)
23168            result |= 2;
23169        }
23170        {
23171          if (setenv ("a", "=", 1) != 0)
23172            result |= 4;
23173          else if (strcmp (getenv ("a"), "=") != 0)
23174            result |= 8;
23175        }
23176        return result;
23177
23178   ;
23179   return 0;
23180 }
23181 _ACEOF
23182 if ac_fn_c_try_run "$LINENO"; then :
23183   gl_cv_func_setenv_works=yes
23184 else
23185   gl_cv_func_setenv_works=no
23186 fi
23187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23188   conftest.$ac_objext conftest.beam conftest.$ac_ext
23189 fi
23190
23191 fi
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
23193 $as_echo "$gl_cv_func_setenv_works" >&6; }
23194     case "$gl_cv_func_setenv_works" in
23195       *yes) ;;
23196       *)
23197         REPLACE_SETENV=1
23198         ;;
23199     esac
23200   fi
23201
23202   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
23203
23204
23205
23206
23207
23208
23209
23210
23211   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
23212
23213   fi
23214
23215
23216
23217
23218
23219           GNULIB_SETENV=1
23220
23221
23222
23223
23224
23225 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
23226
23227
23228
23229
23230
23231
23232   :
23233
23234
23235
23236
23237
23238   if test $ac_cv_func_sigaction = yes; then
23239     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
23240 "
23241 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
23242
23243 cat >>confdefs.h <<_ACEOF
23244 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
23245 _ACEOF
23246
23247
23248 fi
23249
23250     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
23251       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
23252     fi
23253   else
23254     HAVE_SIGACTION=0
23255   fi
23256
23257   if test $HAVE_SIGACTION = 0; then
23258
23259
23260
23261
23262
23263
23264
23265
23266   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
23267
23268
23269
23270
23271
23272
23273
23274   :
23275
23276
23277
23278
23279
23280
23281
23282
23283   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
23284 #include <signal.h>
23285
23286 "
23287 if test "x$ac_cv_type_siginfo_t" = xyes; then :
23288
23289 cat >>confdefs.h <<_ACEOF
23290 #define HAVE_SIGINFO_T 1
23291 _ACEOF
23292
23293
23294 fi
23295
23296   if test $ac_cv_type_siginfo_t = no; then
23297     HAVE_SIGINFO_T=0
23298   fi
23299
23300   fi
23301
23302
23303
23304
23305
23306           GNULIB_SIGACTION=1
23307
23308
23309
23310
23311
23312 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327      if test $gl_cv_have_include_next = yes; then
23328        gl_cv_next_signal_h='<'signal.h'>'
23329      else
23330        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23331 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23332 if ${gl_cv_next_signal_h+:} false; then :
23333   $as_echo_n "(cached) " >&6
23334 else
23335
23336
23337
23338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h.  */
23340 #include <signal.h>
23341 _ACEOF
23342                 case "$host_os" in
23343     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23344     *)    gl_absname_cpp="$ac_cpp" ;;
23345   esac
23346
23347   case "$host_os" in
23348     mingw*)
23349                                           gl_dirsep_regex='[/\\]'
23350       ;;
23351     *)
23352       gl_dirsep_regex='\/'
23353       ;;
23354   esac
23355       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23356   gl_header_literal_regex=`echo 'signal.h' \
23357                            | sed -e "$gl_make_literal_regex_sed"`
23358   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23359       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23360       s|^/[^/]|//&|
23361       p
23362       q
23363     }'
23364
23365         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23366   sed -n "$gl_absolute_header_sed"`
23367
23368            gl_header=$gl_cv_absolute_signal_h
23369            gl_cv_next_signal_h='"'$gl_header'"'
23370
23371
23372 fi
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23374 $as_echo "$gl_cv_next_signal_h" >&6; }
23375      fi
23376      NEXT_SIGNAL_H=$gl_cv_next_signal_h
23377
23378      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23379        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23380        gl_next_as_first_directive='<'signal.h'>'
23381      else
23382        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23383        gl_next_as_first_directive=$gl_cv_next_signal_h
23384      fi
23385      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23386
23387
23388
23389
23390
23391 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23392 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
23393   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23394 #include <signal.h>
23395
23396 "
23397 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
23398
23399 else
23400   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23401 fi
23402
23403
23404
23405
23406
23407
23408
23409   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23410 #include <signal.h>
23411
23412 "
23413 if test "x$ac_cv_type_sighandler_t" = xyes; then :
23414
23415 else
23416   HAVE_SIGHANDLER_T=0
23417 fi
23418
23419
23420
23421     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
23422     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23424 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23425 if eval \${$as_gl_Symbol+:} false; then :
23426   $as_echo_n "(cached) " >&6
23427 else
23428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23429 /* end confdefs.h.  */
23430 #include <signal.h>
23431
23432 int
23433 main ()
23434 {
23435 #undef $gl_func
23436   (void) $gl_func;
23437   ;
23438   return 0;
23439 }
23440 _ACEOF
23441 if ac_fn_c_try_compile "$LINENO"; then :
23442   eval "$as_gl_Symbol=yes"
23443 else
23444   eval "$as_gl_Symbol=no"
23445 fi
23446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23447 fi
23448 eval ac_res=\$$as_gl_Symbol
23449                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23450 $as_echo "$ac_res" >&6; }
23451     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23452   cat >>confdefs.h <<_ACEOF
23453 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23454 _ACEOF
23455
23456                      eval ac_cv_have_decl_$gl_func=yes
23457 fi
23458       done
23459
23460
23461
23462
23463
23464   if test $gl_cv_type_sigset_t = yes; then
23465     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
23466 if test "x$ac_cv_func_sigprocmask" = xyes; then :
23467   gl_cv_func_sigprocmask=1
23468 fi
23469
23470   fi
23471   if test -z "$gl_cv_func_sigprocmask"; then
23472     HAVE_POSIX_SIGNALBLOCKING=0
23473   fi
23474
23475   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
23476
23477
23478
23479
23480
23481
23482
23483
23484   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
23485
23486     :
23487   fi
23488
23489
23490
23491
23492
23493           GNULIB_SIGPROCMASK=1
23494
23495
23496
23497
23498
23499 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
23500
23501
23502
23503
23504   for ac_header in stdint.h
23505 do :
23506   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23507 if test "x$ac_cv_header_stdint_h" = xyes; then :
23508   cat >>confdefs.h <<_ACEOF
23509 #define HAVE_STDINT_H 1
23510 _ACEOF
23511
23512 fi
23513
23514 done
23515
23516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
23517 $as_echo_n "checking for SIZE_MAX... " >&6; }
23518 if ${gl_cv_size_max+:} false; then :
23519   $as_echo_n "(cached) " >&6
23520 else
23521
23522     gl_cv_size_max=
23523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23524 /* end confdefs.h.  */
23525
23526 #include <limits.h>
23527 #if HAVE_STDINT_H
23528 #include <stdint.h>
23529 #endif
23530 #ifdef SIZE_MAX
23531 Found it
23532 #endif
23533
23534 _ACEOF
23535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23536   $EGREP "Found it" >/dev/null 2>&1; then :
23537   gl_cv_size_max=yes
23538 fi
23539 rm -f conftest*
23540
23541     if test -z "$gl_cv_size_max"; then
23542                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
23543 #include <limits.h>"; then :
23544
23545 else
23546   size_t_bits_minus_1=
23547 fi
23548
23549       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
23550
23551 else
23552   fits_in_uint=
23553 fi
23554
23555       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23556         if test $fits_in_uint = 1; then
23557                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h.  */
23559 #include <stddef.h>
23560                  extern size_t foo;
23561                  extern unsigned long foo;
23562
23563 int
23564 main ()
23565 {
23566
23567   ;
23568   return 0;
23569 }
23570 _ACEOF
23571 if ac_fn_c_try_compile "$LINENO"; then :
23572   fits_in_uint=0
23573 fi
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23575         fi
23576                                 if test $fits_in_uint = 1; then
23577           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23578         else
23579           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23580         fi
23581       else
23582                 gl_cv_size_max='((size_t)~(size_t)0)'
23583       fi
23584     fi
23585
23586 fi
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
23588 $as_echo "$gl_cv_size_max" >&6; }
23589   if test "$gl_cv_size_max" != yes; then
23590
23591 cat >>confdefs.h <<_ACEOF
23592 #define SIZE_MAX $gl_cv_size_max
23593 _ACEOF
23594
23595   fi
23596
23597
23598
23599
23600   gl_cv_func_snprintf_usable=no
23601   for ac_func in snprintf
23602 do :
23603   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
23604 if test "x$ac_cv_func_snprintf" = xyes; then :
23605   cat >>confdefs.h <<_ACEOF
23606 #define HAVE_SNPRINTF 1
23607 _ACEOF
23608
23609 fi
23610 done
23611
23612   if test $ac_cv_func_snprintf = yes; then
23613
23614
23615
23616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
23617 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
23618 if ${gl_cv_func_snprintf_size1+:} false; then :
23619   $as_echo_n "(cached) " >&6
23620 else
23621
23622       if test "$cross_compiling" = yes; then :
23623   gl_cv_func_snprintf_size1="guessing yes"
23624 else
23625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23626 /* end confdefs.h.  */
23627
23628 #include <stdio.h>
23629 #if HAVE_SNPRINTF
23630 # define my_snprintf snprintf
23631 #else
23632 # include <stdarg.h>
23633 static int my_snprintf (char *buf, int size, const char *format, ...)
23634 {
23635   va_list args;
23636   int ret;
23637   va_start (args, format);
23638   ret = vsnprintf (buf, size, format, args);
23639   va_end (args);
23640   return ret;
23641 }
23642 #endif
23643 int main()
23644 {
23645   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
23646   my_snprintf (buf, 1, "%d", 12345);
23647   return buf[1] != 'E';
23648 }
23649 _ACEOF
23650 if ac_fn_c_try_run "$LINENO"; then :
23651   gl_cv_func_snprintf_size1=yes
23652 else
23653   gl_cv_func_snprintf_size1=no
23654 fi
23655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23656   conftest.$ac_objext conftest.beam conftest.$ac_ext
23657 fi
23658
23659
23660 fi
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
23662 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
23663
23664     case "$gl_cv_func_snprintf_size1" in
23665       *yes)
23666
23667         case "$gl_cv_func_snprintf_retval_c99" in
23668           *yes)
23669
23670
23671      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
23672 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
23673 if ${gl_cv_func_printf_positions+:} false; then :
23674   $as_echo_n "(cached) " >&6
23675 else
23676
23677       if test "$cross_compiling" = yes; then :
23678
23679          case "$host_os" in
23680            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
23681                          gl_cv_func_printf_positions="guessing no";;
23682            beos*)        gl_cv_func_printf_positions="guessing no";;
23683            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
23684            *)            gl_cv_func_printf_positions="guessing yes";;
23685          esac
23686
23687 else
23688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23689 /* end confdefs.h.  */
23690
23691 #include <stdio.h>
23692 #include <string.h>
23693 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23694    dollar expansion (possibly an autoconf bug).  */
23695 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23696 static char buf[100];
23697 int main ()
23698 {
23699   sprintf (buf, format, 33, 55);
23700   return (strcmp (buf, "55 33") != 0);
23701 }
23702 _ACEOF
23703 if ac_fn_c_try_run "$LINENO"; then :
23704   gl_cv_func_printf_positions=yes
23705 else
23706   gl_cv_func_printf_positions=no
23707 fi
23708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23709   conftest.$ac_objext conftest.beam conftest.$ac_ext
23710 fi
23711
23712
23713 fi
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
23715 $as_echo "$gl_cv_func_printf_positions" >&6; }
23716
23717             case "$gl_cv_func_printf_positions" in
23718               *yes)
23719                 gl_cv_func_snprintf_usable=yes
23720                 ;;
23721             esac
23722             ;;
23723         esac
23724         ;;
23725     esac
23726   fi
23727   if test $gl_cv_func_snprintf_usable = no; then
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
23739
23740   if test $ac_cv_func_snprintf = yes; then
23741     REPLACE_SNPRINTF=1
23742   fi
23743   :
23744
23745   fi
23746
23747   :
23748
23749
23750
23751
23752
23753   if test $ac_cv_have_decl_snprintf = no; then
23754     HAVE_DECL_SNPRINTF=0
23755   fi
23756
23757
23758
23759
23760
23761
23762           GNULIB_SNPRINTF=1
23763
23764
23765
23766
23767
23768 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
23769
23770
23771
23772
23773
23774 cat >>confdefs.h <<_ACEOF
23775 #define GNULIB_SNPRINTF 1
23776 _ACEOF
23777
23778
23779
23780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23781 $as_echo_n "checking for ssize_t... " >&6; }
23782 if ${gt_cv_ssize_t+:} false; then :
23783   $as_echo_n "(cached) " >&6
23784 else
23785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h.  */
23787 #include <sys/types.h>
23788 int
23789 main ()
23790 {
23791 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23792             return !x;
23793   ;
23794   return 0;
23795 }
23796 _ACEOF
23797 if ac_fn_c_try_compile "$LINENO"; then :
23798   gt_cv_ssize_t=yes
23799 else
23800   gt_cv_ssize_t=no
23801 fi
23802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23803 fi
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23805 $as_echo "$gt_cv_ssize_t" >&6; }
23806   if test $gt_cv_ssize_t = no; then
23807
23808 $as_echo "#define ssize_t int" >>confdefs.h
23809
23810   fi
23811
23812
23813
23814
23815   :
23816
23817
23818
23819
23820
23821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23822 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23823 if ${gl_cv_func_stat_dir_slash+:} false; then :
23824   $as_echo_n "(cached) " >&6
23825 else
23826   if test "$cross_compiling" = yes; then :
23827   case $host_os in
23828             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23829             *) gl_cv_func_stat_dir_slash="guessing yes";;
23830           esac
23831 else
23832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833 /* end confdefs.h.  */
23834 #include <sys/stat.h>
23835
23836 int
23837 main ()
23838 {
23839 struct stat st; return stat (".", &st) != stat ("./", &st);
23840   ;
23841   return 0;
23842 }
23843 _ACEOF
23844 if ac_fn_c_try_run "$LINENO"; then :
23845   gl_cv_func_stat_dir_slash=yes
23846 else
23847   gl_cv_func_stat_dir_slash=no
23848 fi
23849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23850   conftest.$ac_objext conftest.beam conftest.$ac_ext
23851 fi
23852
23853 fi
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23855 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23857 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23858 if ${gl_cv_func_stat_file_slash+:} false; then :
23859   $as_echo_n "(cached) " >&6
23860 else
23861   touch conftest.tmp
23862        # Assume that if we have lstat, we can also check symlinks.
23863        if test $ac_cv_func_lstat = yes; then
23864          ln -s conftest.tmp conftest.lnk
23865        fi
23866        if test "$cross_compiling" = yes; then :
23867   case "$host_os" in
23868                     # Guess yes on glibc systems.
23869             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23870                     # If we don't know, assume the worst.
23871             *)      gl_cv_func_stat_file_slash="guessing no" ;;
23872           esac
23873
23874 else
23875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23876 /* end confdefs.h.  */
23877 #include <sys/stat.h>
23878
23879 int
23880 main ()
23881 {
23882 int result = 0;
23883       struct stat st;
23884       if (!stat ("conftest.tmp/", &st))
23885         result |= 1;
23886 #if HAVE_LSTAT
23887       if (!stat ("conftest.lnk/", &st))
23888         result |= 2;
23889 #endif
23890       return result;
23891
23892   ;
23893   return 0;
23894 }
23895 _ACEOF
23896 if ac_fn_c_try_run "$LINENO"; then :
23897   gl_cv_func_stat_file_slash=yes
23898 else
23899   gl_cv_func_stat_file_slash=no
23900 fi
23901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23902   conftest.$ac_objext conftest.beam conftest.$ac_ext
23903 fi
23904
23905        rm -f conftest.tmp conftest.lnk
23906 fi
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23908 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23909   case $gl_cv_func_stat_dir_slash in
23910     *no) REPLACE_STAT=1
23911
23912 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23913 ;;
23914   esac
23915   case $gl_cv_func_stat_file_slash in
23916     *no) REPLACE_STAT=1
23917
23918 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23919 ;;
23920   esac
23921
23922   if test $REPLACE_STAT = 1; then
23923
23924
23925
23926
23927
23928
23929
23930
23931   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23932
23933     :
23934   fi
23935
23936
23937
23938
23939
23940           GNULIB_STAT=1
23941
23942
23943
23944
23945
23946 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23947
23948
23949
23950
23951   STDARG_H=''
23952   NEXT_STDARG_H='<stdarg.h>'
23953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
23954 $as_echo_n "checking for va_copy... " >&6; }
23955   if ${gl_cv_func_va_copy+:} false; then :
23956   $as_echo_n "(cached) " >&6
23957 else
23958
23959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h.  */
23961 #include <stdarg.h>
23962 int
23963 main ()
23964 {
23965
23966 #ifndef va_copy
23967 void (*func) (va_list, va_list) = va_copy;
23968 #endif
23969
23970   ;
23971   return 0;
23972 }
23973 _ACEOF
23974 if ac_fn_c_try_compile "$LINENO"; then :
23975   gl_cv_func_va_copy=yes
23976 else
23977   gl_cv_func_va_copy=no
23978 fi
23979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980 fi
23981
23982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
23983 $as_echo "$gl_cv_func_va_copy" >&6; }
23984   if test $gl_cv_func_va_copy = no; then
23985                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h.  */
23987 #if defined _AIX && !defined __GNUC__
23988         AIX vaccine
23989        #endif
23990
23991 _ACEOF
23992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23993   $EGREP "vaccine" >/dev/null 2>&1; then :
23994   gl_aixcc=yes
23995 else
23996   gl_aixcc=no
23997 fi
23998 rm -f conftest*
23999
24000     if test $gl_aixcc = yes; then
24001             STDARG_H=stdarg.h
24002
24003
24004
24005
24006
24007
24008
24009
24010      if test $gl_cv_have_include_next = yes; then
24011        gl_cv_next_stdarg_h='<'stdarg.h'>'
24012      else
24013        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
24014 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
24015 if ${gl_cv_next_stdarg_h+:} false; then :
24016   $as_echo_n "(cached) " >&6
24017 else
24018
24019
24020
24021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h.  */
24023 #include <stdarg.h>
24024 _ACEOF
24025                 case "$host_os" in
24026     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24027     *)    gl_absname_cpp="$ac_cpp" ;;
24028   esac
24029
24030   case "$host_os" in
24031     mingw*)
24032                                           gl_dirsep_regex='[/\\]'
24033       ;;
24034     *)
24035       gl_dirsep_regex='\/'
24036       ;;
24037   esac
24038       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24039   gl_header_literal_regex=`echo 'stdarg.h' \
24040                            | sed -e "$gl_make_literal_regex_sed"`
24041   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24042       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24043       s|^/[^/]|//&|
24044       p
24045       q
24046     }'
24047
24048         gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24049   sed -n "$gl_absolute_header_sed"`
24050
24051            gl_header=$gl_cv_absolute_stdarg_h
24052            gl_cv_next_stdarg_h='"'$gl_header'"'
24053
24054
24055 fi
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
24057 $as_echo "$gl_cv_next_stdarg_h" >&6; }
24058      fi
24059      NEXT_STDARG_H=$gl_cv_next_stdarg_h
24060
24061      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24062        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24063        gl_next_as_first_directive='<'stdarg.h'>'
24064      else
24065        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24066        gl_next_as_first_directive=$gl_cv_next_stdarg_h
24067      fi
24068      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
24069
24070
24071
24072
24073             if test "$gl_cv_next_stdarg_h" = '""'; then
24074         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
24075         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
24076       fi
24077     else
24078
24079   saved_as_echo_n="$as_echo_n"
24080   as_echo_n=':'
24081   if ${gl_cv_func___va_copy+:} false; then :
24082   $as_echo_n "(cached) " >&6
24083 else
24084
24085         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24086 /* end confdefs.h.  */
24087 #include <stdarg.h>
24088 int
24089 main ()
24090 {
24091
24092 #ifndef __va_copy
24093 error, bail out
24094 #endif
24095
24096   ;
24097   return 0;
24098 }
24099 _ACEOF
24100 if ac_fn_c_try_compile "$LINENO"; then :
24101   gl_cv_func___va_copy=yes
24102 else
24103   gl_cv_func___va_copy=no
24104 fi
24105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24106 fi
24107
24108   as_echo_n="$saved_as_echo_n"
24109
24110       if test $gl_cv_func___va_copy = yes; then
24111
24112 $as_echo "#define va_copy __va_copy" >>confdefs.h
24113
24114       else
24115
24116
24117 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24118
24119       fi
24120     fi
24121   fi
24122
24123    if test -n "$STDARG_H"; then
24124   GL_GENERATE_STDARG_H_TRUE=
24125   GL_GENERATE_STDARG_H_FALSE='#'
24126 else
24127   GL_GENERATE_STDARG_H_TRUE='#'
24128   GL_GENERATE_STDARG_H_FALSE=
24129 fi
24130
24131
24132
24133
24134
24135
24136   # Define two additional variables used in the Makefile substitution.
24137
24138   if test "$ac_cv_header_stdbool_h" = yes; then
24139     STDBOOL_H=''
24140   else
24141     STDBOOL_H='stdbool.h'
24142   fi
24143
24144    if test -n "$STDBOOL_H"; then
24145   GL_GENERATE_STDBOOL_H_TRUE=
24146   GL_GENERATE_STDBOOL_H_FALSE='#'
24147 else
24148   GL_GENERATE_STDBOOL_H_TRUE='#'
24149   GL_GENERATE_STDBOOL_H_FALSE=
24150 fi
24151
24152
24153   if test "$ac_cv_type__Bool" = yes; then
24154     HAVE__BOOL=1
24155   else
24156     HAVE__BOOL=0
24157   fi
24158
24159
24160
24161
24162
24163   STDDEF_H=
24164   if test $gt_cv_c_wchar_t = no; then
24165     HAVE_WCHAR_T=0
24166     STDDEF_H=stddef.h
24167   fi
24168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24169 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24170 if ${gl_cv_decl_null_works+:} false; then :
24171   $as_echo_n "(cached) " >&6
24172 else
24173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24174 /* end confdefs.h.  */
24175 #include <stddef.h>
24176       int test[2 * (sizeof NULL == sizeof (void *)) -1];
24177
24178 int
24179 main ()
24180 {
24181
24182   ;
24183   return 0;
24184 }
24185 _ACEOF
24186 if ac_fn_c_try_compile "$LINENO"; then :
24187   gl_cv_decl_null_works=yes
24188 else
24189   gl_cv_decl_null_works=no
24190 fi
24191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192 fi
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24194 $as_echo "$gl_cv_decl_null_works" >&6; }
24195   if test $gl_cv_decl_null_works = no; then
24196     REPLACE_NULL=1
24197     STDDEF_H=stddef.h
24198   fi
24199
24200    if test -n "$STDDEF_H"; then
24201   GL_GENERATE_STDDEF_H_TRUE=
24202   GL_GENERATE_STDDEF_H_FALSE='#'
24203 else
24204   GL_GENERATE_STDDEF_H_TRUE='#'
24205   GL_GENERATE_STDDEF_H_FALSE=
24206 fi
24207
24208   if test -n "$STDDEF_H"; then
24209
24210
24211
24212
24213
24214
24215
24216
24217      if test $gl_cv_have_include_next = yes; then
24218        gl_cv_next_stddef_h='<'stddef.h'>'
24219      else
24220        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24221 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24222 if ${gl_cv_next_stddef_h+:} false; then :
24223   $as_echo_n "(cached) " >&6
24224 else
24225
24226
24227
24228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24229 /* end confdefs.h.  */
24230 #include <stddef.h>
24231 _ACEOF
24232                 case "$host_os" in
24233     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24234     *)    gl_absname_cpp="$ac_cpp" ;;
24235   esac
24236
24237   case "$host_os" in
24238     mingw*)
24239                                           gl_dirsep_regex='[/\\]'
24240       ;;
24241     *)
24242       gl_dirsep_regex='\/'
24243       ;;
24244   esac
24245       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24246   gl_header_literal_regex=`echo 'stddef.h' \
24247                            | sed -e "$gl_make_literal_regex_sed"`
24248   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24249       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24250       s|^/[^/]|//&|
24251       p
24252       q
24253     }'
24254
24255         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24256   sed -n "$gl_absolute_header_sed"`
24257
24258            gl_header=$gl_cv_absolute_stddef_h
24259            gl_cv_next_stddef_h='"'$gl_header'"'
24260
24261
24262 fi
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24264 $as_echo "$gl_cv_next_stddef_h" >&6; }
24265      fi
24266      NEXT_STDDEF_H=$gl_cv_next_stddef_h
24267
24268      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24269        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24270        gl_next_as_first_directive='<'stddef.h'>'
24271      else
24272        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24273        gl_next_as_first_directive=$gl_cv_next_stddef_h
24274      fi
24275      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24276
24277
24278
24279
24280   fi
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293      if test $gl_cv_have_include_next = yes; then
24294        gl_cv_next_stdio_h='<'stdio.h'>'
24295      else
24296        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24297 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24298 if ${gl_cv_next_stdio_h+:} false; then :
24299   $as_echo_n "(cached) " >&6
24300 else
24301
24302
24303
24304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h.  */
24306 #include <stdio.h>
24307 _ACEOF
24308                 case "$host_os" in
24309     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24310     *)    gl_absname_cpp="$ac_cpp" ;;
24311   esac
24312
24313   case "$host_os" in
24314     mingw*)
24315                                           gl_dirsep_regex='[/\\]'
24316       ;;
24317     *)
24318       gl_dirsep_regex='\/'
24319       ;;
24320   esac
24321       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24322   gl_header_literal_regex=`echo 'stdio.h' \
24323                            | sed -e "$gl_make_literal_regex_sed"`
24324   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24325       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24326       s|^/[^/]|//&|
24327       p
24328       q
24329     }'
24330
24331         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24332   sed -n "$gl_absolute_header_sed"`
24333
24334            gl_header=$gl_cv_absolute_stdio_h
24335            gl_cv_next_stdio_h='"'$gl_header'"'
24336
24337
24338 fi
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24340 $as_echo "$gl_cv_next_stdio_h" >&6; }
24341      fi
24342      NEXT_STDIO_H=$gl_cv_next_stdio_h
24343
24344      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24345        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24346        gl_next_as_first_directive='<'stdio.h'>'
24347      else
24348        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24349        gl_next_as_first_directive=$gl_cv_next_stdio_h
24350      fi
24351      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24352
24353
24354
24355
24356
24357       GNULIB_FSCANF=1
24358
24359
24360 cat >>confdefs.h <<_ACEOF
24361 #define GNULIB_FSCANF 1
24362 _ACEOF
24363
24364
24365   GNULIB_SCANF=1
24366
24367
24368 cat >>confdefs.h <<_ACEOF
24369 #define GNULIB_SCANF 1
24370 _ACEOF
24371
24372
24373   GNULIB_FGETC=1
24374   GNULIB_GETC=1
24375   GNULIB_GETCHAR=1
24376   GNULIB_FGETS=1
24377   GNULIB_FREAD=1
24378
24379
24380       GNULIB_FPRINTF=1
24381   GNULIB_PRINTF=1
24382   GNULIB_VFPRINTF=1
24383   GNULIB_VPRINTF=1
24384   GNULIB_FPUTC=1
24385   GNULIB_PUTC=1
24386   GNULIB_PUTCHAR=1
24387   GNULIB_FPUTS=1
24388   GNULIB_PUTS=1
24389   GNULIB_FWRITE=1
24390
24391
24392
24393
24394     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
24395     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24397 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24398 if eval \${$as_gl_Symbol+:} false; then :
24399   $as_echo_n "(cached) " >&6
24400 else
24401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24402 /* end confdefs.h.  */
24403 #include <stdio.h>
24404
24405 int
24406 main ()
24407 {
24408 #undef $gl_func
24409   (void) $gl_func;
24410   ;
24411   return 0;
24412 }
24413 _ACEOF
24414 if ac_fn_c_try_compile "$LINENO"; then :
24415   eval "$as_gl_Symbol=yes"
24416 else
24417   eval "$as_gl_Symbol=no"
24418 fi
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24420 fi
24421 eval ac_res=\$$as_gl_Symbol
24422                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24423 $as_echo "$ac_res" >&6; }
24424     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24425   cat >>confdefs.h <<_ACEOF
24426 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24427 _ACEOF
24428
24429                      eval ac_cv_have_decl_$gl_func=yes
24430 fi
24431       done
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444      if test $gl_cv_have_include_next = yes; then
24445        gl_cv_next_stdlib_h='<'stdlib.h'>'
24446      else
24447        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24448 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24449 if ${gl_cv_next_stdlib_h+:} false; then :
24450   $as_echo_n "(cached) " >&6
24451 else
24452
24453
24454
24455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24456 /* end confdefs.h.  */
24457 #include <stdlib.h>
24458 _ACEOF
24459                 case "$host_os" in
24460     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24461     *)    gl_absname_cpp="$ac_cpp" ;;
24462   esac
24463
24464   case "$host_os" in
24465     mingw*)
24466                                           gl_dirsep_regex='[/\\]'
24467       ;;
24468     *)
24469       gl_dirsep_regex='\/'
24470       ;;
24471   esac
24472       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24473   gl_header_literal_regex=`echo 'stdlib.h' \
24474                            | sed -e "$gl_make_literal_regex_sed"`
24475   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24476       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24477       s|^/[^/]|//&|
24478       p
24479       q
24480     }'
24481
24482         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24483   sed -n "$gl_absolute_header_sed"`
24484
24485            gl_header=$gl_cv_absolute_stdlib_h
24486            gl_cv_next_stdlib_h='"'$gl_header'"'
24487
24488
24489 fi
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24491 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24492      fi
24493      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24494
24495      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24496        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24497        gl_next_as_first_directive='<'stdlib.h'>'
24498      else
24499        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24500        gl_next_as_first_directive=$gl_cv_next_stdlib_h
24501      fi
24502      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24503
24504
24505
24506
24507
24508
24509     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
24510     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24512 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24513 if eval \${$as_gl_Symbol+:} false; then :
24514   $as_echo_n "(cached) " >&6
24515 else
24516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h.  */
24518 #include <stdlib.h>
24519 #if HAVE_SYS_LOADAVG_H
24520 # include <sys/loadavg.h>
24521 #endif
24522 #if HAVE_RANDOM_H
24523 # include <random.h>
24524 #endif
24525
24526 int
24527 main ()
24528 {
24529 #undef $gl_func
24530   (void) $gl_func;
24531   ;
24532   return 0;
24533 }
24534 _ACEOF
24535 if ac_fn_c_try_compile "$LINENO"; then :
24536   eval "$as_gl_Symbol=yes"
24537 else
24538   eval "$as_gl_Symbol=no"
24539 fi
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24541 fi
24542 eval ac_res=\$$as_gl_Symbol
24543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24544 $as_echo "$ac_res" >&6; }
24545     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24546   cat >>confdefs.h <<_ACEOF
24547 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24548 _ACEOF
24549
24550                      eval ac_cv_have_decl_$gl_func=yes
24551 fi
24552       done
24553
24554
24555
24556
24557
24558
24559
24560   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24562 $as_echo_n "checking for working strerror function... " >&6; }
24563 if ${gl_cv_func_working_strerror+:} false; then :
24564   $as_echo_n "(cached) " >&6
24565 else
24566   if test "$cross_compiling" = yes; then :
24567   case "$host_os" in
24568                    # Guess yes on glibc systems.
24569            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
24570                    # If we don't know, assume the worst.
24571            *)      gl_cv_func_working_strerror="guessing no" ;;
24572          esac
24573
24574 else
24575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24576 /* end confdefs.h.  */
24577 #include <string.h>
24578
24579 int
24580 main ()
24581 {
24582 if (!*strerror (-2)) return 1;
24583   ;
24584   return 0;
24585 }
24586 _ACEOF
24587 if ac_fn_c_try_run "$LINENO"; then :
24588   gl_cv_func_working_strerror=yes
24589 else
24590   gl_cv_func_working_strerror=no
24591 fi
24592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24593   conftest.$ac_objext conftest.beam conftest.$ac_ext
24594 fi
24595
24596
24597 fi
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24599 $as_echo "$gl_cv_func_working_strerror" >&6; }
24600     case "$gl_cv_func_working_strerror" in
24601       *yes) ;;
24602       *)
24603                         REPLACE_STRERROR=1
24604         ;;
24605     esac
24606
24607   else
24608             REPLACE_STRERROR=1
24609   fi
24610
24611   if test $REPLACE_STRERROR = 1; then
24612
24613
24614
24615
24616
24617
24618
24619
24620   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
24621
24622   fi
24623
24624
24625 cat >>confdefs.h <<_ACEOF
24626 #define GNULIB_STRERROR 1
24627 _ACEOF
24628
24629
24630
24631
24632
24633
24634
24635           GNULIB_STRERROR=1
24636
24637
24638
24639
24640
24641 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24642
24643
24644
24645
24646
24647   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
24648
24649
24650
24651
24652
24653
24654
24655
24656   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
24657
24658
24659
24660
24661
24662   :
24663
24664
24665
24666
24667
24668   if test $ac_cv_header_sys_socket_h != yes; then
24669                     for ac_header in winsock2.h
24670 do :
24671   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24672 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24673   cat >>confdefs.h <<_ACEOF
24674 #define HAVE_WINSOCK2_H 1
24675 _ACEOF
24676
24677 fi
24678
24679 done
24680
24681   fi
24682   if test "$ac_cv_header_winsock2_h" = yes; then
24683     HAVE_WINSOCK2_H=1
24684     UNISTD_H_HAVE_WINSOCK2_H=1
24685     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24686   else
24687     HAVE_WINSOCK2_H=0
24688   fi
24689
24690
24691   fi
24692
24693
24694
24695
24696
24697
24698
24699
24700   :
24701
24702
24703
24704
24705
24706
24707   :
24708
24709
24710
24711
24712
24713   if test $ac_cv_have_decl_strndup = no; then
24714     HAVE_DECL_STRNDUP=0
24715   fi
24716
24717   if test $ac_cv_func_strndup = yes; then
24718     HAVE_STRNDUP=1
24719     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
24720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
24721 $as_echo_n "checking for working strndup... " >&6; }
24722 if ${gl_cv_func_strndup_works+:} false; then :
24723   $as_echo_n "(cached) " >&6
24724 else
24725   if test "$cross_compiling" = yes; then :
24726
24727           case $host_os in
24728             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
24729             *)               gl_cv_func_strndup_works="guessing yes";;
24730           esac
24731
24732 else
24733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24734 /* end confdefs.h.  */
24735
24736          #include <string.h>
24737                            #include <stdlib.h>
24738 int
24739 main ()
24740 {
24741
24742 #if !HAVE_DECL_STRNDUP
24743   extern
24744   #ifdef __cplusplus
24745   "C"
24746   #endif
24747   char *strndup (const char *, size_t);
24748 #endif
24749   char *s;
24750   s = strndup ("some longer string", 15);
24751   free (s);
24752   s = strndup ("shorter string", 13);
24753   return s[13] != '\0';
24754   ;
24755   return 0;
24756 }
24757 _ACEOF
24758 if ac_fn_c_try_run "$LINENO"; then :
24759   gl_cv_func_strndup_works=yes
24760 else
24761   gl_cv_func_strndup_works=no
24762 fi
24763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24764   conftest.$ac_objext conftest.beam conftest.$ac_ext
24765 fi
24766
24767 fi
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
24769 $as_echo "$gl_cv_func_strndup_works" >&6; }
24770     case $gl_cv_func_strndup_works in
24771       *no) REPLACE_STRNDUP=1 ;;
24772     esac
24773   else
24774     HAVE_STRNDUP=0
24775   fi
24776
24777   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
24778
24779
24780
24781
24782
24783
24784
24785
24786   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
24787
24788   fi
24789
24790
24791
24792
24793
24794           GNULIB_STRNDUP=1
24795
24796
24797
24798
24799
24800 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810   :
24811
24812
24813
24814
24815
24816   if test $ac_cv_have_decl_strnlen = no; then
24817     HAVE_DECL_STRNLEN=0
24818   else
24819
24820          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24821 $as_echo_n "checking for working strnlen... " >&6; }
24822 if ${ac_cv_func_strnlen_working+:} false; then :
24823   $as_echo_n "(cached) " >&6
24824 else
24825   if test "$cross_compiling" = yes; then :
24826   # Guess no on AIX systems, yes otherwise.
24827                 case "$host_os" in
24828                   aix*) ac_cv_func_strnlen_working=no;;
24829                   *)    ac_cv_func_strnlen_working=yes;;
24830                 esac
24831 else
24832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24833 /* end confdefs.h.  */
24834 $ac_includes_default
24835 int
24836 main ()
24837 {
24838
24839 #define S "foobar"
24840 #define S_LEN (sizeof S - 1)
24841
24842   /* At least one implementation is buggy: that of AIX 4.3 would
24843      give strnlen (S, 1) == 3.  */
24844
24845   int i;
24846   for (i = 0; i < S_LEN + 1; ++i)
24847     {
24848       int expected = i <= S_LEN ? i : S_LEN;
24849       if (strnlen (S, i) != expected)
24850         return 1;
24851     }
24852   return 0;
24853
24854   ;
24855   return 0;
24856 }
24857 _ACEOF
24858 if ac_fn_c_try_run "$LINENO"; then :
24859   ac_cv_func_strnlen_working=yes
24860 else
24861   ac_cv_func_strnlen_working=no
24862 fi
24863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24864   conftest.$ac_objext conftest.beam conftest.$ac_ext
24865 fi
24866
24867 fi
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24869 $as_echo "$ac_cv_func_strnlen_working" >&6; }
24870 test $ac_cv_func_strnlen_working = no && :
24871
24872
24873     if test $ac_cv_func_strnlen_working = no; then
24874       REPLACE_STRNLEN=1
24875     fi
24876   fi
24877
24878   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
24879
24880
24881
24882
24883
24884
24885
24886
24887   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
24888
24889     :
24890   fi
24891
24892
24893
24894
24895
24896           GNULIB_STRNLEN=1
24897
24898
24899
24900
24901
24902 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912   :
24913
24914
24915
24916
24917
24918   if test $ac_cv_have_decl_strsignal = no; then
24919     HAVE_DECL_STRSIGNAL=0
24920   fi
24921
24922   for ac_func in strsignal
24923 do :
24924   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
24925 if test "x$ac_cv_func_strsignal" = xyes; then :
24926   cat >>confdefs.h <<_ACEOF
24927 #define HAVE_STRSIGNAL 1
24928 _ACEOF
24929
24930 fi
24931 done
24932
24933   if test $ac_cv_func_strsignal = yes; then
24934     HAVE_STRSIGNAL=1
24935             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
24936 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
24937 if ${gl_cv_func_working_strsignal+:} false; then :
24938   $as_echo_n "(cached) " >&6
24939 else
24940   if test "$cross_compiling" = yes; then :
24941   case "$host_os" in
24942             solaris* | aix*) gl_cv_func_working_strsignal=no;;
24943             *)               gl_cv_func_working_strsignal="guessing yes";;
24944           esac
24945 else
24946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h.  */
24948 #include <string.h>
24949 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
24950
24951 int
24952 main ()
24953 {
24954 int result = 0;
24955               char *s = strsignal (-1);
24956               if (s == (char *) 0)
24957                 result |= 1;
24958               if (s == (char *) -1)
24959                 result |= 2;
24960               return result;
24961
24962   ;
24963   return 0;
24964 }
24965 _ACEOF
24966 if ac_fn_c_try_run "$LINENO"; then :
24967   gl_cv_func_working_strsignal=yes
24968 else
24969   gl_cv_func_working_strsignal=no
24970 fi
24971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24972   conftest.$ac_objext conftest.beam conftest.$ac_ext
24973 fi
24974
24975 fi
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
24977 $as_echo "$gl_cv_func_working_strsignal" >&6; }
24978     if test "$gl_cv_func_working_strsignal" = no; then
24979       REPLACE_STRSIGNAL=1
24980     fi
24981   else
24982     HAVE_STRSIGNAL=0
24983   fi
24984
24985   if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
24986
24987
24988
24989
24990
24991
24992
24993
24994   gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
24995
24996
24997
24998   :
24999
25000
25001
25002
25003
25004
25005   ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
25006 "
25007 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
25008   ac_have_decl=1
25009 else
25010   ac_have_decl=0
25011 fi
25012
25013 cat >>confdefs.h <<_ACEOF
25014 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
25015 _ACEOF
25016
25017
25018   fi
25019
25020
25021
25022
25023
25024           GNULIB_STRSIGNAL=1
25025
25026
25027
25028
25029
25030 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
25031
25032
25033
25034
25035
25036
25037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
25038 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
25039 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
25040   $as_echo_n "(cached) " >&6
25041 else
25042
25043                                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25044 /* end confdefs.h.  */
25045 #include <sys/select.h>
25046 int
25047 main ()
25048 {
25049 struct timeval b;
25050   ;
25051   return 0;
25052 }
25053 _ACEOF
25054 if ac_fn_c_try_compile "$LINENO"; then :
25055   gl_cv_header_sys_select_h_selfcontained=yes
25056 else
25057   gl_cv_header_sys_select_h_selfcontained=no
25058 fi
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060                         if test $gl_cv_header_sys_select_h_selfcontained = yes; then
25061         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25062 /* end confdefs.h.  */
25063 #include <sys/select.h>
25064 int
25065 main ()
25066 {
25067 int memset; int bzero;
25068   ;
25069   return 0;
25070 }
25071
25072 _ACEOF
25073 if ac_fn_c_try_compile "$LINENO"; then :
25074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075 /* end confdefs.h.  */
25076 #include <sys/select.h>
25077 int
25078 main ()
25079 {
25080
25081                   #undef memset
25082                   #define memset nonexistent_memset
25083                   extern
25084                   #ifdef __cplusplus
25085                   "C"
25086                   #endif
25087                   void *memset (void *, int, unsigned long);
25088                   #undef bzero
25089                   #define bzero nonexistent_bzero
25090                   extern
25091                   #ifdef __cplusplus
25092                   "C"
25093                   #endif
25094                   void bzero (void *, unsigned long);
25095                   fd_set fds;
25096                   FD_ZERO (&fds);
25097
25098   ;
25099   return 0;
25100 }
25101
25102 _ACEOF
25103 if ac_fn_c_try_link "$LINENO"; then :
25104
25105 else
25106   gl_cv_header_sys_select_h_selfcontained=no
25107 fi
25108 rm -f core conftest.err conftest.$ac_objext \
25109     conftest$ac_exeext conftest.$ac_ext
25110
25111 fi
25112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113       fi
25114
25115 fi
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
25117 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
25118
25119
25120
25121
25122
25123
25124   :
25125
25126
25127
25128
25129
25130
25131
25132
25133      if test $gl_cv_have_include_next = yes; then
25134        gl_cv_next_sys_select_h='<'sys/select.h'>'
25135      else
25136        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
25137 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
25138 if ${gl_cv_next_sys_select_h+:} false; then :
25139   $as_echo_n "(cached) " >&6
25140 else
25141
25142              if test $ac_cv_header_sys_select_h = yes; then
25143
25144
25145
25146
25147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25148 /* end confdefs.h.  */
25149 #include <sys/select.h>
25150 _ACEOF
25151                 case "$host_os" in
25152     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25153     *)    gl_absname_cpp="$ac_cpp" ;;
25154   esac
25155
25156   case "$host_os" in
25157     mingw*)
25158                                           gl_dirsep_regex='[/\\]'
25159       ;;
25160     *)
25161       gl_dirsep_regex='\/'
25162       ;;
25163   esac
25164       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25165   gl_header_literal_regex=`echo 'sys/select.h' \
25166                            | sed -e "$gl_make_literal_regex_sed"`
25167   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25168       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25169       s|^/[^/]|//&|
25170       p
25171       q
25172     }'
25173
25174         gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25175   sed -n "$gl_absolute_header_sed"`
25176
25177            gl_header=$gl_cv_absolute_sys_select_h
25178            gl_cv_next_sys_select_h='"'$gl_header'"'
25179           else
25180                gl_cv_next_sys_select_h='<'sys/select.h'>'
25181              fi
25182
25183
25184 fi
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
25186 $as_echo "$gl_cv_next_sys_select_h" >&6; }
25187      fi
25188      NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
25189
25190      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25191        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25192        gl_next_as_first_directive='<'sys/select.h'>'
25193      else
25194        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25195        gl_next_as_first_directive=$gl_cv_next_sys_select_h
25196      fi
25197      NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
25198
25199
25200
25201
25202   if test $ac_cv_header_sys_select_h = yes; then
25203     HAVE_SYS_SELECT_H=1
25204   else
25205     HAVE_SYS_SELECT_H=0
25206   fi
25207
25208
25209
25210
25211
25212   :
25213
25214
25215
25216
25217
25218   if test $ac_cv_header_sys_socket_h != yes; then
25219                     for ac_header in winsock2.h
25220 do :
25221   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25222 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25223   cat >>confdefs.h <<_ACEOF
25224 #define HAVE_WINSOCK2_H 1
25225 _ACEOF
25226
25227 fi
25228
25229 done
25230
25231   fi
25232   if test "$ac_cv_header_winsock2_h" = yes; then
25233     HAVE_WINSOCK2_H=1
25234     UNISTD_H_HAVE_WINSOCK2_H=1
25235     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25236   else
25237     HAVE_WINSOCK2_H=0
25238   fi
25239
25240
25241
25242
25243     for gl_func in pselect select; do
25244     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25246 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25247 if eval \${$as_gl_Symbol+:} false; then :
25248   $as_echo_n "(cached) " >&6
25249 else
25250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h.  */
25252
25253 /* Some systems require prerequisite headers.  */
25254 #include <sys/types.h>
25255 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
25256 # include <sys/time.h>
25257 #endif
25258 #include <sys/select.h>
25259
25260 int
25261 main ()
25262 {
25263 #undef $gl_func
25264   (void) $gl_func;
25265   ;
25266   return 0;
25267 }
25268 _ACEOF
25269 if ac_fn_c_try_compile "$LINENO"; then :
25270   eval "$as_gl_Symbol=yes"
25271 else
25272   eval "$as_gl_Symbol=no"
25273 fi
25274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25275 fi
25276 eval ac_res=\$$as_gl_Symbol
25277                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25278 $as_echo "$ac_res" >&6; }
25279     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25280   cat >>confdefs.h <<_ACEOF
25281 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25282 _ACEOF
25283
25284                      eval ac_cv_have_decl_$gl_func=yes
25285 fi
25286       done
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301   :
25302
25303
25304
25305
25306
25307
25308
25309
25310      if test $gl_cv_have_include_next = yes; then
25311        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25312      else
25313        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
25314 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
25315 if ${gl_cv_next_sys_stat_h+:} false; then :
25316   $as_echo_n "(cached) " >&6
25317 else
25318
25319              if test $ac_cv_header_sys_stat_h = yes; then
25320
25321
25322
25323
25324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25325 /* end confdefs.h.  */
25326 #include <sys/stat.h>
25327 _ACEOF
25328                 case "$host_os" in
25329     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25330     *)    gl_absname_cpp="$ac_cpp" ;;
25331   esac
25332
25333   case "$host_os" in
25334     mingw*)
25335                                           gl_dirsep_regex='[/\\]'
25336       ;;
25337     *)
25338       gl_dirsep_regex='\/'
25339       ;;
25340   esac
25341       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25342   gl_header_literal_regex=`echo 'sys/stat.h' \
25343                            | sed -e "$gl_make_literal_regex_sed"`
25344   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25345       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25346       s|^/[^/]|//&|
25347       p
25348       q
25349     }'
25350
25351         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25352   sed -n "$gl_absolute_header_sed"`
25353
25354            gl_header=$gl_cv_absolute_sys_stat_h
25355            gl_cv_next_sys_stat_h='"'$gl_header'"'
25356           else
25357                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25358              fi
25359
25360
25361 fi
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25363 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25364      fi
25365      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
25366
25367      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25368        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25369        gl_next_as_first_directive='<'sys/stat.h'>'
25370      else
25371        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25372        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
25373      fi
25374      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25387
25388 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25389
25390   fi
25391
25392       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25393      #include <sys/stat.h>
25394 "
25395 if test "x$ac_cv_type_nlink_t" = xyes; then :
25396
25397 else
25398
25399 $as_echo "#define nlink_t int" >>confdefs.h
25400
25401 fi
25402
25403
25404
25405     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
25406     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25408 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25409 if eval \${$as_gl_Symbol+:} false; then :
25410   $as_echo_n "(cached) " >&6
25411 else
25412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25413 /* end confdefs.h.  */
25414 #include <sys/stat.h>
25415
25416 int
25417 main ()
25418 {
25419 #undef $gl_func
25420   (void) $gl_func;
25421   ;
25422   return 0;
25423 }
25424 _ACEOF
25425 if ac_fn_c_try_compile "$LINENO"; then :
25426   eval "$as_gl_Symbol=yes"
25427 else
25428   eval "$as_gl_Symbol=no"
25429 fi
25430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25431 fi
25432 eval ac_res=\$$as_gl_Symbol
25433                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25434 $as_echo "$ac_res" >&6; }
25435     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25436   cat >>confdefs.h <<_ACEOF
25437 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25438 _ACEOF
25439
25440                      eval ac_cv_have_decl_$gl_func=yes
25441 fi
25442       done
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461   :
25462
25463
25464
25465
25466
25467
25468
25469
25470      if test $gl_cv_have_include_next = yes; then
25471        gl_cv_next_sys_wait_h='<'sys/wait.h'>'
25472      else
25473        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
25474 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
25475 if ${gl_cv_next_sys_wait_h+:} false; then :
25476   $as_echo_n "(cached) " >&6
25477 else
25478
25479              if test $ac_cv_header_sys_wait_h = yes; then
25480
25481
25482
25483
25484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25485 /* end confdefs.h.  */
25486 #include <sys/wait.h>
25487 _ACEOF
25488                 case "$host_os" in
25489     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25490     *)    gl_absname_cpp="$ac_cpp" ;;
25491   esac
25492
25493   case "$host_os" in
25494     mingw*)
25495                                           gl_dirsep_regex='[/\\]'
25496       ;;
25497     *)
25498       gl_dirsep_regex='\/'
25499       ;;
25500   esac
25501       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25502   gl_header_literal_regex=`echo 'sys/wait.h' \
25503                            | sed -e "$gl_make_literal_regex_sed"`
25504   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25505       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25506       s|^/[^/]|//&|
25507       p
25508       q
25509     }'
25510
25511         gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25512   sed -n "$gl_absolute_header_sed"`
25513
25514            gl_header=$gl_cv_absolute_sys_wait_h
25515            gl_cv_next_sys_wait_h='"'$gl_header'"'
25516           else
25517                gl_cv_next_sys_wait_h='<'sys/wait.h'>'
25518              fi
25519
25520
25521 fi
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
25523 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
25524      fi
25525      NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
25526
25527      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25528        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25529        gl_next_as_first_directive='<'sys/wait.h'>'
25530      else
25531        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25532        gl_next_as_first_directive=$gl_cv_next_sys_wait_h
25533      fi
25534      NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
25535
25536
25537
25538
25539
25540
25541
25542
25543     for gl_func in waitpid; do
25544     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25546 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25547 if eval \${$as_gl_Symbol+:} false; then :
25548   $as_echo_n "(cached) " >&6
25549 else
25550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25551 /* end confdefs.h.  */
25552 #include <sys/wait.h>
25553 int
25554 main ()
25555 {
25556 #undef $gl_func
25557   (void) $gl_func;
25558   ;
25559   return 0;
25560 }
25561 _ACEOF
25562 if ac_fn_c_try_compile "$LINENO"; then :
25563   eval "$as_gl_Symbol=yes"
25564 else
25565   eval "$as_gl_Symbol=no"
25566 fi
25567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25568 fi
25569 eval ac_res=\$$as_gl_Symbol
25570                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25571 $as_echo "$ac_res" >&6; }
25572     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25573   cat >>confdefs.h <<_ACEOF
25574 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25575 _ACEOF
25576
25577                      eval ac_cv_have_decl_$gl_func=yes
25578 fi
25579       done
25580
25581
25582
25583
25584
25585   :
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607   :
25608
25609
25610
25611
25612
25613
25614
25615
25616      if test $gl_cv_have_include_next = yes; then
25617        gl_cv_next_unistd_h='<'unistd.h'>'
25618      else
25619        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25620 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25621 if ${gl_cv_next_unistd_h+:} false; then :
25622   $as_echo_n "(cached) " >&6
25623 else
25624
25625              if test $ac_cv_header_unistd_h = yes; then
25626
25627
25628
25629
25630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25631 /* end confdefs.h.  */
25632 #include <unistd.h>
25633 _ACEOF
25634                 case "$host_os" in
25635     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25636     *)    gl_absname_cpp="$ac_cpp" ;;
25637   esac
25638
25639   case "$host_os" in
25640     mingw*)
25641                                           gl_dirsep_regex='[/\\]'
25642       ;;
25643     *)
25644       gl_dirsep_regex='\/'
25645       ;;
25646   esac
25647       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25648   gl_header_literal_regex=`echo 'unistd.h' \
25649                            | sed -e "$gl_make_literal_regex_sed"`
25650   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25651       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25652       s|^/[^/]|//&|
25653       p
25654       q
25655     }'
25656
25657         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25658   sed -n "$gl_absolute_header_sed"`
25659
25660            gl_header=$gl_cv_absolute_unistd_h
25661            gl_cv_next_unistd_h='"'$gl_header'"'
25662           else
25663                gl_cv_next_unistd_h='<'unistd.h'>'
25664              fi
25665
25666
25667 fi
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25669 $as_echo "$gl_cv_next_unistd_h" >&6; }
25670      fi
25671      NEXT_UNISTD_H=$gl_cv_next_unistd_h
25672
25673      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25674        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25675        gl_next_as_first_directive='<'unistd.h'>'
25676      else
25677        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25678        gl_next_as_first_directive=$gl_cv_next_unistd_h
25679      fi
25680      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25681
25682
25683
25684
25685   if test $ac_cv_header_unistd_h = yes; then
25686     HAVE_UNISTD_H=1
25687   else
25688     HAVE_UNISTD_H=0
25689   fi
25690
25691
25692
25693
25694
25695
25696
25697     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
25698     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25700 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25701 if eval \${$as_gl_Symbol+:} false; then :
25702   $as_echo_n "(cached) " >&6
25703 else
25704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25705 /* end confdefs.h.  */
25706
25707 #if HAVE_UNISTD_H
25708 # include <unistd.h>
25709 #endif
25710 /* Some systems declare various items in the wrong headers.  */
25711 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25712 # include <fcntl.h>
25713 # include <stdio.h>
25714 # include <stdlib.h>
25715 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25716 #  include <io.h>
25717 # endif
25718 #endif
25719
25720 int
25721 main ()
25722 {
25723 #undef $gl_func
25724   (void) $gl_func;
25725   ;
25726   return 0;
25727 }
25728 _ACEOF
25729 if ac_fn_c_try_compile "$LINENO"; then :
25730   eval "$as_gl_Symbol=yes"
25731 else
25732   eval "$as_gl_Symbol=no"
25733 fi
25734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735 fi
25736 eval ac_res=\$$as_gl_Symbol
25737                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25738 $as_echo "$ac_res" >&6; }
25739     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25740   cat >>confdefs.h <<_ACEOF
25741 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25742 _ACEOF
25743
25744                      eval ac_cv_have_decl_$gl_func=yes
25745 fi
25746       done
25747
25748
25749
25750
25751
25752   :
25753
25754
25755
25756
25757
25758   if test $ac_cv_have_decl_unsetenv = no; then
25759     HAVE_DECL_UNSETENV=0
25760   fi
25761   for ac_func in unsetenv
25762 do :
25763   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25764 if test "x$ac_cv_func_unsetenv" = xyes; then :
25765   cat >>confdefs.h <<_ACEOF
25766 #define HAVE_UNSETENV 1
25767 _ACEOF
25768
25769 fi
25770 done
25771
25772   if test $ac_cv_func_unsetenv = no; then
25773     HAVE_UNSETENV=0
25774   else
25775     HAVE_UNSETENV=1
25776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25777 $as_echo_n "checking for unsetenv() return type... " >&6; }
25778 if ${gt_cv_func_unsetenv_ret+:} false; then :
25779   $as_echo_n "(cached) " >&6
25780 else
25781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25782 /* end confdefs.h.  */
25783
25784 #undef _BSD
25785 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25786 #include <stdlib.h>
25787 extern
25788 #ifdef __cplusplus
25789 "C"
25790 #endif
25791 int unsetenv (const char *name);
25792
25793 int
25794 main ()
25795 {
25796
25797   ;
25798   return 0;
25799 }
25800 _ACEOF
25801 if ac_fn_c_try_compile "$LINENO"; then :
25802   gt_cv_func_unsetenv_ret='int'
25803 else
25804   gt_cv_func_unsetenv_ret='void'
25805 fi
25806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25807 fi
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25809 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25810     if test $gt_cv_func_unsetenv_ret = 'void'; then
25811
25812 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25813
25814       REPLACE_UNSETENV=1
25815     fi
25816
25817                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25818 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25819 if ${gl_cv_func_unsetenv_works+:} false; then :
25820   $as_echo_n "(cached) " >&6
25821 else
25822   if test "$cross_compiling" = yes; then :
25823   case "$host_os" in
25824                  # Guess yes on glibc systems.
25825          *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25826                  # If we don't know, assume the worst.
25827          *)      gl_cv_func_unsetenv_works="guessing no" ;;
25828        esac
25829
25830 else
25831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832 /* end confdefs.h.  */
25833
25834        #include <stdlib.h>
25835        #include <errno.h>
25836        extern char **environ;
25837
25838 int
25839 main ()
25840 {
25841
25842        char entry1[] = "a=1";
25843        char entry2[] = "b=2";
25844        char *env[] = { entry1, entry2, NULL };
25845        if (putenv ((char *) "a=1")) return 1;
25846        if (putenv (entry2)) return 2;
25847        entry2[0] = 'a';
25848        unsetenv ("a");
25849        if (getenv ("a")) return 3;
25850        if (!unsetenv ("") || errno != EINVAL) return 4;
25851        entry2[0] = 'b';
25852        environ = env;
25853        if (!getenv ("a")) return 5;
25854        entry2[0] = 'a';
25855        unsetenv ("a");
25856        if (getenv ("a")) return 6;
25857
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 if ac_fn_c_try_run "$LINENO"; then :
25863   gl_cv_func_unsetenv_works=yes
25864 else
25865   gl_cv_func_unsetenv_works=no
25866 fi
25867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25868   conftest.$ac_objext conftest.beam conftest.$ac_ext
25869 fi
25870
25871 fi
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25873 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25874     case "$gl_cv_func_unsetenv_works" in
25875       *yes) ;;
25876       *)
25877         REPLACE_UNSETENV=1
25878         ;;
25879     esac
25880   fi
25881
25882   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25883
25884
25885
25886
25887
25888
25889
25890
25891   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25892
25893
25894
25895
25896   :
25897
25898
25899
25900
25901
25902
25903   fi
25904
25905
25906
25907
25908
25909           GNULIB_UNSETENV=1
25910
25911
25912
25913
25914
25915 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25916
25917
25918
25919
25920
25921   :
25922
25923
25924
25925
25926
25927   if test $ac_cv_func_vasnprintf = no; then
25928
25929
25930   :
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
25975
25976   if test $ac_cv_func_vasnprintf = yes; then
25977
25978 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
25979
25980   fi
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25993 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25994
25995 else
25996
25997 $as_echo "#define ptrdiff_t long" >>confdefs.h
25998
25999
26000 fi
26001
26002
26003
26004
26005
26006
26007
26008   fi
26009
26010
26011   for ac_func in vasprintf
26012 do :
26013   ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
26014 if test "x$ac_cv_func_vasprintf" = xyes; then :
26015   cat >>confdefs.h <<_ACEOF
26016 #define HAVE_VASPRINTF 1
26017 _ACEOF
26018
26019 fi
26020 done
26021
26022   if test $ac_cv_func_vasprintf = no; then
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
26043
26044
26045   if test $ac_cv_func_vasprintf = yes; then
26046     REPLACE_VASPRINTF=1
26047   else
26048     HAVE_VASPRINTF=0
26049   fi
26050
26051
26052
26053
26054
26055
26056
26057
26058   fi
26059
26060
26061
26062
26063
26064
26065           GNULIB_VASPRINTF=1
26066
26067
26068
26069
26070
26071 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
26072
26073
26074
26075
26076
26077   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
26078
26079
26080
26081   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
26082
26083
26084
26085   HAVE_WAITPID=1
26086   case $host_os in
26087     mingw*) HAVE_WAITPID=0 ;;
26088   esac
26089
26090   if test $HAVE_WAITPID = 0; then
26091
26092
26093
26094
26095
26096
26097
26098
26099   gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
26100
26101   fi
26102
26103
26104
26105
26106
26107           GNULIB_WAITPID=1
26108
26109
26110
26111
26112
26113 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126   :
26127
26128
26129
26130
26131
26132
26133
26134
26135      if test $gl_cv_have_include_next = yes; then
26136        gl_cv_next_wchar_h='<'wchar.h'>'
26137      else
26138        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
26139 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
26140 if ${gl_cv_next_wchar_h+:} false; then :
26141   $as_echo_n "(cached) " >&6
26142 else
26143
26144              if test $ac_cv_header_wchar_h = yes; then
26145
26146
26147
26148
26149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26150 /* end confdefs.h.  */
26151 #include <wchar.h>
26152 _ACEOF
26153                 case "$host_os" in
26154     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26155     *)    gl_absname_cpp="$ac_cpp" ;;
26156   esac
26157
26158   case "$host_os" in
26159     mingw*)
26160                                           gl_dirsep_regex='[/\\]'
26161       ;;
26162     *)
26163       gl_dirsep_regex='\/'
26164       ;;
26165   esac
26166       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26167   gl_header_literal_regex=`echo 'wchar.h' \
26168                            | sed -e "$gl_make_literal_regex_sed"`
26169   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26170       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26171       s|^/[^/]|//&|
26172       p
26173       q
26174     }'
26175
26176         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26177   sed -n "$gl_absolute_header_sed"`
26178
26179            gl_header=$gl_cv_absolute_wchar_h
26180            gl_cv_next_wchar_h='"'$gl_header'"'
26181           else
26182                gl_cv_next_wchar_h='<'wchar.h'>'
26183              fi
26184
26185
26186 fi
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
26188 $as_echo "$gl_cv_next_wchar_h" >&6; }
26189      fi
26190      NEXT_WCHAR_H=$gl_cv_next_wchar_h
26191
26192      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26193        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26194        gl_next_as_first_directive='<'wchar.h'>'
26195      else
26196        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26197        gl_next_as_first_directive=$gl_cv_next_wchar_h
26198      fi
26199      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
26200
26201
26202
26203
26204   if test $ac_cv_header_wchar_h = yes; then
26205     HAVE_WCHAR_H=1
26206   else
26207     HAVE_WCHAR_H=0
26208   fi
26209
26210
26211
26212
26213
26214   if test $gt_cv_c_wint_t = yes; then
26215     HAVE_WINT_T=1
26216   else
26217     HAVE_WINT_T=0
26218   fi
26219
26220
26221
26222     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
26223     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26225 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26226 if eval \${$as_gl_Symbol+:} false; then :
26227   $as_echo_n "(cached) " >&6
26228 else
26229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26230 /* end confdefs.h.  */
26231
26232 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26233    <wchar.h>.
26234    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26235    included before <wchar.h>.  */
26236 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26237 # include <stddef.h>
26238 # include <stdio.h>
26239 # include <time.h>
26240 #endif
26241 #include <wchar.h>
26242
26243 int
26244 main ()
26245 {
26246 #undef $gl_func
26247   (void) $gl_func;
26248   ;
26249   return 0;
26250 }
26251 _ACEOF
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253   eval "$as_gl_Symbol=yes"
26254 else
26255   eval "$as_gl_Symbol=no"
26256 fi
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 fi
26259 eval ac_res=\$$as_gl_Symbol
26260                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26261 $as_echo "$ac_res" >&6; }
26262     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26263   cat >>confdefs.h <<_ACEOF
26264 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26265 _ACEOF
26266
26267                      eval ac_cv_have_decl_$gl_func=yes
26268 fi
26269       done
26270
26271
26272
26273
26274
26275   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26276     REPLACE_WRITE=1
26277   fi
26278
26279
26280
26281   if test $REPLACE_WRITE = 1; then
26282
26283
26284
26285
26286
26287
26288
26289
26290   gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
26291
26292     :
26293   fi
26294
26295
26296
26297
26298
26299           GNULIB_WRITE=1
26300
26301
26302
26303
26304
26305 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
26306
26307
26308
26309   :
26310
26311
26312   for ac_header in stdint.h
26313 do :
26314   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26315 if test "x$ac_cv_header_stdint_h" = xyes; then :
26316   cat >>confdefs.h <<_ACEOF
26317 #define HAVE_STDINT_H 1
26318 _ACEOF
26319
26320 fi
26321
26322 done
26323
26324
26325
26326
26327   :
26328
26329
26330   :
26331
26332
26333   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
26334
26335   # End of code from modules
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345   gltests_libdeps=
26346   gltests_ltlibdeps=
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356   gl_source_base='tests'
26357   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
26358
26359   gl_module_indicator_condition=$gltests_WITNESS
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370 for ac_header in fcntl.h
26371 do :
26372   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
26373 if test "x$ac_cv_header_fcntl_h" = xyes; then :
26374   cat >>confdefs.h <<_ACEOF
26375 #define HAVE_FCNTL_H 1
26376 _ACEOF
26377
26378 fi
26379
26380 done
26381
26382 for ac_func in clearenv
26383 do :
26384   ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
26385 if test "x$ac_cv_func_clearenv" = xyes; then :
26386   cat >>confdefs.h <<_ACEOF
26387 #define HAVE_CLEARENV 1
26388 _ACEOF
26389
26390 fi
26391 done
26392
26393
26394 # Checks for structures and compiler characteristics.
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26396 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26397 if ${ac_cv_c_const+:} false; then :
26398   $as_echo_n "(cached) " >&6
26399 else
26400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26401 /* end confdefs.h.  */
26402
26403 int
26404 main ()
26405 {
26406
26407 #ifndef __cplusplus
26408   /* Ultrix mips cc rejects this sort of thing.  */
26409   typedef int charset[2];
26410   const charset cs = { 0, 0 };
26411   /* SunOS 4.1.1 cc rejects this.  */
26412   char const *const *pcpcc;
26413   char **ppc;
26414   /* NEC SVR4.0.2 mips cc rejects this.  */
26415   struct point {int x, y;};
26416   static struct point const zero = {0,0};
26417   /* AIX XL C 1.02.0.0 rejects this.
26418      It does not let you subtract one const X* pointer from another in
26419      an arm of an if-expression whose if-part is not a constant
26420      expression */
26421   const char *g = "string";
26422   pcpcc = &g + (g ? g-g : 0);
26423   /* HPUX 7.0 cc rejects these. */
26424   ++pcpcc;
26425   ppc = (char**) pcpcc;
26426   pcpcc = (char const *const *) ppc;
26427   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26428     char tx;
26429     char *t = &tx;
26430     char const *s = 0 ? (char *) 0 : (char const *) 0;
26431
26432     *t++ = 0;
26433     if (s) return 0;
26434   }
26435   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26436     int x[] = {25, 17};
26437     const int *foo = &x[0];
26438     ++foo;
26439   }
26440   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26441     typedef const int *iptr;
26442     iptr p = 0;
26443     ++p;
26444   }
26445   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26446        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26447     struct s { int j; const int *ap[3]; } bx;
26448     struct s *b = &bx; b->j = 5;
26449   }
26450   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26451     const int foo = 10;
26452     if (!foo) return 0;
26453   }
26454   return !cs[0] && !zero.x;
26455 #endif
26456
26457   ;
26458   return 0;
26459 }
26460 _ACEOF
26461 if ac_fn_c_try_compile "$LINENO"; then :
26462   ac_cv_c_const=yes
26463 else
26464   ac_cv_c_const=no
26465 fi
26466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467 fi
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26469 $as_echo "$ac_cv_c_const" >&6; }
26470 if test $ac_cv_c_const = no; then
26471
26472 $as_echo "#define const /**/" >>confdefs.h
26473
26474 fi
26475
26476 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26477 if test "x$ac_cv_type_pid_t" = xyes; then :
26478
26479 else
26480
26481 cat >>confdefs.h <<_ACEOF
26482 #define pid_t int
26483 _ACEOF
26484
26485 fi
26486
26487 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26488 if test "x$ac_cv_type_size_t" = xyes; then :
26489
26490 else
26491
26492 cat >>confdefs.h <<_ACEOF
26493 #define size_t unsigned int
26494 _ACEOF
26495
26496 fi
26497
26498
26499 # We must have fork(2) support.
26500 for ac_header in vfork.h
26501 do :
26502   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
26503 if test "x$ac_cv_header_vfork_h" = xyes; then :
26504   cat >>confdefs.h <<_ACEOF
26505 #define HAVE_VFORK_H 1
26506 _ACEOF
26507
26508 fi
26509
26510 done
26511
26512 for ac_func in fork vfork
26513 do :
26514   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26515 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26516 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26517   cat >>confdefs.h <<_ACEOF
26518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26519 _ACEOF
26520
26521 fi
26522 done
26523
26524 if test "x$ac_cv_func_fork" = xyes; then
26525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
26526 $as_echo_n "checking for working fork... " >&6; }
26527 if ${ac_cv_func_fork_works+:} false; then :
26528   $as_echo_n "(cached) " >&6
26529 else
26530   if test "$cross_compiling" = yes; then :
26531   ac_cv_func_fork_works=cross
26532 else
26533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26534 /* end confdefs.h.  */
26535 $ac_includes_default
26536 int
26537 main ()
26538 {
26539
26540           /* By Ruediger Kuhlmann. */
26541           return fork () < 0;
26542
26543   ;
26544   return 0;
26545 }
26546 _ACEOF
26547 if ac_fn_c_try_run "$LINENO"; then :
26548   ac_cv_func_fork_works=yes
26549 else
26550   ac_cv_func_fork_works=no
26551 fi
26552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26553   conftest.$ac_objext conftest.beam conftest.$ac_ext
26554 fi
26555
26556 fi
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
26558 $as_echo "$ac_cv_func_fork_works" >&6; }
26559
26560 else
26561   ac_cv_func_fork_works=$ac_cv_func_fork
26562 fi
26563 if test "x$ac_cv_func_fork_works" = xcross; then
26564   case $host in
26565     *-*-amigaos* | *-*-msdosdjgpp*)
26566       # Override, as these systems have only a dummy fork() stub
26567       ac_cv_func_fork_works=no
26568       ;;
26569     *)
26570       ac_cv_func_fork_works=yes
26571       ;;
26572   esac
26573   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26574 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26575 fi
26576 ac_cv_func_vfork_works=$ac_cv_func_vfork
26577 if test "x$ac_cv_func_vfork" = xyes; then
26578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
26579 $as_echo_n "checking for working vfork... " >&6; }
26580 if ${ac_cv_func_vfork_works+:} false; then :
26581   $as_echo_n "(cached) " >&6
26582 else
26583   if test "$cross_compiling" = yes; then :
26584   ac_cv_func_vfork_works=cross
26585 else
26586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26587 /* end confdefs.h.  */
26588 /* Thanks to Paul Eggert for this test.  */
26589 $ac_includes_default
26590 #include <sys/wait.h>
26591 #ifdef HAVE_VFORK_H
26592 # include <vfork.h>
26593 #endif
26594 /* On some sparc systems, changes by the child to local and incoming
26595    argument registers are propagated back to the parent.  The compiler
26596    is told about this with #include <vfork.h>, but some compilers
26597    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
26598    static variable whose address is put into a register that is
26599    clobbered by the vfork.  */
26600 static void
26601 #ifdef __cplusplus
26602 sparc_address_test (int arg)
26603 # else
26604 sparc_address_test (arg) int arg;
26605 #endif
26606 {
26607   static pid_t child;
26608   if (!child) {
26609     child = vfork ();
26610     if (child < 0) {
26611       perror ("vfork");
26612       _exit(2);
26613     }
26614     if (!child) {
26615       arg = getpid();
26616       write(-1, "", 0);
26617       _exit (arg);
26618     }
26619   }
26620 }
26621
26622 int
26623 main ()
26624 {
26625   pid_t parent = getpid ();
26626   pid_t child;
26627
26628   sparc_address_test (0);
26629
26630   child = vfork ();
26631
26632   if (child == 0) {
26633     /* Here is another test for sparc vfork register problems.  This
26634        test uses lots of local variables, at least as many local
26635        variables as main has allocated so far including compiler
26636        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
26637        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
26638        reuse the register of parent for one of the local variables,
26639        since it will think that parent can't possibly be used any more
26640        in this routine.  Assigning to the local variable will thus
26641        munge parent in the parent process.  */
26642     pid_t
26643       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26644       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26645     /* Convince the compiler that p..p7 are live; otherwise, it might
26646        use the same hardware register for all 8 local variables.  */
26647     if (p != p1 || p != p2 || p != p3 || p != p4
26648         || p != p5 || p != p6 || p != p7)
26649       _exit(1);
26650
26651     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26652        from child file descriptors.  If the child closes a descriptor
26653        before it execs or exits, this munges the parent's descriptor
26654        as well.  Test for this by closing stdout in the child.  */
26655     _exit(close(fileno(stdout)) != 0);
26656   } else {
26657     int status;
26658     struct stat st;
26659
26660     while (wait(&status) != child)
26661       ;
26662     return (
26663          /* Was there some problem with vforking?  */
26664          child < 0
26665
26666          /* Did the child fail?  (This shouldn't happen.)  */
26667          || status
26668
26669          /* Did the vfork/compiler bug occur?  */
26670          || parent != getpid()
26671
26672          /* Did the file descriptor bug occur?  */
26673          || fstat(fileno(stdout), &st) != 0
26674          );
26675   }
26676 }
26677 _ACEOF
26678 if ac_fn_c_try_run "$LINENO"; then :
26679   ac_cv_func_vfork_works=yes
26680 else
26681   ac_cv_func_vfork_works=no
26682 fi
26683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26684   conftest.$ac_objext conftest.beam conftest.$ac_ext
26685 fi
26686
26687 fi
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
26689 $as_echo "$ac_cv_func_vfork_works" >&6; }
26690
26691 fi;
26692 if test "x$ac_cv_func_fork_works" = xcross; then
26693   ac_cv_func_vfork_works=$ac_cv_func_vfork
26694   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26695 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26696 fi
26697
26698 if test "x$ac_cv_func_vfork_works" = xyes; then
26699
26700 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
26701
26702 else
26703
26704 $as_echo "#define vfork fork" >>confdefs.h
26705
26706 fi
26707 if test "x$ac_cv_func_fork_works" = xyes; then
26708
26709 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
26710
26711 fi
26712
26713 if test "x$ac_cv_func_fork_works" != xyes; then
26714   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26716 as_fn_error $? "cannot use libpipeline on systems without fork
26717 See \`config.log' for more details" "$LINENO" 5; }
26718 fi
26719
26720 # Check for socketpair(2) as fast replacement for pipe(2).
26721 # Check whether --enable-socketpair-pipe was given.
26722 if test "${enable_socketpair_pipe+set}" = set; then :
26723   enableval=$enable_socketpair_pipe;  if test "$enableval" = "yes"
26724     then
26725        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
26726 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
26727   if ${pipeline_cv_socketpair_pipe+:} false; then :
26728   $as_echo_n "(cached) " >&6
26729 else
26730
26731     if test "$cross_compiling" = yes; then :
26732   pipeline_cv_socketpair_pipe=no
26733 else
26734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26735 /* end confdefs.h.  */
26736
26737 #include <netdb.h>
26738 #include <netinet/in.h>
26739 #include <signal.h>
26740 #include <sys/socket.h>
26741 #include <sys/types.h>
26742 #include <sys/wait.h>
26743 #include <unistd.h>
26744 #ifndef SHUT_RD
26745 #       define SHUT_RD  0
26746 #endif
26747 #ifndef SHUT_WR
26748 #       define SHUT_WR  1
26749 #endif
26750
26751 static void sigpipe(int sig)
26752 {
26753         _exit(0);
26754 }
26755
26756 int main()
26757 {
26758         const char test[] = "May use socketpair(2) instead of pipe(2)\n";
26759         char buf[256];
26760         int sfd[2], s;
26761         pid_t pid;
26762         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26763                 return 1;
26764         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26765                 return 1;
26766         if ((pid = fork()) < 0)
26767                 return 1;
26768         if (pid) {
26769                 close(sfd[1]);
26770                 waitpid(-1,&s,0);
26771                 if (read(sfd[0],buf,sizeof(buf)) < 0)
26772                         return 1;
26773         } else {
26774                 close(sfd[0]);
26775                 write(sfd[1],test,sizeof(test) - 1);
26776                 return 0;
26777         }
26778         close(sfd[0]);
26779         signal(SIGPIPE, sigpipe);
26780         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26781                 return 1;
26782         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26783                 return 1;
26784         close(sfd[0]);
26785         write(sfd[1],test,sizeof(test) - 1);
26786         return 1;
26787 }
26788 _ACEOF
26789 if ac_fn_c_try_run "$LINENO"; then :
26790   pipeline_cv_socketpair_pipe=yes
26791 else
26792   pipeline_cv_socketpair_pipe=no
26793 fi
26794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26795   conftest.$ac_objext conftest.beam conftest.$ac_ext
26796 fi
26797
26798
26799 fi
26800
26801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
26802 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
26803   if test "$pipeline_cv_socketpair_pipe" = yes; then
26804
26805 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
26806
26807   fi
26808
26809       if test "$pipeline_cv_socketpair_pipe" = yes; then
26810          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
26811 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
26812   if ${pipeline_cv_socketpair_mode+:} false; then :
26813   $as_echo_n "(cached) " >&6
26814 else
26815
26816     if test "$cross_compiling" = yes; then :
26817   pipeline_cv_socketpair_mode=no
26818 else
26819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h.  */
26821
26822 #include <netdb.h>
26823 #include <netinet/in.h>
26824 #include <sys/stat.h>
26825 #include <sys/socket.h>
26826 #include <sys/types.h>
26827 #include <unistd.h>
26828 #ifndef SHUT_RD
26829 #       define SHUT_RD  0
26830 #endif
26831 #ifndef SHUT_WR
26832 #       define SHUT_WR  1
26833 #endif
26834
26835 int main()
26836 {
26837         int sfd[2];
26838         struct stat st[2];
26839         if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
26840                 return 1;
26841         if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
26842                 return 1;
26843         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
26844                 return 1;
26845         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
26846                 return 1;
26847         if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
26848                 return 1;
26849         if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
26850                 return 1;
26851         if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
26852                 return 1;
26853         return 0;
26854 }
26855 _ACEOF
26856 if ac_fn_c_try_run "$LINENO"; then :
26857   pipeline_cv_socketpair_mode=yes
26858 else
26859   pipeline_cv_socketpair_mode=no
26860 fi
26861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26862   conftest.$ac_objext conftest.beam conftest.$ac_ext
26863 fi
26864
26865
26866 fi
26867
26868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
26869 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
26870   if test "$pipeline_cv_socketpair_mode" = yes; then
26871
26872 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
26873
26874   fi
26875
26876       fi
26877     fi
26878
26879 fi
26880
26881
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
26883 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
26885 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
26887 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
26889 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
26891 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
26893 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
26894
26895 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
26896
26897 cat >confcache <<\_ACEOF
26898 # This file is a shell script that caches the results of configure
26899 # tests run on this system so they can be shared between configure
26900 # scripts and configure runs, see configure's option --config-cache.
26901 # It is not useful on other systems.  If it contains results you don't
26902 # want to keep, you may remove or edit it.
26903 #
26904 # config.status only pays attention to the cache file if you give it
26905 # the --recheck option to rerun configure.
26906 #
26907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26909 # following values.
26910
26911 _ACEOF
26912
26913 # The following way of writing the cache mishandles newlines in values,
26914 # but we know of no workaround that is simple, portable, and efficient.
26915 # So, we kill variables containing newlines.
26916 # Ultrix sh set writes to stderr and can't be redirected directly,
26917 # and sets the high bit in the cache file unless we assign to the vars.
26918 (
26919   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26920     eval ac_val=\$$ac_var
26921     case $ac_val in #(
26922     *${as_nl}*)
26923       case $ac_var in #(
26924       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26926       esac
26927       case $ac_var in #(
26928       _ | IFS | as_nl) ;; #(
26929       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26930       *) { eval $ac_var=; unset $ac_var;} ;;
26931       esac ;;
26932     esac
26933   done
26934
26935   (set) 2>&1 |
26936     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26937     *${as_nl}ac_space=\ *)
26938       # `set' does not quote correctly, so add quotes: double-quote
26939       # substitution turns \\\\ into \\, and sed turns \\ into \.
26940       sed -n \
26941         "s/'/'\\\\''/g;
26942           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26943       ;; #(
26944     *)
26945       # `set' quotes correctly as required by POSIX, so do not add quotes.
26946       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26947       ;;
26948     esac |
26949     sort
26950 ) |
26951   sed '
26952      /^ac_cv_env_/b end
26953      t clear
26954      :clear
26955      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26956      t end
26957      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26958      :end' >>confcache
26959 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26960   if test -w "$cache_file"; then
26961     if test "x$cache_file" != "x/dev/null"; then
26962       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26963 $as_echo "$as_me: updating cache $cache_file" >&6;}
26964       if test ! -f "$cache_file" || test -h "$cache_file"; then
26965         cat confcache >"$cache_file"
26966       else
26967         case $cache_file in #(
26968         */* | ?:*)
26969           mv -f confcache "$cache_file"$$ &&
26970           mv -f "$cache_file"$$ "$cache_file" ;; #(
26971         *)
26972           mv -f confcache "$cache_file" ;;
26973         esac
26974       fi
26975     fi
26976   else
26977     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26978 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26979   fi
26980 fi
26981 rm -f confcache
26982
26983 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26984 # Let make expand exec_prefix.
26985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26986
26987 DEFS=-DHAVE_CONFIG_H
26988
26989 ac_libobjs=
26990 ac_ltlibobjs=
26991 U=
26992 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26993   # 1. Remove the extension, and $U if already installed.
26994   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26995   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26996   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26997   #    will be set to the directory where LIBOBJS objects are built.
26998   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26999   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27000 done
27001 LIBOBJS=$ac_libobjs
27002
27003 LTLIBOBJS=$ac_ltlibobjs
27004
27005
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27007 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27008    if test -n "$am_sleep_pid"; then
27009      # Hide warnings about reused PIDs.
27010      wait $am_sleep_pid 2>/dev/null
27011    fi
27012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27013 $as_echo "done" >&6; }
27014  if test -n "$EXEEXT"; then
27015   am__EXEEXT_TRUE=
27016   am__EXEEXT_FALSE='#'
27017 else
27018   am__EXEEXT_TRUE='#'
27019   am__EXEEXT_FALSE=
27020 fi
27021
27022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27023   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27025 fi
27026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27027   as_fn_error $? "conditional \"AMDEP\" was never defined.
27028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27029 fi
27030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27031   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27033 fi
27034 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27035   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27037 fi
27038 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
27039   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
27040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27041 fi
27042 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27043   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
27044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27045 fi
27046 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27047   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27049 fi
27050 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27051   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27053 fi
27054 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27055   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27057 fi
27058 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
27059   as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
27060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27061 fi
27062 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27063   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27065 fi
27066 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27067   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27069 fi
27070 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27071   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27073 fi
27074
27075
27076     gl_libobjs=
27077     gl_ltlibobjs=
27078     if test -n "$gl_LIBOBJS"; then
27079       # Remove the extension.
27080       sed_drop_objext='s/\.o$//;s/\.obj$//'
27081       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27082         gl_libobjs="$gl_libobjs $i.$ac_objext"
27083         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27084       done
27085     fi
27086     gl_LIBOBJS=$gl_libobjs
27087
27088     gl_LTLIBOBJS=$gl_ltlibobjs
27089
27090
27091
27092     gltests_libobjs=
27093     gltests_ltlibobjs=
27094     if test -n "$gltests_LIBOBJS"; then
27095       # Remove the extension.
27096       sed_drop_objext='s/\.o$//;s/\.obj$//'
27097       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27098         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27099         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27100       done
27101     fi
27102     gltests_LIBOBJS=$gltests_libobjs
27103
27104     gltests_LTLIBOBJS=$gltests_ltlibobjs
27105
27106
27107
27108 : "${CONFIG_STATUS=./config.status}"
27109 ac_write_fail=0
27110 ac_clean_files_save=$ac_clean_files
27111 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27113 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27114 as_write_fail=0
27115 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27116 #! $SHELL
27117 # Generated by $as_me.
27118 # Run this file to recreate the current configuration.
27119 # Compiler output produced by configure, useful for debugging
27120 # configure, is in config.log if it exists.
27121
27122 debug=false
27123 ac_cs_recheck=false
27124 ac_cs_silent=false
27125
27126 SHELL=\${CONFIG_SHELL-$SHELL}
27127 export SHELL
27128 _ASEOF
27129 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27130 ## -------------------- ##
27131 ## M4sh Initialization. ##
27132 ## -------------------- ##
27133
27134 # Be more Bourne compatible
27135 DUALCASE=1; export DUALCASE # for MKS sh
27136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27137   emulate sh
27138   NULLCMD=:
27139   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27140   # is contrary to our usage.  Disable this feature.
27141   alias -g '${1+"$@"}'='"$@"'
27142   setopt NO_GLOB_SUBST
27143 else
27144   case `(set -o) 2>/dev/null` in #(
27145   *posix*) :
27146     set -o posix ;; #(
27147   *) :
27148      ;;
27149 esac
27150 fi
27151
27152
27153 as_nl='
27154 '
27155 export as_nl
27156 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27157 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27160 # Prefer a ksh shell builtin over an external printf program on Solaris,
27161 # but without wasting forks for bash or zsh.
27162 if test -z "$BASH_VERSION$ZSH_VERSION" \
27163     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27164   as_echo='print -r --'
27165   as_echo_n='print -rn --'
27166 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27167   as_echo='printf %s\n'
27168   as_echo_n='printf %s'
27169 else
27170   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27171     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27172     as_echo_n='/usr/ucb/echo -n'
27173   else
27174     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27175     as_echo_n_body='eval
27176       arg=$1;
27177       case $arg in #(
27178       *"$as_nl"*)
27179         expr "X$arg" : "X\\(.*\\)$as_nl";
27180         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27181       esac;
27182       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27183     '
27184     export as_echo_n_body
27185     as_echo_n='sh -c $as_echo_n_body as_echo'
27186   fi
27187   export as_echo_body
27188   as_echo='sh -c $as_echo_body as_echo'
27189 fi
27190
27191 # The user is always right.
27192 if test "${PATH_SEPARATOR+set}" != set; then
27193   PATH_SEPARATOR=:
27194   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27195     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27196       PATH_SEPARATOR=';'
27197   }
27198 fi
27199
27200
27201 # IFS
27202 # We need space, tab and new line, in precisely that order.  Quoting is
27203 # there to prevent editors from complaining about space-tab.
27204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27205 # splitting by setting IFS to empty value.)
27206 IFS=" ""        $as_nl"
27207
27208 # Find who we are.  Look in the path if we contain no directory separator.
27209 as_myself=
27210 case $0 in #((
27211   *[\\/]* ) as_myself=$0 ;;
27212   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27213 for as_dir in $PATH
27214 do
27215   IFS=$as_save_IFS
27216   test -z "$as_dir" && as_dir=.
27217     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27218   done
27219 IFS=$as_save_IFS
27220
27221      ;;
27222 esac
27223 # We did not find ourselves, most probably we were run as `sh COMMAND'
27224 # in which case we are not to be found in the path.
27225 if test "x$as_myself" = x; then
27226   as_myself=$0
27227 fi
27228 if test ! -f "$as_myself"; then
27229   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27230   exit 1
27231 fi
27232
27233 # Unset variables that we do not need and which cause bugs (e.g. in
27234 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27235 # suppresses any "Segmentation fault" message there.  '((' could
27236 # trigger a bug in pdksh 5.2.14.
27237 for as_var in BASH_ENV ENV MAIL MAILPATH
27238 do eval test x\${$as_var+set} = xset \
27239   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27240 done
27241 PS1='$ '
27242 PS2='> '
27243 PS4='+ '
27244
27245 # NLS nuisances.
27246 LC_ALL=C
27247 export LC_ALL
27248 LANGUAGE=C
27249 export LANGUAGE
27250
27251 # CDPATH.
27252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27253
27254
27255 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27256 # ----------------------------------------
27257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27259 # script with STATUS, using 1 if that was 0.
27260 as_fn_error ()
27261 {
27262   as_status=$1; test $as_status -eq 0 && as_status=1
27263   if test "$4"; then
27264     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27265     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27266   fi
27267   $as_echo "$as_me: error: $2" >&2
27268   as_fn_exit $as_status
27269 } # as_fn_error
27270
27271
27272 # as_fn_set_status STATUS
27273 # -----------------------
27274 # Set $? to STATUS, without forking.
27275 as_fn_set_status ()
27276 {
27277   return $1
27278 } # as_fn_set_status
27279
27280 # as_fn_exit STATUS
27281 # -----------------
27282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27283 as_fn_exit ()
27284 {
27285   set +e
27286   as_fn_set_status $1
27287   exit $1
27288 } # as_fn_exit
27289
27290 # as_fn_unset VAR
27291 # ---------------
27292 # Portably unset VAR.
27293 as_fn_unset ()
27294 {
27295   { eval $1=; unset $1;}
27296 }
27297 as_unset=as_fn_unset
27298 # as_fn_append VAR VALUE
27299 # ----------------------
27300 # Append the text in VALUE to the end of the definition contained in VAR. Take
27301 # advantage of any shell optimizations that allow amortized linear growth over
27302 # repeated appends, instead of the typical quadratic growth present in naive
27303 # implementations.
27304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27305   eval 'as_fn_append ()
27306   {
27307     eval $1+=\$2
27308   }'
27309 else
27310   as_fn_append ()
27311   {
27312     eval $1=\$$1\$2
27313   }
27314 fi # as_fn_append
27315
27316 # as_fn_arith ARG...
27317 # ------------------
27318 # Perform arithmetic evaluation on the ARGs, and store the result in the
27319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27320 # must be portable across $(()) and expr.
27321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27322   eval 'as_fn_arith ()
27323   {
27324     as_val=$(( $* ))
27325   }'
27326 else
27327   as_fn_arith ()
27328   {
27329     as_val=`expr "$@" || test $? -eq 1`
27330   }
27331 fi # as_fn_arith
27332
27333
27334 if expr a : '\(a\)' >/dev/null 2>&1 &&
27335    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27336   as_expr=expr
27337 else
27338   as_expr=false
27339 fi
27340
27341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27342   as_basename=basename
27343 else
27344   as_basename=false
27345 fi
27346
27347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27348   as_dirname=dirname
27349 else
27350   as_dirname=false
27351 fi
27352
27353 as_me=`$as_basename -- "$0" ||
27354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27355          X"$0" : 'X\(//\)$' \| \
27356          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27357 $as_echo X/"$0" |
27358     sed '/^.*\/\([^/][^/]*\)\/*$/{
27359             s//\1/
27360             q
27361           }
27362           /^X\/\(\/\/\)$/{
27363             s//\1/
27364             q
27365           }
27366           /^X\/\(\/\).*/{
27367             s//\1/
27368             q
27369           }
27370           s/.*/./; q'`
27371
27372 # Avoid depending upon Character Ranges.
27373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27376 as_cr_digits='0123456789'
27377 as_cr_alnum=$as_cr_Letters$as_cr_digits
27378
27379 ECHO_C= ECHO_N= ECHO_T=
27380 case `echo -n x` in #(((((
27381 -n*)
27382   case `echo 'xy\c'` in
27383   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27384   xy)  ECHO_C='\c';;
27385   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27386        ECHO_T=' ';;
27387   esac;;
27388 *)
27389   ECHO_N='-n';;
27390 esac
27391
27392 rm -f conf$$ conf$$.exe conf$$.file
27393 if test -d conf$$.dir; then
27394   rm -f conf$$.dir/conf$$.file
27395 else
27396   rm -f conf$$.dir
27397   mkdir conf$$.dir 2>/dev/null
27398 fi
27399 if (echo >conf$$.file) 2>/dev/null; then
27400   if ln -s conf$$.file conf$$ 2>/dev/null; then
27401     as_ln_s='ln -s'
27402     # ... but there are two gotchas:
27403     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27404     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27405     # In both cases, we have to default to `cp -pR'.
27406     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27407       as_ln_s='cp -pR'
27408   elif ln conf$$.file conf$$ 2>/dev/null; then
27409     as_ln_s=ln
27410   else
27411     as_ln_s='cp -pR'
27412   fi
27413 else
27414   as_ln_s='cp -pR'
27415 fi
27416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27417 rmdir conf$$.dir 2>/dev/null
27418
27419
27420 # as_fn_mkdir_p
27421 # -------------
27422 # Create "$as_dir" as a directory, including parents if necessary.
27423 as_fn_mkdir_p ()
27424 {
27425
27426   case $as_dir in #(
27427   -*) as_dir=./$as_dir;;
27428   esac
27429   test -d "$as_dir" || eval $as_mkdir_p || {
27430     as_dirs=
27431     while :; do
27432       case $as_dir in #(
27433       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27434       *) as_qdir=$as_dir;;
27435       esac
27436       as_dirs="'$as_qdir' $as_dirs"
27437       as_dir=`$as_dirname -- "$as_dir" ||
27438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27439          X"$as_dir" : 'X\(//\)[^/]' \| \
27440          X"$as_dir" : 'X\(//\)$' \| \
27441          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27442 $as_echo X"$as_dir" |
27443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27444             s//\1/
27445             q
27446           }
27447           /^X\(\/\/\)[^/].*/{
27448             s//\1/
27449             q
27450           }
27451           /^X\(\/\/\)$/{
27452             s//\1/
27453             q
27454           }
27455           /^X\(\/\).*/{
27456             s//\1/
27457             q
27458           }
27459           s/.*/./; q'`
27460       test -d "$as_dir" && break
27461     done
27462     test -z "$as_dirs" || eval "mkdir $as_dirs"
27463   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27464
27465
27466 } # as_fn_mkdir_p
27467 if mkdir -p . 2>/dev/null; then
27468   as_mkdir_p='mkdir -p "$as_dir"'
27469 else
27470   test -d ./-p && rmdir ./-p
27471   as_mkdir_p=false
27472 fi
27473
27474
27475 # as_fn_executable_p FILE
27476 # -----------------------
27477 # Test if FILE is an executable regular file.
27478 as_fn_executable_p ()
27479 {
27480   test -f "$1" && test -x "$1"
27481 } # as_fn_executable_p
27482 as_test_x='test -x'
27483 as_executable_p=as_fn_executable_p
27484
27485 # Sed expression to map a string onto a valid CPP name.
27486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27487
27488 # Sed expression to map a string onto a valid variable name.
27489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27490
27491
27492 exec 6>&1
27493 ## ----------------------------------- ##
27494 ## Main body of $CONFIG_STATUS script. ##
27495 ## ----------------------------------- ##
27496 _ASEOF
27497 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27498
27499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27500 # Save the log message, to keep $0 and so on meaningful, and to
27501 # report actual input values of CONFIG_FILES etc. instead of their
27502 # values after options handling.
27503 ac_log="
27504 This file was extended by libpipeline $as_me 1.4.2, which was
27505 generated by GNU Autoconf 2.69.  Invocation command line was
27506
27507   CONFIG_FILES    = $CONFIG_FILES
27508   CONFIG_HEADERS  = $CONFIG_HEADERS
27509   CONFIG_LINKS    = $CONFIG_LINKS
27510   CONFIG_COMMANDS = $CONFIG_COMMANDS
27511   $ $0 $@
27512
27513 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27514 "
27515
27516 _ACEOF
27517
27518 case $ac_config_files in *"
27519 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27520 esac
27521
27522 case $ac_config_headers in *"
27523 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27524 esac
27525
27526
27527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27528 # Files that config.status was made for.
27529 config_files="$ac_config_files"
27530 config_headers="$ac_config_headers"
27531 config_commands="$ac_config_commands"
27532
27533 _ACEOF
27534
27535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27536 ac_cs_usage="\
27537 \`$as_me' instantiates files and other configuration actions
27538 from templates according to the current configuration.  Unless the files
27539 and actions are specified as TAGs, all are instantiated by default.
27540
27541 Usage: $0 [OPTION]... [TAG]...
27542
27543   -h, --help       print this help, then exit
27544   -V, --version    print version number and configuration settings, then exit
27545       --config     print configuration, then exit
27546   -q, --quiet, --silent
27547                    do not print progress messages
27548   -d, --debug      don't remove temporary files
27549       --recheck    update $as_me by reconfiguring in the same conditions
27550       --file=FILE[:TEMPLATE]
27551                    instantiate the configuration file FILE
27552       --header=FILE[:TEMPLATE]
27553                    instantiate the configuration header FILE
27554
27555 Configuration files:
27556 $config_files
27557
27558 Configuration headers:
27559 $config_headers
27560
27561 Configuration commands:
27562 $config_commands
27563
27564 Report bugs to <cjwatson@debian.org>."
27565
27566 _ACEOF
27567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27568 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27569 ac_cs_version="\\
27570 libpipeline config.status 1.4.2
27571 configured by $0, generated by GNU Autoconf 2.69,
27572   with options \\"\$ac_cs_config\\"
27573
27574 Copyright (C) 2012 Free Software Foundation, Inc.
27575 This config.status script is free software; the Free Software Foundation
27576 gives unlimited permission to copy, distribute and modify it."
27577
27578 ac_pwd='$ac_pwd'
27579 srcdir='$srcdir'
27580 INSTALL='$INSTALL'
27581 MKDIR_P='$MKDIR_P'
27582 AWK='$AWK'
27583 test -n "\$AWK" || AWK=awk
27584 _ACEOF
27585
27586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27587 # The default lists apply if the user does not specify any file.
27588 ac_need_defaults=:
27589 while test $# != 0
27590 do
27591   case $1 in
27592   --*=?*)
27593     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27594     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27595     ac_shift=:
27596     ;;
27597   --*=)
27598     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27599     ac_optarg=
27600     ac_shift=:
27601     ;;
27602   *)
27603     ac_option=$1
27604     ac_optarg=$2
27605     ac_shift=shift
27606     ;;
27607   esac
27608
27609   case $ac_option in
27610   # Handling of the options.
27611   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27612     ac_cs_recheck=: ;;
27613   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27614     $as_echo "$ac_cs_version"; exit ;;
27615   --config | --confi | --conf | --con | --co | --c )
27616     $as_echo "$ac_cs_config"; exit ;;
27617   --debug | --debu | --deb | --de | --d | -d )
27618     debug=: ;;
27619   --file | --fil | --fi | --f )
27620     $ac_shift
27621     case $ac_optarg in
27622     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27623     '') as_fn_error $? "missing file argument" ;;
27624     esac
27625     as_fn_append CONFIG_FILES " '$ac_optarg'"
27626     ac_need_defaults=false;;
27627   --header | --heade | --head | --hea )
27628     $ac_shift
27629     case $ac_optarg in
27630     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27631     esac
27632     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27633     ac_need_defaults=false;;
27634   --he | --h)
27635     # Conflict between --help and --header
27636     as_fn_error $? "ambiguous option: \`$1'
27637 Try \`$0 --help' for more information.";;
27638   --help | --hel | -h )
27639     $as_echo "$ac_cs_usage"; exit ;;
27640   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27641   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27642     ac_cs_silent=: ;;
27643
27644   # This is an error.
27645   -*) as_fn_error $? "unrecognized option: \`$1'
27646 Try \`$0 --help' for more information." ;;
27647
27648   *) as_fn_append ac_config_targets " $1"
27649      ac_need_defaults=false ;;
27650
27651   esac
27652   shift
27653 done
27654
27655 ac_configure_extra_args=
27656
27657 if $ac_cs_silent; then
27658   exec 6>/dev/null
27659   ac_configure_extra_args="$ac_configure_extra_args --silent"
27660 fi
27661
27662 _ACEOF
27663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27664 if \$ac_cs_recheck; then
27665   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27666   shift
27667   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27668   CONFIG_SHELL='$SHELL'
27669   export CONFIG_SHELL
27670   exec "\$@"
27671 fi
27672
27673 _ACEOF
27674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27675 exec 5>>config.log
27676 {
27677   echo
27678   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27679 ## Running $as_me. ##
27680 _ASBOX
27681   $as_echo "$ac_log"
27682 } >&5
27683
27684 _ACEOF
27685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27686 #
27687 # INIT-COMMANDS
27688 #
27689 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27690
27691
27692 # The HP-UX ksh and POSIX shell print the target directory to stdout
27693 # if CDPATH is set.
27694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27695
27696 sed_quote_subst='$sed_quote_subst'
27697 double_quote_subst='$double_quote_subst'
27698 delay_variable_subst='$delay_variable_subst'
27699 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27700 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27701 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27702 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27703 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27704 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27705 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27706 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27707 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27708 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27709 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27710 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27711 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27712 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27713 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27714 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27715 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27716 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27717 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27718 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27719 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27720 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27721 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27722 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27723 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27724 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27725 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27726 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27727 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27728 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27729 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27730 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27731 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27732 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27733 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27734 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27735 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27736 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27737 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27738 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27739 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27740 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27741 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27742 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27743 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27744 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27745 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27746 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27747 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27748 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27749 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27750 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27751 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27752 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27753 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27754 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27755 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27756 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27757 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"`'
27758 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27759 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27760 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27761 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27762 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27763 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27764 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27765 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27766 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27767 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27768 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27769 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27770 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27771 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27772 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27773 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27774 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27775 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27776 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27777 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27778 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27779 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27780 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27781 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27782 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27783 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27784 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27785 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27786 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27787 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27788 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27789 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27790 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27791 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27792 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27793 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27794 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27795 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27796 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27797 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27798 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27799 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27800 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27801 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27802 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27803 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27804 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27805 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27806 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27807 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27808 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27809 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27810 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27811 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27812 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27813 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27814 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27815 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27816 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27817 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27818 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27819 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27820 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27821 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27822 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27823 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27824 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27825 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27826 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27827 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27828 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27829 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27830 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27831 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27832 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27833 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27834
27835 LTCC='$LTCC'
27836 LTCFLAGS='$LTCFLAGS'
27837 compiler='$compiler_DEFAULT'
27838
27839 # A function that is used when there is no print builtin or printf.
27840 func_fallback_echo ()
27841 {
27842   eval 'cat <<_LTECHO_EOF
27843 \$1
27844 _LTECHO_EOF'
27845 }
27846
27847 # Quote evaled strings.
27848 for var in SHELL \
27849 ECHO \
27850 PATH_SEPARATOR \
27851 SED \
27852 GREP \
27853 EGREP \
27854 FGREP \
27855 LD \
27856 NM \
27857 LN_S \
27858 lt_SP2NL \
27859 lt_NL2SP \
27860 reload_flag \
27861 OBJDUMP \
27862 deplibs_check_method \
27863 file_magic_cmd \
27864 file_magic_glob \
27865 want_nocaseglob \
27866 DLLTOOL \
27867 sharedlib_from_linklib_cmd \
27868 AR \
27869 AR_FLAGS \
27870 archiver_list_spec \
27871 STRIP \
27872 RANLIB \
27873 CC \
27874 CFLAGS \
27875 compiler \
27876 lt_cv_sys_global_symbol_pipe \
27877 lt_cv_sys_global_symbol_to_cdecl \
27878 lt_cv_sys_global_symbol_to_import \
27879 lt_cv_sys_global_symbol_to_c_name_address \
27880 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27881 lt_cv_nm_interface \
27882 nm_file_list_spec \
27883 lt_cv_truncate_bin \
27884 lt_prog_compiler_no_builtin_flag \
27885 lt_prog_compiler_pic \
27886 lt_prog_compiler_wl \
27887 lt_prog_compiler_static \
27888 lt_cv_prog_compiler_c_o \
27889 need_locks \
27890 MANIFEST_TOOL \
27891 DSYMUTIL \
27892 NMEDIT \
27893 LIPO \
27894 OTOOL \
27895 OTOOL64 \
27896 shrext_cmds \
27897 export_dynamic_flag_spec \
27898 whole_archive_flag_spec \
27899 compiler_needs_object \
27900 with_gnu_ld \
27901 allow_undefined_flag \
27902 no_undefined_flag \
27903 hardcode_libdir_flag_spec \
27904 hardcode_libdir_separator \
27905 exclude_expsyms \
27906 include_expsyms \
27907 file_list_spec \
27908 variables_saved_for_relink \
27909 libname_spec \
27910 library_names_spec \
27911 soname_spec \
27912 install_override_mode \
27913 finish_eval \
27914 old_striplib \
27915 striplib; do
27916     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27917     *[\\\\\\\`\\"\\\$]*)
27918       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27919       ;;
27920     *)
27921       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27922       ;;
27923     esac
27924 done
27925
27926 # Double-quote double-evaled strings.
27927 for var in reload_cmds \
27928 old_postinstall_cmds \
27929 old_postuninstall_cmds \
27930 old_archive_cmds \
27931 extract_expsyms_cmds \
27932 old_archive_from_new_cmds \
27933 old_archive_from_expsyms_cmds \
27934 archive_cmds \
27935 archive_expsym_cmds \
27936 module_cmds \
27937 module_expsym_cmds \
27938 export_symbols_cmds \
27939 prelink_cmds \
27940 postlink_cmds \
27941 postinstall_cmds \
27942 postuninstall_cmds \
27943 finish_cmds \
27944 sys_lib_search_path_spec \
27945 configure_time_dlsearch_path \
27946 configure_time_lt_sys_library_path; do
27947     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27948     *[\\\\\\\`\\"\\\$]*)
27949       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27950       ;;
27951     *)
27952       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27953       ;;
27954     esac
27955 done
27956
27957 ac_aux_dir='$ac_aux_dir'
27958
27959 # See if we are running on zsh, and set the options that allow our
27960 # commands through without removal of \ escapes INIT.
27961 if test -n "\${ZSH_VERSION+set}"; then
27962    setopt NO_GLOB_SUBST
27963 fi
27964
27965
27966     PACKAGE='$PACKAGE'
27967     VERSION='$VERSION'
27968     RM='$RM'
27969     ofile='$ofile'
27970
27971
27972
27973
27974 _ACEOF
27975
27976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27977
27978 # Handling of arguments.
27979 for ac_config_target in $ac_config_targets
27980 do
27981   case $ac_config_target in
27982     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27983     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27984     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27985     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27986     "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
27987     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27988     "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
27989     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27990     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27991
27992   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27993   esac
27994 done
27995
27996
27997 # If the user did not use the arguments to specify the items to instantiate,
27998 # then the envvar interface is used.  Set only those that are not.
27999 # We use the long form for the default assignment because of an extremely
28000 # bizarre bug on SunOS 4.1.3.
28001 if $ac_need_defaults; then
28002   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28003   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28004   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28005 fi
28006
28007 # Have a temporary directory for convenience.  Make it in the build tree
28008 # simply because there is no reason against having it here, and in addition,
28009 # creating and moving files from /tmp can sometimes cause problems.
28010 # Hook for its removal unless debugging.
28011 # Note that there is a small window in which the directory will not be cleaned:
28012 # after its creation but before its name has been assigned to `$tmp'.
28013 $debug ||
28014 {
28015   tmp= ac_tmp=
28016   trap 'exit_status=$?
28017   : "${ac_tmp:=$tmp}"
28018   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28019 ' 0
28020   trap 'as_fn_exit 1' 1 2 13 15
28021 }
28022 # Create a (secure) tmp directory for tmp files.
28023
28024 {
28025   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28026   test -d "$tmp"
28027 }  ||
28028 {
28029   tmp=./conf$$-$RANDOM
28030   (umask 077 && mkdir "$tmp")
28031 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28032 ac_tmp=$tmp
28033
28034 # Set up the scripts for CONFIG_FILES section.
28035 # No need to generate them if there are no CONFIG_FILES.
28036 # This happens for instance with `./config.status config.h'.
28037 if test -n "$CONFIG_FILES"; then
28038
28039
28040 ac_cr=`echo X | tr X '\015'`
28041 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28042 # But we know of no other shell where ac_cr would be empty at this
28043 # point, so we can use a bashism as a fallback.
28044 if test "x$ac_cr" = x; then
28045   eval ac_cr=\$\'\\r\'
28046 fi
28047 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28048 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28049   ac_cs_awk_cr='\\r'
28050 else
28051   ac_cs_awk_cr=$ac_cr
28052 fi
28053
28054 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28055 _ACEOF
28056
28057
28058 {
28059   echo "cat >conf$$subs.awk <<_ACEOF" &&
28060   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28061   echo "_ACEOF"
28062 } >conf$$subs.sh ||
28063   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28065 ac_delim='%!_!# '
28066 for ac_last_try in false false false false false :; do
28067   . ./conf$$subs.sh ||
28068     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28069
28070   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28071   if test $ac_delim_n = $ac_delim_num; then
28072     break
28073   elif $ac_last_try; then
28074     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28075   else
28076     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28077   fi
28078 done
28079 rm -f conf$$subs.sh
28080
28081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28082 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28083 _ACEOF
28084 sed -n '
28085 h
28086 s/^/S["/; s/!.*/"]=/
28087 p
28088 g
28089 s/^[^!]*!//
28090 :repl
28091 t repl
28092 s/'"$ac_delim"'$//
28093 t delim
28094 :nl
28095 h
28096 s/\(.\{148\}\)..*/\1/
28097 t more1
28098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28099 p
28100 n
28101 b repl
28102 :more1
28103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28104 p
28105 g
28106 s/.\{148\}//
28107 t nl
28108 :delim
28109 h
28110 s/\(.\{148\}\)..*/\1/
28111 t more2
28112 s/["\\]/\\&/g; s/^/"/; s/$/"/
28113 p
28114 b
28115 :more2
28116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28117 p
28118 g
28119 s/.\{148\}//
28120 t delim
28121 ' <conf$$subs.awk | sed '
28122 /^[^""]/{
28123   N
28124   s/\n//
28125 }
28126 ' >>$CONFIG_STATUS || ac_write_fail=1
28127 rm -f conf$$subs.awk
28128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28129 _ACAWK
28130 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28131   for (key in S) S_is_set[key] = 1
28132   FS = "\a"
28133
28134 }
28135 {
28136   line = $ 0
28137   nfields = split(line, field, "@")
28138   substed = 0
28139   len = length(field[1])
28140   for (i = 2; i < nfields; i++) {
28141     key = field[i]
28142     keylen = length(key)
28143     if (S_is_set[key]) {
28144       value = S[key]
28145       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28146       len += length(value) + length(field[++i])
28147       substed = 1
28148     } else
28149       len += 1 + keylen
28150   }
28151
28152   print line
28153 }
28154
28155 _ACAWK
28156 _ACEOF
28157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28159   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28160 else
28161   cat
28162 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28163   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28164 _ACEOF
28165
28166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28168 # trailing colons and then remove the whole line if VPATH becomes empty
28169 # (actually we leave an empty line to preserve line numbers).
28170 if test "x$srcdir" = x.; then
28171   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
28172 h
28173 s///
28174 s/^/:/
28175 s/[      ]*$/:/
28176 s/:\$(srcdir):/:/g
28177 s/:\${srcdir}:/:/g
28178 s/:@srcdir@:/:/g
28179 s/^:*//
28180 s/:*$//
28181 x
28182 s/\(=[   ]*\).*/\1/
28183 G
28184 s/\n//
28185 s/^[^=]*=[       ]*$//
28186 }'
28187 fi
28188
28189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28190 fi # test -n "$CONFIG_FILES"
28191
28192 # Set up the scripts for CONFIG_HEADERS section.
28193 # No need to generate them if there are no CONFIG_HEADERS.
28194 # This happens for instance with `./config.status Makefile'.
28195 if test -n "$CONFIG_HEADERS"; then
28196 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28197 BEGIN {
28198 _ACEOF
28199
28200 # Transform confdefs.h into an awk script `defines.awk', embedded as
28201 # here-document in config.status, that substitutes the proper values into
28202 # config.h.in to produce config.h.
28203
28204 # Create a delimiter string that does not exist in confdefs.h, to ease
28205 # handling of long lines.
28206 ac_delim='%!_!# '
28207 for ac_last_try in false false :; do
28208   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28209   if test -z "$ac_tt"; then
28210     break
28211   elif $ac_last_try; then
28212     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28213   else
28214     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28215   fi
28216 done
28217
28218 # For the awk script, D is an array of macro values keyed by name,
28219 # likewise P contains macro parameters if any.  Preserve backslash
28220 # newline sequences.
28221
28222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28223 sed -n '
28224 s/.\{148\}/&'"$ac_delim"'/g
28225 t rset
28226 :rset
28227 s/^[     ]*#[    ]*define[       ][      ]*/ /
28228 t def
28229 d
28230 :def
28231 s/\\$//
28232 t bsnl
28233 s/["\\]/\\&/g
28234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28235 D["\1"]=" \3"/p
28236 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28237 d
28238 :bsnl
28239 s/["\\]/\\&/g
28240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28241 D["\1"]=" \3\\\\\\n"\\/p
28242 t cont
28243 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28244 t cont
28245 d
28246 :cont
28247 n
28248 s/.\{148\}/&'"$ac_delim"'/g
28249 t clear
28250 :clear
28251 s/\\$//
28252 t bsnlc
28253 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28254 d
28255 :bsnlc
28256 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28257 b cont
28258 ' <confdefs.h | sed '
28259 s/'"$ac_delim"'/"\\\
28260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28261
28262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28263   for (key in D) D_is_set[key] = 1
28264   FS = "\a"
28265 }
28266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28267   line = \$ 0
28268   split(line, arg, " ")
28269   if (arg[1] == "#") {
28270     defundef = arg[2]
28271     mac1 = arg[3]
28272   } else {
28273     defundef = substr(arg[1], 2)
28274     mac1 = arg[2]
28275   }
28276   split(mac1, mac2, "(") #)
28277   macro = mac2[1]
28278   prefix = substr(line, 1, index(line, defundef) - 1)
28279   if (D_is_set[macro]) {
28280     # Preserve the white space surrounding the "#".
28281     print prefix "define", macro P[macro] D[macro]
28282     next
28283   } else {
28284     # Replace #undef with comments.  This is necessary, for example,
28285     # in the case of _POSIX_SOURCE, which is predefined and required
28286     # on some systems where configure will not decide to define it.
28287     if (defundef == "undef") {
28288       print "/*", prefix defundef, macro, "*/"
28289       next
28290     }
28291   }
28292 }
28293 { print }
28294 _ACAWK
28295 _ACEOF
28296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28297   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28298 fi # test -n "$CONFIG_HEADERS"
28299
28300
28301 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28302 shift
28303 for ac_tag
28304 do
28305   case $ac_tag in
28306   :[FHLC]) ac_mode=$ac_tag; continue;;
28307   esac
28308   case $ac_mode$ac_tag in
28309   :[FHL]*:*);;
28310   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28311   :[FH]-) ac_tag=-:-;;
28312   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28313   esac
28314   ac_save_IFS=$IFS
28315   IFS=:
28316   set x $ac_tag
28317   IFS=$ac_save_IFS
28318   shift
28319   ac_file=$1
28320   shift
28321
28322   case $ac_mode in
28323   :L) ac_source=$1;;
28324   :[FH])
28325     ac_file_inputs=
28326     for ac_f
28327     do
28328       case $ac_f in
28329       -) ac_f="$ac_tmp/stdin";;
28330       *) # Look for the file first in the build tree, then in the source tree
28331          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28332          # because $ac_f cannot contain `:'.
28333          test -f "$ac_f" ||
28334            case $ac_f in
28335            [\\/$]*) false;;
28336            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28337            esac ||
28338            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28339       esac
28340       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28341       as_fn_append ac_file_inputs " '$ac_f'"
28342     done
28343
28344     # Let's still pretend it is `configure' which instantiates (i.e., don't
28345     # use $as_me), people would be surprised to read:
28346     #    /* config.h.  Generated by config.status.  */
28347     configure_input='Generated from '`
28348           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28349         `' by configure.'
28350     if test x"$ac_file" != x-; then
28351       configure_input="$ac_file.  $configure_input"
28352       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28353 $as_echo "$as_me: creating $ac_file" >&6;}
28354     fi
28355     # Neutralize special characters interpreted by sed in replacement strings.
28356     case $configure_input in #(
28357     *\&* | *\|* | *\\* )
28358        ac_sed_conf_input=`$as_echo "$configure_input" |
28359        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28360     *) ac_sed_conf_input=$configure_input;;
28361     esac
28362
28363     case $ac_tag in
28364     *:-:* | *:-) cat >"$ac_tmp/stdin" \
28365       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28366     esac
28367     ;;
28368   esac
28369
28370   ac_dir=`$as_dirname -- "$ac_file" ||
28371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28372          X"$ac_file" : 'X\(//\)[^/]' \| \
28373          X"$ac_file" : 'X\(//\)$' \| \
28374          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28375 $as_echo X"$ac_file" |
28376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28377             s//\1/
28378             q
28379           }
28380           /^X\(\/\/\)[^/].*/{
28381             s//\1/
28382             q
28383           }
28384           /^X\(\/\/\)$/{
28385             s//\1/
28386             q
28387           }
28388           /^X\(\/\).*/{
28389             s//\1/
28390             q
28391           }
28392           s/.*/./; q'`
28393   as_dir="$ac_dir"; as_fn_mkdir_p
28394   ac_builddir=.
28395
28396 case "$ac_dir" in
28397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28398 *)
28399   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28400   # A ".." for each directory in $ac_dir_suffix.
28401   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28402   case $ac_top_builddir_sub in
28403   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28404   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28405   esac ;;
28406 esac
28407 ac_abs_top_builddir=$ac_pwd
28408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28409 # for backward compatibility:
28410 ac_top_builddir=$ac_top_build_prefix
28411
28412 case $srcdir in
28413   .)  # We are building in place.
28414     ac_srcdir=.
28415     ac_top_srcdir=$ac_top_builddir_sub
28416     ac_abs_top_srcdir=$ac_pwd ;;
28417   [\\/]* | ?:[\\/]* )  # Absolute name.
28418     ac_srcdir=$srcdir$ac_dir_suffix;
28419     ac_top_srcdir=$srcdir
28420     ac_abs_top_srcdir=$srcdir ;;
28421   *) # Relative name.
28422     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28423     ac_top_srcdir=$ac_top_build_prefix$srcdir
28424     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28425 esac
28426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28427
28428
28429   case $ac_mode in
28430   :F)
28431   #
28432   # CONFIG_FILE
28433   #
28434
28435   case $INSTALL in
28436   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28437   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28438   esac
28439   ac_MKDIR_P=$MKDIR_P
28440   case $MKDIR_P in
28441   [\\/$]* | ?:[\\/]* ) ;;
28442   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28443   esac
28444 _ACEOF
28445
28446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28447 # If the template does not know about datarootdir, expand it.
28448 # FIXME: This hack should be removed a few years after 2.60.
28449 ac_datarootdir_hack=; ac_datarootdir_seen=
28450 ac_sed_dataroot='
28451 /datarootdir/ {
28452   p
28453   q
28454 }
28455 /@datadir@/p
28456 /@docdir@/p
28457 /@infodir@/p
28458 /@localedir@/p
28459 /@mandir@/p'
28460 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28461 *datarootdir*) ac_datarootdir_seen=yes;;
28462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28463   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28464 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28465 _ACEOF
28466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28467   ac_datarootdir_hack='
28468   s&@datadir@&$datadir&g
28469   s&@docdir@&$docdir&g
28470   s&@infodir@&$infodir&g
28471   s&@localedir@&$localedir&g
28472   s&@mandir@&$mandir&g
28473   s&\\\${datarootdir}&$datarootdir&g' ;;
28474 esac
28475 _ACEOF
28476
28477 # Neutralize VPATH when `$srcdir' = `.'.
28478 # Shell code in configure.ac might set extrasub.
28479 # FIXME: do we really want to maintain this feature?
28480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28481 ac_sed_extra="$ac_vpsub
28482 $extrasub
28483 _ACEOF
28484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28485 :t
28486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28487 s|@configure_input@|$ac_sed_conf_input|;t t
28488 s&@top_builddir@&$ac_top_builddir_sub&;t t
28489 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28490 s&@srcdir@&$ac_srcdir&;t t
28491 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28492 s&@top_srcdir@&$ac_top_srcdir&;t t
28493 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28494 s&@builddir@&$ac_builddir&;t t
28495 s&@abs_builddir@&$ac_abs_builddir&;t t
28496 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28497 s&@INSTALL@&$ac_INSTALL&;t t
28498 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28499 $ac_datarootdir_hack
28500 "
28501 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28502   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28503
28504 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28505   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28506   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
28507       "$ac_tmp/out"`; test -z "$ac_out"; } &&
28508   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28509 which seems to be undefined.  Please make sure it is defined" >&5
28510 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28511 which seems to be undefined.  Please make sure it is defined" >&2;}
28512
28513   rm -f "$ac_tmp/stdin"
28514   case $ac_file in
28515   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28516   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28517   esac \
28518   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28519  ;;
28520   :H)
28521   #
28522   # CONFIG_HEADER
28523   #
28524   if test x"$ac_file" != x-; then
28525     {
28526       $as_echo "/* $configure_input  */" \
28527       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28528     } >"$ac_tmp/config.h" \
28529       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28530     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28531       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28533     else
28534       rm -f "$ac_file"
28535       mv "$ac_tmp/config.h" "$ac_file" \
28536         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28537     fi
28538   else
28539     $as_echo "/* $configure_input  */" \
28540       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28541       || as_fn_error $? "could not create -" "$LINENO" 5
28542   fi
28543 # Compute "$ac_file"'s index in $config_headers.
28544 _am_arg="$ac_file"
28545 _am_stamp_count=1
28546 for _am_header in $config_headers :; do
28547   case $_am_header in
28548     $_am_arg | $_am_arg:* )
28549       break ;;
28550     * )
28551       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28552   esac
28553 done
28554 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28555 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28556          X"$_am_arg" : 'X\(//\)[^/]' \| \
28557          X"$_am_arg" : 'X\(//\)$' \| \
28558          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28559 $as_echo X"$_am_arg" |
28560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28561             s//\1/
28562             q
28563           }
28564           /^X\(\/\/\)[^/].*/{
28565             s//\1/
28566             q
28567           }
28568           /^X\(\/\/\)$/{
28569             s//\1/
28570             q
28571           }
28572           /^X\(\/\).*/{
28573             s//\1/
28574             q
28575           }
28576           s/.*/./; q'`/stamp-h$_am_stamp_count
28577  ;;
28578
28579   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28580 $as_echo "$as_me: executing $ac_file commands" >&6;}
28581  ;;
28582   esac
28583
28584
28585   case $ac_file$ac_mode in
28586     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28587   # Older Autoconf quotes --file arguments for eval, but not when files
28588   # are listed without --file.  Let's play safe and only enable the eval
28589   # if we detect the quoting.
28590   case $CONFIG_FILES in
28591   *\'*) eval set x "$CONFIG_FILES" ;;
28592   *)   set x $CONFIG_FILES ;;
28593   esac
28594   shift
28595   for mf
28596   do
28597     # Strip MF so we end up with the name of the file.
28598     mf=`echo "$mf" | sed -e 's/:.*$//'`
28599     # Check whether this is an Automake generated Makefile or not.
28600     # We used to match only the files named 'Makefile.in', but
28601     # some people rename them; so instead we look at the file content.
28602     # Grep'ing the first line is not enough: some people post-process
28603     # each Makefile.in and add a new line on top of each file to say so.
28604     # Grep'ing the whole file is not good either: AIX grep has a line
28605     # limit of 2048, but all sed's we know have understand at least 4000.
28606     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28607       dirpart=`$as_dirname -- "$mf" ||
28608 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28609          X"$mf" : 'X\(//\)[^/]' \| \
28610          X"$mf" : 'X\(//\)$' \| \
28611          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28612 $as_echo X"$mf" |
28613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28614             s//\1/
28615             q
28616           }
28617           /^X\(\/\/\)[^/].*/{
28618             s//\1/
28619             q
28620           }
28621           /^X\(\/\/\)$/{
28622             s//\1/
28623             q
28624           }
28625           /^X\(\/\).*/{
28626             s//\1/
28627             q
28628           }
28629           s/.*/./; q'`
28630     else
28631       continue
28632     fi
28633     # Extract the definition of DEPDIR, am__include, and am__quote
28634     # from the Makefile without running 'make'.
28635     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28636     test -z "$DEPDIR" && continue
28637     am__include=`sed -n 's/^am__include = //p' < "$mf"`
28638     test -z "$am__include" && continue
28639     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28640     # Find all dependency output files, they are included files with
28641     # $(DEPDIR) in their names.  We invoke sed twice because it is the
28642     # simplest approach to changing $(DEPDIR) to its actual value in the
28643     # expansion.
28644     for file in `sed -n "
28645       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28646          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28647       # Make sure the directory exists.
28648       test -f "$dirpart/$file" && continue
28649       fdir=`$as_dirname -- "$file" ||
28650 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28651          X"$file" : 'X\(//\)[^/]' \| \
28652          X"$file" : 'X\(//\)$' \| \
28653          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28654 $as_echo X"$file" |
28655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28656             s//\1/
28657             q
28658           }
28659           /^X\(\/\/\)[^/].*/{
28660             s//\1/
28661             q
28662           }
28663           /^X\(\/\/\)$/{
28664             s//\1/
28665             q
28666           }
28667           /^X\(\/\).*/{
28668             s//\1/
28669             q
28670           }
28671           s/.*/./; q'`
28672       as_dir=$dirpart/$fdir; as_fn_mkdir_p
28673       # echo "creating $dirpart/$file"
28674       echo '# dummy' > "$dirpart/$file"
28675     done
28676   done
28677 }
28678  ;;
28679     "libtool":C)
28680
28681     # See if we are running on zsh, and set the options that allow our
28682     # commands through without removal of \ escapes.
28683     if test -n "${ZSH_VERSION+set}"; then
28684       setopt NO_GLOB_SUBST
28685     fi
28686
28687     cfgfile=${ofile}T
28688     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28689     $RM "$cfgfile"
28690
28691     cat <<_LT_EOF >> "$cfgfile"
28692 #! $SHELL
28693 # Generated automatically by $as_me ($PACKAGE) $VERSION
28694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28695
28696 # Provide generalized library-building support services.
28697 # Written by Gordon Matzigkeit, 1996
28698
28699 # Copyright (C) 2014 Free Software Foundation, Inc.
28700 # This is free software; see the source for copying conditions.  There is NO
28701 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28702
28703 # GNU Libtool is free software; you can redistribute it and/or modify
28704 # it under the terms of the GNU General Public License as published by
28705 # the Free Software Foundation; either version 2 of of the License, or
28706 # (at your option) any later version.
28707 #
28708 # As a special exception to the GNU General Public License, if you
28709 # distribute this file as part of a program or library that is built
28710 # using GNU Libtool, you may include this file under the  same
28711 # distribution terms that you use for the rest of that program.
28712 #
28713 # GNU Libtool is distributed in the hope that it will be useful, but
28714 # WITHOUT ANY WARRANTY; without even the implied warranty of
28715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28716 # GNU General Public License for more details.
28717 #
28718 # You should have received a copy of the GNU General Public License
28719 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
28720
28721
28722 # The names of the tagged configurations supported by this script.
28723 available_tags=''
28724
28725 # Configured defaults for sys_lib_dlsearch_path munging.
28726 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28727
28728 # ### BEGIN LIBTOOL CONFIG
28729
28730 # Which release of libtool.m4 was used?
28731 macro_version=$macro_version
28732 macro_revision=$macro_revision
28733
28734 # Whether or not to build static libraries.
28735 build_old_libs=$enable_static
28736
28737 # Whether or not to build shared libraries.
28738 build_libtool_libs=$enable_shared
28739
28740 # What type of objects to build.
28741 pic_mode=$pic_mode
28742
28743 # Whether or not to optimize for fast installation.
28744 fast_install=$enable_fast_install
28745
28746 # Shared archive member basename,for filename based shared library versioning on AIX.
28747 shared_archive_member_spec=$shared_archive_member_spec
28748
28749 # Shell to use when invoking shell scripts.
28750 SHELL=$lt_SHELL
28751
28752 # An echo program that protects backslashes.
28753 ECHO=$lt_ECHO
28754
28755 # The PATH separator for the build system.
28756 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28757
28758 # The host system.
28759 host_alias=$host_alias
28760 host=$host
28761 host_os=$host_os
28762
28763 # The build system.
28764 build_alias=$build_alias
28765 build=$build
28766 build_os=$build_os
28767
28768 # A sed program that does not truncate output.
28769 SED=$lt_SED
28770
28771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28772 Xsed="\$SED -e 1s/^X//"
28773
28774 # A grep program that handles long lines.
28775 GREP=$lt_GREP
28776
28777 # An ERE matcher.
28778 EGREP=$lt_EGREP
28779
28780 # A literal string matcher.
28781 FGREP=$lt_FGREP
28782
28783 # A BSD- or MS-compatible name lister.
28784 NM=$lt_NM
28785
28786 # Whether we need soft or hard links.
28787 LN_S=$lt_LN_S
28788
28789 # What is the maximum length of a command?
28790 max_cmd_len=$max_cmd_len
28791
28792 # Object file suffix (normally "o").
28793 objext=$ac_objext
28794
28795 # Executable file suffix (normally "").
28796 exeext=$exeext
28797
28798 # whether the shell understands "unset".
28799 lt_unset=$lt_unset
28800
28801 # turn spaces into newlines.
28802 SP2NL=$lt_lt_SP2NL
28803
28804 # turn newlines into spaces.
28805 NL2SP=$lt_lt_NL2SP
28806
28807 # convert \$build file names to \$host format.
28808 to_host_file_cmd=$lt_cv_to_host_file_cmd
28809
28810 # convert \$build files to toolchain format.
28811 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28812
28813 # An object symbol dumper.
28814 OBJDUMP=$lt_OBJDUMP
28815
28816 # Method to check whether dependent libraries are shared objects.
28817 deplibs_check_method=$lt_deplibs_check_method
28818
28819 # Command to use when deplibs_check_method = "file_magic".
28820 file_magic_cmd=$lt_file_magic_cmd
28821
28822 # How to find potential files when deplibs_check_method = "file_magic".
28823 file_magic_glob=$lt_file_magic_glob
28824
28825 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28826 want_nocaseglob=$lt_want_nocaseglob
28827
28828 # DLL creation program.
28829 DLLTOOL=$lt_DLLTOOL
28830
28831 # Command to associate shared and link libraries.
28832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28833
28834 # The archiver.
28835 AR=$lt_AR
28836
28837 # Flags to create an archive.
28838 AR_FLAGS=$lt_AR_FLAGS
28839
28840 # How to feed a file listing to the archiver.
28841 archiver_list_spec=$lt_archiver_list_spec
28842
28843 # A symbol stripping program.
28844 STRIP=$lt_STRIP
28845
28846 # Commands used to install an old-style archive.
28847 RANLIB=$lt_RANLIB
28848 old_postinstall_cmds=$lt_old_postinstall_cmds
28849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28850
28851 # Whether to use a lock for old archive extraction.
28852 lock_old_archive_extraction=$lock_old_archive_extraction
28853
28854 # A C compiler.
28855 LTCC=$lt_CC
28856
28857 # LTCC compiler flags.
28858 LTCFLAGS=$lt_CFLAGS
28859
28860 # Take the output of nm and produce a listing of raw symbols and C names.
28861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28862
28863 # Transform the output of nm in a proper C declaration.
28864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28865
28866 # Transform the output of nm into a list of symbols to manually relocate.
28867 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28868
28869 # Transform the output of nm in a C name address pair.
28870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28871
28872 # Transform the output of nm in a C name address pair when lib prefix is needed.
28873 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28874
28875 # The name lister interface.
28876 nm_interface=$lt_lt_cv_nm_interface
28877
28878 # Specify filename containing input files for \$NM.
28879 nm_file_list_spec=$lt_nm_file_list_spec
28880
28881 # The root where to search for dependent libraries,and where our libraries should be installed.
28882 lt_sysroot=$lt_sysroot
28883
28884 # Command to truncate a binary pipe.
28885 lt_truncate_bin=$lt_lt_cv_truncate_bin
28886
28887 # The name of the directory that contains temporary libtool files.
28888 objdir=$objdir
28889
28890 # Used to examine libraries when file_magic_cmd begins with "file".
28891 MAGIC_CMD=$MAGIC_CMD
28892
28893 # Must we lock files when doing compilation?
28894 need_locks=$lt_need_locks
28895
28896 # Manifest tool.
28897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28898
28899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28900 DSYMUTIL=$lt_DSYMUTIL
28901
28902 # Tool to change global to local symbols on Mac OS X.
28903 NMEDIT=$lt_NMEDIT
28904
28905 # Tool to manipulate fat objects and archives on Mac OS X.
28906 LIPO=$lt_LIPO
28907
28908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28909 OTOOL=$lt_OTOOL
28910
28911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28912 OTOOL64=$lt_OTOOL64
28913
28914 # Old archive suffix (normally "a").
28915 libext=$libext
28916
28917 # Shared library suffix (normally ".so").
28918 shrext_cmds=$lt_shrext_cmds
28919
28920 # The commands to extract the exported symbol list from a shared archive.
28921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28922
28923 # Variables whose values should be saved in libtool wrapper scripts and
28924 # restored at link time.
28925 variables_saved_for_relink=$lt_variables_saved_for_relink
28926
28927 # Do we need the "lib" prefix for modules?
28928 need_lib_prefix=$need_lib_prefix
28929
28930 # Do we need a version for libraries?
28931 need_version=$need_version
28932
28933 # Library versioning type.
28934 version_type=$version_type
28935
28936 # Shared library runtime path variable.
28937 runpath_var=$runpath_var
28938
28939 # Shared library path variable.
28940 shlibpath_var=$shlibpath_var
28941
28942 # Is shlibpath searched before the hard-coded library search path?
28943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28944
28945 # Format of library name prefix.
28946 libname_spec=$lt_libname_spec
28947
28948 # List of archive names.  First name is the real one, the rest are links.
28949 # The last name is the one that the linker finds with -lNAME
28950 library_names_spec=$lt_library_names_spec
28951
28952 # The coded name of the library, if different from the real name.
28953 soname_spec=$lt_soname_spec
28954
28955 # Permission mode override for installation of shared libraries.
28956 install_override_mode=$lt_install_override_mode
28957
28958 # Command to use after installation of a shared archive.
28959 postinstall_cmds=$lt_postinstall_cmds
28960
28961 # Command to use after uninstallation of a shared archive.
28962 postuninstall_cmds=$lt_postuninstall_cmds
28963
28964 # Commands used to finish a libtool library installation in a directory.
28965 finish_cmds=$lt_finish_cmds
28966
28967 # As "finish_cmds", except a single script fragment to be evaled but
28968 # not shown.
28969 finish_eval=$lt_finish_eval
28970
28971 # Whether we should hardcode library paths into libraries.
28972 hardcode_into_libs=$hardcode_into_libs
28973
28974 # Compile-time system search path for libraries.
28975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28976
28977 # Detected run-time system search path for libraries.
28978 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28979
28980 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28981 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28982
28983 # Whether dlopen is supported.
28984 dlopen_support=$enable_dlopen
28985
28986 # Whether dlopen of programs is supported.
28987 dlopen_self=$enable_dlopen_self
28988
28989 # Whether dlopen of statically linked programs is supported.
28990 dlopen_self_static=$enable_dlopen_self_static
28991
28992 # Commands to strip libraries.
28993 old_striplib=$lt_old_striplib
28994 striplib=$lt_striplib
28995
28996
28997 # The linker used to build libraries.
28998 LD=$lt_LD
28999
29000 # How to create reloadable object files.
29001 reload_flag=$lt_reload_flag
29002 reload_cmds=$lt_reload_cmds
29003
29004 # Commands used to build an old-style archive.
29005 old_archive_cmds=$lt_old_archive_cmds
29006
29007 # A language specific compiler.
29008 CC=$lt_compiler
29009
29010 # Is the compiler the GNU compiler?
29011 with_gcc=$GCC
29012
29013 # Compiler flag to turn off builtin functions.
29014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29015
29016 # Additional compiler flags for building library objects.
29017 pic_flag=$lt_lt_prog_compiler_pic
29018
29019 # How to pass a linker flag through the compiler.
29020 wl=$lt_lt_prog_compiler_wl
29021
29022 # Compiler flag to prevent dynamic linking.
29023 link_static_flag=$lt_lt_prog_compiler_static
29024
29025 # Does compiler simultaneously support -c and -o options?
29026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29027
29028 # Whether or not to add -lc for building shared libraries.
29029 build_libtool_need_lc=$archive_cmds_need_lc
29030
29031 # Whether or not to disallow shared libs when runtime libs are static.
29032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29033
29034 # Compiler flag to allow reflexive dlopens.
29035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29036
29037 # Compiler flag to generate shared objects directly from archives.
29038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29039
29040 # Whether the compiler copes with passing no objects directly.
29041 compiler_needs_object=$lt_compiler_needs_object
29042
29043 # Create an old-style archive from a shared archive.
29044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29045
29046 # Create a temporary old-style archive to link instead of a shared archive.
29047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29048
29049 # Commands used to build a shared archive.
29050 archive_cmds=$lt_archive_cmds
29051 archive_expsym_cmds=$lt_archive_expsym_cmds
29052
29053 # Commands used to build a loadable module if different from building
29054 # a shared archive.
29055 module_cmds=$lt_module_cmds
29056 module_expsym_cmds=$lt_module_expsym_cmds
29057
29058 # Whether we are building with GNU ld or not.
29059 with_gnu_ld=$lt_with_gnu_ld
29060
29061 # Flag that allows shared libraries with undefined symbols to be built.
29062 allow_undefined_flag=$lt_allow_undefined_flag
29063
29064 # Flag that enforces no undefined symbols.
29065 no_undefined_flag=$lt_no_undefined_flag
29066
29067 # Flag to hardcode \$libdir into a binary during linking.
29068 # This must work even if \$libdir does not exist
29069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29070
29071 # Whether we need a single "-rpath" flag with a separated argument.
29072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29073
29074 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29075 # DIR into the resulting binary.
29076 hardcode_direct=$hardcode_direct
29077
29078 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29079 # DIR into the resulting binary and the resulting library dependency is
29080 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
29081 # library is relocated.
29082 hardcode_direct_absolute=$hardcode_direct_absolute
29083
29084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29085 # into the resulting binary.
29086 hardcode_minus_L=$hardcode_minus_L
29087
29088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29089 # into the resulting binary.
29090 hardcode_shlibpath_var=$hardcode_shlibpath_var
29091
29092 # Set to "yes" if building a shared library automatically hardcodes DIR
29093 # into the library and all subsequent libraries and executables linked
29094 # against it.
29095 hardcode_automatic=$hardcode_automatic
29096
29097 # Set to yes if linker adds runtime paths of dependent libraries
29098 # to runtime path list.
29099 inherit_rpath=$inherit_rpath
29100
29101 # Whether libtool must link a program against all its dependency libraries.
29102 link_all_deplibs=$link_all_deplibs
29103
29104 # Set to "yes" if exported symbols are required.
29105 always_export_symbols=$always_export_symbols
29106
29107 # The commands to list exported symbols.
29108 export_symbols_cmds=$lt_export_symbols_cmds
29109
29110 # Symbols that should not be listed in the preloaded symbols.
29111 exclude_expsyms=$lt_exclude_expsyms
29112
29113 # Symbols that must always be exported.
29114 include_expsyms=$lt_include_expsyms
29115
29116 # Commands necessary for linking programs (against libraries) with templates.
29117 prelink_cmds=$lt_prelink_cmds
29118
29119 # Commands necessary for finishing linking programs.
29120 postlink_cmds=$lt_postlink_cmds
29121
29122 # Specify filename containing input files.
29123 file_list_spec=$lt_file_list_spec
29124
29125 # How to hardcode a shared library path into an executable.
29126 hardcode_action=$hardcode_action
29127
29128 # ### END LIBTOOL CONFIG
29129
29130 _LT_EOF
29131
29132     cat <<'_LT_EOF' >> "$cfgfile"
29133
29134 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29135
29136 # func_munge_path_list VARIABLE PATH
29137 # -----------------------------------
29138 # VARIABLE is name of variable containing _space_ separated list of
29139 # directories to be munged by the contents of PATH, which is string
29140 # having a format:
29141 # "DIR[:DIR]:"
29142 #       string "DIR[ DIR]" will be prepended to VARIABLE
29143 # ":DIR[:DIR]"
29144 #       string "DIR[ DIR]" will be appended to VARIABLE
29145 # "DIRP[:DIRP]::[DIRA:]DIRA"
29146 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29147 #       "DIRA[ DIRA]" will be appended to VARIABLE
29148 # "DIR[:DIR]"
29149 #       VARIABLE will be replaced by "DIR[ DIR]"
29150 func_munge_path_list ()
29151 {
29152     case x$2 in
29153     x)
29154         ;;
29155     *:)
29156         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29157         ;;
29158     x:*)
29159         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29160         ;;
29161     *::*)
29162         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29163         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29164         ;;
29165     *)
29166         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29167         ;;
29168     esac
29169 }
29170
29171
29172 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
29173 func_cc_basename ()
29174 {
29175     for cc_temp in $*""; do
29176       case $cc_temp in
29177         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29178         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29179         \-*) ;;
29180         *) break;;
29181       esac
29182     done
29183     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29184 }
29185
29186
29187 # ### END FUNCTIONS SHARED WITH CONFIGURE
29188
29189 _LT_EOF
29190
29191   case $host_os in
29192   aix3*)
29193     cat <<\_LT_EOF >> "$cfgfile"
29194 # AIX sometimes has problems with the GCC collect2 program.  For some
29195 # reason, if we set the COLLECT_NAMES environment variable, the problems
29196 # vanish in a puff of smoke.
29197 if test set != "${COLLECT_NAMES+set}"; then
29198   COLLECT_NAMES=
29199   export COLLECT_NAMES
29200 fi
29201 _LT_EOF
29202     ;;
29203   esac
29204
29205
29206 ltmain=$ac_aux_dir/ltmain.sh
29207
29208
29209   # We use sed instead of cat because bash on DJGPP gets confused if
29210   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29211   # text mode, it properly converts lines to CR/LF.  This bash problem
29212   # is reportedly fixed, but why not run on old versions too?
29213   sed '$q' "$ltmain" >> "$cfgfile" \
29214      || (rm -f "$cfgfile"; exit 1)
29215
29216    mv -f "$cfgfile" "$ofile" ||
29217     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29218   chmod +x "$ofile"
29219
29220  ;;
29221
29222   esac
29223 done # for ac_tag
29224
29225
29226 as_fn_exit 0
29227 _ACEOF
29228 ac_clean_files=$ac_clean_files_save
29229
29230 test $ac_write_fail = 0 ||
29231   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29232
29233
29234 # configure is writing to config.log, and then calls config.status.
29235 # config.status does its own redirection, appending to config.log.
29236 # Unfortunately, on DOS this fails, as config.log is still kept open
29237 # by configure, so config.status won't be able to write to it; its
29238 # output is simply discarded.  So we exec the FD to /dev/null,
29239 # effectively closing config.log, so it can be properly (re)opened and
29240 # appended to by config.status.  When coming back to configure, we
29241 # need to make the FD available again.
29242 if test "$no_create" != yes; then
29243   ac_cs_success=:
29244   ac_config_status_args=
29245   test "$silent" = yes &&
29246     ac_config_status_args="$ac_config_status_args --quiet"
29247   exec 5>/dev/null
29248   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29249   exec 5>>config.log
29250   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29251   # would make configure fail if this is the last instruction.
29252   $ac_cs_success || as_fn_exit 1
29253 fi
29254 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29255   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29256 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29257 fi
29258